/* =================================================================== */
/* ARCHVO DE ESTILOS COMPLETO - CONSULSER (VERSIÓN FINAL DEFINITIVA)   */
/* =================================================================== */

/* ----------------------------- */
/* PALETA DE COLORES Y VARIABLES */
/* ----------------------------- */
:root {
    --color-primary: #1e1e1e;
    --color-primary-dark: #121212;
    --color-secondary: #bfa359;
    --color-accent: #d4af37;
    --color-light: #f5f5f5;
    --color-dark: #2b2b2b;
    --color-white: #ffffff;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
}

/* ---------------------------------- */
/* ESTILOS GENERALES Y TIPOGRAFÍA     */
/* ---------------------------------- */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--color-light);
    color: #333; /* Color de texto base más oscuro para mejor contraste */
    font-size: 17px; /* Tamaño de fuente base para mejor legibilidad */
    line-height: 1.7; /* Interlineado generoso */
}

body::before {
    content: none !important;
    display: none !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3; /* Interlineado más ajustado para títulos */
    color: var(--color-primary);
}

h1, .display-4, .display-5 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    font-weight: 400; /* Peso normal para lectura cómoda */
}

.lead {
    font-size: 1.15rem;
    font-weight: 400;
}

section[id] {
    scroll-margin-top: 80px;
    padding: 60px 0;
}

.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ---------------------------------------------------- */
/* HEADER Y NAVEGACIÓN (CON LA ALINEACIÓN CORREGIDA)    */
/* ---------------------------------------------------- */
.contenedor-header {
    position: relative;
    z-index: 100;
    background: linear-gradient(to bottom, #f7f1e4, #b9ae8f);
    min-height: 250px;
    padding: 20px 0;
    display: flex;
    align-items: center;
    clip-path: url(#wave-inverted);
    margin-top: 0 !important;
    border-top: none !important;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: -50px;
    padding: 0 40px;
}

.logo-img {
    height: 200px;
    width: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.menu {
    display: flex;
    gap: 15px;
}

.menu a {
    text-decoration: none;
    color: #3b2e1d;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.menu a:hover {
    color: #5a4a2a;
    background-color: rgba(199, 177, 132, 0.2);
}

.btn-portal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--color-accent);
    color: var(--color-primary);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-family: var(--font-primary);
}

.btn-portal:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.portal-access {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-left: 20px;
}

.registration-info {
    font-size: 0.85rem;
    color: #555;
    margin-top: 5px;
    text-align: center;
    line-height: 1.4;
}


/* ================================================= */
/* SECCIÓN HERO (CARRUSEL)                           */
/* ================================================= */
#heroCarousel {
    position: relative;
    z-index: 50;
    margin-top: -120px;
}

.carousel-inner {
    height: 80vh;
    min-height: 500px;
}

.carousel-item {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.hero-section {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-align: center;
    padding: 20px;
}

.hero-section h1 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    font-weight: 700;
    color: var(--color-white); /* Asegurar color blanco para títulos del hero */
}

.divider {
    width: 80px;
    height: 3px;
    background-color: var(--color-accent);
    margin: 1.5rem auto;
    border-radius: 2px;
}

.text-content > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.carousel-item.active .text-content > * {
    opacity: 1;
    transform: translateY(0);
}

.carousel-item.active .text-content h1 { transition-delay: 0.2s; }
.carousel-item.active .text-content .divider { transition-delay: 0.5s; }
.carousel-item.active .text-content p { transition-delay: 0.8s; }


.lead-left-align {
    text-align: left;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.lead-left-align strong {
    color: var(--color-accent);
    font-weight: 600;
}

.carousel-control-prev,
.carousel-control-next {
    width: 8%;
    z-index: 6;
}

/* ----------------------------- */
/* SECCIÓN 'QUIÉNES SOMOS'       */
/* ----------------------------- */
#quienes-somos {
    background-color: var(--color-white);
    padding: 50px 0;
}

#quienes-somos .row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

#quienes-somos .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
    overflow: hidden;
    padding-top: 100px;
    padding-left: 40px;
    padding-right: 60px;
}

#quienes-somos .col-md-6 {
    flex: 0 0 45%;
    max-width: 45%;
    padding-top: 75px;
    text-align: center;
}

#quienes-somos .section-header {
    margin-bottom: 50px;
}

#quienes-somos .section-title {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

#quienes-somos .section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--color-secondary);
}

#quienes-somos .section-subtitle {
    color: var(--color-dark-light, #6c757d);
    font-size: 1.2rem; /* Tamaño ajustado */
}

#quienes-somos .quienes-somos-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: justify;
}

