/* =========================================================
   VIDEOS
   ========================================================= */

.seccion-videos {
    width: 100%;
    min-height: calc(100vh - 95px);

    margin: 0;
    padding: 0;

    background: var(--color-fondo);

    overflow: hidden;
}


/* =========================================================
   CONTENEDOR VIDEOS
   ========================================================= */

.videos-contenedor {
    position: relative;

    width: 100%;
    min-height: calc(100vh - 95px);

    margin: 0;
    padding: 0;

    display: grid;

    grid-template-columns: 45% 55%;

    align-items: center;
}


/* =========================================================
   CONTENIDO
   ========================================================= */

.videos-contenido {
    position: relative;
    z-index: 5;

    padding-left: 7%;
    padding-right: 30px;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: flex-start;
}


/* =========================================================
   TITULOS
   ========================================================= */

.videos-contenido h2 {
    margin: 0;

    color: var(--color-blanco);

    font-family: var(--fuente-principal);
    font-size: clamp(1.15rem, 2vw, 1.65rem);
    font-weight: 600;

    line-height: 1.15;
}


.videos-contenido h1 {
    margin: 4px 0;

    color: var(--color-blanco);

    font-family: var(--fuente-principal);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;

    line-height: 1;
}


.videos-contenido h2:last-of-type {
    color: var(--color-blanco);
}


/* =========================================================
   DESTELLO
   ========================================================= */

.videos-destello {
    width: 75%;
    max-width: 360px;

    height: 10px;

    margin: 20px 0 35px;

    border-radius: 50%;

    align-self: flex-start;

    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.75) 5%,
        rgba(135, 206, 250, 0.45) 20%,
        rgba(47, 92, 235, 0.22) 40%,
        rgba(47, 92, 235, 0.08) 62%,
        transparent 100%
    );
}


/* =========================================================
   DESCRIPCIÓN + ICONO
   ========================================================= */

.videos-descripcion {
    display: flex;

    align-items: center;

    gap: 18px;

    max-width: 600px;

    margin-top: 42px;
}


.videos-descripcion img {
    width: 65px;
    height: 65px;

    object-fit: contain;

    flex-shrink: 0;
}


.videos-descripcion p {
    margin: 0;

    max-width: 500px;

    color: var(--color-blanco);

    font-family: var(--fuente-principal);

    font-size: 0.85rem;

    line-height: 1.5;
}


/* =========================================================
   IMAGEN
   ========================================================= */

.videos-imagen {
    position: absolute;

    top: 0;
    right: 0;

    width: 70%;
    height: 100%;

    z-index: 1;

    display: flex;

    align-items: center;
    justify-content: flex-end;

    overflow: hidden;

    pointer-events: none;
}


.videos-imagen img {
    position: relative;

    z-index: 1;

    width: 100%;
    height: 100%;

    max-width: none;

    object-fit: contain;
    object-position: right center;
}


/* =========================================================
   FUSIÓN IZQUIERDA
   ========================================================= */

.videos-imagen::before {
    content: "";

    position: absolute;

    z-index: 2;

    top: 0;
    left: 0;

    width: 60%;
    height: 100%;

    background: linear-gradient(
        to right,
        var(--color-fondo) 0%,
        rgba(2, 4, 8, 0.95) 18%,
        rgba(2, 4, 8, 0.75) 40%,
        rgba(2, 4, 8, 0.35) 70%,
        transparent 100%
    );

    pointer-events: none;
}


/* =========================================================
   FUSIÓN SUPERIOR E INFERIOR
   ========================================================= */

.videos-imagen::after {
    content: "";

    position: absolute;

    z-index: 3;

    inset: 0;

    background: linear-gradient(
        to bottom,
        var(--color-fondo) 0%,
        rgba(2, 4, 8, 0.35) 10%,
        transparent 22%,
        transparent 78%,
        rgba(2, 4, 8, 0.35) 90%,
        var(--color-fondo) 100%
    );

    pointer-events: none;
}


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

