
/* ==========================================
   CETPRO CLVQ - PÁGINA DE INICIO
   Banner fotográfico responsive
========================================== */

:root {
    --hero-fade-duration: 1400ms;
    --hero-mobile-height: 70svh;
}


/* ==========================================
   BANNER PRINCIPAL
========================================== */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;

    min-height: 620px;

    overflow: hidden;
    isolation: isolate;
    background: #10251c;
}


/* ==========================================
   CONTENEDOR DE FOTOGRAFÍAS
========================================== */

.hero .hero-media {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    /* Anula el formato 4:3 del CSS anterior */
    aspect-ratio: auto;

    z-index: 0;
    overflow: hidden;
}


/* ==========================================
   DIAPOSITIVAS
========================================== */

.hero-media .hero-slide {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;
    visibility: visible;
    z-index: 0;

    transform: none;
    transition: none;

    pointer-events: none;
}

/* Fotografía anterior */

.hero-media .hero-slide.is-leaving {
    opacity: 1;
    z-index: 1;
}

/* Fotografía que está apareciendo */

.hero-media .hero-slide.is-active {
    opacity: 1;
    z-index: 2;

    animation:
        clvq-fade-in
        var(--hero-fade-duration)
        cubic-bezier(0.22, 1, 0.36, 1)
        both;
}


/* ==========================================
   ANIMACIÓN AL CAMBIAR DE FOTOGRAFÍA
========================================== */

@keyframes clvq-fade-in {

    0% {
        opacity: 0;
        transform: scale(1.025);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }

}


/* ==========================================
   FOTOGRAFÍAS
========================================== */

.hero-media .hero-slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-media .hero-slide img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    /* Ningún zoom continuo */
    transform: none;
    transition: none;
}


/* ==========================================
   CAPA OSCURA
========================================== */

.hero-overlay {
    position: absolute;
    inset: 0;

    z-index: 1;
    pointer-events: none;

    background: linear-gradient(
        90deg,
        rgba(5, 18, 13, 0.78) 0%,
        rgba(5, 18, 13, 0.52) 37%,
        rgba(5, 18, 13, 0.18) 75%,
        rgba(5, 18, 13, 0.06) 100%
    );
}


/* ==========================================
   CONTENIDO PRINCIPAL
========================================== */

.hero .hero-content-wrap {
    position: relative;
    z-index: 3;

    display: flex;
    align-items: center;

    width: min(
        calc(100% - 2.5rem),
        var(--container-width)
    );

    /* Sin un máximo fijo que reduzca
       la altura cuando cambia el zoom */
    min-height: max(620px, 76svh);

    margin-inline: auto;
    padding-block: 4.5rem 5.5rem;

    background: transparent;
}

.hero-content {
    width: 100%;
    max-width: 650px;
    color: #ffffff;
}

.hero-kicker {
    display: inline-block;

    margin-bottom: 1.15rem;

    color: var(--color-secondary);

    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.6;
}

