/* =========================================================
   GUÍAS RÁPIDAS
   VISARIO
========================================================= */


/* =========================================================
   PÁGINA
========================================================= */

.videos-page-body {
    margin: 0;
    min-height: 100vh;

    background: #f8f5f0;
    color: #292723;

    font-family: "DM Sans", sans-serif;
}


.videos-page-main {
    min-height: calc(100vh - 88px);

    padding:
        34px
        clamp(28px, 5vw, 72px)
        40px;

    box-sizing: border-box;
}


/* =========================================================
   INTRO
========================================================= */

.videos-intro {
    max-width: 820px;

    margin:
        0
        auto
        34px;

    text-align: center;
}


.videos-intro h1 {
    margin: 8px 0 12px;

    font-family: "Playfair Display", serif;
    font-size: clamp(40px, 4vw, 58px);
    line-height: 1.05;

    font-weight: 400;
}


.videos-intro h1 em {
    font-style: italic;
    font-weight: 400;

    color: #733943;
}


.videos-intro > p:last-child {
    max-width: 650px;

    margin: 0 auto;

    font-size: 16px;
    line-height: 1.6;

    color: #6d6760;
}


/* =========================================================
   GRID DE GUÍAS
========================================================= */

.videos-grid {
    width: 100%;
    max-width: 1180px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;

    align-items: start;
}


/* =========================================================
   TARJETA
========================================================= */

.video-card {
    width: 100%;
    min-width: 0;
}


.video-card-label {
    margin: 0 0 9px;

    font-size: 14px;
    font-weight: 600;

    letter-spacing: 0.08em;

    color: #733943;
}


/* =========================================================
   VIDEO VERTICAL 9:16
========================================================= */

.video-short {
    width: 100%;

    aspect-ratio: 9 / 16;

    overflow: hidden;

    border-radius: 16px;

    border:
        1px solid
        #ddd5cc;

    background: #ece6df;
}


.video-short iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}


/* =========================================================
   PRÓXIMAMENTE
========================================================= */

.video-card-coming {
    width: 100%;
}


.video-coming-content {
    width: 100%;

    aspect-ratio: 9 / 16;

    display: flex;

    flex-direction: column;

    justify-content: center;
    align-items: center;

    box-sizing: border-box;

    padding: 28px;

    text-align: center;

    border-radius: 16px;

    border:
        1px solid
        #ddd5cc;

    background: #f2ede7;
}


.video-coming-content span {
    font-family: "Playfair Display", serif;

    font-size: 28px;

    color: #733943;
}


.video-coming-content p {
    margin: 10px 0 0;

    font-size: 12px;
    line-height: 1.5;

    color: #716a63;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .videos-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 560px) {

    .videos-page-main {
        padding:
            26px
            18px
            32px;
    }


    .videos-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;
    }


    .videos-intro {
        margin-bottom: 24px;
    }


    .videos-intro h1 {
        font-size: 34px;
    }

}

/* =========================================================
   INTERACCIÓN DE LOS SHORTS
========================================================= */

.video-short-trigger {
    position: relative;
    cursor: pointer;
}

.video-short-trigger iframe {
    pointer-events: none;
}

.video-short-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(26, 22, 20, 0.08);

    opacity: 0;

    transition:
        opacity 0.25s ease,
        background 0.25s ease;
}

.video-short-trigger:hover .video-short-overlay {
    opacity: 1;

    background: rgba(26, 22, 20, 0.18);
}

.video-short-play {
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding-left: 3px;

    border-radius: 50%;

    background: rgba(248, 245, 240, 0.94);

    color: #733943;

    font-size: 18px;

    box-shadow:
        0 10px 30px
        rgba(25, 20, 18, 0.14);
}


/* =========================================================
   MODAL
========================================================= */

.video-modal {
    position: fixed;
    inset: 0;

    z-index: 9999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 24px;

    box-sizing: border-box;
}

.video-modal.is-open {
    display: flex;
}


/* FONDO DIFUMINADO */

.video-modal-backdrop {
    position: absolute;
    inset: 0;

    background:
        rgba(28, 24, 22, 0.52);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


/* CONTENEDOR */

.video-modal-dialog {
    position: relative;

    z-index: 2;

    height: min(82vh, 780px);

    aspect-ratio: 9 / 16;

    max-width: 92vw;
}


/* REPRODUCTOR */

.video-modal-player {
    width: 100%;
    height: 100%;

    overflow: hidden;

    border-radius: 18px;

    background: #000;

    box-shadow:
        0 30px 80px
        rgba(0, 0, 0, 0.30);
}

.video-modal-player iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}


/* CERRAR */

.video-modal-close {
    position: absolute;

    top: -18px;
    right: -18px;

    z-index: 3;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: #f8f5f0;

    color: #733943;

    font-family: "DM Sans", sans-serif;
    font-size: 28px;
    font-weight: 300;

    cursor: pointer;

    box-shadow:
        0 8px 24px
        rgba(0, 0, 0, 0.18);
}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 560px) {

    .video-modal {
        padding: 18px;
    }

    .video-modal-dialog {
        height: min(78vh, 680px);
    }

    .video-modal-close {
        top: -14px;
        right: -8px;
    }

}

.videos-intro .section-label {
    font-size: 18px;
    letter-spacing: 0.18em;
}