/* ============ Navalcom · estilos ============ */
:root {
  --ink: #0d0d0e;
  --ink-2: #141416;
  --ink-3: #1c1c1f;
  --paper: #efebe3;
  --paper-2: #c9c4ba;
  --muted: #8a867e;
  --line: rgba(239, 235, 227, 0.12);
  --line-2: rgba(239, 235, 227, 0.22);
  --signal: #ff5b1f;
  --ok: #3ddc84;

  --f-display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
::selection { background: var(--signal); color: var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 16px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
/* Grano muy suave sobre todo el fondo: quita el aspecto de pantalla plana */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: 0.05;
  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");
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 700; letter-spacing: -0.03em; line-height: 0.98; text-wrap: balance; }
p, li { text-wrap: pretty; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--paper); color: var(--ink); padding: 10px 14px; font: 500 14px var(--f-mono); text-decoration: none; }
.skip:focus { top: 12px; }

.eyebrow {
  font: 500 12px/1.4 var(--f-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.ar { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; flex: none; transition: transform 0.35s var(--ease); }

/* Cursor de texto parpadeante: es la «firma» de la marca */
.caret {
  display: inline-block;
  width: 0.42em; height: 0.74em;
  margin-left: 0.07em;
  background: var(--signal);
  vertical-align: -0.02em;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Enlace editorial (sin caja): texto en mayúsculas, línea debajo y flecha */
.link-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 13px/1 var(--f-mono);
  letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none;
  padding: 10px 0 8px;
  border-bottom: 1px solid var(--signal);
}
.link-cta:hover .ar { transform: translateX(4px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px;
  background: var(--signal); color: var(--ink);
  border: 0; border-radius: 0;
  font: 600 13px/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: #ff7440; }
.btn:hover .ar { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }

/* ============ Cabecera ============ */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 0 var(--gutter);
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.solid { background: rgba(13, 13, 14, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.brand {
  justify-self: start;
  font: 700 22px/1 var(--f-display);
  letter-spacing: -0.035em;
  text-decoration: none;
  text-transform: lowercase;
}
.nav { display: flex; gap: 34px; }
.site-header .link-cta { grid-column: 3; justify-self: end; }
.nav a {
  font: 500 13px/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; color: var(--paper-2);
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav a:hover { color: var(--paper); border-color: var(--line-2); }

/* ============ Escenas fijas (comunes) ============ */
.scene { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
/* Las dos escenas son capas de la misma pantalla fija; «Trabajos» aparece encima con un fundido */
.scene-stack { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.scene-stack > .scene { position: absolute; inset: 0; height: auto; }
.scene-stack > .work { opacity: 0; visibility: hidden; }
.scene-inner {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) 1.22fr;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: calc(var(--header-h) + 16px) var(--gutter) 84px;
}

/* Navegador de mentira */
.browser {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.browser-bar {
  height: 36px;
  display: flex; align-items: center; gap: 14px;
  padding: 0 14px;
  background: var(--ink-3);
  border-bottom: 1px solid var(--line);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(239, 235, 227, 0.18); }
.url {
  flex: 1; max-width: 360px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 22px; border-radius: 5px;
  background: rgba(239, 235, 227, 0.06);
  font: 400 11.5px/1 var(--f-mono); color: var(--muted);
  white-space: nowrap; overflow: hidden;
}
.view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.view > img, .shots > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Móvil de mentira */
.phone {
  position: absolute;
  width: 21%; aspect-ratio: 390 / 844;
  border: 5px solid #232326;
  border-radius: 26px;
  background: var(--ink);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ============ Escena 1: de la idea a la web ============ */
.build .scene-inner { grid-template-columns: minmax(300px, 0.92fr) 1.08fr; }
.build .copy-col { position: relative; height: 100%; display: grid; align-items: center; }
.build .copy { grid-area: 1 / 1; max-width: 620px; }
.build .copy:not(.copy-hero) { opacity: 0; visibility: hidden; }
.build h1 {
  font-size: clamp(50px, 6.1vw, 104px);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin: 22px 0 26px;
}
.lede { font-size: clamp(16px, 1.25vw, 19px); color: var(--paper-2); max-width: 36ch; }
.hint {
  margin-top: 40px;
  display: inline-flex; align-items: center; gap: 14px;
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  font: 500 12px/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper-2);
}
.hint-line { position: relative; width: 1px; height: 38px; background: var(--line-2); overflow: hidden; }
.hint-line::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--signal); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

.step-n { font: 500 13px/1 var(--f-mono); color: var(--signal); letter-spacing: 0.12em; }
.build h2 { font-size: clamp(40px, 4.4vw, 74px); margin: 18px 0 18px; }
.build .copy > p:not(.step-n):not(.eyebrow) { font-size: clamp(17px, 1.35vw, 21px); color: var(--paper-2); max-width: 30ch; }

.visual-col { position: relative; height: 100%; display: flex; align-items: center; }
.device-stage { position: relative; width: 100%; }
.build .browser { width: 100%; will-change: transform; }
.build .view { background: #0b0b0c; }
/* Dentro de la pantalla de mentira todo se mide en cqw (% del ancho de la pantalla): el cuadro «Tu idea»,
   su letra y la cuadrícula crecen y menguan con ella, a cualquier tamaño de ventana. */
.build .view { container-type: inline-size; }
.grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 5.8cqw 5.8cqw;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
  opacity: 0.6;
}
/* Centrado por maquetación (inset + margin auto), sin transform: GSAP anima su escala sin descolocarlo */
.prompt {
  position: absolute; inset: 0; margin: auto;
  width: 76cqw; height: fit-content;
  padding: 4.3cqw 4.6cqw;
  background: rgba(20, 20, 22, 0.92);
  border: 1px solid var(--line-2);
  border-radius: 1.1cqw;
  box-shadow: 0 4cqw 8cqw -3cqw rgba(0, 0, 0, 0.7);
}
.prompt-label { font: 500 max(9px, 1.6cqw)/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--signal); margin-bottom: 2.1cqw; }
.prompt-text { font: 400 3cqw/1.5 var(--f-mono); color: var(--paper); min-height: 4.5em; }
.prompt-ph { color: var(--muted); }
.prompt-text .caret { width: 0.55em; height: 1.1em; vertical-align: -0.2em; }
.chips { display: flex; flex-wrap: wrap; gap: 1.2cqw; margin-top: 2.6cqw; }
.chips span {
  font: 500 max(8.5px, 1.6cqw)/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 1cqw 1.4cqw; border: 1px solid var(--line-2); border-radius: 0.45cqw; color: var(--paper-2);
  opacity: 0;
}
.wire { position: absolute; inset: 0; width: 100%; height: 100%; }
.wire * { fill: none; stroke: var(--paper); stroke-opacity: 0.6; stroke-width: var(--sw, 2.6); stroke-linecap: square; }
.wire .w-img * { stroke-opacity: 0.32; }
.shots > img { opacity: 0; visibility: hidden; }

/* 04 El movimiento: la web real dentro de la pantalla. Cada web (.site) tiene sus capturas (espera mientras carga,
   y versión táctil) y un iframe pintado a 1440×900 y reducido a la pantalla (--fs lo calcula main.js). */
.live-view { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.site { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s; }
.site.on { opacity: 1; visibility: inherit; }
.site > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s var(--ease); }
.site > img.on { opacity: 1; }
.live-frame {
  position: absolute; left: 0; top: 0;
  width: 1440px; height: 900px;
  border: 0; background: #0b0b0c;
  transform-origin: 0 0; transform: scale(var(--fs, 0.5));
  opacity: 0; visibility: hidden; transition: opacity 0.6s var(--ease);
}
.live-frame.ready { opacity: 1; visibility: inherit; }
.live-view:not(.is-live) .live-frame { display: none; }
.live-view.is-live .site { cursor: default; }
.live-view:not(.is-live) .site { cursor: pointer; }
.live-tag {
  position: absolute; right: 3cqw; bottom: 10.5%;
  margin: 0; padding: 1cqw 1.3cqw;
  background: var(--signal); color: var(--ink);
  border-radius: 0.4cqw;
  font: 600 max(9px, 1.35cqw)/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s var(--ease);
  animation: tagBob 1.6s ease-in-out infinite;
}
.live-tag::after { content: ''; position: absolute; right: 4cqw; top: 100%; border: 0.8cqw solid transparent; border-top-color: var(--signal); border-bottom: 0; }
@keyframes tagBob { 50% { transform: translateY(-0.5cqw); } }
.live-view.used .live-tag { opacity: 0; animation: none; }

/* Botones para elegir la web de la pantalla */
.site-switch { display: inline-flex; margin-top: 26px; border: 1px solid var(--line-2); }
.site-switch button {
  min-height: 44px; padding: 0 18px;
  background: transparent; border: 0; cursor: pointer;
  font: 500 12px/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper-2);
  transition: background 0.25s, color 0.25s;
}
.site-switch button + button { border-left: 1px solid var(--line-2); }
.site-switch button:hover { color: var(--paper); background: rgba(239, 235, 227, 0.05); }
.site-switch button.on { background: var(--signal); color: var(--ink); }

/* Aviso en el texto del paso 04 */
.try { display: flex; align-items: flex-start; gap: 14px; margin-top: 24px; max-width: 40ch; }
.try p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--paper-2); }
.try b { display: block; margin-bottom: 4px; font: 500 11px/1.3 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--signal); }
.try-dot { position: relative; flex: none; width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--signal); }
.try-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--signal); animation: ping 2.2s var(--ease) infinite; }
/* Texto para ratón o para dedo según el dispositivo */
.for-touch { display: none; }
@media (hover: none) {
  .for-mouse { display: none; }
  .for-touch { display: inline; }
}

