/* =========================================================
   PORTADA
   Proyecto Discursos
   ========================================================= */


/* =========================================================
   HERO PRINCIPAL
   ========================================================= */

.hero {
    position: relative;

    display: flex;
    align-items: flex-start;

    width: 100%;
    min-height: 560px;

    padding: 95px 5% 48px;

    background: #050812;
    overflow: hidden;
    isolation: isolate;
}

.hero-fondo {
    position: absolute;
    inset: 0;
    z-index: -2;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    transform: scale(1.02);

    transition:
        opacity 0.35s ease,
        transform 0.5s ease;
}

.hero::after {
    content: "";

    position: absolute;
    inset: 0;
    z-index: -1;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(5, 8, 18, 0.98) 0%,
            rgba(5, 8, 18, 0.85) 34%,
            rgba(5, 8, 18, 0.35) 70%,
            rgba(5, 8, 18, 0.25) 100%
        ),
        linear-gradient(
            0deg,
            rgba(5, 8, 18, 1) 0%,
            rgba(5, 8, 18, 0.3) 35%,
            rgba(5, 8, 18, 0) 65%
        );
}

.hero-content {
    position: relative;
    z-index: 1;

    width: min(570px, 100%);

    transition:
        opacity 0.35s ease,
        transform 0.5s ease;
}

.hero-etiqueta {
    display: block;

    margin: 0 0 10px;

    color: #87cefa;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 570px;

    margin: 0;

    color: #ffffff;

    font-size: clamp(36px, 4.2vw, 54px);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -0.04em;

    text-wrap: balance;
}

.hero-datos {
    margin: 14px 0 0;

    color: rgba(255, 255, 255, 0.8);

    font-size: 14px;
    line-height: 1.45;
}

.hero-slogan {
    max-width: 560px;

    margin: 13px 0 0;

    color: #ffffff;

    font-size: clamp(17px, 1.7vw, 21px);
    font-style: italic;
    line-height: 1.4;
}

.hero-descripcion {
    max-width: 570px;

    margin: 13px 0 0;

    color: rgba(255, 255, 255, 0.82);

    font-size: 14px;
    line-height: 1.55;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.boton-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    margin-top: 19px;
    padding: 0 18px;

    border-radius: 8px;

    background: #ffffff;
    color: #050812;

    font-size: 14px;
    font-weight: 700;
    text-decoration: none;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.boton-hero:hover {
    background: #dceeff;
    transform: translateY(-2px);
}


/* =========================================================
   ROTACIÓN DEL HERO
   ========================================================= */

.hero.hero-cambiando .hero-content {
    opacity: 0;
    transform: translateY(10px);
}

.hero.hero-cambiando .hero-fondo {
    opacity: 0.65;
    transform: scale(1.035);
}

.hero-indicadores {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: 20px;
}

.hero-indicador {
    width: 28px;
    height: 4px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.35);

    cursor: pointer;

    transform: none;

    transition:
        width 0.25s ease,
        background 0.25s ease,
        transform 0.2s ease;
}

.hero-indicador:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scaleY(1.4);
}

.hero-indicador-activo {
    width: 46px;
    background: #ffffff;
}


/* =========================================================
   CONTENIDO DE LA PORTADA
   ========================================================= */

.home-contenido {
    width: 100%;
    padding-bottom: 60px;
}

.home-contenido .row {
    padding: 24px 40px;
}

.home-contenido .row:first-child {
    padding-top: 28px;
}

.home-contenido .row h2 {
    margin: 0 0 11px;

    font-size: clamp(20px, 2.2vw, 27px);
    letter-spacing: -0.025em;
}


/* =========================================================
   CARRUSELES
   ========================================================= */

.carrusel-contenedor {
    position: relative;
    width: 100%;
}

