/* =========================================================
   Panel & Soul — Portafolio
   Paleta: grafito + blanco cálido + lima eléctrica
   ========================================================= */

@property --glow {
  syntax: '<color>';
  inherits: true;
  initial-value: #7fb3aa;
}

:root {
  --ink: #0b0c0d;
  --ink-2: #131517;
  --ink-3: #1c1f22;
  --line: rgba(242, 239, 233, 0.12);
  --paper: #f2efe9;
  --muted: #8d9094;
  --accent: #d4ff3f;
  --accent-ink: #0b0c0d;
  --glow: #7fb3aa;

  --f-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --f-serif: 'Instrument Serif', Georgia, serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --gutter: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-display);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
::selection { background: var(--accent); color: var(--accent-ink); }

.eyebrow { color: var(--muted); margin: 0 0 24px; }

/* ---------- Capas globales ---------- */
.ambient {
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 45% at 28% 55%, color-mix(in srgb, var(--glow) 28%, transparent), transparent 70%),
    radial-gradient(30% 30% at 85% 10%, rgba(212, 255, 63, 0.05), transparent 70%);
  transition: --glow 1.2s var(--ease-out);
  opacity: 0;
}
.ambient.is-on { opacity: 1; transition: --glow 1.2s var(--ease-out), opacity 1s; }

.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--accent);
  display: none; place-items: center;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out);
  mix-blend-mode: normal;
}
.has-cursor .cursor { display: grid; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.cursor__label {
  font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--accent-ink); opacity: 0; white-space: nowrap; transition: opacity .2s;
}
.cursor.is-big { width: 86px; height: 86px; margin: -43px 0 0 -43px; }
.cursor.is-big .cursor__label { opacity: 1; }
.cursor.is-link { width: 40px; height: 40px; margin: -20px 0 0 -20px; background: transparent; border: 1px solid var(--accent); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
}
.header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(var(--ink), rgba(11,12,13,0));
}
.header__logo {
  display: block; width: 32px;
  opacity: 0; transform: translateY(-8px); transition: opacity .5s, transform .5s var(--ease-out);
}
.header__logo svg { display: block; width: 100%; height: auto; }
.header__logo path { fill: var(--paper); }
.header__logo .pns__bottom { fill: var(--accent); }
.header.is-scrolled .header__logo { opacity: 1; transform: none; }
.header__nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 32px); font-size: 15px; }
.header__nav > a:not(.header__cta) { color: var(--muted); transition: color .25s; }
.header__nav > a:not(.header__cta):hover { color: var(--paper); }
.lang {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px;
  border: 1px solid var(--line); font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em;
}
.lang > * { padding: 5px 9px; border-radius: 999px; }
.lang b { font-weight: 500; background: rgba(242,239,233,.12); color: var(--paper); }
.lang a { color: var(--muted); transition: color .25s; }
.lang a:hover { color: var(--accent); }
.header__cta {
  padding: 9px 16px; border-radius: 999px; background: var(--paper); color: var(--ink);
  font-weight: 500; transition: background .25s;
}
.header__cta:hover { background: var(--accent); }
.header__progress {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(0);
}

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; height: 290vh; }
.hero__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; place-items: center;
}
/* Muro de trabajo detrás del logo */
.hero__wall {
  position: absolute; inset: -20% -10%; z-index: 0; pointer-events: none;
  display: flex; justify-content: center; align-items: flex-start; gap: clamp(10px, 1.2vw, 18px);
  transform: rotate(-8deg); opacity: .42;
  -webkit-mask-image: radial-gradient(ellipse 40% 50% at 50% 50%, transparent 40%, rgba(0,0,0,.45) 70%, #000 100%);
  mask-image: radial-gradient(ellipse 40% 50% at 50% 50%, transparent 40%, rgba(0,0,0,.45) 70%, #000 100%);
}
.hero__col { flex: 0 0 clamp(110px, 13vw, 220px); }
.hero__sticky::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(var(--ink), transparent 22%, transparent 78%, var(--ink));
}
.hero__track { animation: wall-up var(--d, 60s) linear infinite; will-change: transform; }
.hero__col:nth-child(even) .hero__track { animation-name: wall-down; }
.hero__track img {
  width: 100%; height: auto; margin-bottom: clamp(10px, 1.2vw, 18px); border-radius: 12px;
  filter: saturate(.6) brightness(.5);
}
@keyframes wall-up { from { transform: translateY(0); } to { transform: translateY(-33.3333%); } }
@keyframes wall-down { from { transform: translateY(-33.3333%); } to { transform: translateY(0); } }

.hero__brand { position: relative; z-index: 1; grid-area: 1 / 1; text-align: center; padding: 0 var(--gutter); will-change: transform, opacity; }
.hero__kicker { color: var(--muted); display: inline-flex; align-items: center; gap: 10px; margin: 0 0 clamp(16px, 3vh, 32px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(212,255,63,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(212,255,63,0); } 100% { box-shadow: 0 0 0 0 rgba(212,255,63,0); } }

.hero__logo { margin: 0; line-height: 0; }
.pns { display: block; height: clamp(220px, 46vh, 460px); width: auto; margin: 0 auto; overflow: visible; }
.pns path { fill: var(--paper); }
.pns__bottom { fill: var(--accent) !important; }
.hero__sub { max-width: 30ch; margin: clamp(18px, 3vh, 36px) auto 0; color: var(--muted); font-size: clamp(16px, 1.4vw, 20px); }
.hero__sub em { color: var(--paper); font-size: 1.15em; }

.hero__reveal {
  position: relative; z-index: 1; grid-area: 1 / 1; width: 100%; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(20px, 4vw, 64px);
  pointer-events: none;
}
.hero__arch {
  width: clamp(200px, 24vw, 340px); aspect-ratio: 3 / 4.2; overflow: hidden;
  clip-path: inset(50% 50% 50% 50% round 999px 999px 24px 24px);
  background: #e9e6e0;
}
.hero__arch img { width: 100%; height: 100%; object-fit: cover; }
.hero__line {
  margin: 0; font-weight: 600; letter-spacing: -0.04em; line-height: .95;
  font-size: clamp(36px, 5.4vw, 88px); opacity: 0;
}
.hero__line--l { text-align: right; }
.hero__line em { color: var(--accent); }

.hero__cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted);
}
.hero__cue-line { width: 1px; height: 46px; background: var(--line); position: relative; overflow: hidden; }
.hero__cue-line::after {
  content: ''; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: var(--accent);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { to { top: 100%; } }

/* =========================================================
   INTRO
   ========================================================= */
.intro { padding: clamp(80px, 14vh, 160px) var(--gutter) clamp(40px, 8vh, 80px); }
.intro__head { max-width: 1100px; }
.intro__title, .eco__title, .outro__title {
  margin: 0; font-weight: 600; letter-spacing: -0.05em; line-height: .92;
  font-size: clamp(48px, 8.4vw, 136px);
}
.intro__title em, .eco__title em, .outro__title em { color: var(--accent); }
.intro__body { max-width: 46ch; color: var(--muted); font-size: clamp(17px, 1.4vw, 21px); margin: 32px 0 0; }

.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: inline-block; }