.hero-content h1 {
    max-width: 650px;

    margin: 0 0 1.5rem;

    color: #ffffff;

    font-size: clamp(
        2.65rem,
        4.5vw,
        4.4rem
    );

    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.hero-content h1 span {
    color: var(--color-secondary);
}

.hero-description {
    max-width: 530px;

    margin: 0 0 2rem;

    color: rgba(255, 255, 255, 0.96);

    font-size: 1.05rem;
    line-height: 1.75;
}


/* ==========================================
   BOTONES
========================================== */

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.hero-actions .btn {
    min-height: 50px;
    padding: 0.9rem 1.5rem;
}

.hero-actions .btn-glass {
    color: #ffffff;

    background: rgba(8, 22, 16, 0.25);

    border: 1px solid rgba(
        255, 255, 255, 0.85
    );

    backdrop-filter: blur(6px);
}

.hero-actions .btn-glass:hover {
    background: rgba(255, 255, 255, 0.16);
}


/* ==========================================
   OCULTAR TARJETAS SUPERPUESTAS
========================================== */

.hero-side-card,
.hero-mini-info {
    display: none;
}


/* ==========================================
   INDICADORES DEL CARRUSEL
========================================== */

.hero-dots {
    position: absolute;

    left: 50%;
    bottom: 1.6rem;

    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 0.7rem;

    transform: translateX(-50%);
}

.hero-dot {
    width: 11px;
    height: 11px;
    padding: 0;

    border: 1px solid rgba(
        255, 255, 255, 0.72
    );

    border-radius: 50%;

    background: rgba(
        255, 255, 255, 0.48
    );

    transition:
        width 250ms ease,
        background 250ms ease;
}

.hero-dot.is-active {
    width: 34px;

    border-radius: 30px;

    border-color: var(--color-secondary);
    background: var(--color-secondary);
}


/* ==========================================
   SECCIONES INFERIORES
========================================== */

.about-preview {
    background: #ffffff;
}

.programs-section {
    background: var(--color-surface);
}

.cta-section {
    background: var(--color-primary-light);
}

.cta-content {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
}

.cta-content h2 {
    margin-bottom: 1rem;

    font-size: clamp(
        1.9rem,
        3vw,
        2.8rem
    );
}

.cta-content p {
    margin-bottom: 2rem;
    color: var(--color-text-muted);
}


/* ==========================================
   TABLETS
========================================== */

@media (max-width: 1024px) {

    .hero .hero-content-wrap {
        min-height: max(600px, 75svh);
        padding-block: 4rem 5rem;
    }

    .hero-content {
        max-width: 590px;
    }

    .hero-content h1 {
        font-size: clamp(
            2.4rem,
            5.5vw,
            3.8rem
        );
    }

}


/* ==========================================
   CELULARES
========================================== */

@media (max-width: 767px) {

    .hero {
        display: flex;
        width: 100%;
        min-height: 0;
    }

    /*
       CORRECCIÓN PRINCIPAL:
       el contenedor de imágenes ocupa
       toda la altura del banner.
    */

    .hero .hero-media {
        position: absolute;
        inset: 0;

        display: block;

        width: 100%;
        height: 100%;

        aspect-ratio: auto;
    }

    .hero-media .hero-slide,
    .hero-media .hero-slide picture,
    .hero-media .hero-slide img {
        width: 100%;
        height: 100%;
    }

    .hero-media .hero-slide img {
        object-fit: cover;
        object-position: center 30%;
    }

    /* Degradado más fuerte abajo */

    .hero-overlay {
        display: block;

        background: linear-gradient(
            180deg,
            rgba(3, 18, 12, 0.08) 0%,
            rgba(3, 18, 12, 0.25) 30%,
            rgba(3, 18, 12, 0.65) 65%,
            rgba(3, 18, 12, 0.90) 100%
        );
    }

    /* Banner de 70% de la pantalla */

    .hero .hero-content-wrap {
        position: relative;

        display: flex;
        flex-direction: column;

        justify-content: flex-end;
        align-items: stretch;

        width: calc(100% - 2.5rem);

        min-height: max(
            var(--hero-mobile-height),
            500px
        );

        margin-inline: auto;

        padding: 2rem 0 4rem;

        background: transparent;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        color: #ffffff;
    }

    .hero-kicker {
        margin-bottom: 0.8rem;

        color: var(--color-secondary);

        font-size: 0.69rem;
        letter-spacing: 0.08em;
    }

    .hero-content h1 {
        max-width: 100%;

        margin-bottom: 0.9rem;

        color: #ffffff;

        font-size: clamp(
            2rem,
            8.4vw,
            2.85rem
        );

        line-height: 1.12;
        overflow-wrap: break-word;
    }

    .hero-content h1 span {
        color: var(--color-secondary);
    }

    .hero-description {
        max-width: 100%;

        margin-bottom: 1.2rem;

        color: rgba(
            255, 255, 255, 0.96
        );

        font-size: 0.9rem;
        line-height: 1.6;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;

        gap: 0.65rem;
    }

    .hero-actions .btn {
        width: 100%;
        min-height: 46px;
    }

    .hero-dots {
        bottom: 1rem;
    }

}


/* ==========================================
   CELULARES PEQUEÑOS
========================================== */

@media (max-width: 380px) {

    .hero .hero-content-wrap {
        width: calc(100% - 2rem);
        padding-bottom: 3.5rem;
    }

    .hero-content h1 {
        font-size: 1.95rem;
    }

    .hero-description {
        font-size: 0.86rem;
    }

    .hero-kicker {
        font-size: 0.65rem;
    }

}


/* ==========================================
   ACCESIBILIDAD
========================================== */

@media (prefers-reduced-motion: reduce) {

    .hero-media .hero-slide.is-active {
        animation: none;
    }

    .hero-dot {
        transition: none;
    }

}



/* ============================================
   CETPRO CLVQ - TRANSICIÓN V8
   Fundido cruzado lento entre fotografías
============================================ */

/* Todas las fotografías permanecen inmóviles */

.hero .hero-media .hero-slide {
    opacity: 0;
    visibility: visible !important;

    z-index: 0;

    transform: none !important;
    animation: none !important;

    transition: opacity 2500ms ease-in-out !important;

    pointer-events: none;
}

/* Fotografía anterior visible debajo */

.hero .hero-media .hero-slide.is-leaving {
    opacity: 1;
    z-index: 1;
}

/* Fotografía nueva preparada, transparente */

.hero .hero-media .hero-slide.is-entering {
    opacity: 0;
    z-index: 2;
}

/* Fotografía nueva que aparece lentamente */

.hero .hero-media .hero-slide.is-active {
    opacity: 1;
    z-index: 2;
}

/* Ningún zoom continuo */

.hero .hero-media .hero-slide img {
    transform: none !important;
    animation: none !important;
    transition: none !important;
}

/* Respetar preferencias de accesibilidad */

@media (prefers-reduced-motion: reduce) {

    .hero .hero-media .hero-slide {
        transition-duration: 0.01ms !important;
    }

}
