/* --- Variables CSS (Colores y Fuentes Principales) --- */
:root {
    --primary-color: #007bff; /* Azul principal (ajusta si es otro) */
    --secondary-color: #6c757d; /* Gris secundario para botones, etc. */
    --dark-blue: #0a2e5c; /* Azul oscuro para títulos y elementos */
    --light-blue-bg: #f0f7ff; /* Fondo azul muy claro para algunas secciones */
    --text-color: #333; /* Color de texto principal */
    --text-light: #555; /* Color de texto secundario/párrafos */
    --white-color: #fff;
    --light-gray-bg: #f8f9fa; /* Fondo gris claro alternativo */
    --border-color: #dee2e6;
    --footer-bg: #0a2e5c; /* Azul oscuro del footer */
    --footer-text: #adb5bd; /* Texto claro del footer */
    --font-family: 'Poppins', sans-serif;
    --header-height: 70px; /* Altura aproximada del header */
}

/* --- Reset y Estilos Base --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height); /* Ajuste para el header fijo */
    font-size: 16px; /* Base para REM */
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white-color);
    overflow-x: hidden; /* Prevenir scroll horizontal accidental */
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3; /* Azul primario más oscuro */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.imagen-redondeada {
    border-radius: 10px; /* Puedes ajustar el valor */
  }

h1, h2, h3, h4, h5, h6 {
    font-weight: 600; /* Más bold por defecto */
    color: var(--dark-blue);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

h1 { font-size: 2.8rem; font-weight: 700; }
h2.section-title { font-size: 2.2rem; font-weight: 700; margin-bottom: 1.5rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; font-weight: 600; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}

section {
    padding: 80px 0;
}

section:nth-child(even) { /* Alternar fondos */
    background-color: var(--light-gray-bg);
}
/* Específico para la sección Hero y Contacto si tienen fondos distintos */
.hero-section { background-color: var(--light-blue-bg); padding: 60px 0; }
.contact-section { background-color: var(--light-blue-bg); }


/* --- Botones --- */
.btn {
    display: inline-block;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 30px;
    border: none;
    border-radius: 50px; /* Bordes muy redondeados */
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none; /* Asegurar que no haya subrayado */
    line-height: 1.5; /* Para alinear texto verticalmente */
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background-color: #0056b3;
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
}

.btn-secondary {
    background-color: var(--white-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

.btn-hero {
    margin-right: 15px; /* Espacio entre botones del hero */
    margin-bottom: 10px; /* Para apilado en móvil */
}

/* --- Header --- */
.main-header {
    background-color: var(--white-color);
    padding: 0; /* Padding controlado por la altura */
    height: var(--header-height);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: height 0.3s ease, background-color 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 40px; /* Ajusta según el logo real */
    width: auto;
    vertical-align: middle; /* Alinear mejor si hay texto al lado */
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px; /* Espacio entre elementos del menú */
}

.main-nav ul li a.nav-link {
    color: var(--dark-blue);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}
.main-nav ul li a.nav-link:hover,
.main-nav ul li a.nav-link.active { /* Estilo para link activo */
    color: var(--primary-color);
    font-weight: 600;
}

/* Efecto subrayado sutil */
.main-nav ul li a.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 4px;
    right: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
}
.main-nav ul li a.nav-link:hover::after,
.main-nav ul li a.nav-link.active::after {
    width: 100%;
    left: 0;
}

.mobile-menu-toggle {
    display: none; /* Oculto en escritorio */
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--dark-blue);
    padding: 5px;
}

/* --- Hero Section --- */
.hero-section {
    min-height: calc(100vh - var(--header-height)); /* Ocupar pantalla menos header */
    display: flex;
    align-items: center;
    padding-top: 40px; /* Espacio extra arriba */
    padding-bottom: 40px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1 1 55%; /* Dar más espacio al texto */
    max-width: 55%;
}

.hero-title {
    font-size: 3.2rem; /* Ligeramente más grande */
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
}

.hero-image {
    flex: 1 1 40%; /* Espacio para la imagen */
    max-width: 40%;
    text-align: center;
}
.hero-image img {
   max-width: 480px; /* Ajusta el tamaño máximo si es necesario */
   margin: 0 auto;
}

/* --- About Section --- */
.about-container {
    display: flex;
    align-items: center;
    gap: 60px; /* Más espacio */
}

.about-image {
    flex: 1 1 45%;
    max-width: 45%;
    text-align: center;
}
.about-image img {
     border-radius: 8px;
     box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1 1 55%;
    max-width: 55%;
}
.about-text .btn {
    margin-top: 1rem;
}

/* --- Insurances Section --- */
.insurances-section {
    background-color: var(--white-color); /* Fondo blanco específico */
}
.insurance-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Columnas responsivas */
    gap: 30px;
    margin-top: 2rem;
}

.card { /* Estilo base para todas las 'cards' */
    background-color: var(--white-color);
    padding: 35px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color); /* Borde sutil */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    line-height: 1;
}

.card-title {
    margin-bottom: 0.8rem;
    color: var(--dark-blue); /* Títulos de tarjeta oscuros */
    font-size: 1.3rem;
}

.card-text {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}


