/* ============================================================
   CARBON — sistema visual
   Colores y tipografías tomados de Carbon Brand Guidelines 2026
   ============================================================ */
@font-face { font-family: "Noreva"; src: url("/carbon-proposal/media/fonts/Noreva-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Noreva Outline"; src: url("/carbon-proposal/media/fonts/Noreva-Outline.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Helvetica Neue Carbon"; src: url("/carbon-proposal/media/fonts/HelveticaNeueLight.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Helvetica Neue Carbon"; src: url("/carbon-proposal/media/fonts/HelveticaNeueRoman.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Helvetica Neue Carbon"; src: url("/carbon-proposal/media/fonts/HelveticaNeueMedium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Helvetica Neue Carbon"; src: url("/carbon-proposal/media/fonts/HelveticaNeueBold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
    --orange: #F56E0F;
    --orange-deep: #D85E07;
    --carbon: #151419;
    --ink: #000;
    --graphite: #262626;
    --night: #1C1B1F;
    --fog: #878787;
    --paper: #FBFBFB;
    --white: #fff;

    --f-display: "Noreva", "Outfit", "Avenir Next", system-ui, sans-serif;
    --f-outline: "Noreva Outline", var(--f-display);
    --f-text: "Helvetica Neue Carbon", "Helvetica Neue", Helvetica, Arial, sans-serif;

    /* escala tipográfica 1.333 (cuarta justa) */
    --t-sm: .875rem;
    --t-base: 1.0625rem;
    --t-md: 1.333rem;
    --t-lg: clamp(1.5rem, 1.1rem + 1.6vw, 2.37rem);
    --t-xl: clamp(2.2rem, 1.2rem + 4vw, 4.2rem);
    --t-xxl: clamp(3.2rem, 1rem + 9vw, 9.5rem);
    --t-giant: clamp(4rem, 1rem + 14vw, 16rem);

    --gutter: clamp(1.25rem, 4vw, 3.5rem);
    --section: clamp(5rem, 12vw, 10rem);
    --ease: cubic-bezier(.2, .8, .1, 1);
    --ease-in-out: cubic-bezier(.75, 0, .25, 1);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
    margin: 0; background: var(--carbon); color: var(--paper);
    font: 400 var(--t-base)/1.55 var(--f-text);
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
    overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
::selection { background: var(--orange); color: var(--white); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--orange); color: var(--white); padding: .7rem 1rem; border-radius: 999px; }
.skip:focus { top: 1rem; }

.display { font-family: var(--f-display); font-size: var(--t-xxl); line-height: .92; letter-spacing: -.02em; }
.display--xl { font-size: var(--t-giant); line-height: .86; letter-spacing: -.03em; }

/* ---------- botones ---------- */
.btn {
    position: relative; display: inline-flex; align-items: center; gap: .6rem;
    padding: 1.05rem 1.8rem; border-radius: 999px; overflow: hidden; isolation: isolate;
    background: var(--carbon); color: var(--white); font-weight: 700; font-size: var(--t-base);
    transition: transform .4s var(--ease);
}
.btn::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
    background: var(--white); transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover, .btn:focus-visible { color: var(--carbon); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn--dark { background: var(--carbon); }

.pill {
    display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.2rem;
    border: 1px solid currentColor; border-radius: 999px; font-size: var(--t-sm); font-weight: 500;
    transition: background .3s, color .3s, border-color .3s;
}
.pill svg { width: 1em; height: 1em; }
.pill:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }
.pill--light { color: var(--white); backdrop-filter: blur(8px); background: rgb(0 0 0 / .25); }

.link-big {
    display: inline-flex; align-items: center; gap: 1rem; margin-top: 3rem;
    font-family: var(--f-display); font-size: var(--t-lg);
    border-bottom: 2px solid currentColor; padding-bottom: .2rem;
    transition: gap .4s var(--ease);
}
.link-big::after { content: ""; width: .55em; height: .55em; border-radius: 50%; background: currentColor; transition: background .3s, transform .4s var(--ease); }
.link-big:hover { gap: 1.6rem; }
.link-big:hover::after { transform: scale(1.4); }
.link-big--light { color: var(--paper); }
.link-big--light:hover::after { background: var(--orange); }

/* ---------- navegación ---------- */
.nav {
    position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between;
    padding: 1.2rem var(--gutter); color: var(--white);
    background: linear-gradient(to bottom, rgb(0 0 0 / .96), rgb(0 0 0 / .82) 70%, rgb(0 0 0 / .3));
    transition: transform .5s var(--ease);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo svg { width: clamp(7rem, 10vw, 9rem); height: auto; color: var(--white); }
.nav__links { display: flex; gap: 2.2rem; align-items: center; font-weight: 500; }
.nav__links a { position: relative; padding: .3rem 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { border: 1px solid currentColor; border-radius: 999px; padding: .55rem 1.1rem !important; }
.nav__cta::after { display: none; }
.nav__burger { display: none; width: 44px; height: 44px; position: relative; }
.nav__burger i { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .4s var(--ease); }
.nav__burger i:first-of-type { top: 17px; } .nav__burger i:last-of-type { top: 25px; }
.nav__burger[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }

.menu {
    position: fixed; inset: 0; z-index: 45; background: var(--orange); color: var(--white);
    display: flex; flex-direction: column; justify-content: space-between; padding: 7rem var(--gutter) 2.5rem;
    clip-path: circle(0 at calc(100% - 2.6rem) 2.6rem); transition: clip-path .7s var(--ease-in-out);
}
.menu.is-open { clip-path: circle(150vmax at calc(100% - 2.6rem) 2.6rem); }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font-family: var(--f-display); font-size: clamp(3rem, 15vw, 6rem); line-height: 1.02; }
.menu__foot { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; font-weight: 500; }

/* ---------- intro (solo primera visita) ---------- */
.intro {
    position: fixed; inset: 0; z-index: 90; background: var(--orange); display: grid; place-items: center;
    pointer-events: none; visibility: hidden;
}
.intro__logo { width: min(70vw, 60rem); height: auto; color: var(--white); --logo-ring: var(--carbon); }
.is-intro .intro { visibility: visible; }
.intro.is-leaving { clip-path: circle(0 at var(--dx, 50%) var(--dy, 50%)); transition: clip-path 1.1s var(--ease-in-out); }
.intro.is-leaving .intro__logo { opacity: 0; transform: scale(.96); transition: opacity .35s, transform .6s var(--ease); }
.intro__logo { animation: intro-in .8s var(--ease) both; }
@keyframes intro-in { from { opacity: 0; transform: translateY(4%) scale(.98); } }

/* ---------- hero: el video dentro del "°" ---------- */
.hero { position: relative; background: var(--ink); }
.js .hero { height: 260vh; height: 260svh; }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; --p: 0; --r: 150vmax; --cx: 50%; --cy: 50%; }
.hero__lens { position: absolute; inset: 0; clip-path: circle(var(--r) at var(--cx) var(--cy)); will-change: clip-path; background: var(--ink); }
.hero__video { width: 100%; height: 100%; object-fit: cover; transform: translate(var(--vx, 0), var(--vy, 0)) scale(var(--vs, 1)); will-change: transform; }
.hero__ring {
    position: absolute; left: 0; top: 0; width: 200px; height: 200px; margin: -100px 0 0 -100px; border-radius: 50%;
    border: 22px solid var(--orange); opacity: var(--p);
    transform: translate(var(--cx), var(--cy)) scale(calc(var(--rn) / 100));
    pointer-events: none; will-change: transform, opacity;
}
.hero__manifesto {
    position: absolute; left: var(--gutter); top: 50%; width: min(46vw, 44rem);
    transform: translateY(calc(-50% + (1 - var(--m, 0)) * 3rem)); opacity: var(--m, 0);
}
.hero__manifesto h1 { font-size: var(--t-xxl); }
.hero__manifesto p { margin-top: 1.6rem; color: var(--fog); max-width: 30ch; font-size: var(--t-md); line-height: 1.35; }
.hero__bar {
    position: absolute; left: var(--gutter); right: var(--gutter); bottom: 1.6rem; display: flex; justify-content: space-between; align-items: end;
    gap: 1rem; color: var(--white); opacity: calc(1 - var(--p) * 3); font-weight: 500;
}
.hero__actions { display: flex; gap: 1.5rem; align-items: center; }
.hero__scroll { display: inline-flex; align-items: center; gap: .6rem; font-size: var(--t-sm); }
.hero__scroll::before { content: ""; width: 1px; height: 2.4rem; background: linear-gradient(var(--orange) 50%, transparent 0) 0 0 / 1px 200%; animation: drip 1.8s infinite var(--ease); }
@keyframes drip { to { background-position: 0 -100%; } }
.no-js .hero__manifesto { position: relative; transform: none; opacity: 1; padding: 4rem var(--gutter); width: auto; left: 0; top: 0; }
.no-js .hero__stage { position: relative; height: auto; }
.no-js .hero__lens { position: relative; height: 100svh; clip-path: none; }
.no-js .hero__ring { display: none; }

@media (orientation: portrait) {
    /* el video tiene fondo negro: en vertical se muestra completo sin recortar el texto */
    .hero__video { object-fit: contain; }
}
@media (max-width: 760px) {
    .hero__manifesto { left: var(--gutter); right: var(--gutter); width: auto; top: auto; bottom: 9vh; transform: translateY(calc((1 - var(--m, 0)) * 2rem)); }
    .hero__manifesto h1 { font-size: clamp(2.6rem, 12vw, 4rem); }
    .hero__manifesto p { font-size: var(--t-base); margin-top: 1rem; }
    .hero__ring { border-width: 26px; }
    .hero__bar p { display: none; }
}

/* ---------- nosotros ---------- */
.about {
    background: var(--orange); color: var(--white); padding: var(--section) var(--gutter);
    display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(2rem, 6vw, 7rem); align-items: center;
}
.about__lead { font-family: var(--f-display); font-size: var(--t-xl); line-height: 1.08; letter-spacing: -.01em; max-width: 22ch; }
.about .link-big::after { background: var(--carbon); }
.about__phone { position: relative; margin: 0; justify-self: end; width: min(100%, 24rem); }
.about__phone video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 2rem; background: var(--carbon); }
.about__phone figcaption { margin-top: 1rem; font-weight: 500; }
.about__sound {
    position: absolute; right: 1rem; bottom: 1rem; padding: .55rem .9rem; border-radius: 999px; font-size: var(--t-sm); font-weight: 500;
    background: rgb(0 0 0 / .55); color: var(--white); backdrop-filter: blur(6px);
}
.about__phone .about__sound { bottom: 3.6rem; }
.about__sound[aria-pressed="true"] { background: var(--orange); }

/* ---------- página nosotros ---------- */
.page-about { background: var(--carbon); }
.ab { --gutter: clamp(1.25rem, 4vw, 5rem); overflow: hidden; }
.ab-progress { position: fixed; top: 0; left: 0; z-index: 50; height: 3px; width: calc(var(--p, 0) * 100%); background: var(--orange); }
.ab-eyebrow { font-size: var(--t-sm); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--orange); margin-bottom: 1rem; }
.ab-hero { position: relative; min-height: 100svh; padding: 10rem var(--gutter) 5rem; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.ab-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 85% 15%, rgb(245 110 15 / .35), transparent 70%); }
.ab-giant { font-family: var(--f-display); font-size: clamp(5.5rem, 1rem + 22vw, 22rem); line-height: .95; letter-spacing: -.045em; }
.ab-giant .ab-line .line { padding: .14em 0 .1em; }
.ab-line { display: block; }
.ab-line { translate: clamp(0px, calc(var(--sy, 0) * .03px), 28px) 0; }
.ab-line--outline { font-family: var(--f-outline); color: var(--orange); translate: clamp(-12px, calc(var(--sy, 0) * -.03px), 0px) 0; }
.ab-hero__lead { margin-top: clamp(2rem, 4vw, 3.5rem); max-width: 34ch; font-size: var(--t-md); line-height: 1.35; color: rgb(251 251 251 / .85); }
.ab-scroll { position: absolute; right: var(--gutter); bottom: 2rem; font-size: var(--t-sm); letter-spacing: .14em; text-transform: uppercase; color: var(--fog); writing-mode: vertical-rl; }
.ab-scroll::after { content: ""; display: block; width: 1px; height: 3rem; margin: .8rem auto 0; background: var(--orange); animation: ab-drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes ab-drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.ab-band { background: var(--orange); color: var(--carbon); overflow: hidden; transform: rotate(-2deg); margin: clamp(3rem, 6vw, 5rem) calc(var(--gutter) * -1); padding: 1.2rem 0; }
.ab-band__track { display: flex; width: max-content; animation: ab-marquee 26s linear infinite; translate: calc(var(--sy, 0) * -.5px) 0; }
.ab-band span { font-family: var(--f-display); font-size: clamp(2rem, 1rem + 3vw, 3.6rem); line-height: 1; white-space: nowrap; padding-right: .4em; }
.ab-band i { font-style: normal; color: var(--white); }
@keyframes ab-marquee { to { transform: translateX(-50%); } }

.ab-manifest { padding: clamp(4rem, 9vw, 8rem) var(--gutter); display: grid; gap: clamp(4rem, 8vw, 7rem); }
.ab-label { font-size: var(--t-sm); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--fog); margin-bottom: 1.5rem; }
.ab-statement__text { font-family: var(--f-display); font-size: clamp(2.4rem, 1rem + 4.4vw, 5.6rem); line-height: .98; letter-spacing: -.02em; max-width: 22ch; }
.ab-statement--alt { justify-self: end; text-align: right; }
.ab-statement--alt .ab-statement__text { margin-left: auto; }
.ab-words .ws { display: inline-block; }
.js [data-words] .ws { opacity: .16; transition: opacity .35s var(--ease); }
.js [data-words] .ws.is-on { opacity: 1; }

.ab-photo { position: relative; margin: 0 var(--gutter); height: min(80svh, 52rem); overflow: hidden; border-radius: 2rem; }
.ab-photo__inner { position: absolute; left: 0; right: 0; top: -12%; height: 124%; will-change: transform; }
.ab-photo__inner img, .ab-photo__placeholder { position: absolute; inset: 0; width: 100%; height: 100%; }
.ab-photo__inner img { object-fit: cover; }
.ab-photo__placeholder { display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, #2a2930, var(--carbon)); }
.ab-photo__placeholder img { position: static; width: 26%; height: auto; object-fit: contain; }
.ab-photo figcaption { position: absolute; left: 1.5rem; bottom: 1.5rem; padding: .45rem .9rem; border-radius: 999px; background: var(--orange); color: var(--white); font-weight: 700; font-size: var(--t-sm); }

/* equipo: dos personas en círculo, con anillo que gira y foto que se abre al entrar */
.ab-team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); padding: clamp(3rem, 7vw, 6rem) var(--gutter); justify-items: center; text-align: center; }
.ab-person { display: grid; justify-items: center; gap: .6rem; max-width: 24rem; }
.ab-person__ring { position: relative; width: clamp(9.5rem, 22vw, 17rem); aspect-ratio: 1; margin-bottom: 1.4rem; }
.ab-person__ring::before { content: ""; position: absolute; inset: -16px; border-radius: 50%; border: 2px dashed rgb(245 110 15 / .7); animation: ab-spin 20s linear infinite; }
.ab-person:hover .ab-person__ring::before { animation-duration: 6s; }
@keyframes ab-spin { to { transform: rotate(360deg); } }
.ab-person__img { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 30% 20%, #2a2930, var(--night)); display: grid; place-items: center; }
.ab-person__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ab-person__img span { font-family: var(--f-display); font-size: clamp(2.5rem, 5vw, 4rem); color: var(--orange); }
.ab-person:hover .ab-person__img img { transform: scale(1.08); }
.ab-person h3 { font-family: var(--f-display); font-size: var(--t-lg); line-height: 1; }
.ab-person__role { font-size: var(--t-sm); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.ab-person__bio { color: var(--fog); font-size: var(--t-base); line-height: 1.5; max-width: 34ch; }
.js .ab-person__img { clip-path: circle(0% at 50% 50%); transition: clip-path 1.3s var(--ease) var(--d, 0ms); }
.js .ab-person.is-in .ab-person__img { clip-path: circle(75% at 50% 50%); }
.js .ab-person .ab-person__ring::before { opacity: 0; transition: opacity .8s var(--ease) calc(var(--d, 0ms) + 900ms); }
.js .ab-person.is-in .ab-person__ring::before { opacity: 1; }
@media (max-width: 620px) { .ab-team { gap: 1.5rem; } .ab-person__ring { margin-bottom: 1rem; } }
.ab-goals { padding: clamp(5rem, 10vw, 9rem) var(--gutter); }
.ab-section-title { font-family: var(--f-display); font-size: clamp(3.2rem, 1rem + 7vw, 8rem); line-height: .85; letter-spacing: -.03em; margin-bottom: clamp(3rem, 6vw, 5rem); }
.ab-goals__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--graphite); }
.ab-goal { position: relative; isolation: isolate; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 1rem clamp(1.5rem, 4vw, 4rem); align-items: center; padding: clamp(1.6rem, 3vw, 2.6rem) clamp(.5rem, 1.5vw, 1.5rem); border-bottom: 1px solid var(--graphite); overflow: hidden; transition: color .4s; }
.ab-goal::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.ab-goal:hover::before { transform: scaleX(1); }
.ab-goal:hover { color: var(--carbon); }
.ab-goal__n { font-family: var(--f-outline); font-size: clamp(3.5rem, 2rem + 5vw, 7rem); line-height: .8; color: var(--orange); transition: color .4s; }
.ab-goal:hover .ab-goal__n { color: var(--carbon); }
.ab-goal h3 { font-family: var(--f-display); font-size: clamp(2rem, 1rem + 3vw, 3.8rem); line-height: 1; letter-spacing: -.01em; }
.ab-goal p { font-size: var(--t-md); line-height: 1.3; color: var(--fog); transition: color .4s; }
.ab-goal:hover p { color: var(--carbon); }

.ab-video { position: relative; margin: 0 var(--gutter) clamp(4rem, 8vw, 7rem); aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2rem; background: var(--night); }
.ab-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ab-video figcaption { position: absolute; left: 1.2rem; bottom: 1.2rem; padding: .45rem .9rem; border-radius: 999px; background: var(--carbon); font-size: var(--t-sm); }
.ab-video .about__sound { position: absolute; right: 1.2rem; bottom: 1.2rem; z-index: 1; }

.ab-cta { margin: 0 var(--gutter) var(--section); padding: clamp(3rem, 7vw, 6rem); border-radius: 2.5rem; background: var(--orange); color: var(--carbon); display: grid; gap: 2rem; justify-items: start; }
.ab-cta__title { font-size: clamp(5rem, 2rem + 14vw, 15rem); line-height: .8; letter-spacing: -.04em; }
.ab-cta__title span { color: var(--white); }

/* revelado: la foto entra con zoom */
.js .ab-photo__inner img, .js .ab-video video { scale: 1.18; transition: transform 1.4s var(--ease), scale 2.2s var(--ease); }
.js .ab-photo.is-in .ab-photo__inner img, .js .ab-video.is-in video { scale: 1; }
@media (max-width: 900px) {
    .ab-statement--alt { justify-self: start; text-align: left; }
    .ab-statement--alt .ab-statement__text { margin-left: 0; }
    .ab-goal { grid-template-columns: auto 1fr; }
    .ab-goal p { grid-column: 1 / -1; }
    .ab-scroll { display: none; }
}

/* ---------- portafolio ---------- */
.work { padding: var(--section) var(--gutter); background: var(--carbon); position: relative; }
.work__head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.work__head p { color: var(--fog); max-width: 26ch; font-size: var(--t-md); line-height: 1.35; }
.work__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.work__item { min-width: 0; }
.work__item--lead, .work__item:only-child { grid-column: 1 / -1; }
.work__grid:has(.work__item--lead) .work__item:last-child:nth-child(even) { grid-column: 1 / -1; }
.work__link { display: block; height: 100%; }
.work__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 1.25rem; background: var(--night); isolation: isolate; }
.work__item--lead .work__media, .work__item:only-child .work__media, .work__grid:has(.work__item--lead) .work__item:last-child:nth-child(even) .work__media { aspect-ratio: 16 / 8; }
.work__media::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(to top, rgb(21 20 25 / .9) 0%, rgb(21 20 25 / .15) 55%, rgb(21 20 25 / 0) 100%);
}
.work__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); z-index: -2; }
.work__info { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(1.25rem, 2.5vw, 2rem); display: grid; gap: .7rem; }
.work__title {
    font-family: var(--f-display); font-size: clamp(1.6rem, 1rem + 1.8vw, 2.6rem); line-height: 1; letter-spacing: -.01em;
    transition: transform .6s var(--ease), color .3s;
}
.work__item--lead .work__title { font-size: clamp(2.2rem, 1rem + 4vw, 4.5rem); }
.work__meta { display: flex; flex-wrap: wrap; gap: .25rem 0; color: var(--fog); font-size: var(--t-sm); }
.work__meta > span + span::before { content: "/"; margin: 0 .6rem; color: var(--graphite); }
.work__meta > span:first-child { color: var(--paper); }
@media (hover: hover) and (pointer: fine) {
    .work__link:hover .work__media img { transform: scale(1.05); }
    .work__link:hover .work__title { color: var(--accent); transform: translateY(-.3rem); }
    .work__link .work__media { box-shadow: inset 0 0 0 0 var(--accent); transition: box-shadow .5s var(--ease); }
    .work__link:hover .work__media { box-shadow: inset 0 0 0 2px var(--accent); }
}
@media (max-width: 620px) {
    .work__grid { grid-template-columns: 1fr; }
    .work__item--lead .work__media, .work__item:only-child .work__media, .work__grid:has(.work__item--lead) .work__item:last-child:nth-child(even) .work__media { aspect-ratio: 4 / 5; }
    .work__head { flex-direction: column; align-items: start; }
}

