/* =========================================================
   WHITE OWL STUDIO — DEMO REEL
========================================================= */


/* =========================================================
   RESET GENERAL
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #000;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

img,
video,
iframe {
    max-width: 100%;
}

button,
input,
textarea {
    font-family: inherit;
}

a {
    color: inherit;
}

.container {
    width: min(1200px, 90%);
    margin: 0 auto;
}


/* =========================================================
   HEADER
   HOMOLOGADO CON CONTACT
========================================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: #000;
    z-index: 3000;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.header-container {
    position: relative;
    width: 100%;
    height: 90px;
    padding: 0 40px;
    display: flex;
    align-items: center;
}


/* =========================================================
   MARCA WHITE OWL STUDIO
========================================================= */

.header-brand {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 3100;
}

.brand-name {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: .85;
}

.brand-name span {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 2px;
}

.brand-name small {
    margin-top: 6px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 5px;
    color: #999;
}

/* Comportamiento de marca igual a Contact */

.header-brand,
.header-brand a,
.brand-name {
    pointer-events: none;
    cursor: default;
}


/* =========================================================
   BANDERAS MÉXICO Y COLOMBIA
   HOMOLOGADAS CON CONTACT
========================================================= */

.country-flags {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 3100;
}

.flag-link {
    display: block;
    width: 30px;
    height: 20px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .35);
    transition: transform .3s ease, opacity .3s ease;
}

.flag-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flag-link:hover {
    transform: scale(1.12);
    opacity: .8;
}


/* =========================================================
   SELECTOR DE IDIOMA
   HOMOLOGADO CON CONTACT
========================================================= */

.language-switch {
    position: absolute;
    top: 50%;
    right: 108px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 3500;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.language-link {
    color: #777;
    text-decoration: none;
    transition: color .3s ease;
}

.language-link:hover,
.language-link.is-active {
    color: #fff;
}

.language-separator {
    color: #555;
    font-weight: 400;
}


/* =========================================================
   BOTÓN HAMBURGUESA
   HOMOLOGADO CON CONTACT
========================================================= */

.menu-button {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    padding: 8px;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 4000;
}

.menu-button .hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    min-height: 3px;
    margin: 0;
    padding: 0;
    transform-origin: center;
    transition: transform .3s ease, opacity .3s ease;
}

.menu-button .line-red {
    background: #e63946;
}

.menu-button .line-yellow {
    background: #f1c40f;
}

.menu-button .line-blue {
    background: #3498db;
}

.menu-button .line-green {
    background: #2ecc71;
}


/* =========================================================
   ANIMACIÓN HAMBURGUESA A X
========================================================= */

.menu-button.active {
    gap: 0;
}

.menu-button.active .line-red {
    position: absolute;
    top: 50%;
    left: 8px;
    width: calc(100% - 16px);
    transform: translateY(-50%) rotate(45deg);
}

.menu-button.active .line-yellow {
    opacity: 0;
    transform: scaleX(0);
}

.menu-button.active .line-blue {
    position: absolute;
    top: 50%;
    left: 8px;
    width: calc(100% - 16px);
    transform: translateY(-50%) rotate(-45deg);
}

.menu-button.active .line-green {
    opacity: 0;
    transform: scaleX(0);
}


/* =========================================================
   MENÚ DESPLEGABLE
   HOMOLOGADO CON CONTACT
========================================================= */

.menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: 380px;
    max-width: 82%;
    height: 100vh;
    background: #000;
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform .4s ease, opacity .3s ease, visibility .3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.menu-background {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 80% 20%,
        rgba(255, 255, 255, .05),
        transparent 35%
    );
    pointer-events: none;
}

.menu-content {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 90px 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.menu-label {
    margin: 0 0 35px;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, .5);
}

.menu-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.menu-list li {
    width: 100%;
    margin: 0;
    padding: 0;
}

.menu-link {
    display: flex;
    align-items: baseline;
    gap: 14px;
    width: 100%;
    padding: 8px 0;
    color: #fff;
    text-decoration: none;
    font-size: 36px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -1.5px;
    transition: transform .3s ease, color .3s ease;
}

.menu-link span {
    width: 28px;
    flex-shrink: 0;
    font-size: 9px;
    font-weight: 700;
    opacity: .7;
}

.menu-link:hover {
    transform: translateX(8px);
}

.menu-yellow:hover {
    color: #f1c40f;
}

.menu-blue:hover {
    color: #3498db;
}

.menu-green:hover {
    color: #2ecc71;
}

.menu-red:hover {
    color: #e63946;
}


