/* ========================================
   CONFIGURACIÓN GLOBAL
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: #080808;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
}

/* Evita espacios extra debajo de imágenes */
img {
    display: block;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
}

/* Listas */
ul,
ol {
    list-style: none;
}

/* Contenedor general */
.container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
}

/* Contenido principal */
main {
    width: 100%;
    min-height: 500px;
}

/* ========================================
   HERO PRINCIPAL
======================================== */
.hero-main {
    width: 100%;
    height: calc(100vh - 110px);
    min-height: 650px;
    background-image: url("../images/main_back.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* ========================================
   CONTENIDO HERO
======================================== */
.hero-main {
    width: 100%;
    height: calc(100vh - 110px);
    min-height: 680px;
    background-image: url("../images/main_back.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

/* OSCURECIDO EXTRA PARA DAR LEGIBILIDAD */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.94) 0%,
            rgba(0, 0, 0, 0.78) 38%,
            rgba(0, 0, 0, 0.20) 72%,
            rgba(0, 0, 0, 0.08) 100%
        );
}

/* CONTENIDO */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 760px;
    margin-left: 6vw;
}

/* TITULO */
.hero-content h1 {
    font-size: clamp(36px, 4vw, 64px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff;
    margin-bottom: 18px;
}

.hero-content h1 span {
    display: block;
    color: #d4a72c;
}

/* SUBTITULO */
.hero-content h2 {
    font-size: clamp(19px, 1.6vw, 28px);
    font-weight: 400;
    line-height: 1.35;
    color: #dedede;
    margin-bottom: 12px;
}

/* SLOGAN */
.hero-slogan {
    font-size: 22px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 34px;
    letter-spacing: 0.5px;
}


/* BOTONES */
.hero-buttons {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    margin-bottom: 42px;
}

.hero-button {
    min-height: 58px;
    padding: 0 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.hero-button svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

/* BOTÓN DORADO */
.hero-button-primary {
    background: linear-gradient(
        135deg,
        #f5c252,
        #c7901d
    );
    color: #080808;
    box-shadow:
        0 0 18px rgba(212, 167, 44, 0.32);
}

.hero-button-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 24px rgba(212, 167, 44, 0.42);
}

/* BOTÓN CONTORNO */
.hero-button-secondary {
    border: 1px solid #b88625;
    color: #d9aa3c;
    background: rgba(0, 0, 0, 0.45);
}

.hero-button-secondary:hover {
    transform: translateY(-3px);
    background: #d4a72c;
    color: #080808;
}

/* ========================================
   ESTADÍSTICAS
======================================== */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 34px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 30px;
    border-right:
        1px solid rgba(212, 167, 44, 0.25);
}

.hero-stat:last-child {
    border-right: none;
}

/* ICONOS */
.stat-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4a72c;
}

.stat-icon svg {
    width: 44px;
    height: 44px;
    fill: currentColor;
}

/* TEXTO ESTADISTICAS */
.stat-text {
    display: flex;
    flex-direction: column;
}

.stat-text strong {
    color: #d4a72c;
    font-size: 30px;
    line-height: 1;
    margin-bottom: 7px;
}

.stat-text span {
    color: #ffffff;
    font-size: 13px;
    line-height: 1.35;
    letter-spacing: 0.7px;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 900px) {
    .hero-main {
        height: auto;
        min-height: 720px;
        padding: 80px 0;
        background-position: 65% center;
    }

    .hero-content {
        margin-left: 7vw;
        margin-right: 7vw;
    }

    .hero-overlay {
        background:
            rgba(0, 0, 0, 0.78);
    }
}

@media (max-width: 650px) {
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-button {
        width: 100%;
    }
    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-stat {
        border-right: none;
        padding-right: 0;
    }
}

/* ========================================
   ACERCA DEL CONSEJO
======================================== */
.about-council {
    width: 100%;
    padding: 90px 30px;

    background:
        linear-gradient(
            180deg,
            #0a0a0a 0%,
            #111111 100%
        );

    border-top: 1px solid rgba(212, 167, 44, 0.15);
    border-bottom: 1px solid rgba(212, 167, 44, 0.15);

    text-align: center;
}

/* CONTENIDO */
.about-council-content {
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
}