/* dinámica: inclinación 3D que sigue al cursor, reflejo de luz y entrada escalonada */
.js .work__item[data-reveal] .work__media img, .js .pcard[data-reveal] img { scale: 1.2; transition: transform 1.2s var(--ease), scale 1.8s var(--ease); }
.js .work__item.is-in .work__media img, .js .pcard.is-in img { scale: 1; }
.work__media, .pcard__media { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), box-shadow .5s var(--ease); transform-style: preserve-3d; }
.work__media::before, .pcard__media::before {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .4s;
    background: radial-gradient(circle at var(--mx, 50%) 30%, rgb(255 255 255 / .22), transparent 55%);
}
.work__link:hover .work__media::before, .pcard a:hover .pcard__media::before { opacity: 1; }
.work__link:hover .work__media, .pcard a:hover .pcard__media { box-shadow: 0 30px 60px -30px rgb(0 0 0 / .7); }
.pcard a { transition: transform .5s var(--ease); }
.pcard__num { transform: translateZ(30px); }
.work__info { transform: translateZ(30px); }

/* carga de proyectos: foto que se abre desde un círculo, barrido naranja, texto que enfoca y brillo mientras carga */
.work__item, .pcard { position: relative; }
.work__link, .pcard a { position: relative; isolation: isolate; }
.work__media, .pcard__media {
    background: linear-gradient(110deg, var(--night) 30%, #2c2b33 50%, var(--night) 70%) 0 0 / 220% 100%;
    animation: work-shimmer 1.8s linear infinite;
}
@keyframes work-shimmer { to { background-position: -220% 0; } }
.js .work__item[data-reveal], .js .pcard[data-reveal] {
    opacity: 1; transform: none; transform-origin: 50% 100%;
    transition: opacity 1s var(--ease) var(--d, 0ms), transform 1.5s var(--ease) var(--d, 0ms);
}
.js .work__item[data-reveal]:not(.is-in), .js .pcard[data-reveal]:not(.is-in) {
    opacity: 0; transform: perspective(1200px) translateY(7rem) rotateX(22deg) scale(.92);
}
.js .work__item .work__media, .js .pcard .pcard__media { clip-path: circle(0% at 50% 62%); transition: clip-path 1.3s var(--ease) var(--d, 0ms); }
.js .work__item.is-in .work__media, .js .pcard.is-in .pcard__media { clip-path: circle(150% at 50% 62%); }
.js .work__item .work__info, .js .pcard .pcard__body { opacity: 0; transform: translateY(2.5rem); filter: blur(10px); transition: opacity .9s var(--ease), transform 1.1s var(--ease), filter .9s var(--ease); transition-delay: calc(var(--d, 0ms) + 500ms); }
.js .work__item.is-in .work__info, .js .pcard.is-in .pcard__body { opacity: 1; transform: none; filter: none; }
.js .work__item .work__media img, .js .pcard .pcard__media img { transition: scale 2s var(--ease), transform 1.2s var(--ease); }
.js .work__item.is-in .work__media img, .js .pcard.is-in .pcard__media img { scale: 1; }

/* ---------- servicios ---------- */
.services { background: var(--paper); color: var(--carbon); padding: clamp(4rem, 8vw, 6.5rem) var(--gutter); overflow: hidden; }
.services__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.services__head h2 { font-size: clamp(3.5rem, 1.5rem + 7vw, 7.5rem); line-height: .85; letter-spacing: -.03em; }
.services__head p { font-size: var(--t-md); line-height: 1.3; max-width: 30ch; color: var(--graphite); }

.services__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.75rem, 1.5vw, 1rem); counter-reset: svc; }
.service { counter-increment: svc; position: relative; isolation: isolate; overflow: hidden; border-radius: 1.5rem; background: var(--carbon); color: var(--paper); }
.service::before {
    content: ""; position: absolute; inset: 0; z-index: -1; background: var(--orange);
    transform: translateY(101%); transition: transform .65s var(--ease);
}
.service:hover::before, .service.is-open::before { transform: none; }
.service__row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto; gap: .6rem 1rem; padding: clamp(1.3rem, 2.4vw, 2rem); text-align: left; }
.service__row::before {
    content: counter(svc, decimal-leading-zero); grid-column: 2; grid-row: 1; justify-self: end;
    font-family: var(--f-outline); font-size: clamp(3.5rem, 6vw, 5.5rem); line-height: .8; color: var(--orange); transition: color .4s;
}
.service__title { grid-column: 1; grid-row: 1; align-self: start; font-family: var(--f-display); font-size: clamp(1.7rem, 1rem + 1.8vw, 2.6rem); line-height: .98; letter-spacing: -.01em; transition: color .4s; }
.service__summary { grid-column: 1 / -1; grid-row: 2; align-self: end; color: var(--fog); max-width: 36ch; line-height: 1.35; transition: color .4s; }
.service__icon { grid-column: 2; grid-row: 3; justify-self: end; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1.5px solid currentColor; position: relative; transition: transform .5s var(--ease), background .3s, color .3s; }
.service__icon::before, .service__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1rem; height: 1.5px; background: currentColor; translate: -50% -50%; }
.service__icon::after { rotate: 90deg; transition: rotate .4s var(--ease); }
.service__body { padding: 0 clamp(1.3rem, 2.4vw, 2rem) clamp(1.3rem, 2.4vw, 2rem); }
.service__body p { color: rgb(251 251 251 / .85); margin-bottom: 1rem; line-height: 1.45; max-width: 44ch; }
.service__body ul { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.service__body li { padding: .4rem .85rem; border-radius: 999px; background: var(--carbon); color: var(--white); font-size: var(--t-sm); }
.service__body .pill { display: inline-block; border: 1px solid var(--paper); color: var(--paper); }
.service__body .pill:hover { background: var(--paper); color: var(--carbon); }
.service:hover .service__title, .service.is-open .service__title { color: var(--white); }
.service:hover .service__summary, .service.is-open .service__summary { color: rgb(251 251 251 / .9); }
.service:hover .service__row::before, .service.is-open .service__row::before { color: var(--white); }
.service.is-open .service__icon { background: var(--white); color: var(--orange); }
.service.is-open .service__icon::after { rotate: 0deg; }

.process { list-style: none; counter-reset: step; margin: clamp(3rem, 6vw, 4.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.process li { counter-increment: step; padding-top: 1rem; border-top: 2px solid var(--carbon); display: grid; gap: .35rem; align-content: start; }
.process li::before { content: counter(step, decimal-leading-zero); font-family: var(--f-outline); font-size: var(--t-lg); color: var(--orange); line-height: 1; }
.process b { font-size: var(--t-md); }
.process span { color: var(--graphite); font-size: var(--t-sm); line-height: 1.4; }
@media (max-width: 900px) {
    .services__head { grid-template-columns: 1fr; }
    .services__list { grid-template-columns: 1fr; }
    .process { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* ---------- clientes ---------- */
.clients { background: var(--carbon); padding: clamp(3rem, 6vw, 5rem) 0; overflow: hidden; border-top: 1px solid var(--graphite); }
.clients__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.clients:hover .clients__track { animation-play-state: paused; }
.clients ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.clients li { display: flex; align-items: center; font-family: var(--f-display); font-size: var(--t-xl); color: var(--fog); white-space: nowrap; transition: color .3s; }
.clients li:hover { color: var(--paper); }
.clients li::after { content: ""; width: .32em; height: .32em; margin: 0 clamp(1.5rem, 4vw, 3.5rem); border-radius: 50%; border: .09em solid var(--orange); }
.clients img { height: clamp(2rem, 4vw, 3rem); width: auto; filter: grayscale(1) brightness(2); opacity: .75; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- contacto ---------- */
.contact {
    background: var(--orange); color: var(--white); padding: var(--section) var(--gutter);
    display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(3rem, 6vw, 7rem); align-items: start;
}
.contact .display--xl { font-size: clamp(3.4rem, 7vw, 9rem); }
.contact__intro { position: sticky; top: 7rem; }
.contact__intro > p { margin-top: 1.8rem; font-size: var(--t-md); line-height: 1.35; max-width: 32ch; }
.wa-big {
    margin-top: 2.5rem; max-width: 26rem; display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem;
    background: var(--carbon); color: var(--paper); border-radius: 1.25rem; box-shadow: 0 18px 40px -20px rgb(0 0 0 / .5);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.wa-big svg { flex: none; width: 2.8rem; height: 2.8rem; padding: .6rem; border-radius: 50%; background: #25D366; color: var(--white); animation: wa-pulse 2.4s var(--ease) infinite; }
.wa-big span { display: grid; gap: .15rem; font-size: var(--t-sm); line-height: 1.35; color: rgb(251 251 251 / .8); }
.wa-big b { font-family: var(--f-display); font-size: var(--t-md); font-weight: 400; line-height: 1.05; color: var(--paper); }
.wa-big::after { content: "→"; margin-left: auto; font-size: 1.5rem; color: var(--orange); transition: transform .4s var(--ease); }
.wa-big:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -20px rgb(0 0 0 / .6); }
.wa-big:hover::after { transform: translateX(.4rem); }
@keyframes wa-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(37 211 102 / .55); } 60% { box-shadow: 0 0 0 .9rem rgb(37 211 102 / 0); } }
.contact__block { margin-top: 3rem; }
.contact__sub { font-size: var(--t-sm); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .85; margin-bottom: 1rem; }
.execs { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.exec { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; border-radius: 1.25rem; background: var(--carbon); color: var(--paper); }
.exec__avatar { flex: none; width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--white); font-family: var(--f-display); font-size: var(--t-md); }
.exec b { display: block; font-weight: 700; }
.exec small { display: block; color: var(--fog); font-size: var(--t-sm); }
.exec a { display: inline-block; margin-top: .15rem; font-size: var(--t-sm); color: var(--paper); border-bottom: 1px solid rgb(251 251 251 / .3); }
.exec a:hover { color: var(--orange); border-color: var(--orange); }
.socials { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.5rem, 1.2vw, .9rem); }
.redes { background: var(--carbon); color: var(--paper); padding: clamp(3rem, 6vw, 4.5rem) var(--gutter); display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); overflow: hidden; }
.redes__title { font-family: var(--f-display); font-size: clamp(2.4rem, 1rem + 4vw, 4.6rem); line-height: .9; letter-spacing: -.02em; }
.redes .socials__item { background: none; border: 0; padding: 0; border-radius: 0; }
/* franja de redes: cada red gira y rebota al entrar en pantalla */
.js .redes .socials__ico svg { scale: .2; rotate: -140deg; transition: scale .9s cubic-bezier(.34, 1.56, .64, 1) calc(var(--d, 0ms) + 250ms), rotate 1.1s var(--ease) calc(var(--d, 0ms) + 250ms); }
.js .redes li.is-in .socials__ico svg { scale: 1; rotate: 0deg; }
@keyframes ico-wiggle { 0%, 100% { rotate: 0deg; } 25% { rotate: -14deg; } 50% { rotate: 12deg; } 75% { rotate: -6deg; } }
.redes a.socials__item:hover .socials__ico svg { animation: ico-wiggle .7s var(--ease); }

.redes .socials__item.is-empty { border: 0; background: none; cursor: default; }
.redes .socials__item:hover { background: none; transform: translateY(-6px); }
.redes .socials__ico { width: 6rem; height: 6rem; background: none; }
.redes .socials__ico svg { width: 4.2rem; height: 4.2rem; color: inherit; }
@media (max-width: 620px) {
    .redes .socials__ico { width: 4.2rem; height: 4.2rem; }
    .redes .socials__ico svg { width: 2.8rem; height: 2.8rem; }
}
.socials__item--instagram { --brand: #E1306C; }
.socials__item--tiktok { --brand: #25F4EE; }
.socials__item--linkedin { --brand: #0A66C2; }
.socials__item--facebook { --brand: #1877F2; }
@media (max-width: 620px) { .socials__name { font-size: .72rem; letter-spacing: 0; } }
.redes a.socials__item:hover .socials__ico { background: none; transform: none; }
.socials__item { display: grid; justify-items: center; gap: .7rem; padding: 1.3rem .5rem 1.1rem; border-radius: 1.25rem; background: var(--carbon); color: var(--paper); text-align: center; transition: transform .45s var(--ease), background .3s; }
.socials__ico { display: grid; place-items: center; width: 5.8rem; height: 5.8rem; border-radius: 50%; background: rgb(251 251 251 / .12); transition: background .3s, transform .6s var(--ease); }
.socials__ico svg { width: 3.1rem; height: 3.1rem; color: var(--orange); transition: color .3s, transform .6s var(--ease); }
.socials__name { font-size: var(--t-sm); font-weight: 700; letter-spacing: .04em; }
a.socials__item:hover { transform: translateY(-6px); background: var(--orange); }
a.socials__item:hover .socials__ico { background: var(--carbon); transform: rotate(-8deg) scale(1.06); }
a.socials__item:hover .socials__ico svg { color: var(--orange); }
.socials__item.is-empty { opacity: .7; border: 1.5px dashed rgb(251 251 251 / .35); background: transparent; }
.contact__data { margin: 3rem 0 0; display: grid; gap: 1.2rem; }
.contact__data dt { font-size: var(--t-sm); opacity: .75; }
.contact__data dd { margin: .15rem 0 0; font-weight: 500; }
.contact__data a { border-bottom: 1px solid rgb(255 255 255 / .5); }
.contact__socials { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .contact__intro { position: static; } .about { grid-template-columns: 1fr; } .about__phone { justify-self: start; width: min(100%, 20rem); } }

/* formulario: panel oscuro sobre el naranja */
.contact .form { background: var(--carbon); color: var(--paper); border-radius: 2rem; padding: clamp(1.75rem, 4vw, 3.25rem); box-shadow: 0 30px 80px -30px rgb(0 0 0 / .5); }
.form { display: grid; gap: 2.2rem; }
.form__hp { position: absolute; left: -9999px; }
.form fieldset { border: 0; margin: 0; padding: 0; }
.form legend { font-size: var(--t-sm); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fog); margin-bottom: 1rem; }
.form__chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
    display: inline-block; padding: .7rem 1.1rem; border-radius: 999px; border: 1px solid rgb(251 251 251 / .18);
    background: rgb(251 251 251 / .04); color: var(--paper); font-weight: 500; cursor: pointer;
    transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease);
}
.chip span:hover { border-color: var(--orange); }
.chip input:checked + span { background: var(--orange); border-color: var(--orange); color: var(--white); transform: scale(1.04); }
.chip input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 3px; }
.form__chips--small .chip span { padding: .5rem .9rem; font-size: var(--t-sm); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea {
    width: 100%; background: transparent; border: 0; border-bottom: 1.5px solid rgb(251 251 251 / .25); border-radius: 0;
    color: var(--paper); font: 500 var(--t-base)/1.3 var(--f-text); padding: 1.3rem 0 .55rem; resize: vertical;
    transition: border-color .3s;
}
.field textarea { min-height: 7.5rem; }
.field label { position: absolute; left: 0; top: 1.3rem; pointer-events: none; transform-origin: left top; transition: transform .35s var(--ease), color .3s; color: var(--fog); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--orange); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-1.25rem) scale(.78); }
.field input:focus + label, .field textarea:focus + label { color: var(--orange); }
.field.has-error input, .field.has-error textarea { border-bottom-color: var(--orange); border-bottom-width: 2px; }
.field__error { display: block; min-height: 0; margin-top: .4rem; font-weight: 700; color: var(--orange); font-size: var(--t-sm); }
.field__error:empty { display: none; }
.check { display: flex; gap: .8rem; align-items: start; cursor: pointer; font-size: var(--t-sm); color: rgb(251 251 251 / .8); }
.check input { appearance: none; flex: none; width: 1.35rem; height: 1.35rem; margin: 0; border: 1.5px solid rgb(251 251 251 / .5); border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--orange); border-color: var(--orange); }
.check input:checked::after { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--white); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.form .btn { background: var(--orange); color: var(--white); padding: 1.15rem 2.2rem; }
.form .btn::before { background: var(--paper); }
.form .btn:hover, .form .btn:focus-visible { color: var(--carbon); }
.form .btn span::after { content: "→"; margin-left: .5rem; display: inline-block; transition: transform .4s var(--ease); }
.form .btn:hover span::after { transform: translateX(.35rem); }
.form__note { color: var(--fog); font-size: var(--t-sm); }
.form__status { font-weight: 700; }
.form__status.is-ok { padding: 1rem 1.3rem; border-radius: 1rem; background: var(--orange); color: var(--white); }
.contact .form { position: relative; }
.form__veil { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 2rem; border-radius: inherit; background: rgb(21 20 25 / .96); text-align: center; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); }
.form.is-sending .form__veil, .form.is-done .form__veil { opacity: 1; pointer-events: auto; }
.veil__busy, .veil__ok { display: none; justify-items: center; gap: 1.25rem; }
.form.is-sending .veil__busy, .form.is-done .veil__ok { display: grid; }
.veil__busy p, .veil__ok p { font-family: var(--f-display); font-size: var(--t-lg); line-height: 1; }
.veil__ok small { color: var(--fog); font-size: var(--t-sm); }
.veil__ring { width: 4.5rem; height: 4.5rem; border-radius: 50%; border: 4px solid rgb(251 251 251 / .14); border-top-color: var(--orange); animation: form-spin .9s linear infinite; }
.veil__bar { width: min(18rem, 70vw); height: 4px; border-radius: 999px; background: rgb(251 251 251 / .12); overflow: hidden; }
.veil__bar i { display: block; height: 100%; width: 0; background: var(--orange); animation: veil-load 2.2s var(--ease) forwards; }
@keyframes veil-load { to { width: 100%; } }
.veil__ok svg { width: 5.5rem; height: 5.5rem; overflow: visible; }
.veil__ok circle { fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-dasharray: 152; stroke-dashoffset: 152; animation: veil-draw .7s var(--ease) forwards; }
.veil__ok path { fill: none; stroke: var(--paper); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; animation: veil-draw .45s .55s var(--ease) forwards; }
@keyframes veil-draw { to { stroke-dashoffset: 0; } }
.form.is-sending .form__grid, .form.is-sending fieldset, .form.is-sending .check { opacity: .5; pointer-events: none; transition: opacity .3s; }
.form .btn.is-sending { pointer-events: none; }
.form .btn.is-sending span::after { display: none; }
.form .btn.is-sending::after { content: ""; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: form-spin .7s linear infinite; }
@keyframes form-spin { to { transform: rotate(360deg); } }
@keyframes form-ok { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.form__status.is-ok { animation: form-ok .6s var(--ease); }
@media (max-width: 620px) { .form__grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { background: var(--ink); padding: var(--section) var(--gutter) 1.5rem; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.footer__lead { font-family: var(--f-display); font-size: var(--t-lg); line-height: 1.1; max-width: 18ch; margin-bottom: 1.5rem; }
.footer__mail { font-size: var(--t-md); border-bottom: 1px solid var(--orange); }
.footer nav { display: grid; gap: .6rem; align-content: start; color: var(--fog); }
.footer nav a:hover { color: var(--orange); }
.footer__logo { width: 100%; height: auto; margin-top: clamp(4rem, 10vw, 8rem); color: var(--paper); }
.footer__legal { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--graphite); font-size: var(--t-sm); color: var(--fog); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > div { grid-column: 1 / -1; } .nav__links { display: none; } .nav__burger { display: block; } }

/* ---------- WhatsApp flotante: el "°" del logo ---------- */
.wa {
    position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 40;
    display: flex; align-items: center; height: 4.3rem; border-radius: 999px; background: var(--orange); color: var(--white);
    border: .4rem solid var(--carbon); animation: wa-ring 2.4s var(--ease) infinite, wa-wiggle 5s 1.5s infinite; overflow: hidden;
    transform: scale(0); transition: transform .8s cubic-bezier(.34, 1.56, .64, 1);
}
.wa.is-visible { transform: scale(1); }
.wa svg { width: 3.3rem; height: 3.3rem; padding: .7rem; flex: none; }
.wa span { max-width: 0; overflow: hidden; white-space: nowrap; font-size: 1.08rem; font-weight: 700; letter-spacing: .01em; transition: max-width .45s var(--ease), padding .45s var(--ease); }
.wa:hover span, .wa:focus-visible span { max-width: 20rem; padding-right: 1.6rem; }
.wa.is-nudged span { max-width: 20rem; padding-right: 1.6rem; }
@keyframes wa-wiggle { 0%, 78%, 100% { rotate: 0deg; } 82% { rotate: -14deg; } 86% { rotate: 12deg; } 90% { rotate: -8deg; } 94% { rotate: 4deg; } }
@keyframes wa-ring { 0% { box-shadow: 0 0 0 0 rgb(245 110 15 / .6); } 70%, 100% { box-shadow: 0 0 0 1.1rem rgb(245 110 15 / 0); } }

/* ---------- cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
    .has-cursor .cursor {
        display: grid; place-items: center; position: fixed; left: 0; top: 0; z-index: 80; width: 14px; height: 14px; margin: -7px 0 0 -7px;
        border-radius: 50%; background: var(--orange); pointer-events: none; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s;
        will-change: transform;
    }
    .has-cursor .cursor.is-label { width: 96px; height: 96px; margin: -48px 0 0 -48px; }
    .cursor span { font-size: .78rem; font-weight: 700; color: var(--white); opacity: 0; transition: opacity .2s; text-align: center; line-height: 1.1; }
    .cursor.is-label span { opacity: 1; }
    .cursor.is-hidden { opacity: 0; }
}

/* ---------- reel / lightbox ---------- */
.reel, .lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.reel::backdrop, .lightbox::backdrop { background: rgb(0 0 0 / .92); }
.reel[open], .lightbox[open] { display: grid; place-items: center; animation: pop .45s var(--ease); }
.lightbox[open] { grid-template-rows: 1fr auto; place-items: stretch; padding: 1rem var(--gutter) 1.5rem; }
.reel video { max-width: min(92vw, 1600px); max-height: 86vh; border-radius: 1rem; }
.lightbox__stage { display: grid; place-items: center; min-height: 0; }
.lightbox__stage img { max-width: min(92vw, 1600px); max-height: 80vh; border-radius: 1rem; object-fit: contain; animation: swap .5s var(--ease); }
.lightbox__bar { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.lightbox__nav { width: 3rem; height: 3rem; border-radius: 999px; border: 1px solid var(--graphite); color: var(--paper); font-size: 1.2rem; transition: background .25s, border-color .25s; }
.lightbox__nav:hover { background: var(--paper); color: var(--carbon); border-color: var(--paper); }
.lightbox__count { min-width: 6ch; text-align: center; color: var(--fog); font-variant-numeric: tabular-nums; }
.lightbox__bar .reel__close { position: static; }
.reel__close { position: fixed; top: 1.2rem; right: 1.2rem; padding: .7rem 1.2rem; border-radius: 999px; background: var(--orange); color: var(--white); font-weight: 700; }
@keyframes swap { from { opacity: 0; transform: scale(.97); } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }

/* ---------- listado de proyectos ---------- */
.pindex { padding: 9rem var(--gutter) var(--section); }
.pindex__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem 3rem; padding-bottom: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--graphite); }
.pindex__head p { color: var(--fog); max-width: 40ch; font-size: var(--t-md); line-height: 1.3; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; padding: 1.25rem 0 clamp(2.5rem, 5vw, 4rem); }
.chip-link { padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--graphite); font-size: var(--t-sm); font-weight: 500; letter-spacing: .02em; transition: background .25s, border-color .25s, color .25s; }
.chip-link:hover { border-color: var(--paper); }
.chip-link.is-active { background: var(--paper); border-color: var(--paper); color: var(--carbon); }
.pgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(3rem, 6vw, 5.5rem) var(--gutter); }
.pcard { min-width: 0; }
.pcard a { display: block; }
.pcard--lead { grid-column: 1 / -1; }
.pcard__media { position: relative; overflow: hidden; border-radius: 1rem; aspect-ratio: 4 / 5; background: var(--night); }
.pcard--lead .pcard__media { aspect-ratio: 16 / 9; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.pcard a:hover .pcard__media img { transform: scale(1.04); }
.pcard__num { position: absolute; top: 1rem; left: 1rem; z-index: 1; padding: .3rem .6rem; border-radius: 999px; background: rgb(21 20 25 / .7); backdrop-filter: blur(6px); font-size: var(--t-sm); font-weight: 500; font-variant-numeric: tabular-nums; }
.pcard__body { display: grid; gap: .9rem; padding-top: 1.25rem; }
.pcard__title { font-family: var(--f-display); font-size: var(--t-lg); line-height: 1.02; letter-spacing: -.01em; transition: color .35s var(--ease); }
.pcard--lead .pcard__title { font-size: var(--t-xl); }
.pcard a:hover .pcard__title { color: var(--orange); }
.pcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 0; padding-top: .9rem; border-top: 1px solid var(--graphite); color: var(--fog); font-size: var(--t-sm); }
.pcard__meta > span + span::before { content: "/"; margin: 0 .6rem; color: var(--graphite); }
.empty { color: var(--fog); font-size: var(--t-md); } .empty a { color: var(--orange); }
@media (max-width: 760px) {
    .pgrid { grid-template-columns: 1fr; }
    .pcard--lead .pcard__media { aspect-ratio: 4 / 5; }
}