#quienes-somos p {
    font-size: 1rem; /* Consistencia en tamaño */
    color: #444; /* Un poco más oscuro */
    margin-bottom: 1.5rem; /* Más espaciado */
}

#quienes-somos ul {
    padding-left: 0;
    list-style: none;
}

#quienes-somos li {
    font-size: 1rem;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.quienes-somos-carousel .carousel-item {
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    background-color: #e0e0e0;
}

.quienes-somos-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

/* ============================================= */
/* INICIO: ESTILOS PARA SECCIÓN DE AFILIACIÓN    */
/* ============================================= */

#afiliacion-acordes {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.afiliacion-logo {
    max-width: 160px;
    height: auto;
}

#afiliacion-acordes h2 {
    color: var(--color-white); /* Asegurar color blanco */
}

#afiliacion-acordes .lead.text-acento {
    color: var(--color-accent);
    font-size: 1.3rem; /* Tamaño ajustado */
    font-weight: 400;
    line-height: 1.6;
}

/* ----------------------------- */
/* SECCIÓN SERVICIOS (FEATURES)  */
/* ----------------------------- */
#features {
    background-color: var(--color-light);
}

.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.service-card .card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem; /* Más padding interno */
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0.8rem 1.5rem rgba(0, 0, 0, 0.1) !important;
}

#features .card-title {
    margin-bottom: 0.75rem;
}

#features .card-text {
    font-size: 0.95rem;
    color: #555;
    flex-grow: 1; /* Permite que el texto ocupe el espacio disponible */
}

/* ----------------------------------- */
/* SECCIÓN ASEGURADORAS (TESTIMONIALS) */
/* ----------------------------------- */
#testimonials {
    background-color: var(--color-white);
    padding: 20px 0;
}

#testimonials .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

#testimonials img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0.7;
    transition: all 0.4s;
}

#testimonials img:hover {
    filter: grayscale(0%) brightness(1.1);
    opacity: 1;
    transform: scale(1.1);
}

/* ----------------------------- */
/* SECCIÓN CONTACTO Y FOOTER     */
/* ----------------------------- */
#contact {
    background-color: var(--color-light);
}

footer {
    background-color: var(--color-primary) !important;
    color: var(--color-white);
    border-top: 3px solid var(--color-secondary);
    padding: 30px 0;
}

footer p {
    color: var(--color-light);
    font-size: 0.95rem;
}

/* =================================================================== */
/* DISEÑO RESPONSIVO (MEDIA QUERIES)                                   */
/* =================================================================== */

@media (max-width: 992px) {
    .contenedor-header {
        clip-path: url(#wave-mobile);
        min-height: auto;
        padding: 15px 20px 60px 20px;
        align-items: flex-start;
    }

    .header-top {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 0;
        padding: 0;
    }

    .logo-img {
        height: 100px;
        margin-bottom: 20px;
    }

    .header-actions {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        align-items: center;
        margin-right: 0;
    }

    .menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        padding: 0 10px;
        width: 100%;
    }

    .portal-access {
        margin-top: 10px;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        padding: 0 15px;
    }

    #quienes-somos .row {
        flex-direction: column;
        align-items: center;
    }

    #quienes-somos .col-md-3,
    #quienes-somos .col-md-6 {
        flex-basis: 90%;
        max-width: 90%;
        padding: 0 0 30px 0;
        text-align: center;
    }
}

@media (max-width: 768px) {
    h1, .display-4, .display-5 { font-size: 2.1rem; }
    h2 { font-size: 1.8rem; }
    body { font-size: 16px; }

    #heroCarousel {
        margin-top: -80px; 
    }

    .carousel-inner {
        height: 90vh; 
        min-height: 600px;
    }

    .hero-section {
        padding-top: 100px;
        padding-bottom: 40px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-section .lead {
        font-size: 1rem;
        line-height: 1.5;
    }

    #quienes-somos {
        padding-top: 40px;
    }
    
    #quienes-somos .section-header {
        margin-bottom: 25px;
    }

    #quienes-somos .section-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .quienes-somos-carousel .carousel-item {
        height: 300px;
    }

    #quienes-somos p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    #quienes-somos li {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    #afiliacion-acordes h2 {
        font-size: 1.8rem;
    }
    #afiliacion-acordes .lead.text-acento {
        font-size: 1.1rem;
    }
    .afiliacion-logo {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    h1, .display-4, .display-5 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }

    .menu a {
        font-size: 14px;
        padding: 6px 10px;
    }

    .btn-portal {
        width: 100%;
        justify-content: center;
    }

    .registration-info {
        font-size: 0.75rem;
        padding: 0 5px;
    }

    .hero-section h1 {
        font-size: 1.6rem;
    }
    .hero-section .lead {
        font-size: 0.9rem;
    }
}