
/* =========================================================
   WHITE OWL STUDIO — PROYECTOS
========================================================= */

/* RESET */
* {
    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 {
    max-width: 100%;
}

button,
input,
textarea {
    font-family: inherit;
}

a {
    color: inherit;
}

/* =========================================================
   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;
}

.header-brand {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 3100;
    text-decoration: none;
}

.brand-name {
    display: flex;
    flex-direction: column;
    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 */

.country-flags {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: 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;
}

/* BOTÓN MENÚ */

.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;
}

.line-red {
    background: #ff3b30;
}

.line-yellow {
    background: #ffd60a;
}

.line-blue {
    background: #0a84ff;
}

.line-green {
    background: #30d158;
}

/* ANIMACIÓN DEL MENÚ */

.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,
.menu-button.active .line-green {
    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);
}

/* =========================================================
   MENÚ LATERAL
========================================================= */

.menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    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%;
}

.menu-list li {
    width: 100%;
}

.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;
    letter-spacing: 0;
    opacity: .7;
}

.menu-link:hover {
    transform: translateX(8px);
}

.menu-yellow:hover {
    color: #ffd60a;
}

.menu-blue:hover {
    color: #0a84ff;
}

.menu-green:hover {
    color: #30d158;
}

.menu-red:hover {
    color: #ff3b30;
}

/* =========================================================
   PÁGINA Y ENCABEZADO DE PROYECTOS
========================================================= */

.proyectos-page {
    min-height: 100vh;
    padding-top: 90px;
    background: #000;
}

.proyectos-heading {
    width: min(1100px, 90%);
    margin: 0 auto;
    padding: 110px 0 70px;
    text-align: center;
}

.proyectos-heading .section-label {
    margin: 20px 0;
    font-size: 11px;
    letter-spacing: 4px;
    color: #888;
    font-weight: 400;
    line-height: normal;
}

.proyectos-title {
    margin: 25px 0;
    color: #fff;
    font-size: clamp(60px, 10vw, 125px);
    line-height: .9;
    font-weight: 900;
    letter-spacing: -5px;
    transition: text-shadow .35s ease;
}

.proyectos-title:hover {
    text-shadow:
        0 0 6px rgba(48, 209, 88, .65),
        0 0 14px rgba(48, 209, 88, .4),
        0 0 24px rgba(48, 209, 88, .2);
}

/* =========================================================
   CATEGORÍAS
========================================================= */

.proyecto-category {
    width: min(1200px, 90%);
    margin: 0 auto;
    padding: 100px 0 120px;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.proyecto-category-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 55px;
}

.proyecto-category-header h2 {
    margin: 0;
    font-size: clamp(38px, 5vw, 65px);
    line-height: .9;
    font-weight: 900;
    letter-spacing: -3px;
}

.intro-category {
    width: min(900px, 100%);
    margin: 0;
    color: #aaa;
    font-size: 11px;
    line-height: 1.9;
    letter-spacing: 1px;
}

.intro-category span {
    margin-right: 3px;
    margin-left: 3px;
}

.dot-yellow {
    color: #ffd60a;
}

.dot-blue {
    color: #0a84ff;
}

.dot-green {
    color: #30d158;
}

.dot-red {
    color: #ff3b30;
}

/* =========================================================
   GALERÍA DE PROYECTOS
========================================================= */

.proyectos-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.proyecto-card {
    position: relative;
    width: 100%;
    min-width: 0;
    cursor: pointer;
}

.proyecto-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: #111;
    border: 1px solid rgba(255, 255, 255, .12);
    transition: transform .45s ease, border-color .45s ease, box-shadow .45s ease;
}

.proyecto-card:hover img {
    transform: scale(1.035);
    border-color: rgba(255, 255, 255, .4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .55);
}

.proyecto-card p {
    margin-top: 15px;
    color: #fff;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    transition: text-shadow .3s ease, transform .3s ease;
}

.proyecto-card:hover p {
    text-shadow:
        0 0 5px rgba(255, 255, 255, .55),
        0 0 12px rgba(255, 255, 255, .25);
    transform: translateY(-2px);
}

/* =========================================================
   LAURELES
========================================================= */

.laureles-section {
    width: 100%;
    margin: 65px auto 0;
    padding: 45px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.laureles-heading {
    margin-bottom: 35px;
    text-align: center;
}

.laureles-heading p {
    margin-bottom: 12px;
    color: #888;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 4px;
}

.laureles-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 35px 25px;
}

