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

:root {
    --font-general: "aptos", sans-serif;
    --black: #000;
    --white: #FFF;
    --side: clamp(8rem, 9vw, 16rem);
    --nav-edge: clamp(2.2rem, 2.8vw, 5rem);
    --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;
}

.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);
    }
}

.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;
}

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;
}


/* NICOLA IEVA — nueva experiencia sobre el sistema visual WooHu V4. */
:root{--size-lg:clamp(5rem,8.6vw,14rem);--size-md:clamp(2.6rem,3.35vw,5.4rem);--size-sm:clamp(1.5rem,1.65vw,2.3rem);--gradient:linear-gradient(90deg,#d50083 0%,#7e52bd 50%,#009fcb 100%);--hero-radius:4rem;--header-top:3.2rem;--control:4.8rem}
html{scrollbar-gutter:stable;scroll-behavior:auto}body{background:var(--white);color:var(--black)}body:not(.project-detail-page){overflow-x:clip}button,a{color:inherit}button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:2px solid #008fb9;outline-offset:4px}button[hidden],[hidden]{display:none!important}.site-header{position:fixed;z-index:50;top:var(--header-top);left:var(--nav-edge);right:var(--nav-edge);display:flex;justify-content:space-between;align-items:center;pointer-events:none;color:#000;transition:color .2s}.site-header.on-dark{color:#fff}.brand-logo{pointer-events:auto;width:17rem;aspect-ratio:235.79/60.37;position:relative;display:block}.brand-logo img{position:absolute;top:0;left:0;height:100%;transition:filter .2s}.brand-mark{width:22.05%;object-fit:contain;object-position:left center}.brand-word{width:100%;transition:opacity .25s,transform .25s,filter .2s!important}.site-header.is-small .brand-word{opacity:0;transform:translateX(-.5rem);pointer-events:none}.site-header.is-small .brand-logo{width:17rem;clip-path:inset(0 77% 0 0)}.site-header.on-dark img{filter:invert(1)}.circle-button{width:var(--control);height:var(--control);border:.1rem solid currentColor;border-radius:50%;background:transparent;display:grid;place-items:center;padding:0;cursor:pointer;transition:background .25s,color .25s,transform .25s;flex:none}.circle-button:hover{background:#000;color:#fff}.site-header.on-dark .circle-button:hover{background:#fff;color:#000}.language{pointer-events:auto;font-size:1.2rem;font-weight:600;letter-spacing:.025em}.hero-scene{height:235vh;position:relative}.hero-sticky{position:sticky;top:0;height:100vh;height:100dvh;overflow:hidden;display:grid;place-items:center;isolation:isolate;background:#fff}.hero-photo{position:absolute;inset:0;background:#000;overflow:hidden;isolation:isolate;transform-origin:center;will-change:transform,border-radius;z-index:2}.hero-base,.hero-lights,.light-frame,.hero-canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;display:block}.hero-lights{z-index:0}.light-frame{opacity:0;animation:lightloop 8s infinite linear;animation-fill-mode:both}.light-frame:nth-child(1){opacity:1;animation-delay:-8s}.light-frame:nth-child(2){animation-delay:-5.333s}.light-frame:nth-child(3){animation-delay:-2.666s}@keyframes lightloop{0%{opacity:1}33.333%{opacity:0}66.666%{opacity:0}100%{opacity:1}}.hero-base{z-index:1}.hero-canvas{z-index:2;pointer-events:none}.hero-photo.canvas-ready .hero-base{visibility:hidden}.hero-photo.paused .light-frame{animation-play-state:paused}.marquee{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;gap:0;z-index:1;overflow:hidden;opacity:0;pointer-events:none}.marquee-row{overflow:hidden;font-size:var(--size-lg);font-weight:300;line-height:.93;letter-spacing:-.045em;white-space:nowrap}.marquee-track{display:flex;width:max-content;will-change:transform}.marquee-track>span{display:inline-block;flex:none;padding-right:.14em}.marquee-track b{font-weight:700}.intro-section{min-height:0;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:6vh var(--side) 7.5vh;gap:5rem}.center-copy{font-size:var(--size-md);font-weight:300;line-height:1.18;letter-spacing:-.035em;text-align:center;max-width:100rem;margin:0 auto}.scroll-color{color:rgba(0,0,0,.3);font-weight:700}.scroll-color{width:min(100%,100rem)}.line-meter{position:absolute;visibility:hidden;pointer-events:none;white-space:nowrap;font-weight:700}.scroll-line{display:block;width:max-content;max-width:100%;margin-inline:auto;text-align:center;font-weight:700;line-height:inherit;white-space:nowrap;background-image:linear-gradient(90deg,var(--ink-0,#b3b3b3),var(--ink-1,#b3b3b3),var(--ink-2,#b3b3b3));background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.passion-section{position:relative;padding:6vh 0 clamp(12rem,31vh,34rem);overflow:hidden}.passion-content{display:flex;align-items:center;justify-content:center;padding:0 var(--side)}.passion-content h2{margin:0;text-align:center;font-size:clamp(4rem,7.8vw,12rem);letter-spacing:-.06em;line-height:.88;font-weight:300}.passion-line{display:block;white-space:nowrap;will-change:transform,filter,opacity}.passion-line:first-child{font-weight:700}.gradient-text{background-image:var(--gradient);background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.personal-section{min-height:0;display:grid;place-items:center;overflow:hidden;padding:0 var(--side) 0}.photo-fan{width:min(100%,120rem);height:clamp(29rem,48vw,67rem);position:relative;touch-action:pan-y;isolation:isolate}.personal-card{position:absolute;left:50%;top:44%;width:clamp(10rem,22vw,28rem);aspect-ratio:9/16;border-radius:3.2rem;overflow:hidden;box-shadow:none;cursor:pointer;touch-action:pan-y;user-select:none;will-change:transform;outline-offset:2px;background:#ddd}.personal-card img{width:100%;height:100%;display:block;object-fit:cover;pointer-events:none}.philosophy-section{min-height:0;display:grid;place-items:center;padding:clamp(5rem,9vh,10rem) var(--side) clamp(10rem,18vh,20rem);}.philosophy-section .center-copy{max-width:78rem}.portfolio-section{padding:0 var(--side) 5rem}.portfolio-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--thumb-gap)}.project-thumb{cursor:default;min-width:0}.project-thumb.has-detail{cursor:pointer}.project-thumb .thumb-placeholder{width:100%;height:100%;object-fit:cover;display:block}.thumb-action:focus-visible{outline:1px solid white}.more-wrap{display:flex;justify-content:center;padding:4.5rem 0 1rem;min-height:3rem}.more-button{width:5rem;height:5rem}.more-button img{width:2rem;height:2rem;transition:filter .25s}.more-button:hover img{filter:invert(1)}.footer{margin:0 var(--side) 0;min-height:clamp(35rem,50vh,65rem);background:#000;color:#fff;border-radius:4rem 4rem 0 0;padding:8rem 4rem 3.5rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4rem;text-align:center}.footer h2{font-size:var(--size-md);font-weight:300;line-height:1.1;letter-spacing:-.04em;margin:0}.footer h2 span,.footer h2 strong{display:block}.contacts{display:flex;align-items:center;justify-content:center;gap:2.5rem;flex-wrap:wrap}.magnetic-area{padding:1.8rem 1.3rem}.magnetic-link{display:block;font-size:var(--size-sm);color:#fff;text-underline-offset:.3em;transition:color .2s;will-change:transform}.magnetic-link.whatsapp:hover,.magnetic-area:hover .whatsapp{color:#25d366}.brands{--pill-size:6rem;--pill-overlap:.2rem;--right-expanded:19rem;--left-expanded:16rem;position:relative;width:calc(2 * var(--pill-size) - var(--pill-overlap));height:6rem;display:block;margin-top:1rem}.brand-pill{height:6rem;width:6rem;border-radius:6rem;position:absolute;background:#fff;display:flex;align-items:center;overflow:hidden;transition:width .5s cubic-bezier(.22,1,.36,1);text-decoration:none}.brand-pill.left{right:calc(var(--pill-size) - var(--pill-overlap));z-index:1;transition:width .5s cubic-bezier(.22,1,.36,1),right .5s cubic-bezier(.22,1,.36,1)}.brand-pill.right{right:0;z-index:2}.brand-pill.left:is(:hover,:focus-visible){width:var(--left-expanded);z-index:3}.brand-pill.right:is(:hover,:focus-visible){width:var(--right-expanded)}.pill-icon{position:absolute;inset:0;width:6rem;height:6rem;object-fit:contain;padding:1rem;transition:opacity .2s}.brand-pill.left .pill-icon{left:auto;right:0}.pill-logo{position:absolute;width:15rem;height:4.5rem;object-fit:contain;opacity:0;transition:opacity .2s}.left .pill-logo{right:2rem;width:12rem;height:3.6rem}.right .pill-logo{left:2rem}.brand-pill:hover .pill-icon,.brand-pill:focus-visible .pill-icon{opacity:0}.brand-pill:hover .pill-logo,.brand-pill:focus-visible .pill-logo{opacity:1;transition-delay:.15s}.loader-isotipo{aspect-ratio:52/60.37;width:clamp(7rem,7vw,11rem)}.direct-detail{position:absolute;inset:0;overflow-y:auto;overscroll-behavior:contain;background:#fff}.lightbox-header{background:none;padding-left:var(--nav-edge);padding-right:var(--nav-edge);padding-top:var(--header-top);height:auto;align-items:center}.lightbox-brand{pointer-events:none}.lightbox-header.is-small .brand-word{opacity:0;transform:translateX(-.5rem)}.lightbox-header.is-small .brand-logo{clip-path:inset(0 77% 0 0)}.lightbox-logo{height:auto;object-fit:contain}.project-lightbox iframe{overscroll-behavior:contain}.has-open-lightbox{overflow:hidden}.has-open-lightbox body{overflow:hidden}.direct-detail .detail-media img{display:block}.preview-link{margin-top:3rem;display:inline-block;font-size:var(--size-sm)}
/* Crossfade without a dark frame: first photograph remains underneath both overlays. */
.light-frame:nth-child(1){animation:none;opacity:1}.light-frame:nth-child(2){animation:light-second 8s linear infinite;animation-delay:0s}.light-frame:nth-child(3){animation:light-third 8s linear infinite;animation-delay:0s}@keyframes light-second{0%,17%{opacity:0}36%,63%{opacity:1}70%,100%{opacity:0}}@keyframes light-third{0%,43%{opacity:0}63%,77%{opacity:1}100%{opacity:0}}

/* V2: márgenes fijos, fluid reveal, perfil profesional y frase. */
/* Marquesina a todo el viewport. */
.hero-lights{filter:saturate(1.6) contrast(1.08) brightness(1.12)}
.footer-bottom{display:flex;align-items:center;justify-content:space-between;width:100%;gap:2rem;padding-right:0;min-height:6rem;margin-top:2rem}
.profile-links{display:flex;align-items:center;gap:2rem;text-align:left;flex-wrap:wrap;font-size:clamp(1.2rem,1.2325vw,1.7rem);font-weight:300}
.profile-label{white-space:nowrap}.profile-link{display:inline-flex;align-items:center;gap:.8rem;text-decoration:none;white-space:nowrap;transition:color .2s;cursor:pointer}.profile-link img{width:2.8rem;height:3rem;object-fit:contain;transition:transform .25s,filter .25s}.profile-link[aria-disabled=true]{cursor:default}.profile-link:hover,.profile-link:focus-visible{color:#fff}.profile-link:hover img,.profile-link:focus-visible img{transform:translateY(.35rem)}.footer .brands{margin:0;flex:none}.footer h2 strong{font-weight:700}@media(max-width:1100px){.footer-bottom{flex-direction:column;padding-right:0;gap:2.5rem}.profile-links{justify-content:center;text-align:center}.footer .brands{margin:0 auto}}

/* V3: las marcas comparten el margen interno. La derecha crece dentro del footer. */
@media(min-width:1101px){.brands:has(.brand-pill.right:is(:hover,:focus-visible)) .brand-pill.left{right:calc(var(--right-expanded) - var(--pill-overlap))}}
@media(max-width:1100px){.brand-pill.right{right:auto;left:calc(var(--pill-size) - var(--pill-overlap))}.footer-bottom{margin-top:2rem}}
@media(hover:none) and (pointer:coarse){.brand-pill.left:hover:not(:focus-visible),.brand-pill.right:hover:not(:focus-visible){width:var(--pill-size)}.brands:has(.brand-pill.right:hover:not(:focus-visible)) .brand-pill.left{right:calc(var(--pill-size) - var(--pill-overlap))}}