/* =========================================================
   PÁGINA DEMO REEL
========================================================= */

.demo-reel-page {
    width: 100%;
    min-height: 100vh;
    padding-top: 90px;
    background: #000;
}


/* =========================================================
   FLECHA BACK TO HOME — SUPERIOR
   HOMOLOGADA CON CONTACT
========================================================= */

.back-home-container {
    width: min(1200px, 90%);
    margin: 0 auto;
    padding-top: 25px;
    display: flex;
    justify-content: flex-start;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #888;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 2px;
    text-decoration: none;
    transition: color .3s ease, transform .3s ease;
}

.back-home span {
    font-size: 20px;
    line-height: 1;
    transition: transform .3s ease;
}

.back-home:hover {
    color: #fff;
    background: transparent;
    border: none;
    transform: none;
}

.back-home:hover span {
    transform: translateX(-5px);
}


/* =========================================================
   ENCABEZADO — SIEMPRE CENTRADO
========================================================= */

.demo-reel-heading {
    width: min(1200px, 90%);
    margin: 0 auto;
    padding: 55px 0 70px;
    text-align: center;
}

.demo-reel-heading p:first-child {
    margin: 0 0 22px;
    font-size: 11px;
    letter-spacing: 4px;
    color: #888;
    text-align: center;
}

.demo-reel-heading h1 {
    margin: 0;
    font-size: clamp(52px, 9vw, 110px);
    line-height: .95;
    font-weight: 900;
    letter-spacing: -4px;
    text-align: center;
}

.demo-reel-title {
    color: #fff;
    transition: text-shadow .35s ease;
}

.demo-reel-title:hover {
    text-shadow:
        0 0 6px rgba(241, 196, 15, .9),
        0 0 14px rgba(241, 196, 15, .55),
        0 0 24px rgba(241, 196, 15, .3);
}

.demo-reel-heading p:last-child {
    max-width: 600px;
    margin: 22px auto 0;
    font-size: 11px;
    line-height: 1.5;
    color: #888;
    text-align: center;
}


/* =========================================================
   LÍNEA DIVISORA
========================================================= */

.demo-reel-divider {
    width: min(1200px, 90%);
    height: 1px;
    margin: 0 auto 70px;
    background: rgba(255, 255, 255, .22);
}


/* =========================================================
   CATEGORÍAS Y SECCIONES
========================================================= */

.reel-category {
    width: min(1200px, 90%);
    margin: 0 auto 100px;
}

.reel-section-title {
    margin: 0 0 30px;
    color: #fff;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
    font-weight: 700;
    text-align: left;
}


/* =========================================================
   BLOQUES DE VIDEO Y TEXTOS
========================================================= */

.reel-video-block {
    width: 100%;
    margin-bottom: 42px;
}

.reel-video-description {
    width: 100%;
    margin: 0 0 18px;
    color: #aaa;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 400;
    text-align: left;
}

.reel-video-block:last-child {
    margin-bottom: 0;
}


/* =========================================================
   VIDEOS
========================================================= */

.reel-video {
    width: 100%;
    overflow: hidden;
    background: #080808;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
}

.reel-video video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: none;
    object-fit: contain;
    background: #000;
}


/* =========================================================
   VISUAL EFFECTS — VIDEOS EN DOS COLUMNAS
========================================================= */

.visual-effects-section .reel-section-title {
    text-align: center;
    margin-bottom: 42px;
}

.visual-effects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
    row-gap: 42px;
    width: 100%;
}

.visual-effects-grid .reel-video-block {
    width: 100%;
    margin: 0;
}

.reel-video-title {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(17px, 2vw, 23px);
    line-height: 1.25;
    font-weight: 600;
    text-align: left;
}


/* =========================================================
   PRODUCCIÓN
========================================================= */

.production-heading {
    margin: 0 0 28px;
}

.production-heading h3 {
    margin: 0 0 9px;
    color: #fff;
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.2;
    font-weight: 600;
}

.coproduction-credit {
    margin: 0;
    color: #999;
    font-size: 12px;
    line-height: 1.6;
}

.production-videos {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    width: 100%;
}

.production-videos .reel-video-block {
    width: 100%;
    margin: 0;
}

.production-video-title {
    margin: 18px 0 6px;
    color: #fff;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.3;
    font-weight: 600;
    text-align: left;
}


/* =========================================================
   VIDEOS DE YOUTUBE
========================================================= */

.youtube-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #080808;
}

.youtube-video iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}


/* =========================================================
   POSTPRODUCCIÓN
========================================================= */

