@charset "utf-8";
@import url("https://use.typekit.net/usz4phq.css");

:root {
    --font-general: "aptos", sans-serif;
    --black: #000;
    --white: #FFF;
    --side: 5vw;
    --thumb-gap: 2.6rem;
    --ink: var(--black);
}

* {
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    background: #090913;
    color: var(--white);
    font-family: var(--font-general);
    font-size: 2rem;
    -webkit-font-smoothing: antialiased;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

/* ESCENARIO Y VIDEO
-------------------------------------------------- */

.story {
    height: 1120vh;
    position: relative;
}

.stage {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: clip;
    isolation: isolate;
    background: #15104b;
}

.video-world {
    position: absolute;
    z-index: 0;
    left: 0;
    top: 0;
    width: 175vw;
    height: 175vh;
    overflow: hidden;
    will-change: transform;
    pointer-events: none;
}

.video-world video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-tint {
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,.50) 0%,
        rgba(0,0,0,0) 32%,
        rgba(0,0,0,0) 68%,
        rgba(0,0,0,.50) 100%
    );
}

/* LOGO Y TEXTOS DE HISTORIA
-------------------------------------------------- */

.brand-logo {
    position: absolute;
    z-index: 30;
    left: var(--side);
    top: 4.7vh;
    display: block;
    width: 16rem;
    line-height: 0;
    transition: filter .12s linear;
}

.brand-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.brand-logo.on-dark {
    filter: invert(1);
}

.story-copy {
    position: absolute;
    z-index: 2;
    left: var(--side);
    max-width: 62rem;
    color: white;
    will-change: transform, filter, opacity;
}

.story-copy h1,
.story-copy h2 {
    margin: 0;
    font-weight: 400;
    letter-spacing: -.048em;
}

.story-copy h1 {
    font-size: 10rem;
    line-height: .91;
}

.story-copy h2 {
    font-size: 8rem;
    line-height: .92;
}

.story-copy p {
    font-size: 2rem;
    line-height: 1.38;
    max-width: 57rem;
    margin: 5rem 0 0;
    font-weight: 400;
}

.hero-copy {
    top: 53.5vh;
}

.about-copy {
    top: 48.5vh;
    opacity: 0;
    pointer-events: none;
}

/* SERVICIOS — 3 COLUMNAS ESCALONADAS (2 / 3 / 2)
-------------------------------------------------- */

.services-scene {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.services-copy {
    top: 50vh;
    opacity: 0;
}

.services-cloud {
    position: absolute;
    inset: 0;
    --service-gap: 2.4rem;
    --service-size: min(14.2vw, calc((100dvh - 13rem - var(--service-gap) - var(--service-gap)) / 3));
    --service-step: calc(var(--service-size) + var(--service-gap));
    --service-span: calc(var(--service-size) + var(--service-size) + var(--service-size) + var(--service-gap) + var(--service-gap));
    --service-left: calc(100% - var(--side) - var(--service-span));
    --service-middle: calc(var(--service-left) + var(--service-step));
    --service-right: calc(var(--service-middle) + var(--service-step));
}

.service-pill {
    position: absolute;
    width: var(--service-size);
    height: var(--service-size);
    aspect-ratio: 1 / 1;
    border-radius: 25%;
    border: .1rem solid rgba(255,255,255,.70);
    background: rgba(255,255,255,.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    font-size: 2.6rem;
    line-height: 1.12;
    letter-spacing: -.02em;
    opacity: 0;
    will-change: transform, opacity;
    translate: 0 0;
    transition: translate .55s cubic-bezier(.22, 1, .36, 1);
    pointer-events: none;
}

/* Izquierda: 2 */
.pill-branding {
    left: var(--service-left);
    top: 41.3%;
}

.pill-logo {
    left: var(--service-left);
    top: calc(41.3% + var(--service-step));
}

/* Centro: 3 */
.pill-editorial {
    left: var(--service-middle);
    top: 4.3%;
}

.pill-packaging {
    left: var(--service-middle);
    top: calc(4.3% + var(--service-step));
}

.pill-motion {
    left: var(--service-middle);
    top: calc(4.3% + var(--service-step) + var(--service-step));
}

/* Derecha: 2 */
.pill-web {
    left: var(--service-right);
    top: 15%;
}

.pill-ux {
    left: var(--service-right);
    top: calc(15% + var(--service-step));
}

/* PANELES DEL PORTAFOLIO
-------------------------------------------------- */

.portfolio-panel {
    position: absolute;
    z-index: 5;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    color: var(--ink);
    border-radius: 4rem 4rem 0 0;
    overflow: clip;
    visibility: hidden;
    will-change: transform, left, width, border-radius;
}

#portfolioBranding {
    z-index: 6;
}

#portfolioPackaging {
    z-index: 7;
}