.live {
  display: inline-flex; align-items: center;
  font: 500 10.5px/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ok);
  opacity: 0;
}
.status { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); transition: background 0.4s, box-shadow 0.4s; }
.status.on { background: var(--ok); box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.18); }
.build .phone { right: -2%; bottom: -10%; width: 22%; opacity: 0; visibility: hidden; }

/* Barra de pasos */
.stage-nav {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 26px;
  display: flex; justify-content: flex-end; gap: clamp(14px, 2.4vw, 34px);
}
.stage-nav a, .work-nav a {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 11.5px/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  transition: color 0.3s, border-color 0.3s;
}
.stage-nav a span { color: inherit; opacity: 0.7; }
.stage-nav a.active, .work-nav a.active { color: var(--paper); border-color: var(--signal); }
.stage-nav a:hover, .work-nav a:hover { color: var(--paper); }

/* ============ Escena 2: trabajos ============ */
.work { background: var(--ink); }
.work-head {
  position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); top: calc(var(--header-h) + 22px);
  display: flex; justify-content: space-between; align-items: baseline;
}
.work-count { font: 500 13px/1 var(--f-mono); color: var(--muted); letter-spacing: 0.1em; }
.work-count span { color: var(--paper); }
.projects { position: absolute; inset: 0; }
.project {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) 1.28fr;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: calc(var(--header-h) + 40px) var(--gutter) 90px;
}
.project:not([data-project="0"]) { opacity: 0; visibility: hidden; }
.p-num { font: 500 13px/1 var(--f-mono); color: var(--accent); letter-spacing: 0.12em; }
.project h2 { font-size: clamp(40px, 5.2vw, 88px); margin: 18px 0 14px; }
.p-meta { font: 500 12px/1.4 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.p-line { margin-top: 24px; font-size: clamp(16px, 1.25vw, 19px); color: var(--paper-2); max-width: 34ch; }
.tags { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font: 500 11px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 3px; color: var(--paper-2); }
.p-visual { position: relative; padding: 0 0 6% 7%; }
.p-visual .phone { left: 0; bottom: 0; width: 19%; }
.slides > img { opacity: 0; transition: opacity 0.9s var(--ease); }
.slides > img.on { opacity: 1; }

/* Bocadillos: puntos numerados sobre la captura; la explicación va en la lista de la columna de texto.
   Al pasar por un punto o por su línea de la lista, aparece su etiqueta sobre la captura. */
.callout { position: absolute; left: var(--x); top: var(--y); z-index: 2; width: 0; height: 0; }
.callout .dot {
  position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(255, 91, 31, 0.22), 0 2px 10px rgba(0, 0, 0, 0.6);
  cursor: default;
  transition: transform 0.3s var(--ease);
}
.callout .dot b { font: 600 11px/1 var(--f-mono); color: var(--ink); }
.callout .dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--signal); animation: ping 2.6s var(--ease) infinite; }
@keyframes ping { from { transform: scale(0.9); opacity: 0.8; } to { transform: scale(1.8); opacity: 0; } }
.callout .label {
  position: absolute;
  white-space: nowrap;
  font: 500 12px/1 var(--f-mono); letter-spacing: 0.04em;
  color: var(--paper);
  background: rgba(13, 13, 14, 0.94);
  border: 1px solid var(--line-2);
  border-radius: 3px;
  padding: 9px 11px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.callout:hover .label, .callout.show .label { opacity: 1; }
.callout:hover .dot, .callout.show .dot { transform: scale(1.15); }
.callout[data-side="left"] .label { right: 22px; top: -16px; }
.callout[data-side="right"] .label { left: 22px; top: -16px; }
.callout[data-side="up"] .label { right: -12px; bottom: 22px; }
.callout[data-side="down"] .label { right: -12px; top: 22px; }

.callout-list {
  list-style: none; padding: 0; margin: 30px 0 0;
  display: grid; gap: 12px;
  font: 400 13px/1.35 var(--f-mono); color: var(--paper-2);
  border-top: 1px solid var(--line);
  padding-top: 22px;
  counter-reset: c;
}
.callout-list li { counter-increment: c; display: flex; align-items: center; gap: 12px; cursor: default; transition: color 0.2s; }
.callout-list li::before {
  content: counter(c); flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--signal); color: var(--signal);
  font: 600 11px/1 var(--f-mono);
  transition: background 0.2s, color 0.2s;
}
.callout-list li:hover, .callout-list li.on { color: var(--paper); }
.callout-list li:hover::before, .callout-list li.on::before { background: var(--signal); color: var(--ink); }

