/* Importar una fuente limpia similar a la de la imagen */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

/* Variables de color basadas en la imagen */
:root {
    --primary-teal: #003ee5;
    --primary-navy: #06395b;
    --text-gray: #6b7280;
    --bg-light: #f8fbff; /* Fondo ligeramente azul/grisáceo */
    --white: #ffffff;
    --border-color: #e5e7eb;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-light);
    color: var(--primary-navy);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 85px;
}

/* --- Navegación (Header) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 15%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.shrink {
    padding: 0.6rem 15%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.navbar.shrink .logo-img {
    height: 40px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 48px;
    width: auto;
    transition: height 0.3s ease;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-teal);
}

.btn-cotizar {
    background-color: var(--primary-teal);
    color: var(--white);
    padding: 0.55rem 1.6rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.3s;
}

.btn-cotizar:hover {
    background-color: #002cb8;
}

.country-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
}

.help-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    border: 1px solid var(--primary-teal);
    border-radius: 50%;
    color: var(--primary-teal);
    text-decoration: none;
}

/* --- Sección Hero --- */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 4rem 10%;
}

.hero-content {
    max-width: 700px;
    width: 100%;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.highlight-teal {
    color: var(--primary-teal);
}

.highlight-navy {
    color: var(--primary-navy);
}

.hero-description {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 3rem;
}

/* --- Cuadrícula de Tarjetas --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.insurance-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid transparent;
}

.insurance-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: #f0f4f8;
}

.card-text {
    display: flex;
    flex-direction: column;
}

.card-label {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-title {
    font-size: 1.1rem;
    color: var(--primary-navy);
    margin-top: 4px;
}

.card-icon {
    font-size: 2rem;
}

/* --- Imagen Hero --- */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* --- Sección de Logos (Footer area) --- */
.partners-section {
    padding: 2rem 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--white);
    position: relative;
}

.logos-container {
    overflow: hidden;
    width: 100%;
    margin-bottom: 1.5rem;
}

.logos-track {
    display: flex;
    align-items: center;
    width: max-content;
    will-change: transform;
}

.partner-logo {
    height: 50px;
    width: auto;
    margin: 0 1.5rem;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: opacity 0.3s, filter 0.3s;
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* --- Sección ¿Por qué necesito un seguro? --- */
.porque-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 15%;
    gap: 4rem;
    background-color: var(--white);
}

.porque-content {
    flex: 1;
    max-width: 520px;
}

.porque-content h2 {
    font-size: 2rem;
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.porque-content p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.btn-asesoria {
    display: inline-block;
    margin-top: 1.5rem;
    background-color: var(--primary-teal);
    color: var(--white);
    padding: 0.8rem 2.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.3s;
}

.btn-asesoria:hover {
    background-color: #002cb8;
}

.porque-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.porque-image img {
    max-width: 55%;
    height: auto;
    border-radius: 12px;
}

/* --- Sección Quiénes Somos --- */
.quienes-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 15%;
    gap: 4rem;
    background-color: var(--bg-light);
}

.quienes-content {
    flex: 1;
    max-width: 520px;
}

.quienes-content h2 {
    font-size: 2rem;
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.quienes-content p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.quienes-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.quienes-image img {
    max-width: 70%;
    height: auto;
    border-radius: 12px;
}

/* --- Sección Contacto --- */
.contacto-section {
    padding: 5rem 15%;
    background-color: var(--white);
}

.contacto-container {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.contacto-container h2 {
    font-size: 2rem;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.contacto-container > p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.form-contacto {
    text-align: left;
}

.form-contacto .form-group {
    margin-bottom: 1.2rem;
}

.form-contacto .form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.4rem;
}

.label-opcional {
    font-weight: 400;
    color: var(--text-gray);
    font-size: 0.8rem;
}

.form-contacto input,
.form-contacto select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--primary-navy);
    background: var(--white);
    transition: border-color 0.3s;
}

.form-contacto input:focus,
.form-contacto select:focus {
    outline: none;
    border-color: var(--primary-teal);
}

.btn-contacto-submit {
    width: 100%;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    background: var(--primary-teal);
    color: var(--white);
    border: none;
    transition: background-color 0.3s;
    margin-top: 0.5rem;
}

.btn-contacto-submit:hover {
    background-color: #002cb8;
}

.contacto-gracias {
    text-align: center;
    padding: 2rem 0;
}

.contacto-gracias i {
    font-size: 3rem;
    color: #4caf50;
    margin-bottom: 1rem;
}