/* --- Benefits Section --- */
.benefits-section {
     background-color: var(--light-gray-bg);
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 2rem;
}
.benefit-item {
    text-align: center;
    background-color: var(--white-color); /* Fondo blanco para items */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.benefit-item:hover {
     transform: translateY(-3px);
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1;
}
.benefit-title {
    font-size: 1.2rem;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}
.benefit-text {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* --- Contact Section --- */
.contact-container {
    display: flex;
    gap: 50px;
    align-items: flex-start; /* Alinear arriba */
}
.contact-info {
    flex: 1 1 40%;
    max-width: 40%;
}
.contact-info h2 {
    margin-bottom: 1.5rem;
}
.contact-info p {
     margin-bottom: 1.5rem;
}
.contact-phone, .contact-email {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark-blue);
    margin-bottom: 0.8rem !important;
}
.contact-phone i, .contact-email i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px; /* Para alinear */
    text-align: center;
}

.contact-form-wrapper {
    flex: 1 1 60%;
    max-width: 60%;
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}
.contact-form .form-group {
    margin-bottom: 1.5rem; /* Más espacio entre campos */
}

.contact-form .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9rem;
}

.contact-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background-color: #fdfdfd; /* Fondo ligeramente diferente */
}

.contact-form .form-control::placeholder {
    color: #aaa;
    opacity: 1;
}

.contact-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-form .checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}
.contact-form .checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color); /* Color del check */
}
.contact-form .checkbox-group label {
    margin-bottom: 0; /* Reset margin */
    font-size: 0.9rem;
    color: var(--text-light);
}
.contact-form .checkbox-group label a {
    color: var(--primary-color);
    text-decoration: underline;
}
.contact-form .checkbox-group label a:hover {
    color: #0056b3;
}


.contact-form .btn-submit {
    width: 100%;
    padding: 14px 30px;
    font-size: 1.1rem;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    padding: 40px 0;
}
.footer-container {
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 20px;
}
.footer-logo img {
    height: 35px; /* Ajusta según necesites */
    opacity: 0.9;
}
.footer-links a {
    color: var(--footer-text);
    margin: 0 10px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: var(--white-color);
    text-decoration: underline;
}
.footer-copy {
    font-size: 0.85rem;
    color: #889; /* Un gris aún más claro */
}
.footer-copy .fa-heart { /* Corazón del crédito */
    color: #e44d26; /* O el color que usen */
    margin: 0 3px;
}

/* --- Responsividad --- */

/* Tablet (ej. < 992px) */
@media (max-width: 991.98px) {
    :root {
        --header-height: 65px; /* Header un poco más bajo */
    }
    html { font-size: 15px; } /* Ajuste base */
    h1.hero-title { font-size: 2.8rem; }
    h2.section-title { font-size: 2rem; }

    .hero-container { flex-direction: column; text-align: center; gap: 30px;}
    .hero-text, .hero-image { max-width: 100%; flex-basis: auto; }
    .hero-image { order: -1; margin-bottom: 20px;} /* Imagen arriba */
    .hero-image img { max-width: 400px; }

    .about-container { flex-direction: column; text-align: center; gap: 30px;}
    .about-text, .about-image { max-width: 80%; flex-basis: auto; margin: 0 auto; }
    .about-image { order: -1; margin-bottom: 20px; } /* Imagen arriba */

    .contact-container { flex-direction: column; gap: 40px; }
    .contact-info, .contact-form-wrapper { max-width: 100%; }
    .contact-info { text-align: center; }

    /* --- Mobile Menu --- */
    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        border-top: 1px solid var(--border-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
    }
    .main-nav.active {
        display: block;
        max-height: 500px; /* Suficiente altura para el contenido */
    }

    .main-nav ul {
        flex-direction: column;
        padding: 10px 0;
    }

    .main-nav ul li {
        margin: 0;
        text-align: center;
        border-bottom: 1px solid #eee;
    }
     .main-nav ul li:last-child {
        border-bottom: none;
    }

    .main-nav ul li a.nav-link {
        display: block;
        padding: 15px;
        width: 100%;
        color: var(--dark-blue); /* Asegurar color en móvil */
    }
     .main-nav ul li a.nav-link::after {
         display: none; /* Ocultar subrayado en móvil */
     }
     .main-nav ul li a.nav-link:hover,
     .main-nav ul li a.nav-link.active {
         background-color: var(--light-blue-bg); /* Fondo suave al pasar/activo */
         color: var(--primary-color);
     }

    .mobile-menu-toggle {
        display: block; /* Mostrar el botón hamburguesa */
    }
}

/* Móvil (ej. < 768px) */
@media (max-width: 767.98px) {
    html { font-size: 14px; } /* Reducir un poco más */
     :root { --header-height: 60px; }

    section { padding: 60px 0; }

    h1.hero-title { font-size: 2.4rem; line-height: 1.2; }
    h2.section-title { font-size: 1.8rem; margin-bottom: 1rem;}
    .section-subtitle { font-size: 1rem; margin-bottom: 2rem; }

    .hero-text { max-width: 100%; }
    .hero-image img { max-width: 320px; }
    .btn-hero { display: block; margin: 0 auto 15px auto; width: 80%; max-width: 250px;} /* Botones del hero apilados */
    .btn-hero:last-child { margin-bottom: 0;}

    .about-text, .about-image { max-width: 95%; }

    .insurance-cards-grid { grid-template-columns: 1fr; gap: 20px; } /* 1 columna en móvil */
    .benefits-grid { grid-template-columns: 1fr; gap: 20px; } /* 1 columna en móvil */

    .contact-form-wrapper { padding: 30px; }
    .footer-links { display: flex; flex-direction: column; gap: 8px;}
    .footer-links span { display: none; } /* Ocultar el separador '|' */
}