.phases {
  list-style: none; padding: 0; margin: clamp(56px, 10vh, 110px) 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line);
}
.phase { padding: 24px 24px 0 0; position: relative; }
.phase + .phase { padding-left: 24px; border-left: 1px solid var(--line); }
.phase__num { color: var(--accent); }
.phase h3 { margin: 14px 0 6px; font-size: clamp(22px, 2vw, 30px); font-weight: 600; letter-spacing: -0.03em; }
.phase p { margin: 0; color: var(--muted); font-size: 15px; }

/* =========================================================
   PROCESO
   ========================================================= */
.process {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  padding: 0 var(--gutter);
}

.stage { position: sticky; top: 0; height: 100vh; height: 100svh; z-index: 2; }
.stage__inner {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; padding-top: 60px; perspective: 1400px;
}

.frame {
  --ar: .75; --h: min(68vh, 640px);
  position: relative; height: var(--h); width: calc(var(--h) * var(--ar));
  border-radius: 20px; overflow: hidden; background: var(--ink-2);
  box-shadow: 0 40px 120px -30px color-mix(in srgb, var(--glow) 45%, transparent), 0 0 0 1px var(--line);
  transition: width .9s var(--ease), height .9s var(--ease), border-radius .9s var(--ease), box-shadow 1.2s;
  transform-style: preserve-3d; will-change: transform;
}
.frame[data-shape='mark']   { --ar: 1; --h: min(60vh, 560px); }
.frame[data-shape='square'] { --ar: 1; --h: min(62vh, 580px); }
.frame[data-shape='phone']  { --ar: .5625; --h: min(70vh, 660px); border-radius: 36px; }