.contacto-gracias h3 {
    font-size: 1.5rem;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.contacto-gracias p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* --- WhatsApp Flotante --- */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 70px;
    height: 70px;
    background-color: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1500;
    transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* --- Footer --- */
.site-footer {
    background-color: #031d30;
    color: #b0c4d8;
    padding: 3rem 15% 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-links-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.footer-col ul li a {
    color: #b0c4d8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary-teal);
}

.footer-col ul li i {
    margin-right: 8px;
    width: 16px;
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    font-size: 0.85rem;
}

.footer-legal p {
    margin-bottom: 0.3rem;
}

.cnbs-link {
    color: var(--primary-teal);
    text-decoration: none;
    transition: color 0.3s;
}

.cnbs-link:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s, border-color 0.3s;
}

.footer-social a:hover {
    background-color: var(--primary-teal);
    border-color: var(--primary-teal);
}

/* --- Modal Cotizador --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-overlay.open {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem 2rem 2rem;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-gray);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s;
}

.modal-close:hover {
    background: #f0f0f0;
}

.modal-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 2rem;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8e8e8;
    color: #999;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    transition: background 0.3s, color 0.3s;
}

.step-item.active .step-number {
    background: var(--primary-teal);
    color: var(--white);
}

.step-item.completed .step-number {
    background: var(--primary-teal);
    color: var(--white);
}

.step-label {
    font-size: 0.7rem;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
}

.step-item.active .step-label {
    color: var(--primary-teal);
}

.step-item.completed .step-label {
    color: var(--primary-teal);
}

.step-line {
    width: 40px;
    height: 2px;
    background: #e8e8e8;
    margin: 0 8px;
    margin-bottom: 20px;
}

.step-line.completed {
    background: var(--primary-teal);
}

.modal-form h3 {
    color: var(--primary-navy);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.4rem;
}

.form-group input[type="date"],
.form-group input[type="tel"],
.form-group input[type="number"] {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--primary-navy);
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-teal);
}

.radio-group {
    display: flex;
    gap: 1.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-navy);
    cursor: pointer;
}

.radio-option input[type="radio"] {
    accent-color: var(--primary-teal);
    width: 16px;
    height: 16px;
}

.form-empty {
    color: var(--text-gray);
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

.modal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.btn-prev,
.btn-next {
    padding: 0.7rem 2rem;
    border-radius: 25px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
    border: 2px solid var(--border-color);
    background: var(--white);
    color: var(--text-gray);
}

.btn-prev:hover {
    border-color: var(--primary-teal);
    color: var(--primary-teal);
}

.btn-next {
    background: var(--primary-teal);
    color: var(--white);
    border-color: var(--primary-teal);
    margin-left: auto;
}

.btn-next:hover {
    background: #002cb8;
    border-color: #002cb8;
}

.btn-next:disabled {
    background: #b0c4d8;
    border-color: #b0c4d8;
    cursor: not-allowed;
}

input.input-error {
    border-color: #d32f2f !important;
}

.cotizacion-placeholder {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-gray);
}

.cotizacion-placeholder i {
    font-size: 3rem;
    color: #e0e0e0;
    margin-bottom: 1rem;
}

.cotizacion-placeholder p {
    font-size: 0.95rem;
}

/* --- Menú Hamburguesa --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 100;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-teal);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Responsividad Básica --- */
@media (max-width: 968px) {
    .hero-section {
        padding: 3rem 5%;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .cards-grid {
        text-align: left;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-links-row {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer {
        padding: 3rem 8% 0;
    }

    .porque-section {
        padding: 3rem 8%;
        gap: 2rem;
    }

    .quienes-section {
        padding: 3rem 8%;
        gap: 2rem;
    }

    .contacto-section {
        padding: 3rem 8%;
    }
}

@media (max-width: 600px) {
    .hero-section {
        min-height: 85vh;
        align-items: flex-start;
        padding: 5rem 5% 2rem;
    }

    .navbar {
        justify-content: center;
    }

    .hamburger {
        display: flex;
        position: absolute;
        right: 5%;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 1.5rem;
        gap: 2rem;
        z-index: 99;
    }

    .nav-menu.open {
        display: flex;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links-row {
        grid-template-columns: 1fr 1fr;
        text-align: center;
    }

    .footer-links-row .footer-col ul li {
        justify-content: center;
    }

    .footer-col ul li {
        justify-content: center;
    }

    .site-footer {
        padding: 2.5rem 5% 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .porque-section {
        flex-direction: column;
        padding: 3rem 5%;
        gap: 2rem;
        text-align: center;
    }

    .porque-image img {
        max-width: 90%;
    }

    .quienes-section {
        flex-direction: column;
        padding: 3rem 5%;
        gap: 2rem;
        text-align: center;
    }

    .quienes-image img {
        max-width: 90%;
    }

    .contacto-section {
        padding: 3rem 5%;
    }

    .porque-content h2 {
        font-size: 1.6rem;
    }

    .modal {
        padding: 1.5rem 1.2rem;
        border-radius: 12px;
    }

    .modal-steps {
        gap: 0;
    }

    .step-line {
        width: 24px;
        margin: 0 4px;
        margin-bottom: 20px;
    }

    .btn-prev,
    .btn-next {
        padding: 0.6rem 1.4rem;
        font-size: 0.85rem;
    }
}