#portfolioDigital {
    z-index: 8;
}

.portfolio-content {
    padding-top: 13vh;
    width: 100%;
}

.portfolio-heading {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    justify-content: space-between;
    margin: 0 var(--side);
}

.portfolio-heading h2 {
    font-size: 6rem;
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: -.045em;
    margin: 0;
}

.portfolio-heading p {
    font-size: 2rem;
    line-height: 1.38;
    margin: 2.4rem 0 0;
    letter-spacing: -.035em;
    max-width: 85rem;
}
.carousel-controls {
    display: flex;
    align-items: center;
    gap: 2.7rem;
    padding-top: 1.4rem;
}

.carousel-btn {
    width: 5.5rem;
    height: 5.5rem;
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: opacity .18s ease, transform .18s ease;
}

.carousel-btn img {
    width: 3.5rem;
    height: 3.5rem;
}

.carousel-btn:not(:disabled):hover {
    transform: scale(1.15);
}

.carousel-btn:disabled {
    opacity: .19;
    cursor: default;
}

.carousel-btn:focus-visible,
.thumb-action:focus-visible,
.lightbox-close:focus-visible,
.contact-email:focus-visible {
    outline: 2px solid #4467df;
    outline-offset: 4px;
}

/* CARRUSEL HORIZONTAL — 2.5 THUMBS EN ESCRITORIO
-------------------------------------------------- */

.carousel-viewport {
    overflow: hidden;
    margin: 5.1rem 0 0;
    width: 100%;
    touch-action: pan-y;
    outline: none;
}

.carousel-track {
    display: flex;
    align-items: stretch;
    gap: var(--thumb-gap);
    padding-left: var(--side);
    padding-right: var(--side);
    transform: translate3d(0, 0, 0);
    transition: transform 620ms cubic-bezier(.18,.76,.23,1);
    will-change: transform;
}

.project-thumb {
    flex: 0 0 calc((100% - 2 * var(--thumb-gap)) / 2.5);
    aspect-ratio: 4 / 3;
    position: relative;
    border-radius: 2.8rem;
    overflow: hidden;
    background: #d0d0d0;
    isolation: isolate;
}

.project-thumb .thumb-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,#d2d2d2 0%,#d0d0d0 49%,#c5c5c5 100%);
    transform: scale(1) rotate(0deg);
    transform-origin: center center;
    transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}

.project-thumb .thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,transparent 45%,rgba(0,0,0,.08) 66%,rgba(0,0,0,.62) 100%);
    opacity: 0;
    transition: opacity .35s ease;
}

.project-thumb:is(:hover,:focus-within) .thumb-overlay {
    opacity: 1;
}

.thumb-info {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    color: #fff;
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity .32s ease, transform .32s ease;
}

.project-thumb:is(:hover,:focus-within) .thumb-info {
    opacity: 1;
    transform: translateY(0);
}

.thumb-title {
    font-size: 2rem;
    line-height: 1.14;
    letter-spacing: -.02em;
}

