/* =========================================================
   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
========================================================= */

.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;
}


/* =========================================================
   BANDERAS MÉXICO Y COLOMBIA
========================================================= */

.country-flags {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    z-index: 3100;
}

.flag-link {
    display: block;
    width: 28px;
    height: 19px;
    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.08);
    opacity: .8;
}


/* =========================================================
   BOTÓN HAMBURGUESA
========================================================= */

.menu-button {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    padding: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 4000;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    min-height: 3px;
    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
========================================================= */

.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;
}


/* =========================================================
   ENCABEZADO — SIEMPRE CENTRADO
========================================================= */

.demo-reel-heading {
    width: min(1200px, 90%);
    margin: 0 auto;
    padding: 100px 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
   ENTRE DEMO REEL Y VISUAL EFFECTS
========================================================= */

.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;
}


/* =========================================================
   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;
}


/* =========================================================
   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%;
}


/* =========================================================
   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 REGRESAR
========================================================= */

.demo-reel-page .back-home {
    display: block;
    width: fit-content;
    margin: 0 auto 100px;
    padding: 13px 25px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 30px;
    color: #fff;
    text-decoration: none;
    font-size: 10px;
    letter-spacing: 2px;
    transition: background .3s ease, border-color .3s ease, color .3s ease, transform .3s ease;
}

.demo-reel-page .back-home:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: translateY(-3px);
}


/* =========================================================
   FOOTER
========================================================= */

.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;
}

/* Instagram sin enlace y con el tamaño del CSS de Colombia */

.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
========================================================= */

@media (max-width: 900px) {

    .header-container {
        padding: 0 25px;
    }

    .menu-button {
        right: 25px;
    }

    .country-flags {
        gap: 20px;
    }

    .flag-link {
        width: 25px;
        height: 17px;
    }

    .demo-reel-heading {
        width: 90%;
        padding: 80px 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;
    }

    .production-videos {
        gap: 25px;
    }

    .work-in-progress {
        min-height: 190px;
    }
}


/* =========================================================
   CELULAR
========================================================= */

@media (max-width: 600px) {

    .header,
    .header-container {
        height: 80px;
    }

    .header-container {
        padding: 0 18px;
    }

    .brand-name span {
        font-size: 17px;
    }

    .brand-name small {
        font-size: 8px;
        letter-spacing: 4px;
    }

    .menu-button {
        right: 18px;
        width: 38px;
        height: 38px;
    }

    .country-flags {
        gap: 18px;
    }

    .flag-link {
        width: 23px;
        height: 16px;
    }

    .menu-button.active .line-red,
    .menu-button.active .line-blue {
        left: 7px;
        width: calc(100% - 14px);
    }

    .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;
    }

    .demo-reel-page {
        padding-top: 80px;
    }

    /* El encabezado permanece centrado en celular */

    .demo-reel-heading {
        width: 90%;
        margin: 0 auto;
        padding: 65px 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;
    }

    .demo-reel-divider {
        width: 90%;
        margin: 0 auto 45px;
    }

    .reel-category {
        width: 90%;
        margin: 0 auto 60px;
    }

    .reel-section-title {
        margin-bottom: 22px;
        font-size: clamp(28px, 8vw, 38px);
    }

    .reel-video {
        border-radius: 7px;
    }

    .production-heading {
        margin-bottom: 22px;
    }

    .production-heading h3 {
        font-size: 24px;
    }

    .coproduction-credit {
        font-size: 11px;
    }

    .production-videos {
        gap: 20px;
    }

    .work-in-progress {
        min-height: 150px;
        padding: 20px;
    }

    .work-in-progress span {
        font-size: clamp(18px, 5vw, 25px);
        letter-spacing: 1.5px;
    }

    .demo-reel-page .back-home {
        margin: 0 auto 75px;
        padding: 13px 20px;
        font-size: 10px;
    }

    .footer-container {
        min-height: auto;
        padding: 35px 0;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 25px;
    }
}

/* =========================================
   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;
}