.work-nav {
  position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: 26px;
  display: flex; justify-content: flex-end; gap: clamp(14px, 2.4vw, 34px);
}

/* ============ Servicios ============ */
.services, .contact { padding: clamp(96px, 14vw, 180px) var(--gutter); border-top: 1px solid var(--line); }
.sec-head h2 { font-size: clamp(44px, 6.4vw, 108px); margin-top: 18px; }
.serv-list { list-style: none; padding: 0; margin: clamp(48px, 7vw, 96px) 0 0; border-top: 1px solid var(--line); }
.serv {
  display: grid;
  grid-template-columns: 70px 1.1fr 1fr 230px;
  align-items: baseline;
  gap: 24px;
  padding: clamp(26px, 3.2vw, 42px) 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.4s;
}
.serv-n { font: 500 13px/1 var(--f-mono); color: var(--signal); letter-spacing: 0.1em; }
.serv h3 { font-size: clamp(28px, 3.4vw, 54px); transition: transform 0.5s var(--ease); }
.serv p { color: var(--paper-2); font-size: clamp(15px, 1.15vw, 18px); max-width: 36ch; }
.serv-eg { font: 500 11.5px/1.3 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-align: right; }
@media (hover: hover) {
  .serv:hover h3 { transform: translateX(10px); }
  .serv:hover .serv-eg { color: var(--paper); }
}
/* Captura que sigue al ratón por la lista de servicios */
.serv-peek {
  position: fixed; left: 0; top: 0; z-index: 40;
  width: clamp(240px, 22vw, 340px); aspect-ratio: 16 / 10;
  border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  pointer-events: none; opacity: 0; visibility: hidden;
}
.serv-peek img { width: 100%; height: 100%; object-fit: cover; }