@media (min-width: 701px) and (max-width: 1024px) {

    /* =====================================================
       SECCIÓN
       ===================================================== */

    .seccion-videos {
        width: 100%;

        min-height: 0;
        height: auto;

        margin: 0;
        padding: 0;

        overflow: hidden;
    }


    /* =====================================================
       CONTENEDOR
       SIN ALTURA FIJA
       ===================================================== */

    .videos-contenedor {
        position: relative;

        width: 100%;

        min-height: 0;
        height: auto;

        margin: 0;
        padding: 0;

        display: block;

        overflow: hidden;
    }


    /* =====================================================
       IMAGEN COMO FONDO
       OCUPA EXACTAMENTE LA ALTURA DEL CONTENEDOR
       ===================================================== */

    .videos-imagen {
        position: absolute;

        top: 0;
        right: 0;
        bottom: 0;
        left: 0;

        width: 100%;
        height: 100%;

        margin: 0;

        display: block;

        z-index: 1;

        overflow: hidden;
    }


    .videos-imagen img {
        position: absolute;

        top: 0;
        left: 0;

        width: 100%;
        height: 100%;

        max-width: none;

        object-fit: cover;
        object-position: center center;

        z-index: 1;
    }


    /* =====================================================
       DEGRADADO LATERAL
       ===================================================== */

    .videos-imagen::before {
        content: "";

        position: absolute;

        top: 0;
        left: 0;

        width: 100%;
        height: 100%;

        z-index: 2;

        background: linear-gradient(
            to right,
            rgba(2, 4, 8, 0.90) 0%,
            rgba(2, 4, 8, 0.65) 38%,
            rgba(2, 4, 8, 0.30) 70%,
            rgba(2, 4, 8, 0.08) 100%
        );

        pointer-events: none;
    }


    /* =====================================================
       SIN DEGRADADO SUPERIOR / INFERIOR
       PARA EVITAR ESPACIOS NEGROS
       ===================================================== */

    .videos-imagen::after {
        content: none;
    }


    /* =====================================================
       CONTENIDO
       LA ALTURA SALE DEL CONTENIDO
       ===================================================== */

    .videos-contenido {
        position: relative;

        z-index: 5;

        width: 100%;

        min-height: 0;
        height: auto;

        margin: 0;

        padding: 55px 8%;

        box-sizing: border-box;

        display: flex;

        flex-direction: column;

        justify-content: center;

        align-items: flex-start;
    }


    /* =====================================================
       TÍTULOS
       ===================================================== */

    .videos-contenido h2 {
        font-size: clamp(
            1.15rem,
            2.5vw,
            1.5rem
        );

        line-height: 1.15;
    }


    .videos-contenido h1 {
        font-size: clamp(
            2.4rem,
            5.5vw,
            3.4rem
        );

        line-height: 1;
    }


    /* =====================================================
       DESTELLO
       ===================================================== */

    .videos-destello {
        width: 65%;

        max-width: 330px;

        margin: 18px 0 30px;
    }


    /* =====================================================
       DESCRIPCIÓN + ICONO
       ===================================================== */

    .videos-descripcion {
        gap: 18px;

        max-width: 520px;

        margin-top: 22px;
    }


    .videos-descripcion img {
        width: 60px;
        height: 60px;
    }


    .videos-descripcion p {
        max-width: 430px;

        font-size: 1rem;

        line-height: 1.5;
    }
}


/* =========================================================
   VIDEOS - CELULAR
   ========================================================= */