.thumb-actions {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.thumb-action {
    width: 3.5rem;
    height: 3.5rem;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.thumb-action img {
    width: 2.8rem;
    height: 2.8rem;
    filter: invert(1);
    transition: transform .2s;
}

.thumb-action:hover img {
    transform: translateX(2px);
}

/* Zoom y giro SOLO de la fotografía (overlay y botones quietos). */
@media (hover: hover) and (pointer: fine) {
    .project-thumb:hover .thumb-placeholder {
        transform: scale(1.06) rotate(1deg);
    }
}

/* CONTACTO Y FOOTER
-------------------------------------------------- */

.contact-scene {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
}

.contact-scene h2 {
    font-size: 8rem;
    line-height: 1;
    letter-spacing: -.045em;
    font-weight: 400;
    margin: 0;
    position: absolute;
    top: 30%;
    left: 0;
    width: 100%;
    text-align: center;
    will-change: transform, filter, opacity;
    opacity: 0;
}

.contact-card {
    position: absolute;
    left: var(--side);
    right: var(--side);
    bottom: 0;
    height: calc(46% - 5rem);
    padding: 4.5rem 4.7rem 5rem;
    background: #050505;
    border-radius: 4rem 4rem 0 0;
    transform: translateY(110%);
    will-change: transform;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: auto;
}

.contact-top {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    font-size: 2.6rem;
    letter-spacing: -.02em;
    line-height: 1.12;
}



.contact-mark {
    width: 6.4rem;
    min-width: 6.4rem;
    height: auto;
    line-height: 0;
}

.contact-mark img {
    width: 100%;
    height: auto;
    display: block;
    filter: invert(1);
}

.contact-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-left: 9.5rem;
}

.contact-email {
    color: var(--white);
    text-decoration: none;
    font-size: 4rem;
    letter-spacing: -.035em;
    line-height: 1.1;
}
.contact-email:hover {
    text-decoration: underline;
}
/* REDES SOCIALES — CÍRCULOS SUPERPUESTOS 2px
-------------------------------------------------- */

.social-icons {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 6rem;
    height: 6rem;
    flex: 0 0 6rem;
    background: var(--white);
    border-radius: 50%;
    overflow: hidden;
    text-decoration: none;
    margin-left: -0.2rem;
    position: relative;
    transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

.social-icons a:first-child {
    margin-left: 0;
}

.social-icons a:hover {
    transform: translateY(-0.5rem);
    z-index: 2;
}

.social-icons a img {
    display: block;
    width: 60%;
    height: 60%;
    object-fit: contain;
}

/* LIGHTBOX DE PROYECTOS
-------------------------------------------------- */

.project-lightbox {
    position: fixed;
    inset: 0;
    background: #fff;
    color: #000;
    z-index: 100;
    display: none;
}

.project-lightbox.is-open {
    display: block;
}

.lightbox-header {
    position: absolute;
    z-index: 4;
    top: 0;
    left: 0;
    right: 0;
    height: 12.5rem;
    padding: 4.2rem var(--side) 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    pointer-events: none;
}

.lightbox-logo {
    width: 16rem;
    max-height: 7rem;
}

.lightbox-close {
    margin-top: -.5rem;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: grid;
    place-items: center;
    width: 5.4rem;
    height: 5.4rem;
    pointer-events: auto;
}

.lightbox-close img {
    width: 3.4rem;
    height: 3.4rem;
}

.project-lightbox iframe {
    position: absolute;
    inset: 0;
    border: 0;
    width: 100%;
    height: 100%;
    background: #fff;
}

/* LOADER — ISOTIPO QUE SE REVELA DE ABAJO HACIA ARRIBA
-------------------------------------------------- */

html.is-loading,
html.is-loading body {
    overflow: hidden;
}

.site-loader {
    position: fixed;
    inset: 0;
    z-index: 250;
    display: grid;
    place-items: center;
    background: #000;
    transition: opacity .65s ease, visibility .65s ease;
}

.site-loader.is-complete {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-isotipo {
    position: relative;
    width: clamp(10rem, 10vw, 16rem);
    aspect-ratio: 90.53 / 55;
}

.loader-isotipo img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    filter: invert(1);
}

.loader-mark-muted {
    opacity: .25;
}

.loader-mark-solid {
    clip-path: inset(100% 0 0 0);
    will-change: clip-path;
}

/* FLECHA DE NAVEGACIÓN ENTRE SECCIONES
-------------------------------------------------- */

.scroll-cue {
    position: absolute;
    z-index: 26;
    bottom: 7.6vh;
    right: var(--side);
    width: 5.5rem;
    height: 5.5rem;
    padding: 0;
    cursor: pointer;
    border: 0;
    background: transparent;
    color: white;
    display: grid;
    place-items: center;
    will-change: opacity;
}

.scroll-cue img {
    display: block;
    width: 3.5rem;
    height: 3.5rem;
    filter: invert(1);
    transition: filter .22s ease;
    animation: scroll-cue-drop 1.8s ease-in-out infinite;
}

/* Flecha negra sobre las tarjetas blancas del portafolio. */
.scroll-cue.on-light img {
    filter: none;
}

.scroll-cue:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.scroll-cue.on-light:focus-visible {
    outline-color: #000;
}

@keyframes scroll-cue-drop {
    0%, 100% {
        transform: rotate(90deg) translateX(-.2rem);
    }
    50% {
        transform: rotate(90deg) translateX(1rem);
    }
}

/* BARRA LATERAL DE PROGRESO
-------------------------------------------------- */

.page-progress {
    position: absolute;
    z-index: 40;
    top: 50%;
    right: 2.6rem;
    transform: translateY(-50%);
    pointer-events: none;
    width: .3rem;
    height: 15rem;
    transition: opacity .2s ease;
}

.page-progress-track {
    position: relative;
    height: 100%;
    width: 100%;
    background: rgba(255,255,255,.27);
    border-radius: 10rem;
    overflow: hidden;
}

.page-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0%;
    background: var(--white);
    border-radius: 10rem;
}

.page-progress.on-light .page-progress-track {
    background: rgba(0,0,0,.20);
}

.page-progress.on-light .page-progress-fill {
    background: var(--black);
}

.has-open-lightbox .page-progress {
    opacity: 0;
}


/* TARJETA VER TODOS AL FINAL DE LOS CARRUSELES
-------------------------------------------------- */

.project-thumb-all {
    padding: 3.5rem;
    border: 0;
    color: var(--white);
    background: var(--black);
    font: inherit;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background .35s ease;
}

.view-all-eyebrow {
    position: relative;
    z-index: 1;
    font-size: 1.3rem;
    letter-spacing: .12em;
    line-height: 1.4;
    opacity: .65;
}

.view-all-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
    width: 100%;
}