/* ============ Contacto ============ */
.contact .sec-head h2 { max-width: 14ch; }
.prompt-form {
  margin-top: clamp(40px, 6vw, 80px);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--ink-2);
  padding: clamp(20px, 3vw, 36px);
}
.pf-label { display: block; font: 500 11px/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.pf-idea .pf-label { color: var(--signal); }
.prompt-form textarea, .prompt-form input {
  width: 100%;
  background: transparent; color: var(--paper);
  border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  font: 400 16px/1.5 var(--f-body);
  padding: 8px 0 12px;
  outline: none;
  transition: border-color 0.2s;
}
.prompt-form textarea { font: 400 clamp(17px, 1.6vw, 24px)/1.5 var(--f-mono); resize: none; field-sizing: content; min-height: 140px; max-height: 50vh; caret-color: var(--signal); }
.prompt-form textarea::placeholder, .prompt-form input::placeholder { color: #6f6b63; }
.prompt-form textarea:focus, .prompt-form input:focus { border-color: var(--signal); }
.prompt-form [aria-invalid="true"] { border-color: #ff8a65; }
.pf-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 28px; align-items: end; margin-top: 30px; }
.pf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pf-msg { margin-top: 20px; font: 400 14px/1.5 var(--f-mono); color: var(--paper-2); }
.pf-msg.error { color: #ff8a65; }
.pf-msg.ok { color: var(--ok); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ============ Pie ============ */
.site-footer { padding: 40px var(--gutter) 34px; border-top: 1px solid var(--line); overflow: hidden; }
.foot-mark {
  font: 750 clamp(64px, 17.5vw, 300px)/0.82 var(--f-display);   /* main.js lo ajusta al ancho */
  letter-spacing: -0.06em;
  text-transform: lowercase;
  margin: 0 0 40px -0.04em;
  white-space: nowrap;
}
.foot-mark .caret { animation-duration: 1.4s; }
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font: 400 12.5px/1.4 var(--f-mono); color: var(--muted); letter-spacing: 0.04em; }
.foot-row a { color: var(--paper-2); text-decoration: none; }
.foot-row a:hover { color: var(--paper); }

/* ============ Páginas legales (/aviso-legal/ y /privacidad/) ============ */
.nav a[aria-current="page"] { color: var(--paper); border-color: var(--signal); }
.legal {
  max-width: 780px; margin: 0 auto; box-sizing: content-box;
  padding: calc(var(--header-h) + clamp(48px, 8vw, 104px)) var(--gutter) clamp(72px, 10vw, 136px);
}
.legal h1 { font-size: clamp(46px, 7vw, 92px); margin: 18px 0 26px; }
.legal-lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--paper-2); max-width: 58ch; }
.legal section { margin-top: clamp(44px, 5vw, 64px); padding-top: 26px; border-top: 1px solid var(--line); }
.legal h2 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 16px; }
.legal h2 .n { display: block; margin-bottom: 12px; font: 500 12px/1 var(--f-mono); letter-spacing: 0.12em; color: var(--signal); }
.legal p, .legal li { color: var(--paper-2); max-width: 68ch; }
.legal p + p, .legal ul + p, .legal-table + p { margin-top: 14px; }
.legal ul { margin: 0; padding-left: 1.1em; }
.legal p + ul { margin-top: 14px; }
.legal li + li { margin-top: 10px; }
.legal li::marker { color: var(--signal); }
.legal strong { color: var(--paper); font-weight: 600; }
.legal a { color: var(--paper); text-decoration-color: var(--signal); text-underline-offset: 3px; }
.legal a:hover { color: var(--signal); }
.legal-data { display: grid; grid-template-columns: max-content 1fr; gap: 12px 32px; margin: 0; }
.legal-data dt { font: 500 11.5px/1.9 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.legal-data dd { margin: 0; color: var(--paper); }
.legal-table { border-top: 1px solid var(--line-2); }
.legal-table [role="row"] { display: grid; grid-template-columns: 1.15fr 1fr 1.15fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; color: var(--paper-2); }
.legal-table [role="row"] > :first-child { color: var(--paper); }
.legal-table .lt-head { font: 500 11px/1.4 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; padding: 12px 0; }
.legal-table .lt-head > * { color: var(--muted) !important; }
.legal-page .site-footer { padding-top: 28px; }
@media (max-width: 640px) {
  .legal-data { grid-template-columns: 1fr; gap: 2px; }
  .legal-data dd + dt { margin-top: 14px; }
  .legal-table .lt-head { display: none; }
  .legal-table [role="row"] { grid-template-columns: 1fr; gap: 6px; }
  .legal-table [role="cell"]:nth-child(2)::before { content: 'Base legal · '; color: var(--muted); }
  .legal-table [role="cell"]:nth-child(3)::before { content: 'Plazo · '; color: var(--muted); }
}

/* Nota de privacidad bajo el formulario */
.pf-legal { margin-top: 24px; font: 400 12px/1.6 var(--f-mono); letter-spacing: 0.02em; color: var(--muted); max-width: 88ch; }
.pf-legal a { color: var(--paper-2); text-underline-offset: 3px; }
.pf-legal a:hover { color: var(--paper); }

/* Revelado al entrar en pantalla */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ============ Tablet ============ */
@media (max-width: 1100px) {
  .nav { display: none; }
  .scene-inner, .project { grid-template-columns: 1fr 1.3fr; }
  .serv { grid-template-columns: 54px 1fr; }
  .serv p { grid-column: 2; }
  .serv-eg { grid-column: 2; text-align: left; }
}

/* ============ Móvil (también tablet vertical) ============ */
@media (max-width: 820px), (orientation: portrait) and (max-width: 1100px) {
  :root { --header-h: 60px; }
  .brand { font-size: 20px; }
  .site-header .link-cta { font-size: 11.5px; }
  .site-header .link-cta .ar { display: none; }

  .scene-inner, .build .scene-inner, .project {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 22px;
    padding: calc(var(--header-h) + 18px) var(--gutter) 64px;
  }
  .build .copy-col { height: auto; min-height: 210px; align-items: start; }
  .build h1 { font-size: clamp(44px, 12.5vw, 72px); margin: 14px 0 14px; }
  .lede { font-size: 15.5px; }
  .hint { margin-top: 20px; }
  .hint-line { height: 26px; }
  .build h2 { font-size: clamp(38px, 11vw, 60px); margin: 12px 0 10px; }
  .visual-col { height: auto; align-items: start; }
  .build .phone { right: 2%; bottom: -34%; width: 30%; border-width: 4px; border-radius: 20px; }
  .prompt { width: 86cqw; padding: 4.6cqw 5cqw; }
  .prompt-text { font-size: 3.7cqw; min-height: 3.2em; }
  .browser-bar { height: 28px; gap: 10px; padding: 0 10px; }
  .dots i { width: 7px; height: 7px; }
  .url { height: 18px; font-size: 10px; }
  .live { font-size: 9px; }

  .stage-nav, .work-nav { justify-content: space-between; bottom: 14px; gap: 6px; }
  .stage-nav a, .work-nav a { font-size: 9.5px; letter-spacing: 0.06em; gap: 4px; }
  .stage-nav a span { display: none; }

  .work-head { top: calc(var(--header-h) + 6px); }
  .project { padding-top: calc(var(--header-h) + 44px); }
  .project h2 { font-size: clamp(36px, 10vw, 56px); margin: 10px 0 8px; }
  .p-line { margin-top: 12px; font-size: 15px; }
  .tags { margin-top: 14px; }
  .tags li { font-size: 9.5px; padding: 6px 8px; }
  .p-visual { padding: 0 0 0 0; }
  .p-visual .phone { display: none; }
  .callout .label { display: none; }
  .callout .dot { width: 20px; height: 20px; left: -10px; top: -10px; }
  .callout .dot::after { display: none; }
  .callout-list { margin-top: 16px; padding-top: 14px; gap: 8px; font-size: 12px; }
  .callout-list li::before { width: 20px; height: 20px; font-size: 10px; }

  .serv { grid-template-columns: 1fr; gap: 10px; }
  .serv p, .serv-eg { grid-column: 1; }
  .pf-row { grid-template-columns: 1fr; gap: 22px; }
  .btn { width: 100%; }
}

@media (max-width: 380px) {
  .project .p-line { display: none; }
}

/* Pantallas bajas en horizontal (portátiles pequeños) */
@media (min-width: 821px) and (max-height: 760px) {
  .build h1 { font-size: clamp(48px, 6vw, 92px); }
  .project h2 { font-size: clamp(36px, 4.4vw, 70px); }
  .p-line { margin-top: 14px; }
  .tags { margin-top: 16px; }
}

/* ============ Sin animaciones (preferencia del sistema) ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.reduced .scene, .reduced .scene-stack { height: auto; overflow: visible; }
.reduced .scene-stack > .scene { position: relative; inset: auto; opacity: 1; visibility: visible; }
.reduced .scene-inner, .reduced .projects, .reduced .project { position: relative; inset: auto; }
.reduced .build .copy-col { display: block; }
.reduced .build .copy { opacity: 1 !important; visibility: visible !important; margin-bottom: 40px; }
.reduced .build .prompt, .reduced .build .wire, .reduced .grid-bg, .reduced .hint { display: none; }
.reduced .shots > img[data-k="portada"], .reduced .build .phone { opacity: 1 !important; visibility: visible !important; }
.reduced .project { opacity: 1 !important; visibility: visible !important; min-height: 100vh; }
.reduced .stage-nav, .reduced .work-nav { display: none; }
.reduced .work-head { position: relative; top: auto; left: auto; right: auto; padding: calc(var(--header-h) + 20px) 0 0; }