@media (max-width: 700px) {

    /* =====================================================
       SECCIÓN
       ===================================================== */

    .seccion-videos {
        min-height: calc(100vh - 75px);

        position: relative;

        overflow: hidden;
    }


    /* =====================================================
       CONTENEDOR
       ===================================================== */

    .videos-contenedor {
        width: 100%;

        min-height: auto;

        padding: 25px 18px;

        display: flex;

        flex-direction: column;

        flex-wrap: nowrap;

        align-items: center;

        justify-content: center;

        gap: 18px;

        box-sizing: border-box;
    }


    /* =====================================================
       IMAGEN
       ===================================================== */

    .videos-imagen {
        position: absolute;

        inset: 0;

        width: 100%;
        height: 100%;

        min-height: 0;

        display: block;

        overflow: hidden;

        z-index: 1;
    }


    .videos-imagen img {
        position: absolute;

        inset: 0;

        width: 100%;
        height: 100%;

        max-width: none;

        object-fit: cover;
        object-position: center center;

        z-index: 1;
    }


    /* =====================================================
       DEGRADADO SOBRE LA IMAGEN
       ===================================================== */

    .videos-imagen::before {
        content: "";

        position: absolute;

        inset: 0;

        width: 100%;
        height: 100%;

        background: linear-gradient(
            to right,
            rgba(2, 4, 8, 0.78) 0%,
            rgba(2, 4, 8, 0.55) 40%,
            rgba(2, 4, 8, 0.28) 75%,
            rgba(2, 4, 8, 0.15) 100%
        );

        z-index: 2;

        pointer-events: none;
    }


    /* =====================================================
       FUSIÓN SUPERIOR E INFERIOR
       ===================================================== */

    .videos-imagen::after {
        content: "";

        position: absolute;

        inset: 0;

        background: linear-gradient(
            to bottom,
            var(--color-fondo) 0%,
            rgba(2, 4, 8, 0.20) 15%,
            transparent 35%,
            transparent 75%,
            var(--color-fondo) 100%
        );

        z-index: 3;

        pointer-events: none;
    }


    /* =====================================================
       CONTENIDO
       ===================================================== */

    .videos-contenido {
        position: relative;

        z-index: 5;

        width: 100%;

        min-height: calc(100vh - 75px);

        padding: 0 8%;

        margin: 0;

        box-sizing: border-box;

        display: flex;

        flex-direction: column;

        justify-content: center;

        align-items: flex-start;
    }


    /* =====================================================
       TÍTULOS
       ===================================================== */

    .videos-contenido h2 {
        margin: 0;

        font-size: clamp(
            1rem,
            4.5vw,
            1.35rem
        );

        line-height: 1.15;
    }


    .videos-contenido h1 {
        margin: 5px 0;

        font-size: clamp(
            2rem,
            10vw,
            3rem
        );

        line-height: 1;
    }


    /* =====================================================
       DESTELLO
       ===================================================== */

    .videos-destello {
        width: 75%;

        max-width: 300px;

        height: 8px;

        margin: 18px 0 28px;

        align-self: center;
    }


    /* =====================================================
       DESCRIPCIÓN + ICONO
       ===================================================== */

    .videos-descripcion {
        width: 100%;

        max-width: 420px;

        display: flex;

        align-items: center;

        gap: 15px;

        margin-top: 20px;
    }


    .videos-descripcion img {
        width: 55px;
        height: 55px;
    }


    .videos-descripcion p {
        max-width: none;

        margin: 0;

        font-size: 0.9rem;

        line-height: 1.5;

        text-shadow:
            0 1px 5px rgba(0, 0, 0, 0.95),
            0 0 10px rgba(0, 0, 0, 0.8);
    }
}


/* =========================================================
   TELÉFONOS MUY PEQUEÑOS
   ========================================================= */

@media (max-width: 400px) {

    .videos-contenido {
        padding: 0 7%;
    }


    .videos-contenido h2 {
        font-size: 0.95rem;
    }


    .videos-contenido h1 {
        font-size: 2rem;
    }


    .videos-destello {
        width: 75%;

        height: 7px;

        margin: 16px 0 24px;
    }


    .videos-descripcion {
        max-width: 100%;

        gap: 12px;

        margin-top: 18px;
    }


    .videos-descripcion img {
        width: 48px;
        height: 48px;
    }


    .videos-descripcion p {
        font-size: 0.82rem;

        line-height: 1.45;
    }
}


/* =========================================================
   CATÁLOGO DE MÓDULOS
   ========================================================= */

.section-catalogo {
    width: 100%;
    padding: 35px 2% 50px;
    background: var(--color-fondo);
    text-align: center;
    box-sizing: border-box;
}


/* =========================================================
   CONTENEDOR
   ========================================================= */

.videos-modulos {
    width: 100%;

    max-width: none;

    margin: 0;
}


/* =========================================================
   TÍTULO + DESTELLOS
   ========================================================= */

.modulos-titulo {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 22px;

    width: 100%;
}


/* =========================================================
   DESTELLO
   ========================================================= */

.modulos-destello {
    width: 120px;

    height: 5px;

    flex-shrink: 0;

    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(97, 163, 240, 0.75) 30%,
        rgba(47, 92, 235, 0.45) 55%,
        transparent 100%
    );

    filter: blur(1px);

    box-shadow:
        0 0 8px rgba(255, 255, 255, 0.25),
        0 0 16px rgba(97, 163, 240, 0.25),
        0 0 25px rgba(47, 92, 235, 0.15);
}


/* =========================================================
   TÍTULO
   ========================================================= */

.modulos-titulo h3 {
    margin: 0;

    color: var(--color-blanco);

    font-family: var(--fuente-principal);

    font-size: clamp(1.3rem, 2vw, 2rem);

    font-weight: 700;

    letter-spacing: 1px;

    text-align: center;
}