.view-all-title {
    font-size: clamp(2.5rem, 3.3vw, 5rem);
    letter-spacing: -.045em;
    font-weight: 400;
    line-height: 1.06;
}

.view-all-arrow {
    flex: 0 0 5.5rem;
    width: 5.5rem;
    height: 5.5rem;
    display: grid;
    place-items: center;
    border: .1rem solid rgba(255,255,255,.45);
    border-radius: 50%;
    transition: transform .4s cubic-bezier(.22,1,.36,1), background .3s ease;
}

.view-all-arrow img {
    display: block;
    width: 3rem;
    height: 3rem;
    filter: invert(1);
}

@media (hover: hover) and (pointer: fine) {
    .project-thumb-all:hover .view-all-arrow {
        transform: translate(.4rem,-.4rem);
        background: rgba(255,255,255,.15);
    }
}

.project-thumb-all:focus-visible {
    outline: .3rem solid #4467df;
    outline-offset: -.5rem;
}

/* GALERÍA DIFERIDA, DETALLES Y NAVEGACIÓN DE REGRESO */

#galleryFrame {
    z-index: 1;
    visibility: hidden;
    pointer-events: none;
}

#projectFrame {
    z-index: 2;
}

.project-lightbox.view-gallery #galleryFrame {
    visibility: visible;
    pointer-events: auto;
}