/* ETIQUETA */
.about-council-label {
    display: inline-block;
    margin-bottom: 18px;
    color: #d4a72c;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
}

/* TITULO */
.about-council h2 {
    margin-bottom: 25px;
    color: #ffffff;
    font-size: clamp(30px, 3vw, 48px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* TEXTO */
.about-council p {
    max-width: 800px;
    margin: 0 auto 38px auto;
    color: #c7c7c7;
    font-size: 19px;
    line-height: 1.7;
}

/* BOTON */
.about-council-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    min-height: 56px;
    padding: 0 30px;
    border: 1px solid #d4a72c;
    color: #d4a72c;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.about-council-button:hover {
    background-color: #d4a72c;
    color: #080808;
    transform: translateY(-3px);
    box-shadow:
        0 8px 25px rgba(212, 167, 44, 0.25);
}

/* RESPONSIVE */
@media (max-width: 650px) {
    .about-council {
        padding: 65px 25px;
    }

    .about-council p {
        font-size: 17px;
    }

    .about-council-button {
        width: 100%;
        max-width: 320px;
    }
}

/* ========================================
   NOSOTROS - HERO
======================================== */

.nosotros-hero {
    width: 100%;
    min-height: 500px;

    position: relative;

    background-image: url("../images/nosotros_back.png");
    background-size: cover;
    background-position: center 48%;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
}


/* Oscurecimiento de la fotografía */

.nosotros-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.96) 0%,
            rgba(0, 0, 0, 0.80) 35%,
            rgba(0, 0, 0, 0.40) 65%,
            rgba(0, 0, 0, 0.16) 100%
        );
}


/* Contenido */

.nosotros-hero-content {
    width: 100%;
    max-width: 1450px;

    margin: 0 auto;
    padding: 70px 60px;

    position: relative;
    z-index: 2;

    display: flex;
    gap: 30px;

    align-items: stretch;
}


/* Línea dorada */

.nosotros-title-line {
    width: 4px;

    background:
        linear-gradient(
            180deg,
            #f4c253,
            #b27b16
        );

    border-radius: 10px;
}


/* Título */

.nosotros-hero h1 {
    margin: 0;

    font-size: clamp(58px, 6vw, 90px);

    font-weight: 800;

    line-height: 0.95;

    color: #ffffff;

    letter-spacing: 1px;
}


/* Subtitulo */

.nosotros-hero h2 {
    margin-top: 18px;

    color: #d4a72c;

    font-size: clamp(23px, 2vw, 34px);

    font-weight: 700;

    letter-spacing: 1px;
}


/* Descripción */

.nosotros-hero p {
    max-width: 730px;

    margin-top: 24px;

    color: #eeeeee;

    font-size: 19px;

    line-height: 1.75;
}


/* ========================================
   NOSOTROS - INTRO
======================================== */

.nosotros-intro {
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f6f6f6 100%
        );

    color: #151515;

    padding: 80px 30px 100px;
}


.nosotros-container {
    width: 100%;
    max-width: 1450px;

    margin: 0 auto;

    text-align: center;
}


/* Etiqueta */

.section-label {
    display: block;

    margin-bottom: 10px;

    color: #b78622;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 3px;
}


/* Titulo de sección */

.nosotros-intro h2 {
    font-size: clamp(30px, 3vw, 44px);

    color: #101010;

    margin-bottom: 12px;
}


/* Línea */

.section-gold-line {
    width: 55px;
    height: 3px;

    margin: 0 auto 25px;

    background: #d4a72c;
}


/* Introducción */

.nosotros-intro-text {
    max-width: 1000px;

    margin: 0 auto 10px;

    font-size: 18px;

    line-height: 1.7;

    color: #4a4a4a;
}


/* ========================================
   MISIÓN / VISIÓN / VALORES
======================================== */

.nosotros-cards {
    margin-top: 55px;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}


/* Card */

.nosotros-card {
    min-height: 420px;

    padding: 35px;

    background: #ffffff;

    border-radius: 18px;

    border:
        1px solid rgba(0, 0, 0, 0.10);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.07);

    text-align: left;

    display: flex;

    gap: 23px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.nosotros-card:hover {
    transform:
        translateY(-6px);

    box-shadow:
        0 16px 35px rgba(0, 0, 0, 0.12);
}