.laureles-gallery img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: contain;
    justify-self: center;
    transition: transform .3s ease;
}

.laureles-gallery img:hover {
    transform: translateY(-4px);
}

/* =========================================================
   POSTPRODUCCIÓN
   DOS IMÁGENES HORIZONTALES A LA IZQUIERDA
   PÓSTER A LA DERECHA CON ALTURA ALINEADA
========================================================= */

.proyectos-page .postproduccion-category {
    padding-top: 100px;
    padding-bottom: 120px;
}

/* TÍTULO Y SERVICIOS */

.proyectos-page .postproduccion-text {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0 0 32px;
    padding: 0;
}

.proyectos-page .postproduccion-text h2 {
    margin: 0 0 24px;
    font-size: clamp(42px, 5vw, 70px);
    line-height: .95;
    font-weight: 900;
    letter-spacing: -3px;
}

.proyectos-page .postproduccion-text .intro-category {
    width: 100%;
    max-width: 900px;
    margin: 0;
    font-size: 11px;
    letter-spacing: 1px;
    line-height: 1.9;
}

/* DISTRIBUCIÓN EN DOS COLUMNAS */

.proyectos-page .postproduccion-media {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    column-gap: 30px;
    align-items: stretch;
    width: 100%;
}

/* COLUMNA IZQUIERDA: DOS IMÁGENES APILADAS */

.proyectos-page .postproduccion-extra-gallery {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.proyectos-page .postproduccion-extra {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    cursor: pointer;
}

.proyectos-page .postproduccion-extra img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #080808;
    border: 1px solid rgba(255, 255, 255, .15);
    transition:
        transform .35s ease,
        border-color .35s ease,
        box-shadow .35s ease;
}

.proyectos-page .postproduccion-extra:hover img {
    transform: scale(1.015);
    border-color: rgba(255, 255, 255, .45);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .45);
}

/* COLUMNA DERECHA: PÓSTER */

.proyectos-page .postproduccion-poster {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

/*
   La columna del póster se estira hasta la altura total
   de la galería izquierda. La imagen ocupa el espacio
   disponible por encima del pie de foto.
*/

.proyectos-page .postproduccion-poster img {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    height: 0;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    background: #080808;
    border: 1px solid rgba(255, 255, 255, .15);
    transition:
        border-color .35s ease,
        box-shadow .35s ease;
}

.proyectos-page .postproduccion-poster:hover img {
    border-color: rgba(255, 255, 255, .45);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .45);
}

/* PIE DE FOTO DEL PÓSTER */

.proyectos-page .postproduccion-caption {
    flex: 0 0 auto;
    margin-top: 12px;
    color: #fff;
    font-size: 11px;
    line-height: 1.5;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    transition: text-shadow .3s ease, transform .3s ease;
}

.proyectos-page .postproduccion-poster:hover .postproduccion-caption {
    text-shadow:
        0 0 5px rgba(255, 255, 255, .55),
        0 0 12px rgba(255, 255, 255, .25);
    transform: translateY(-2px);
}

/* =========================================================
   REGRESAR AL INICIO
========================================================= */

.proyectos-page .back-home {
    display: block;
    width: fit-content;
    margin: 0 auto 110px;
    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;
}

.proyectos-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;
    text-decoration: none;
    line-height: .9;
}

.footer-logo strong {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 2px;
}

.footer-logo span {
    margin-top: 6px;
    font-size: 9px;
    letter-spacing: 5px;
    color: #777;
}

.footer-social {
    margin-left: auto;
    text-align: right;
}

.footer-instagram {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 2px;
    color: #aaa;
    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;
    line-height: 1.5;
    color: #666;
}

/* =========================================================
   LIGHTBOX — VISOR DE IMÁGENES
========================================================= */

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background: rgba(0, 0, 0, .96);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 85px;
    z-index: 999999;
    overflow: hidden;
}

.lightbox.active {
    display: flex;
}

body.lightbox-open {
    overflow: hidden;
}

.lightbox-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 82vw;
    max-height: 88vh;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
    flex-shrink: 1;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #fff;
    background: transparent;
    border: none;
    box-shadow: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    opacity: 1;
    -webkit-tap-highlight-color: transparent;
}