.project-lightbox.view-gallery #projectFrame {
    visibility: hidden;
    pointer-events: none;
}

.project-lightbox.view-gallery-detail #galleryFrame {
    visibility: hidden;
    pointer-events: none;
}

.project-lightbox.view-gallery-detail #projectFrame {
    visibility: visible;
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
    .view-all-arrow,
    .project-thumb-all {
        transition: none;
    }
}



/* DETALLE DE PROYECTOS - WOOHU STUDIO
-------------------------------------------------- */

body.project-detail-page {
    margin: 0;
    background: #fff;
    color: #090909;
    font-family: var(--font-general);
}

/* Contenedor general */

.project-detail {
    margin: 0 auto;
    padding: 15rem var(--side) 12rem;
    max-width: 1600px;
}

/* Cabecera actual */

.project-detail h1 {
    font-weight: 400;
    font-size: clamp(4rem, 5vw, 8rem);
    letter-spacing: -.04em;
    line-height: 1.04;
    margin: 0;
}

.project-detail .category {
    font-size: 2.4rem;
    margin: 1.4rem 0 5rem;
}

/* Contenedor de bloques */

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Filas de imágenes, GIF y videos */

.detail-row {
    display: grid;
    width: 100%;
    gap: 2.5rem;
    min-width: 0;
}

/* Una imagen al 100% */

.detail-row--full {
    grid-template-columns: minmax(0, 1fr);
}

/* Dos imágenes iguales */

.detail-row--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    aspect-ratio: 2.5 / 1;
}

/* Tres imágenes iguales */

.detail-row--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    aspect-ratio: 3.8 / 1;
}

/* Primera imagen doble de ancho */

.detail-row--two-one {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    aspect-ratio: 2.5 / 1;
}

/* Segunda imagen doble de ancho */

.detail-row--one-two {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    aspect-ratio: 2.5 / 1;
}

/* Contenedor universal multimedia */

.detail-media {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 2.2rem;
    background: #d4d4d4;
}

/* Imágenes, GIF y videos */

.detail-media img,
.detail-media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Fila al 100%: conservar proporción original */

.detail-row--full .detail-media img,
.detail-row--full .detail-media video {
    height: auto;
    object-fit: contain;
}

/* Filas múltiples: altura igual para todos */

.detail-row:not(.detail-row--full) .detail-media {
    height: 100%;
}

/* BLOQUE IMAGEN + TEXTO 50 / 50
-------------------------------------------------- */

.detail-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
    width: 100%;
    align-items: stretch;
}

.detail-split .detail-media {
    aspect-ratio: 4 / 3;
}

.detail-split__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.8rem;
    padding: clamp(1rem, 3vw, 4rem);
}

.detail-split__text h2 {
    font-size: clamp(3rem, 3.5vw, 5rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -.04em;
    margin: 0;
}

.detail-split__text p {
    font-size: 2.2rem;
    line-height: 1.45;
    letter-spacing: -.015em;
    margin: 0;
}

/* BLOQUE DE TEXTO AL 100%
-------------------------------------------------- */

.detail-text {
    width: 100%;
    padding: 4.5rem 0;
}

.detail-text h2 {
    font-size: clamp(3.2rem, 4vw, 5.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -.04em;
    margin: 0 0 2.5rem;
}

.detail-text p {
    font-size: 2.4rem;
    line-height: 1.5;
    letter-spacing: -.015em;
    margin: 0;
}

.detail-text p + p {
    margin-top: 2rem;
}

/* Párrafo descriptivo existente */

.project-detail .caption {
    font-size: 2.2rem;
    line-height: 1.45;
    max-width: 80rem;
    margin: 4.5rem 0;
}