/* Iconos */

.nosotros-card-icon {
    width: 72px;
    height: 72px;

    min-width: 72px;

    border-radius: 50%;

    background: #090909;

    border:
        2px solid #d4a72c;

    display: flex;
    align-items: center;
    justify-content: center;
}


.nosotros-card-icon svg {
    width: 36px;
    height: 36px;

    fill: #d4a72c;
}


/* Títulos */

.nosotros-card h3 {
    margin-bottom: 18px;

    color: #c48b1d;

    font-size: 23px;

    letter-spacing: 0.5px;
}


/* Texto */

.nosotros-card p {
    color: #333333;

    font-size: 16px;

    line-height: 1.65;
}


/* ========================================
   VALORES
======================================== */

.values-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px 28px;

    margin-top: 25px;
}


.values-grid span {
    color: #202020;

    font-size: 16px;

    font-weight: 600;
}


.values-grid span::first-letter {
    color: #d4a72c;
}


/* Principio rector */

.identity-principle {
    margin-top: 35px;

    padding: 20px;

    background: #101010;

    border-left:
        4px solid #d4a72c;

    border-radius: 6px;
}


.identity-principle strong {
    color: #d4a72c;

    font-size: 17px;
}


.identity-principle p {
    margin-top: 8px;

    color: #d0d0d0;

    font-size: 14px;

    line-height: 1.5;
}


/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1100px) {

    .nosotros-cards {
        grid-template-columns: 1fr;
    }

    .nosotros-card {
        min-height: auto;
    }

}


@media (max-width: 750px) {

    .nosotros-hero {
        min-height: 600px;

        background-position: 60% center;
    }

    .nosotros-hero-overlay {
        background:
            rgba(0, 0, 0, 0.76);
    }

    .nosotros-hero-content {
        padding: 60px 28px;
    }

    .nosotros-title-line {
        width: 3px;
    }

    .nosotros-hero p {
        font-size: 17px;
    }

    .nosotros-intro {
        padding:
            65px 22px 75px;
    }

    .nosotros-card {
        flex-direction: column;

        padding: 28px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

}

/* ========================================
   NUESTRA HISTORIA
======================================== */

.history-section {
    padding: 90px 30px 110px;

    background:
        linear-gradient(
            180deg,
            #f7f7f7 0%,
            #ffffff 100%
        );

    color: #171717;
}


.history-intro {
    max-width: 950px;

    margin: 0 auto 60px;

    text-align: center;

    color: #555;

    font-size: 18px;

    line-height: 1.7;
}


/* TIMELINE */

.timeline {
    position: relative;

    max-width: 1250px;

    margin: 0 auto;
}


/* Línea vertical */

.timeline::before {
    content: "";

    position: absolute;

    left: 50%;

    top: 0;
    bottom: 0;

    width: 2px;

    background:
        linear-gradient(
            180deg,
            #d4a72c,
            #8e6718
        );

    transform: translateX(-50%);
}


/* ITEM */

.timeline-item {
    position: relative;

    width: 50%;

    padding: 0 65px 60px;

    box-sizing: border-box;
}


/* Impares a izquierda */

.timeline-item:nth-child(odd) {
    left: 0;

    text-align: right;
}


/* Pares a derecha */

.timeline-item:nth-child(even) {
    left: 50%;

    text-align: left;
}


/* MARCADOR */

.timeline-marker {
    position: absolute;

    top: 0;

    width: 76px;
    height: 76px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            #151515,
            #050505
        );

    border: 3px solid #d4a72c;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.18);

    z-index: 2;
}


.timeline-item:nth-child(odd)
.timeline-marker {
    right: -38px;
}


.timeline-item:nth-child(even)
.timeline-marker {
    left: -38px;
}


.timeline-marker span {
    color: #d4a72c;

    font-size: 16px;
    font-weight: 800;
}


/* CONTENIDO */

.timeline-content {
    padding: 26px 30px;

    background: #ffffff;

    border-radius: 14px;

    border:
        1px solid rgba(0, 0, 0, 0.08);

    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.06);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.timeline-content:hover {
    transform: translateY(-4px);

    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.10);
}


.timeline-content h3 {
    margin-bottom: 8px;

    color: #171717;

    font-size: 21px;
}