.carrusel-discursos {
    display: flex;
    gap: 20px;

    width: 100%;

    padding: 10px 4px 18px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;
    scroll-snap-type: x proximity;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carrusel-discursos::-webkit-scrollbar {
    display: none;
}

.carrusel-discursos .card {
    flex: 0 0 320px;
    width: 320px;

    scroll-snap-align: start;
}

.boton-carrusel {
    position: absolute;
    top: 0;
    bottom: 18px;
    z-index: 10;

    width: 58px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 0;

    color: #ffffff;

    font-family: inherit;
    font-size: 54px;
    font-weight: 400;

    cursor: pointer;
    opacity: 0;

    transform: none;

    transition:
        opacity 0.2s ease,
        background 0.2s ease;
}

.boton-carrusel:hover {
    transform: none;
}

.carrusel-contenedor:hover
.boton-carrusel:not(:disabled),
.boton-carrusel:focus-visible {
    opacity: 1;
}

.boton-carrusel-izquierda {
    left: 0;

    background: linear-gradient(
        to right,
        rgba(5, 8, 18, 0.95),
        rgba(5, 8, 18, 0)
    );
}

.boton-carrusel-derecha {
    right: 0;

    background: linear-gradient(
        to left,
        rgba(5, 8, 18, 0.95),
        rgba(5, 8, 18, 0)
    );
}

.boton-carrusel:disabled,
.boton-carrusel[hidden] {
    display: none;
}

.boton-carrusel span {
    display: block;
    transform: translateY(-2px);
}


/* =========================================================
   CONTINUAR VIENDO
   ========================================================= */

#seccion-continuar[hidden] {
    display: none;
}

#seccion-continuar .carrusel-discursos {
    min-height: 0;
}

#seccion-continuar .card {
    flex-basis: 320px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .hero {
        min-height: 540px;

        padding:
            90px
            40px
            45px;
    }

    .hero-content {
        width: min(540px, 100%);
    }

    .hero-content h1 {
        font-size: clamp(35px, 5.5vw, 50px);
    }

}


/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 700px) {

    .hero {
        min-height: 520px;

        padding:
            82px
            22px
            38px;
    }

    .hero-fondo {
        background-position: center top;
    }

    .hero::after {
        background:
            linear-gradient(
                0deg,
                rgba(5, 8, 18, 1) 0%,
                rgba(5, 8, 18, 0.9) 58%,
                rgba(5, 8, 18, 0.3) 100%
            );
    }

    .hero-content {
        width: 100%;
    }

    .hero-etiqueta {
        margin-bottom: 9px;
        font-size: 11px;
    }

    .hero-content h1 {
        font-size: clamp(31px, 9vw, 42px);
        line-height: 1.05;
    }

    .hero-datos {
        margin-top: 13px;
        font-size: 13px;
    }

    .hero-slogan {
        margin-top: 12px;
        font-size: 17px;
    }

    .hero-descripcion {
        margin-top: 12px;
        font-size: 14px;

        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .boton-hero {
        min-height: 40px;
        margin-top: 18px;
    }

    .hero-indicadores {
        margin-top: 17px;
    }

    .home-contenido .row {
        padding:
            20px
            18px;
    }

    .home-contenido .row:first-child {
        padding-top: 24px;
    }

    .carrusel-discursos {
        gap: 14px;
        padding-right: 20px;
    }

    .carrusel-discursos .card {
        flex-basis: min(82vw, 320px);
    }

    .boton-carrusel {
        display: none;
    }

}

/* =========================================================
   ACCESIBILIDAD
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .hero-content,
    .hero-fondo,
    .hero-indicador,
    .carrusel-discursos {
        transition: none;
        scroll-behavior: auto;
    }
}
.detalle-video {
    padding: 70px 32px 85px;
    background: #0b0f14;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    scroll-margin-top: 75px;
}

.detalle-video-contenedor {
    width: min(100%, 1500px);
    margin: 0 auto;
}

.detalle-video h2 {
    margin-bottom: 24px;
}

.reproductor-archive {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    background: #000;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

.reproductor-archive iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 700px) {
    .detalle-video {
        padding: 50px 14px 65px;
        scroll-margin-top: 65px;
    }

    .reproductor-archive {
        border-radius: 8px;
    }
}