.postproduction-section {
    margin-bottom: 85px;
}

.work-in-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 220px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, .35);
    background: #080808;
    text-align: center;
}

.work-in-progress span {
    color: #fff;
    font-size: clamp(20px, 3vw, 34px);
    font-weight: 600;
    letter-spacing: 3px;
}


/* =========================================================
   BOTÓN INFERIOR BACK TO HOME
   HOMOLOGADO CON CONTACT
========================================================= */

.back-home-bottom-container {
    width: 100%;
    padding: 0 0 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-home-bottom {
    display: inline-block;
    width: fit-content;
    margin: 0;
    padding: 13px 25px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 30px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 2px;
    transition:
        background .3s ease,
        border-color .3s ease,
        color .3s ease,
        transform .3s ease;
}

.back-home-bottom:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: translateY(-3px);
}


/* =========================================================
   FOOTER
   HOMOLOGADO CON CONTACT
========================================================= */

.footer {
    width: 100%;
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.footer-container {
    width: min(1200px, 90%);
    min-height: 130px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    line-height: .9;
}

.footer-logo strong {
    font-size: 18px;
    letter-spacing: 2px;
}

.footer-logo span {
    margin-top: 6px;
    font-size: 9px;
    letter-spacing: 5px;
    color: #777;
}

.footer-social span,
.footer-social .footer-instagram {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 2px;
    color: #aaa;
    text-decoration: none;
    cursor: default;
}

.footer-bottom {
    padding: 20px 5%;
    border-top: 1px solid rgba(255, 255, 255, .08);
    text-align: center;
}

.footer-bottom p {
    font-size: 10px;
    letter-spacing: 1px;
    color: #666;
}


/* =========================================================
   TABLET
   HOMOLOGACIÓN CON CONTACT
========================================================= */

@media (max-width: 900px) {

    .header-container {
        padding: 0 25px;
    }

    .menu-button {
        right: 25px;
    }

    .language-switch {
        right: 93px;
    }

    .back-home-container {
        width: 90%;
        padding-top: 25px;
    }

    .demo-reel-heading {
        width: 90%;
        padding: 45px 0 55px;
        text-align: center;
    }

    .demo-reel-heading p:first-child,
    .demo-reel-heading h1,
    .demo-reel-heading p:last-child {
        text-align: center;
    }

    .demo-reel-divider {
        margin-bottom: 60px;
    }

    .reel-category {
        margin-bottom: 75px;
    }

    .reel-video-block {
        margin-bottom: 35px;
    }

    .visual-effects-grid {
        column-gap: 24px;
        row-gap: 35px;
    }

    .visual-effects-section .reel-section-title {
        margin-bottom: 35px;
    }

    .production-videos {
        gap: 25px;
    }

    .work-in-progress {
        min-height: 190px;
    }
}


/* =========================================================
   CELULAR
   HOMOLOGACIÓN CON CONTACT
========================================================= */

@media (max-width: 600px) {

    /* HEADER */

    .header,
    .header-container {
        height: 80px;
    }

    .header-container {
        padding: 0 18px;
    }

    .brand-name span {
        font-size: 16px;
    }

    .brand-name small {
        font-size: 7px;
        letter-spacing: 4px;
    }

    .menu-button {
        right: 18px;
        width: 38px;
        height: 38px;
    }

    /* BANDERAS */

    .country-flags {
        gap: 8px;
    }

    .flag-link {
        width: 26px;
        height: 17px;
    }

    /* SELECTOR DE IDIOMA */

    .language-switch {
        right: 60px;
        gap: 4px;
        font-size: 8px;
        letter-spacing: .3px;
        white-space: nowrap;
    }

    /* HAMBURGUESA */

    .menu-button.active .line-red,
    .menu-button.active .line-blue {
        left: 7px;
        width: calc(100% - 14px);
    }

    /* MENÚ */

    .menu-overlay {
        width: 82%;
        max-width: 340px;
    }

    .menu-content {
        padding: 80px 25px 30px;
    }

    .menu-link {
        font-size: 30px;
        gap: 9px;
        padding: 7px 0;
    }

    .menu-link span {
        width: 25px;
    }

    /* PÁGINA */

    .demo-reel-page {
        padding-top: 80px;
    }

    /* FLECHA SUPERIOR */

    .back-home-container {
        width: 92%;
        margin: 0 auto;
        padding-top: 20px;
    }

    .back-home {
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    .back-home span {
        font-size: 18px;
    }

    /* ENCABEZADO */

    .demo-reel-heading {
        width: 90%;
        margin: 0 auto;
        padding: 35px 0 45px;
        text-align: center;
    }

    .demo-reel-heading p:first-child {
        margin-bottom: 18px;
        font-size: 9px;
        letter-spacing: 2px;
        text-align: center;
    }

    .demo-reel-heading h1 {
        margin: 0;
        font-size: clamp(43px, 13vw, 70px);
        letter-spacing: -2.5px;
        text-align: center;
    }

    .demo-reel-heading p:last-child {
        max-width: 600px;
        margin: 22px auto 0;
        font-size: 11px;
        text-align: center;
    }

    /* DIVISOR */

    .demo-reel-divider {
        width: 90%;
        margin: 0 auto 45px;
    }

    /* CATEGORÍAS */

    .reel-category {
        width: 90%;
        margin: 0 auto 60px;
    }

    .reel-section-title {
        margin-bottom: 22px;
        font-size: clamp(28px, 8vw, 38px);
    }

    /* VISUAL EFFECTS */

    .visual-effects-grid {
        grid-template-columns: 1fr;
        row-gap: 30px;
    }

    .visual-effects-section .reel-section-title {
        margin-bottom: 28px;
        text-align: center;
    }

    .visual-effects-grid .reel-video-block {
        margin-bottom: 0;
    }

    .reel-video-title {
        margin-bottom: 11px;
        font-size: 17px;
    }

    /* BLOQUES DE VIDEO */

    .reel-video-block {
        margin-bottom: 30px;
    }

    .reel-video-description {
        margin-bottom: 13px;
        font-size: 12px;
        line-height: 1.6;
    }

    .reel-video {
        border-radius: 7px;
    }

    /* PRODUCCIÓN */

    .production-heading {
        margin-bottom: 22px;
    }

    .production-heading h3 {
        font-size: 24px;
    }

    .coproduction-credit {
        font-size: 11px;
    }

    .production-videos {
        gap: 20px;
    }

    .production-video-title {
        margin-top: 13px;
        font-size: 17px;
    }

    /* POSTPRODUCCIÓN */

    .work-in-progress {
        min-height: 150px;
        padding: 20px;
    }

    .work-in-progress span {
        font-size: clamp(18px, 5vw, 25px);
        letter-spacing: 1.5px;
    }

    /* BOTÓN INFERIOR */

    .back-home-bottom-container {
        padding: 0 0 75px;
    }

    .back-home-bottom {
        margin: 0 auto;
        padding: 13px 25px;
        font-size: 10px;
        letter-spacing: 2px;
    }

    /* FOOTER */

    .footer-container {
        width: 92%;
        min-height: 110px;
        padding: 35px 0;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 25px;
    }

}


/* =========================================================
   CELULARES PEQUEÑOS
   HOMOLOGACIÓN CON CONTACT
========================================================= */

@media (max-width: 380px) {

    .brand-name span {
        font-size: 15px;
    }

    .country-flags {
        gap: 5px;
    }

    .flag-link {
        width: 23px;
        height: 16px;
    }

    .menu-button {
        right: 12px;
        width: 34px;
        height: 34px;
    }

}


/* =========================================================
   DEMO REEL — QUITAR CONTORNOS DE ENFOQUE
========================================================= */

/* Video */

.demo-reel-page .reel-video video {
    outline: none !important;
    box-shadow: none !important;
}

/* Video al recibir el foco */

.demo-reel-page .reel-video video:focus,
.demo-reel-page .reel-video video:focus-visible,
.demo-reel-page .reel-video video:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Controles nativos en Chrome y Opera */

.demo-reel-page .reel-video video::-webkit-media-controls {
    outline: none !important;
    box-shadow: none !important;
}

.demo-reel-page .reel-video video::-webkit-media-controls-panel {
    outline: none !important;
    box-shadow: none !important;
}

.demo-reel-page .reel-video video::-webkit-media-controls-play-button {
    outline: none !important;
    box-shadow: none !important;
}

/* No mostrar el contorno de teclado en los videos */

.demo-reel-page .reel-video video::-moz-focus-inner {
    border: 0 !important;
}


/* =========================================================
   VISUAL EFFECTS — ÚLTIMO VIDEO CENTRADO
========================================================= */

@media (min-width: 601px) {

    .visual-effects-grid .reel-video-block:last-child {
        grid-column: 1 / -1;
        width: calc((100% - 32px) / 2);
        justify-self: center;
    }

}


/* =========================================================
   ACCESIBILIDAD — MOVIMIENTO REDUCIDO
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }

}