.layer {
  position: absolute; inset: 0; z-index: 3;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1s var(--ease);
}
.layer.is-past { clip-path: inset(0 0 0 0); z-index: 1; }
.layer.is-active { clip-path: inset(0 0 0 0); z-index: 2; }
.layer > img, .layer > video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.18); transition: transform 1.6s var(--ease-out);
}
.layer.is-active > img, .layer.is-active > video { transform: scale(1); }

/* Marca */
.layer--mark { background: radial-gradient(70% 70% at 50% 45%, #1d2624, #101213); }
.layer--mark > img { inset: 10% 18% 22%; width: 64%; height: 68%; object-fit: contain; transform: scale(.85); }
.layer--mark.is-active > img { transform: scale(1); }
.mark-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 12.5% 12.5%; background-position: center;
  mask-image: radial-gradient(60% 60% at 50% 45%, #000, transparent);
  opacity: .5;
}
.mark-swatches {
  position: absolute; left: 6%; right: 6%; bottom: 6%; margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.mark-swatches li {
  height: 44px; border-radius: 10px; background: var(--c); position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  transform: translateY(20px); opacity: 0; transition: transform .7s var(--ease-out), opacity .7s;
}
.mark-swatches span {
  position: absolute; left: 8px; bottom: 6px; font-family: var(--f-mono); font-size: 9px; text-transform: uppercase;
  color: rgba(0,0,0,.6);
}
.mark-swatches li:last-child span { color: rgba(255,255,255,.7); }
.layer--mark.is-active .mark-swatches li { transform: none; opacity: 1; }
.layer--mark.is-active .mark-swatches li:nth-child(2) { transition-delay: .08s; }
.layer--mark.is-active .mark-swatches li:nth-child(3) { transition-delay: .16s; }
.layer--mark.is-active .mark-swatches li:nth-child(4) { transition-delay: .24s; }

/* Pins de producto */
.pins { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.pins li {
  position: absolute; left: var(--x); top: var(--y);
  width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 6px rgba(212,255,63,.25);
  opacity: 0; transform: scale(0); transition: opacity .4s, transform .5s var(--ease-out);
}
.pins span {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; padding: 6px 10px; border-radius: 999px;
  background: rgba(11,12,13,.38); color: #fff;
  -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
  font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .04em;
}
/* Las etiquetas siempre apuntan hacia el centro para no salirse del marco */
.pins li.to-left span { left: auto; right: 20px; }
.layer.is-active .pins li { opacity: 1; transform: scale(1); }
.layer.is-active .pins li:nth-child(1) { transition-delay: .7s; }
.layer.is-active .pins li:nth-child(2) { transition-delay: .85s; }
.layer.is-active .pins li:nth-child(3) { transition-delay: 1s; }

/* Interfaces sobre el ad (genéricas) */
.ui {
  position: absolute; inset: 0; color: #fff; font-size: 12px; line-height: 1.35;
  opacity: 0; transition: opacity .6s .5s;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.layer.is-active .ui { opacity: 1; }
.ui svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linejoin: round; }
.ui p { margin: 0; }
.ui b { font-weight: 600; }
.ui__avatar {
  display: inline-block; width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: url('../assets/huella-logo.svg') center 30% / 70% no-repeat, #1d2624;
  box-shadow: 0 0 0 1.5px #fff;
}
.ui__avatar--alt { background: linear-gradient(135deg, #c9a27a, #6b4a2f); }

.ui--reel::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; z-index: -1;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
}
.ui__top { position: absolute; top: 18px; left: 18px; right: 18px; display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
.ui__side {
  position: absolute; right: 12px; bottom: 96px; display: flex; flex-direction: column; gap: 16px; align-items: center;
  font-size: 10px;
}
.ui__side span { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ui__bottom { position: absolute; left: 14px; right: 64px; bottom: 18px; display: grid; gap: 6px; }
.ui__user { display: flex; align-items: center; gap: 8px; }
.ui__follow { border: 1px solid rgba(255,255,255,.8); border-radius: 7px; padding: 2px 8px; font-size: 11px; }
.ui__audio { opacity: .85; font-size: 11px; }

.ui--story::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 22%;
  background: linear-gradient(rgba(0,0,0,.35), transparent);
}
.ui__bars { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 4px; }
.ui__bars i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.35); position: relative; overflow: hidden; }
.ui__bars i.done { background: #fff; }
.ui__bars i.run::after { content: ''; position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.layer.is-active .ui__bars i.run::after { animation: story 8s linear infinite; }
@keyframes story { to { transform: scaleX(1); } }
.ui--story .ui__user { position: absolute; top: 26px; left: 14px; }
.ui--story .ui__user small { opacity: .75; margin-left: 2px; }
.ui__swipe {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: #fff; color: #111; text-shadow: none; border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 12px;
}

.ui__adbar {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 14px;
  background: rgba(15,16,17,.62); backdrop-filter: blur(12px); text-shadow: none;
  transform: translateY(16px); transition: transform .7s .6s var(--ease-out);
}
.layer.is-active .ui__adbar { transform: none; }
.ui__who { display: grid; flex: 1; line-height: 1.2; }
.ui__who small { opacity: .7; font-size: 11px; }
.ui__btn { background: var(--accent); color: var(--accent-ink); border-radius: 9px; padding: 8px 12px; font-weight: 600; white-space: nowrap; }

/* HUD */
.hud { width: min(100%, 460px); display: grid; gap: 12px; }
.hud__row { display: flex; align-items: center; gap: 14px; min-height: 34px; }
.hud__count { color: var(--muted); }
.hud__num { color: var(--paper); font-weight: 500; }
.hud__label { font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.hud__format { color: var(--muted); margin-left: auto; }
.hud__bars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.hud__bars i { height: 3px; border-radius: 3px; background: var(--line); transition: background .5s; }
.hud__bars i.on { background: var(--paper); }
.hud__bars i.now { background: var(--accent); }

.sound {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line); font-family: var(--f-mono); font-size: 11px; text-transform: uppercase;
  transition: background .25s, color .25s, border-color .25s;
}
.sound[hidden] { display: none; }
.sound:hover { border-color: var(--paper); }
.sound[aria-pressed='true'] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.sound__bars { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound__bars i { width: 2px; height: 30%; background: currentColor; border-radius: 1px; }
.sound[aria-pressed='true'] .sound__bars i { animation: eq .9s ease-in-out infinite alternate; }
.sound[aria-pressed='true'] .sound__bars i:nth-child(2) { animation-delay: -.3s; }
.sound[aria-pressed='true'] .sound__bars i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { from { height: 25%; } to { height: 100%; } }

/* Pasos (contexto) */
.step__media { display: none; }
.steps { position: relative; z-index: 1; }
.step {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 0 80px clamp(16px, 4vw, 72px);
  opacity: .22; transition: opacity .6s;
}
.step.is-active { opacity: 1; }
.step__bg {
  position: absolute; top: 50%; right: 0; transform: translateY(-50%);
  font-weight: 800; font-size: clamp(160px, 22vw, 340px); line-height: 1; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1px var(--line); pointer-events: none; z-index: -1;
}
.step__phase { color: var(--muted); margin: 0 0 20px; }
.step__phase span { color: var(--accent-ink); background: var(--accent); padding: 3px 8px; border-radius: 6px; margin-right: 8px; }
.step__title {
  margin: 0; font-weight: 600; letter-spacing: -0.045em; line-height: .96;
  font-size: clamp(40px, 4.6vw, 76px); max-width: 12ch;
}
.step__title em { color: var(--accent); }
.step__body { color: #b7b9bb; max-width: 44ch; font-size: clamp(16px, 1.25vw, 19px); margin: 24px 0 0; }
.chips { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--paper); }
.meta { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 36px; margin: 30px 0 0; }
.meta dt { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; }
.meta dd { margin: 4px 0 0; font-size: 15px; }

/* =========================================================
   ECOSISTEMA
   ========================================================= */
.eco { padding: clamp(100px, 18vh, 200px) var(--gutter) clamp(60px, 10vh, 120px); }
.eco__head { margin-bottom: clamp(40px, 8vh, 80px); }
.eco__count { font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }

.bento {
  display: grid; gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 16vw, 260px);
  grid-template-areas:
    'ad   ad   cine ugc'
    'ad   ad   cine ugc'
    'mot  info logo rend'
    'mot  info life rend';
}
.tile { margin: 0; position: relative; overflow: hidden; border-radius: 16px; background: var(--ink-2); }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.tile:hover img, .tile:hover video { transform: scale(1.05); }
.tile figcaption {
  position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; border-radius: 999px;
  background: rgba(11,12,13,.7); backdrop-filter: blur(8px); font-size: 10.5px;
}
.tile--ad { grid-area: ad; } .tile--cine { grid-area: cine; } .tile--ugc { grid-area: ugc; }
.tile--motion { grid-area: mot; } .tile--info { grid-area: info; } .tile--logo { grid-area: logo; }
.tile--render { grid-area: rend; } .tile--life { grid-area: life; }
.tile--logo { background: radial-gradient(70% 70% at 50% 45%, #1d2624, #101213); }
.tile--logo img { object-fit: contain; padding: 14% 20%; }

/* =========================================================
   CONTACTO
   ========================================================= */
.outro { padding: clamp(40px, 8vh, 80px) 0 clamp(100px, 16vh, 180px); overflow: hidden; }
.marquee { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; }
.marquee__track {
  display: flex; gap: 36px; width: max-content; align-items: center;
  font-size: clamp(36px, 5vw, 72px); font-weight: 600; letter-spacing: -0.04em;
  animation: marquee 28s linear infinite;
}
.marquee__track i { font-style: normal; color: var(--accent); font-size: .5em; }
@keyframes marquee { to { transform: translateX(-50%); } }

.outro__body {
  padding: clamp(80px, 14vh, 160px) var(--gutter) 0;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start;
}
.outro__body .outro__title { font-size: clamp(44px, 6.2vw, 104px); }
.outro__lead { color: var(--muted); max-width: 40ch; font-size: clamp(16px, 1.3vw, 19px); margin: 28px 0 0; }
.outro__cta {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 32px;
  padding: 16px 24px; border-radius: 999px; border: 1px solid var(--line); color: var(--paper);
  font-size: clamp(17px, 1.6vw, 22px); font-weight: 600; letter-spacing: -0.02em;
  transition: border-color .3s, color .3s;
}
.outro__cta:hover { border-color: var(--accent); color: var(--accent); }
.outro__arrow { display: inline-block; transition: transform .4s var(--ease-out); }
.outro__cta:hover .outro__arrow, .contact__send:hover .outro__arrow { transform: translateX(6px) rotate(-45deg); }

/* Formulario de contacto */
.contact {
  display: grid; gap: 22px; padding: clamp(22px, 3vw, 36px); border-radius: 24px;
  background: rgba(242,239,233,.035); box-shadow: inset 0 0 0 1px var(--line);
}
.field { display: grid; gap: 8px; }
.field > label, .needs legend {
  font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
}
.field input, .field__box {
  width: 100%; border-radius: 14px; background: rgba(11,12,13,.6);
  border: 1px solid var(--line); color: var(--paper); font: inherit; font-size: 16px;
  transition: border-color .25s, box-shadow .25s;
}
.field input { padding: 14px 16px; }
.field input:focus, .field__box:focus-within { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212,255,63,.15); }
.field input[aria-invalid='true'], .field__box[aria-invalid='true'] { border-color: #ff7a6b; }
.field__box { padding: 14px 16px 6px; }
.needs { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.needs legend { padding: 0; margin-bottom: 10px; float: left; width: 100%; }
.need { position: relative; cursor: pointer; }
.need input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.need span {
  display: inline-block; padding: 7px 13px; border-radius: 999px; font-size: 14px;
  border: 1px solid var(--line); color: var(--paper); transition: background .2s, color .2s, border-color .2s;
}
.need:hover span { border-color: var(--paper); }
.need input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.need input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field__box textarea {
  display: block; width: 100%; margin-top: 12px; padding: 12px 0 8px; resize: vertical; min-height: 110px;
  border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--paper); font: inherit; font-size: 16px;
}
.field__box textarea:focus { outline: none; }
.field ::placeholder { color: #6c6f73; }
.contact__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact__send {
  justify-self: start; display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 26px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-size: 18px; font-weight: 600; letter-spacing: -0.02em; transition: opacity .2s;
}
.contact__send[disabled] { opacity: .6; pointer-events: none; }
.contact__status { margin: 0; min-height: 1.5em; font-size: 15px; color: var(--muted); }
.contact__status.is-ok { color: var(--accent); }
.contact__status.is-err { color: #ff9a8e; }
.contact.is-sent .field, .contact.is-sent .contact__send { display: none; }
.contact.is-sent .contact__status { font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -0.02em; }

.footer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 28px var(--gutter); border-top: 1px solid var(--line); color: var(--muted);
}
.footer > span:first-child { color: var(--paper); font-weight: 700; letter-spacing: -0.03em; }
.footer em { color: var(--accent); }

/* ---------- Estados iniciales de animación (solo con JS) ---------- */
.js .reveal-lines .line > span { transform: translateY(105%); }
.js .phase { opacity: 0; transform: translateY(30px); }
.js .tile { opacity: 0; transform: translateY(40px) scale(.97); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .header__nav > a:not(.header__cta) { display: none; }

  .hero { height: 240vh; }
  .hero__wall { inset: -10% -40%; opacity: .32; -webkit-mask-image: radial-gradient(ellipse 34% 36% at 50% 48%, transparent 45%, rgba(0,0,0,.5) 75%, #000 100%); mask-image: radial-gradient(ellipse 34% 36% at 50% 48%, transparent 45%, rgba(0,0,0,.5) 75%, #000 100%); }
  .pns { height: min(36svh, 300px); }
  .hero__reveal { grid-template-columns: 1fr; justify-items: center; gap: 18px; text-align: center; }
  .hero__line--l, .hero__line--r { text-align: center; }
  .hero__line br { display: none; }
  .hero__arch { width: min(52vw, 260px); }
  .hero__line { font-size: clamp(32px, 9vw, 52px); }

  .phases { grid-template-columns: 1fr 1fr; }
  .phase:nth-child(3) { padding-left: 0; border-left: 0; }
  .phase { padding-bottom: 24px; }
  .phase:nth-child(n+3) { border-top: 1px solid var(--line); }

  /* En celular no hay escenario fijo: cada pieza va en línea, con su texto debajo */
  .process { grid-template-columns: 1fr; }
  .stage { display: none; }

  .ui { font-size: 9px; }
  .ui svg { width: 15px; height: 15px; }
  .ui__top { top: 10px; left: 10px; right: 10px; font-size: 11px; }
  .ui__side { right: 6px; bottom: 58px; gap: 9px; font-size: 8px; }
  .ui__bottom { left: 9px; right: 40px; bottom: 10px; gap: 3px; }
  .ui__avatar { width: 16px; height: 16px; }
  .ui__follow, .ui__audio { font-size: 8px; }
  .ui__audio { display: none; }
  .ui--story .ui__user { top: 18px; left: 9px; }
  .ui__swipe { bottom: 12px; padding: 5px 10px; font-size: 9px; }
  .ui__adbar { left: 7px; right: 7px; bottom: 7px; padding: 6px; gap: 6px; border-radius: 10px; }
  .ui__who small { font-size: 8px; }
  .ui__btn { padding: 5px 8px; border-radius: 6px; }
  .pins span { font-size: 8px; padding: 4px 7px; left: 14px; }
  .pins li.to-left span { right: 14px; }
  .mark-swatches li { height: 28px; border-radius: 7px; }
  .mark-swatches span { display: none; }

  .step { min-height: 0; padding: 56px 0 40px; justify-content: flex-start; opacity: 1; }
  .step__bg { display: none; }
  .step__media { display: grid; justify-items: center; gap: 12px; margin-bottom: 28px; }
  .step__media .frame { --h: auto; width: 100%; height: auto; aspect-ratio: var(--ar); transform: none; }
  .step__media .frame[data-shape='phone'] { width: min(76vw, 340px); border-radius: 28px; }
  .step__media .frame[data-shape='mark'] { width: min(100%, 420px); }
  .step__title { font-size: clamp(34px, 9vw, 48px); }
  .meta { gap: 24px; }

  .bento {
    grid-template-columns: 1fr 1fr; grid-auto-rows: 64vw;
    grid-template-areas:
      'ad   ad'
      'cine ugc'
      'mot  info'
      'logo rend'
      'life rend';
  }
  .bento { grid-template-rows: 92vw; }

  .outro__body { grid-template-columns: 1fr; gap: 36px; }
  .contact { padding: 20px 16px; border-radius: 20px; }
  .contact__send { justify-self: stretch; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .js .reveal-lines .line > span, .js .phase, .js .tile { transform: none; opacity: 1; }
}