.timeline-date {
    display: block;

    margin-bottom: 15px;

    color: #b27f1c;

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 0.5px;
}


.timeline-content p {
    color: #555;

    font-size: 15px;

    line-height: 1.65;
}


/* EVENTO DESTACADO */

.timeline-item-featured
.timeline-marker {
    background:
        linear-gradient(
            145deg,
            #d4a72c,
            #a87316
        );

    border-color: #171717;
}


.timeline-item-featured
.timeline-marker span {
    color: #080808;
}


.timeline-item-featured
.timeline-content {
    border:
        2px solid rgba(212, 167, 44, 0.55);

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #fff9eb
        );
}


/* RESPONSIVE */

@media (max-width: 850px) {

    .timeline::before {
        left: 38px;
    }

    .timeline-item,
    .timeline-item:nth-child(even),
    .timeline-item:nth-child(odd) {

        width: 100%;

        left: 0;

        padding:
            0 0 45px 100px;

        text-align: left;
    }

    .timeline-item:nth-child(even)
    .timeline-marker,

    .timeline-item:nth-child(odd)
    .timeline-marker {

        left: 0;
        right: auto;
    }

}

/* ========================================
   REPRESENTANTES
======================================== */

.representantes-section {
    padding: 90px 30px 100px;

    background:
        linear-gradient(
            180deg,
            #080808 0%,
            #111111 50%,
            #080808 100%
        );

    text-align: center;
}


/* Títulos sobre fondo oscuro */

.representantes-section .section-label {
    color: #d4a72c;
}

.representantes-section h2 {
    margin: 0 0 12px;

    color: #ffffff;

    font-size: clamp(30px, 3vw, 44px);
}


/* Texto introductorio */

.representantes-intro {
    max-width: 900px;

    margin: 0 auto 45px;

    color: #c8c8c8;

    font-size: 17px;
    line-height: 1.7;
}


/* Contenedor de la imagen */

.representantes-image-container {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;

    overflow: hidden;

    border-radius: 12px;

    border: 1px solid rgba(212, 167, 44, 0.35);

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.55);
}


/* Imagen */

.representantes-image {
    display: block;

    width: 100%;
    height: auto;

    transition:
        transform 0.5s ease,
        filter 0.5s ease;
}


/* Efecto discreto */

.representantes-image-container:hover
.representantes-image {

    transform: scale(1.015);

    filter: brightness(1.05);
}


/* Principio institucional */

.representantes-principio {
    margin-top: 35px;

    color: #d4a72c;

    font-size: 15px;
    font-weight: 700;

    letter-spacing: 4px;
}


/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 750px) {

    .representantes-section {
        padding: 65px 18px 75px;
    }

    .representantes-intro {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .representantes-image-container {
        border-radius: 8px;
    }

    .representantes-principio {
        font-size: 12px;
        letter-spacing: 2px;
    }

}

/* ========================================
   AJUSTES GENERALES RESPONSIVE
======================================== */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 768px) {

    .main-header {
        width: 100%;
        height: 85px;

        padding: 0 15px;

        display: flex;
        align-items: center;
        justify-content: flex-start;

        position: relative;
    }

    .header-logo {
        width: auto;
        margin-right: 0;
    }

    .header-logo img {
        width: 60px;
        height: 60px;
    }

    .menu-toggle {
        display: block !important;
        margin-left: auto;

        position: relative;

        z-index: 2000;

        visibility: visible !important;
        opacity: 1 !important;
    }

    .header-login {
        display: none;
    }
}

/* ========================================
   GSAP / MOTION
======================================== */

.hero-main {
    overflow: hidden;
}

.hero-content {
    will-change: transform, opacity;
}

.hero-content h1,
.hero-content h1 span,
.hero-content h2,
.hero-slogan,
.hero-button,
.hero-stat {
    will-change: transform, opacity;
}

/* ========================================
   MOTION - NOSOTROS
======================================== */

.nosotros-title-line,
.nosotros-hero h1,
.nosotros-hero h2,
.nosotros-hero p,
.nosotros-card,
.timeline-item,
.timeline-marker,
.representantes-image-container,
.representantes-image {
    will-change:
        transform,
        opacity;
}


.representantes-image-container {
    clip-path:
        inset(0 0 0 0);
}