/* ---------- detalle de proyecto ---------- */
.pshow { position: relative; isolation: isolate; overflow: hidden; min-height: min(100svh, 56rem); display: flex; align-items: flex-end; padding: 9rem var(--gutter) clamp(3rem, 6vw, 5rem); background: var(--carbon); }
.pshow__bg { position: absolute; left: 0; right: 0; top: -8%; height: 118%; z-index: -2; will-change: transform; }
.pshow__bg img { width: 100%; height: 100%; object-fit: cover; animation: pshow-zoom 2.4s var(--ease) both; }
.pshow::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--carbon) 0%, rgb(21 20 25 / .6) 50%, rgb(21 20 25 / .25) 100%); }
.pshow__inner { width: 100%; }
@keyframes pshow-zoom { from { transform: scale(1.18); } }
@keyframes rise { from { opacity: 0; transform: translateY(1.2rem); } }
.project__back { display: inline-block; margin-bottom: 2rem; color: var(--fog); border-bottom: 1px solid var(--graphite); }
.project__back:hover { color: var(--paper); }
.pshow h1 { max-width: 14ch; }
.project__facts { margin: clamp(2.5rem, 5vw, 4rem) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1.5rem; border-top: 1px solid var(--graphite); padding-top: 1.5rem; }
.pshow .project__facts { border-color: rgb(255 255 255 / .22); }
.pshow .project__facts > div { animation: rise 1s var(--ease) both; animation-delay: calc(.6s + var(--n, 0) * .1s); }
.pshow .project__facts > div:nth-child(2) { --n: 1; } .pshow .project__facts > div:nth-child(3) { --n: 2; } .pshow .project__facts > div:nth-child(4) { --n: 3; } .pshow .project__facts > div:nth-child(5) { --n: 4; }
.project__facts dt { color: var(--fog); font-size: var(--t-sm); }
.project__facts dd { margin: .25rem 0 0; font-weight: 500; }
.project__intro { padding: clamp(3rem, 6vw, 5rem) var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.project__summary { font-family: var(--f-display); font-size: var(--t-lg); line-height: 1.15; max-width: 26ch; }
.prose { color: #cfcfd2; max-width: 62ch; }
.prose p + p { margin-top: 1rem; }

/* galería: patrón de 3 (ancho completo, 7+5) y revelado al entrar en pantalla */
.pgal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(.75rem, 1.6vw, 1.25rem); padding: 0 var(--gutter); }
.pgal__item { position: relative; margin: 0; min-width: 0; min-height: clamp(18rem, 36vw, 30rem); overflow: hidden; border-radius: 1.1rem; background: var(--night); grid-column: span 12; }
.pgal__item:nth-child(3n+1) { min-height: clamp(22rem, 48vw, 40rem); }
.pgal__item:nth-child(3n+2) { grid-column: span 7; }
.pgal__item:nth-child(3n) { grid-column: span 5; }
.pgal__zoom { position: absolute; inset: 0; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.pgal__zoom img, .pgal__item--video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.pgal__count { position: absolute; top: 1rem; left: 1rem; padding: .3rem .65rem; border-radius: 999px; background: rgb(21 20 25 / .7); backdrop-filter: blur(6px); font-size: var(--t-sm); font-weight: 500; font-variant-numeric: tabular-nums; }
.pgal__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 3rem 1.2rem 1rem; background: linear-gradient(to top, rgb(21 20 25 / .85), rgb(21 20 25 / 0)); color: var(--paper); font-size: var(--t-sm); pointer-events: none; }
.pgal__item--video .about__sound { position: absolute; right: 1rem; bottom: 1rem; z-index: 1; }
.project__cover { width: calc(100% - 2 * var(--gutter)); margin: 0 auto; border-radius: 1rem; }
@media (hover: hover) and (pointer: fine) {
    .pgal__item:hover .pgal__zoom img, .pgal__item:hover .pgal__item--video video { transform: scale(1.05); }
}
.js [data-reveal] { opacity: 0; transform: translateY(2.5rem); transition: opacity 1s var(--ease) var(--d, 0ms), transform 1.2s var(--ease) var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .pgal__item[data-reveal] { transform: none; clip-path: inset(10% 6% 10% 6% round 1.1rem); transition: opacity .9s var(--ease) var(--d, 0ms), clip-path 1.3s var(--ease) var(--d, 0ms); }
.js .pgal__item[data-reveal].is-in { clip-path: inset(0 0 0 0 round 1.1rem); }
.js .pgal__zoom img, .js .pgal__item--video video { scale: 1.15; transition: transform 1.4s var(--ease), scale 1.8s var(--ease); }
.js .pgal__item.is-in .pgal__zoom img, .js .pgal__item.is-in .pgal__item--video video { scale: 1; }
.project__cta { margin: var(--section) var(--gutter) 0; padding: clamp(2.5rem, 6vw, 4.5rem); border-radius: 1.5rem; background: var(--accent); color: var(--carbon); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.project__cta p { font-family: var(--f-display); font-size: var(--t-xl); line-height: 1; max-width: 16ch; }
.next { position: relative; display: block; margin-top: var(--section); padding: var(--section) var(--gutter); background: var(--orange); overflow: hidden; isolation: isolate; }
.next__label { display: block; font-weight: 500; margin-bottom: 1rem; }
.next__title { display: block; max-width: 14ch; transition: transform .7s var(--ease); }
.next img { position: absolute; right: var(--gutter); top: 50%; width: clamp(10rem, 26vw, 24rem); aspect-ratio: 1; object-fit: cover; border-radius: 50%; z-index: -1; transform: translateY(-50%) scale(.85); transition: transform .8s var(--ease); border: 1.2rem solid var(--carbon); }
.next:hover .next__title { transform: translateX(1.5rem); }
.next:hover img { transform: translateY(-50%) scale(1); }
@media (max-width: 760px) {
    .project__intro { grid-template-columns: 1fr; }
    .pgal__item, .pgal__item:nth-child(3n+1), .pgal__item:nth-child(3n+2), .pgal__item:nth-child(3n) { grid-column: 1 / -1; min-height: 20rem; }
    .next img { opacity: .35; }
}

/* ---------- revelado de titulares (un solo efecto, por línea) ---------- */
.js [data-split] .line { display: block; overflow: hidden; padding-bottom: .06em; }
.js [data-split] .line > span { display: block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.js [data-split].is-in .line > span { transform: none; }

/* ---------- movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    html { scroll-behavior: auto; }
    .js .hero { height: auto; }
    .hero__stage { position: relative; }
    .hero__lens { position: relative; height: 100svh; clip-path: none; }
    .hero__ring { display: none; }
    .hero__manifesto { position: relative; opacity: 1; transform: none; left: 0; top: 0; width: auto; padding: 4rem var(--gutter); }
    .clients__track { animation: none; flex-wrap: wrap; width: auto; }
    .clients ul[aria-hidden] { display: none; }
    .js [data-split] .line > span { transform: none; }
}