.lightbox-close {
    top: 25px;
    right: 30px;
    width: 45px;
    height: 45px;
    z-index: 3;
    font-size: 36px;
    font-weight: 300;
    line-height: 1;
    transition: color .25s ease, transform .3s ease;
}

.lightbox-close:hover {
    color: #ff3b30;
    transform: rotate(90deg);
}

.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
    outline: 1px solid rgba(255, 255, 255, .6);
    outline-offset: 4px;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    width: 50px;
    height: 70px;
    z-index: 2;
    font-size: 54px;
    font-weight: 300;
    line-height: 1;
    transform: translateY(-50%);
    transition: none;
}

.lightbox-prev {
    left: 25px;
}

.lightbox-next {
    right: 25px;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-prev:active,
.lightbox-next:active {
    color: #fff;
    background: transparent;
    transform: translateY(-50%);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .header-container {
        padding: 0 25px;
    }

    .menu-button {
        right: 25px;
    }

    .menu-link {
        font-size: 32px;
    }

    .proyectos-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
    }

    .laureles-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .proyectos-page .postproduccion-media {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
        column-gap: 22px;
    }

    .proyectos-page .postproduccion-extra-gallery {
        gap: 14px;
    }

    .lightbox {
        padding: 35px 65px;
    }

    .lightbox-image {
        max-width: 84vw;
        max-height: 85vh;
    }

    .lightbox-prev {
        left: 12px;
    }

    .lightbox-next {
        right: 12px;
    }

    .lightbox-close {
        top: 18px;
        right: 20px;
    }
}

/* =========================================================
   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;
    }

    .menu-button.active .line-red,
    .menu-button.active .line-blue {
        left: 7px;
        width: calc(100% - 14px);
    }

    .country-flags {
        gap: 8px;
    }

    .flag-link {
        width: 26px;
        height: 17px;
    }

    .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;
    }

    .proyectos-page {
        padding-top: 80px;
    }

    .proyectos-heading {
        width: 90%;
        padding: 70px 0 45px;
    }

    .proyectos-heading .section-label {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .proyectos-title {
        font-size: clamp(48px, 12vw, 76px);
        letter-spacing: -3px;
    }

    .proyecto-category {
        padding: 70px 0 80px;
    }

    .proyecto-category-header {
        gap: 18px;
        margin-bottom: 35px;
    }

    .proyecto-category-header h2 {
        font-size: clamp(34px, 9vw, 48px);
        letter-spacing: -2px;
    }

    .proyectos-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 14px;
    }

    .proyecto-card p {
        font-size: 9px;
        letter-spacing: 1px;
        margin-top: 10px;
    }

    .laureles-section {
        margin-top: 45px;
        padding-top: 35px;
    }

    .laureles-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 14px;
    }

    .laureles-gallery img {
        height: 110px;
    }

    /* POSTPRODUCCIÓN EN CELULAR */

    .proyectos-page .postproduccion-category {
        padding-top: 70px;
        padding-bottom: 80px;
    }

    .proyectos-page .postproduccion-text {
        margin-bottom: 25px;
    }

    .proyectos-page .postproduccion-text h2 {
        font-size: clamp(36px, 9vw, 46px);
        letter-spacing: -2px;
        margin-bottom: 20px;
    }

    .proyectos-page .postproduccion-text .intro-category {
        font-size: 9px;
        line-height: 1.8;
    }

    .proyectos-page .postproduccion-media {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 25px;
    }

    .proyectos-page .postproduccion-extra-gallery {
        gap: 15px;
    }

    .proyectos-page .postproduccion-extra img {
        aspect-ratio: 16 / 9;
    }

    .proyectos-page .postproduccion-poster {
        display: block;
        width: 75%;
        max-width: 300px;
        height: auto;
    }

    .proyectos-page .postproduccion-poster img {
        width: 100%;
        height: auto;
        aspect-ratio: 2 / 3;
        object-fit: contain;
    }

    .proyectos-page .postproduccion-caption {
        font-size: 9px;
        letter-spacing: 1.3px;
    }

    /* FOOTER */

    .footer-container {
        min-height: 110px;
    }

    .footer-logo strong {
        font-size: 15px;
    }

    .footer-instagram {
        font-size: 9px;
        letter-spacing: 1px;
    }

    /* VISOR EN CELULAR */

    .lightbox {
        padding: 50px 40px;
    }

    .lightbox-image {
        max-width: 100%;
        max-height: 80vh;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 30px;
        font-size: 42px;
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }
}