/* =========================================================
   DESCRIPCIÓN
   ========================================================= */

.videos-modulos > p {
    margin: 18px auto 0;

    max-width: 850px;

    color: var(--color-cielo);

    font-family: var(--fuente-principal);

    font-size: clamp(0.9rem, 1.2vw, 1.15rem);

    font-weight: 400;

    line-height: 1.6;

    text-align: center;
}


/* =========================================================
   RESPONSIVE CATÁLOGO
   ========================================================= */

@media (max-width: 768px) {

    .section-catalogo {
        padding: 30px 5% 40px;
    }

    .modulos-titulo {
        gap: 14px;
    }

    .modulos-destello {
        width: 70px;

        height: 4px;
    }

    .modulos-titulo h3 {
        font-size: 1.15rem;

        letter-spacing: 0.5px;
    }

    .videos-modulos > p {
        margin-top: 14px;

        font-size: 0.9rem;

        line-height: 1.5;
    }
}


@media (max-width: 480px) {

    .section-catalogo {
        padding: 25px 4% 35px;
    }

    .modulos-titulo {
        gap: 10px;
    }

    .modulos-destello {
        width: 45px;

        height: 3px;
    }

    .modulos-titulo h3 {
        font-size: 0.95rem;

        letter-spacing: 0.3px;
    }

    .videos-modulos > p {
        margin-top: 12px;

        font-size: 0.8rem;
    }
}


/* =========================================================
   CARDS - MÓDULOS DE ENTRENAMIENTO
   ========================================================= */

.contenedor-cards-videos {
    width: 100%;

    max-width: none;

    margin: 45px 0 0;

    padding: 0 20px;

    display: grid;

    grid-template-columns: repeat(7, 1fr);

    gap: 18px;

    box-sizing: border-box;
}


/* =========================================================
   CARD
   ========================================================= */

.video-card {
    position: relative;

    width: 100%;

    min-height: 350px;

    overflow: hidden;

    border-radius: 18px;

    background: var(--color-fondo);

    border: 1px solid rgba(97, 163, 240, 0.20);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.45);

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}


.video-card:hover {
    transform: translateY(-8px);

    border-color: rgba(97, 163, 240, 0.65);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.55),
        0 0 25px rgba(47, 92, 235, 0.20),
        0 0 50px rgba(97, 163, 240, 0.10);
}


/* =========================================================
   IMAGEN DE FONDO
   ========================================================= */

.video-card-fondo {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}


.video-card:hover .video-card-fondo {
    transform: scale(1.06);
}


/* =========================================================
   DEGRADADO
   ========================================================= */

.video-card::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(2, 4, 8, 0.18) 0%,
            rgba(2, 4, 8, 0.35) 35%,
            rgba(2, 4, 8, 0.82) 72%,
            rgba(2, 4, 8, 0.98) 100%
        );

    z-index: 1;
}


/* =========================================================
   CONTENIDO
   ========================================================= */

.video-card-contenido {
    position: relative;

    z-index: 2;

    min-height: 350px;

    padding: 25px 15px 20px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: flex-end;

    text-align: center;
}


/* =========================================================
   ICONO
   ========================================================= */

.video-card-icono {
    width: 65px;
    height: 65px;

    object-fit: contain;

    margin-bottom: 15px;

    filter:
        drop-shadow(0 0 8px rgba(97, 163, 240, 0.55))
        drop-shadow(0 0 18px rgba(47, 92, 235, 0.35));

    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}


.video-card:hover .video-card-icono {
    transform: translateY(-5px) scale(1.05);

    filter:
        drop-shadow(0 0 10px rgba(255, 255, 255, 0.35))
        drop-shadow(0 0 20px rgba(97, 163, 240, 0.65));
}


/* =========================================================
   TÍTULO
   ========================================================= */

.video-card-contenido h3 {
    margin: 0 0 9px;

    color: var(--color-blanco);

    font-family: var(--fuente-principal);

    font-size: 1rem;

    font-weight: 700;

    letter-spacing: 0.7px;
}


/* =========================================================
   DESCRIPCIÓN
   ========================================================= */

.video-card-contenido p {
    margin: 0 0 18px;

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

    font-family: var(--fuente-principal);

    font-size: 0.72rem;

    line-height: 1.45;

    max-width: 180px;
}


/* =========================================================
   BOTÓN
   ========================================================= */

.video-card-contenido .video-card-boton {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 8px 18px;

    border: 1px solid rgba(97, 163, 240, 0.65);

    border-radius: 10px;

    background: rgba(47, 92, 235, 0.18);

    color: var(--color-blanco);

    font-family: var(--fuente-principal);

    font-size: 0.72rem;

    font-weight: 600;

    cursor: pointer;

    text-decoration: none;

    backdrop-filter: blur(5px);

    transition: all 0.3s ease;
}


.video-card-contenido .video-card-boton span {
    font-size: 1rem;

    line-height: 1;

    transition: transform 0.3s ease;
}


.video-card-contenido .video-card-boton:hover span {
    transform: translateX(4px);
}


.video-card-contenido .video-card-boton:hover {
    background: var(--color-cielo);

    border-color: var(--color-cielo);

    box-shadow:
        0 0 12px rgba(97, 163, 240, 0.45),
        0 0 25px rgba(47, 92, 235, 0.25);

    transform: translateY(-2px);
}

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

@media (max-width: 1100px) {

    .contenedor-cards-videos {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* =========================================================
   TABLET PEQUEÑA
   ========================================================= */

@media (max-width: 768px) {

    .contenedor-cards-videos {
        grid-template-columns: repeat(2, 1fr);

        gap: 20px;

        margin-top: 35px;
    }

    .video-card {
        min-height: 350px;
    }

    .video-card-contenido {
        min-height: 350px;
    }
}


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

@media (max-width: 520px) {

    .contenedor-cards-videos {
        grid-template-columns: 1fr;

        gap: 22px;

        padding: 0 10px;
    }

    .video-card {
        max-width: 400px;

        min-height: 340px;

        margin: 0 auto;
    }

    .video-card-contenido {
        min-height: 340px;

        padding: 28px 22px 24px;
    }

    .video-card-icono {
        width: 70px;
        height: 70px;
    }

    .video-card-contenido h3 {
        font-size: 1.15rem;
    }

    .video-card-contenido p {
        font-size: 0.84rem;

        max-width: 280px;
    }
}


/* =========================================================
   FRANJA FINAL
   ========================================================= */

.franja-final-videos {
    width: 100%;

    min-height: 90px;

    padding: 20px 5%;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 28px;

    background: var(--color-fondo);

    border-top: 1px solid rgba(97, 163, 240, 0.12);

    border-bottom: 1px solid rgba(97, 163, 240, 0.12);

    box-shadow:
        0 0 25px rgba(47, 92, 235, 0.08);

    font-family: var(--fuente-principal);

    text-align: center;
}


/* =========================================================
   TEXTOS
   ========================================================= */

.franja-final-videos span {
    color: var(--color-blanco);

    font-size: clamp(
        0.85rem,
        1.4vw,
        1.15rem
    );

    font-weight: 600;

    letter-spacing: 1.5px;

    white-space: nowrap;

    text-shadow:
        0 0 10px rgba(97, 163, 240, 0.18);
}


/* =========================================================
   MINI DESTELLO
   ========================================================= */

.mini-destello {
    width: 7px;
    height: 7px;

    flex-shrink: 0;

    border-radius: 50%;

    background: radial-gradient(
        circle,
        #ffffff 0%,
        rgba(97, 163, 240, 0.9) 30%,
        rgba(47, 92, 235, 0.55) 55%,
        transparent 100%
    );

    box-shadow:
        0 0 6px rgba(255, 255, 255, 0.8),
        0 0 12px rgba(97, 163, 240, 0.55),
        0 0 20px rgba(47, 92, 235, 0.35);
}


/* =========================================================
   FRANJA - CELULAR
   ========================================================= */

@media (max-width: 600px) {

    .franja-final-videos {
        width: 100%;

        min-height: 70px;

        padding: 16px 8px;

        display: flex;

        align-items: center;

        justify-content: space-between;

        gap: 6px;

        box-sizing: border-box;
    }


    .franja-final-videos span {
        display: block;

        flex: 1 1 0;

        min-width: 0;

        margin: 0;

        color: var(--color-blanco);

        font-size: 0.60rem;

        line-height: 1.2;

        letter-spacing: 0.2px;

        text-align: center;

        white-space: normal;
    }


    .mini-destello {
        flex: 0 0 5px;

        width: 5px;
        height: 5px;

        margin: 0;
    }
}