/* =========================================================
   MORO PRESTIA · PORTFOLIO 2026
   Estilo: sticker + fotocopia + editorial. Paleta: hueso, tinta, rojo.
   ========================================================= */

/* ---------- TOKENS ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bone: #ece8e0;
  --bone-2: #e3dfd6;
  --paper: #f3f0ea;
  --ink: #1f1e1b;
  --ink-2: #3b3a36;
  --muted: #5f5c55;
  --line: rgba(31, 30, 27, .2);
  --line-strong: rgba(31, 30, 27, .75);
  --red: #e0261f;
  --red-deep: #b91a15;

  --f-sticker: 'Fraunces', Georgia, serif;
  --f-serif: 'Instrument Serif', Georgia, serif;
  --f-sans: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --pad: clamp(16px, 3.4vw, 48px);
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow-sticker: drop-shadow(0 .05em 0 rgba(31, 30, 27, .35)) drop-shadow(0 .12em .14em rgba(31, 30, 27, .28));

  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.09  0 0 0 0 0.08  0 0 0 0.42 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

html { background: var(--bone); scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: var(--f-sans); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--bone);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
body.locked { overflow: hidden; }
/* grano de fotocopia sobre todo el sitio */
body::after { content: ''; position: fixed; inset: 0; z-index: 900; pointer-events: none; background-image: var(--grain); opacity: .45; mix-blend-mode: multiply; }

::selection { background: var(--red); color: var(--bone); }
:focus-visible { outline: 2px dashed var(--ink); outline-offset: 4px; border-radius: 4px; }
.on-red :focus-visible { outline-color: var(--bone); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: var(--pad); top: 10px; z-index: 1000; background: var(--ink); color: var(--bone); padding: 12px 18px; border-radius: 999px; text-decoration: none; transform: translateY(-160%); transition: transform .3s var(--ease); }
.skip:focus-visible { transform: none; }

/* ---------- PIEZAS COMUNES ---------- */
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .07em; text-transform: uppercase; line-height: 1.5; }
.dim { color: var(--muted); }
.it { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.red { color: var(--red); }

/* casilla tachada ☒ (elemento gráfico de la referencia) */
.xbox { display: inline-block; width: 1em; height: 1em; vertical-align: -.12em; flex: none; }
.xbox rect, .xbox path { fill: none; stroke: currentColor; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.xbox.empty path { display: none; }

/* sticker: el texto lleva detrás una copia con trazo hueso grueso (sin cruces internos) y sombra */
.sticker { position: relative; display: inline-block; }
.sticker .s-bg { position: absolute; inset: 0; color: var(--paper); -webkit-text-stroke: .2em var(--paper); paint-order: stroke fill; filter: var(--shadow-sticker); user-select: none; pointer-events: none; }
.sticker .s-fg { position: relative; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 999px; text-decoration: none;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .07em; text-transform: uppercase;
  border: 1.5px solid var(--ink); transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--spring), border-color .3s;
}
.btn.solid { background: var(--ink); color: var(--bone); }
.btn:hover { background: var(--red-deep); border-color: var(--red-deep); color: var(--bone); }
.btn:active { transform: scale(.96); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translate(2px, -2px); }

/* encabezado de sección: rótulo mono con número y casilla */
.sec { position: relative; padding: clamp(84px, 11vw, 160px) var(--pad); }
.sec-label { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 10px; border-bottom: 1.5px solid var(--ink); margin-bottom: clamp(32px, 5vw, 64px); }
.sec-label > span { display: inline-flex; gap: 10px; align-items: center; }
.sec-title { font-size: clamp(46px, 7vw, 116px); font-weight: 500; letter-spacing: -.045em; line-height: 1.04; padding-bottom: .06em; }
.sec-title .it { color: var(--red); font-size: 1.08em; letter-spacing: -.02em; }
.sec-lead { max-width: 46ch; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.45; color: var(--ink-2); margin-top: clamp(16px, 1.6vw, 24px); }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- HEADER ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 500; height: var(--nav-h); padding: 0 var(--pad);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: var(--bone);
  transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s;
}
.top.solid { background: rgba(236, 232, 224, .9); color: var(--ink); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.logo { justify-self: start; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.logo img { height: 20px; width: auto; transition: filter .4s; filter: invert(1) brightness(1.6); }
.top.solid .logo img { filter: none; }
.nav { display: flex; gap: 4px; }
.nav a { position: relative; padding: 8px 12px; text-decoration: none; border-radius: 999px; display: inline-flex; gap: 7px; align-items: center; }
.nav a .xbox { width: .95em; height: .95em; }
.nav a:not(.on) .xbox path { display: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.top-r { justify-self: end; display: flex; gap: 10px; align-items: center; }
.lang { display: flex; gap: 2px; }
.lang button { padding: 7px 8px; border-radius: 999px; opacity: .55; }
.lang button[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.top .btn { padding: 10px 16px; border-color: currentColor; }
.top:not(.solid) .btn.solid { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.menu-btn { display: none; }

.menu {
  position: fixed; inset: 0; z-index: 600; background: var(--red); color: var(--bone);
  padding: 0 var(--pad) calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column;
  clip-path: circle(0 at calc(100% - 50px) 32px); visibility: hidden;
  transition: clip-path .75s var(--ease-io), visibility 0s .75s;
}
.menu.open { clip-path: circle(150% at calc(100% - 50px) 32px); visibility: visible; transition: clip-path .75s var(--ease-io); }
.menu-top { height: var(--nav-h); display: flex; justify-content: space-between; align-items: center; }
.menu-top .btn { border-color: var(--bone); color: var(--bone); }
.menu ul { margin: auto 0; }
.menu li a { display: flex; align-items: baseline; justify-content: space-between; text-decoration: none; padding: 6px 0; border-bottom: 1.5px solid rgba(236, 232, 224, .3); font-family: var(--f-sticker); font-style: italic; font-variation-settings: 'wght' 900, 'SOFT' 100, 'WONK' 1, 'opsz' 144; font-size: clamp(48px, 13vw, 96px); line-height: 1.05; transform: translateY(30px); opacity: 0; transition: transform .6s var(--ease), opacity .6s var(--ease); }
.menu.open li a { transform: none; opacity: 1; transition-delay: calc(.2s + var(--i) * 60ms); }
.menu li a .mono { font-style: normal; }
.menu-foot { display: flex; flex-wrap: wrap; gap: 10px 20px; padding-top: 18px; }
.menu-foot a { text-decoration: none; }

/* ---------- PORTADA ---------- */
.hero {
  position: relative; min-height: max(100svh, 640px); background: var(--red); color: var(--ink);
  padding: calc(var(--nav-h) + 8px) var(--pad) 20px; display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
}
/* grano extra en el rojo, como impreso */
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 50% 120%, rgba(31,30,27,.22), transparent 60%), radial-gradient(80% 60% at 10% -10%, rgba(255,255,255,.12), transparent 60%); }
.hero-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; padding: 10px 0; border-bottom: 1.5px solid rgba(31, 30, 27, .7); }
.hero-row > :nth-child(2) { text-align: center; }
.hero-row > :last-child { text-align: right; }
.hero-row span { display: inline-flex; gap: 8px; align-items: center; }
.hero-stage { position: relative; flex: 1; display: grid; place-items: center; min-height: 0; }
.hero-title { position: relative; font-family: var(--f-sticker); font-style: italic; font-variation-settings: 'wght' 900, 'SOFT' 100, 'WONK' 1, 'opsz' 144; font-weight: 900; font-size: clamp(86px, 17.5vw, 300px); line-height: .9; letter-spacing: -.01em; transform: rotate(-3deg); padding: .1em .12em .16em; }
.hero-title .s-fg { color: var(--ink); }
.badge {
  position: absolute; right: -.9em; top: -.5em; z-index: 2; display: grid; place-items: center;
  width: 2.7em; height: 2.7em; border-radius: 50%; background: var(--ink); color: var(--paper);
  font-family: var(--f-sans); font-style: normal; font-weight: 700; font-size: max(13px, .13em); letter-spacing: -.02em;
  transform: rotate(12deg); box-shadow: 0 0 0 .16em var(--paper), 0 .14em .24em rgba(31,30,27,.35);
}
.hero-sub { position: absolute; left: 0; right: 0; bottom: -.1em; display: flex; justify-content: space-between; padding: 0 .55em; font-family: var(--f-mono); font-style: normal; font-size: max(12px, .06em); letter-spacing: .07em; text-transform: uppercase; color: var(--ink); font-weight: 500; transform: translateY(100%); }
.hero-sub sup { font-size: .7em; text-transform: none; margin-right: .4em; }
.hero-boxes .xbox { position: absolute; width: clamp(18px, 1.8vw, 28px); height: clamp(18px, 1.8vw, 28px); color: var(--ink); }
.hero-bottom { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding-top: 12px; border-top: 1.5px solid rgba(31, 30, 27, .7); }
.hero-bottom p:first-child { max-width: 38ch; font-size: clamp(16px, 1.25vw, 19px); font-weight: 500; line-height: 1.35; color: var(--paper); }
.hero-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.hero .btn { border-color: var(--ink); }
.hero .btn.solid { background: var(--ink); color: var(--paper); }

/* stickers sueltos arrastrables */
.drag { position: absolute; left: 0; top: 0; z-index: 3; cursor: grab; touch-action: none; user-select: none; will-change: transform; }
.drag.grab { cursor: grabbing; }
.drag.grab .chip, .drag.grab .round { filter: drop-shadow(0 18px 22px rgba(31,30,27,.4)); }
.chip { display: inline-block; padding: .3em .75em .32em; border-radius: 999px; font-weight: 700; letter-spacing: -.02em; font-size: clamp(18px, 1.8vw, 28px); line-height: 1; background: var(--paper); color: var(--ink); box-shadow: 0 0 0 .14em var(--paper); filter: drop-shadow(0 4px 0 rgba(31,30,27,.3)) drop-shadow(0 10px 12px rgba(31,30,27,.22)); transition: filter .3s; }
.chip.ink { background: var(--ink); color: var(--paper); }
.chip.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(22px, 2.2vw, 34px); }
.round { display: grid; place-items: center; width: clamp(74px, 7.4vw, 110px); height: clamp(74px, 7.4vw, 110px); border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 .4em var(--paper) inset, 0 0 0 5px var(--paper); filter: drop-shadow(0 4px 0 rgba(31,30,27,.3)) drop-shadow(0 10px 12px rgba(31,30,27,.22)); }
.round img { width: 62%; height: auto; }
.star { display: grid; place-items: center; width: clamp(92px, 9vw, 132px); aspect-ratio: 1; color: var(--paper); font-family: var(--f-serif); font-style: italic; font-size: clamp(20px, 2vw, 28px); text-align: center; line-height: .95; background: var(--ink); clip-path: polygon(50% 0, 61% 14%, 79% 9%, 80% 27%, 97% 33%, 88% 50%, 97% 67%, 80% 73%, 79% 91%, 61% 86%, 50% 100%, 39% 86%, 21% 91%, 20% 73%, 3% 67%, 12% 50%, 3% 33%, 20% 27%, 21% 9%, 39% 14%); }
.hint { display: inline-flex; gap: 8px; align-items: center; }
.reset-btn { text-decoration: underline; text-underline-offset: 4px; }

/* entrada de la portada */
.js .hero-title, .js .drag, .js .hero-boxes .xbox { opacity: 0; }
.loaded .hero-title { animation: slap .9s var(--spring) .15s both; }
.loaded .drag { animation: pop .7s var(--spring) both; animation-delay: calc(.7s + var(--i, 0) * 90ms); }
.loaded .hero-boxes .xbox { animation: pop .5s var(--spring) both; animation-delay: calc(1s + var(--i, 0) * 60ms); }
@keyframes slap { 0% { opacity: 0; transform: rotate(-12deg) scale(1.35); } 60% { opacity: 1; transform: rotate(-1deg) scale(.97); } 100% { opacity: 1; transform: rotate(-3deg) scale(1); } }
@keyframes pop { 0% { opacity: 0; scale: .2; } 70% { opacity: 1; scale: 1.12; } 100% { opacity: 1; scale: 1; } }

/* ---------- HOLA ---------- */
.hola { padding-top: clamp(70px, 9vw, 130px); }
.hola-text { font-size: clamp(32px, 5.6vw, 98px); font-weight: 500; letter-spacing: -.045em; line-height: 1.08; }
/* cada renglón arranca en una columna de la grilla: se lee de izquierda a derecha, en escalera */
.hola-text .ln { display: block; }
.hola-text .i1 { padding-left: 8.333%; } .hola-text .i2 { padding-left: 16.666%; } .hola-text .i3 { padding-left: 25%; } .hola-text .i4 { padding-left: 33.333%; }
.hola-text .it { color: var(--red); font-size: 1.1em; letter-spacing: -.02em; white-space: nowrap; } /* la frase en itálica no se parte */
.hola-text [data-prev] { cursor: zoom-in; }
.w { transition: color .5s var(--ease), opacity .5s; }
.js .hola-text .w:not(.lit) { color: rgba(31, 30, 27, .16); }
.js .hola-text .it .w:not(.lit) { color: rgba(224, 38, 31, .2); }
.slot { position: relative; display: inline-block; width: 2.4em; height: .78em; margin-left: .15em; border-radius: .14em; overflow: hidden; vertical-align: middle; background: var(--ink); transform: rotate(-2deg); box-shadow: 0 0 0 .06em var(--paper), 0 .05em .12em rgba(31,30,27,.3); }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); filter: grayscale(1) contrast(1.1); }
.slot img.on { opacity: 1; }
.preview { position: fixed; left: 0; top: 0; z-index: 400; width: clamp(200px, 22vw, 320px); aspect-ratio: 1600 / 1251; pointer-events: none; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 6px var(--paper), 0 18px 30px rgba(31,30,27,.35); opacity: 0; transform: translate(-50%, -115%) rotate(-4deg) scale(.6); transition: opacity .3s, transform .45s var(--spring); }
.preview.on { opacity: 1; transform: translate(-50%, -115%) rotate(-4deg) scale(1); }
.preview img { width: 100%; height: 100%; object-fit: cover; }

/* ficha */
.ficha-wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 4vw, 64px); margin-top: clamp(64px, 8vw, 120px); align-items: start; }
.ficha { position: relative; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 18px; padding: 0 0 18px; box-shadow: 8px 8px 0 var(--ink); transform: rotate(-1deg); }
.ficha-head { display: flex; justify-content: space-between; padding: 12px 18px; border-bottom: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); border-radius: 16px 16px 0 0; }
.ficha-body { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 20px 18px 6px; }
.ficha-photo { width: clamp(110px, 11vw, 160px); aspect-ratio: 3 / 4; border-radius: 10px; background: var(--red); display: grid; place-items: center; position: relative; overflow: hidden; }
.ficha-photo img { width: 64%; filter: brightness(0) invert(1) sepia(.2); }
.ficha-photo .mono { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; color: var(--paper); font-size: 9px; }
.ficha dl { display: grid; grid-template-columns: auto 1fr; gap: 0 14px; align-content: start; }
.ficha dt, .ficha dd { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.ficha dt { color: var(--muted); }
.ficha dd { font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.ficha dd .xbox { margin-right: 6px; color: var(--red); }
.ficha { margin-bottom: 40px; }
.stamp { position: absolute; right: -18px; bottom: -58px; width: 112px; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--red); color: var(--red); display: grid; place-items: center; text-align: center; transform: rotate(-14deg); background: rgba(243, 240, 234, .85); font-family: var(--f-mono); font-size: 9px; letter-spacing: .1em; line-height: 1.5; text-transform: uppercase; }
.stamp b { display: block; font-family: var(--f-sticker); font-style: italic; font-variation-settings: 'wght' 900, 'SOFT' 100, 'WONK' 1, 'opsz' 144; font-size: 34px; letter-spacing: 0; line-height: .9; text-transform: none; }
.side h3 { margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { border: 1.5px solid var(--ink); border-radius: 14px; padding: 14px 14px 12px; background: var(--paper); }
.stat b { display: block; font-size: clamp(44px, 5vw, 78px); font-weight: 600; letter-spacing: -.06em; line-height: .9; }
.stat span { display: block; margin-top: 8px; }
.clients { margin-top: 26px; }
.clients ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.clients li { padding: 9px 14px; border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 600; letter-spacing: -.01em; }
.clients li:nth-child(2) { background: var(--ink); color: var(--paper); transform: rotate(-2deg); }
.clients li:nth-child(3) { transform: rotate(1.5deg); }

/* ---------- TRABAJOS ---------- */
.work-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--ink); transition: background .25s, color .25s; }
.filters button sup { font-size: 9px; opacity: .6; }
.filters button[aria-pressed="false"] .xbox path { display: none; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.card { position: relative; transition: transform .45s var(--spring); }
.card[hidden] { display: none; }
.card:nth-child(3n + 2) { margin-top: clamp(0px, 4vw, 60px); }
.card button { display: block; width: 100%; text-align: left; }
.card-img { position: relative; aspect-ratio: 1600 / 1251; border-radius: 14px; overflow: hidden; background: var(--ink); border: 1.5px solid var(--ink); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card-meta { display: flex; justify-content: space-between; gap: 10px; padding: 10px 2px 6px; border-bottom: 1.5px solid var(--ink); }
.card h3 { font-size: clamp(24px, 2.2vw, 34px); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; margin-top: 10px; }
.card h3 .it { color: var(--red); font-weight: 400; }
.card .tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.card .tags span { display: inline-flex; gap: 6px; align-items: center; }
.card .quick { position: absolute; top: 12px; right: 12px; padding: 8px 12px; border-radius: 999px; background: var(--paper); color: var(--ink); transform: rotate(6deg) scale(0); transition: transform .4s var(--spring); }
.card:hover { transform: rotate(-.8deg) translateY(-4px); }
.card:nth-child(even):hover { transform: rotate(.8deg) translateY(-4px); }
.card:hover .card-img img { transform: scale(1.04); }
.card:hover .quick, .card button:focus-visible .quick { transform: rotate(6deg) scale(1); }
.grid.swap .card { opacity: 0; transform: translateY(14px); transition: opacity .25s, transform .25s; }

/* vista rápida */
.modal { position: fixed; inset: 0; z-index: 700; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-bg { position: absolute; inset: 0; background: rgba(31, 30, 27, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade .3s; }
.modal-card { position: relative; width: min(1100px, 100%); max-height: calc(100svh - 40px); overflow: auto; background: var(--paper); border-radius: 22px; border: 1.5px solid var(--ink); box-shadow: 10px 10px 0 var(--red); display: grid; grid-template-columns: 1.25fr 1fr; animation: rise .45s var(--spring); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(40px) rotate(2deg) scale(.96); } }
.modal-img { background: var(--ink); min-height: 100%; display: grid; align-items: center; }
.modal-img img { width: 100%; height: auto; aspect-ratio: 1600 / 1251; object-fit: contain; }
.modal-info { padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 16px; }
.modal-info .mono.top-line { display: flex; justify-content: space-between; gap: 12px; padding-right: 52px; }
.modal-info h3 { font-size: clamp(34px, 3.6vw, 56px); font-weight: 600; letter-spacing: -.05em; line-height: .95; }
.modal-info h3 .it { color: var(--red); font-weight: 400; display: block; font-size: .75em; }
.modal-info dl { display: grid; grid-template-columns: auto 1fr; gap: 0 14px; }
.modal-info dt, .modal-info dd { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.modal-info dd { font-weight: 600; }
.modal-info p { color: var(--ink-2); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.modal-nav { display: flex; justify-content: space-between; align-items: center; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); display: grid; place-items: center; }
.modal-close .xbox { width: 16px; height: 16px; }
.modal-close .xbox rect { display: none; }

/* ---------- SERVICIOS ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tabs button { display: inline-flex; gap: 8px; align-items: center; padding: 11px 16px; border-radius: 12px 12px 0 0; border: 1.5px solid var(--ink); border-bottom: 0; background: var(--bone-2); transition: background .25s, color .25s, transform .3s var(--spring); }
.tabs button[aria-selected="true"] { background: var(--red); color: var(--paper); border-color: var(--red); transform: translateY(-4px); }
.tabs button[aria-selected="false"] .xbox path { display: none; }
.panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 64px); background: var(--paper); border: 1.5px solid var(--ink); border-radius: 0 22px 22px 22px; padding: clamp(22px, 3.4vw, 48px); box-shadow: 8px 8px 0 var(--ink); }
.panel[hidden] { display: none; }
.panel.enter > * { animation: rise .55s var(--ease) both; }
.panel.enter > :nth-child(2) { animation-delay: .08s; }
.panel h3 { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(48px, 6vw, 96px); line-height: .9; letter-spacing: -.02em; color: var(--red); }
.panel .desc { margin-top: 16px; font-size: clamp(17px, 1.4vw, 21px); letter-spacing: -.01em; max-width: 36ch; }
.panel .ideal { margin-top: 18px; padding: 12px 14px; border: 1.5px dashed var(--ink); border-radius: 12px; display: inline-block; }
.panel ul { display: grid; gap: 0; margin-bottom: 22px; }
.panel li { display: flex; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px dashed var(--line); font-weight: 500; }
.panel li .xbox { color: var(--red); }

/* ---------- PROCESO ---------- */
#proceso { overflow-x: clip; }
.proc { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.steps-list { margin-top: 28px; }
.steps-list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: clamp(18px, 1.6vw, 24px); font-weight: 600; letter-spacing: -.02em; color: var(--muted); transition: color .3s; }
.steps-list li .xbox { font-size: 1.1em; }
.steps-list li.done { color: var(--ink); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--red); }
.steps-list li.now { color: var(--ink); }
.steps-list li:not(.done) .xbox path { display: none; }
.deck { position: relative; height: clamp(340px, 34vw, 440px); }
.dcard {
  position: absolute; inset: 0 42px 42px 0; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 20px; padding: clamp(22px, 3vw, 36px);
  display: flex; flex-direction: column; box-shadow: 0 2px 0 var(--ink);
  transform: translate(calc(var(--p) * 14px), calc(var(--p) * 14px)) rotate(calc(var(--p) * 2.2deg)); z-index: calc(10 - var(--p));
  transition: transform .6s var(--spring), opacity .4s;
}
.dcard:nth-child(2) { background: #f0d8d4; }
.dcard:nth-child(3) { background: var(--bone-2); }
.dcard:nth-child(4) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.dcard .big { font-family: var(--f-sticker); font-style: italic; font-variation-settings: 'wght' 900, 'SOFT' 100, 'WONK' 1, 'opsz' 144; font-size: clamp(90px, 10vw, 150px); line-height: .8; color: var(--red); }
.dcard h3 { font-size: clamp(34px, 3.6vw, 54px); font-weight: 600; letter-spacing: -.05em; margin-top: auto; line-height: 1; }
.dcard p { margin-top: 12px; max-width: 40ch; font-size: clamp(16px, 1.3vw, 19px); }
.dcard.gone { transform: translate(-60%, -30px) rotate(-14deg); opacity: 0; pointer-events: none; }
.deck-ctrl { display: flex; gap: 10px; align-items: center; margin-top: 26px; }

/* ---------- HERRAMIENTAS ---------- */
.board { position: relative; height: clamp(320px, 32vw, 440px); border: 1.5px solid var(--ink); border-radius: 24px; overflow: hidden; touch-action: pan-y; background: var(--paper) radial-gradient(circle at 1px 1px, rgba(31,30,27,.22) 1px, transparent 1.5px) 0 0 / 24px 24px; margin-top: 18px; }
.board-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; }

/* ---------- CONTACTO ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.contact .sec-title { font-size: clamp(52px, 7.4vw, 124px); line-height: 1.02; }
.mail-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 28px 0 18px; }
.mail { font-size: clamp(22px, 2.3vw, 34px); font-weight: 600; letter-spacing: -.04em; text-decoration: none; background: linear-gradient(var(--red), var(--red)) 0 100% / 0 3px no-repeat; transition: background-size .5s var(--ease); overflow-wrap: anywhere; }
.mail:hover { background-size: 100% 3px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.form { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 22px; box-shadow: 8px 8px 0 var(--red); transform: rotate(.8deg); }
.form-head { display: flex; justify-content: space-between; padding: 12px 20px; border-bottom: 1.5px solid var(--ink); }
.form-body { padding: 20px; display: grid; gap: 18px; }
.field label, .field legend { display: block; margin-bottom: 8px; }
.field input, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1.5px solid var(--ink); padding: 8px 2px; font-size: 18px; letter-spacing: -.01em; border-radius: 0; }
.field textarea { min-height: 110px; resize: vertical; background: repeating-linear-gradient(transparent 0 33px, var(--line) 33px 34px); line-height: 34px; padding-top: 0; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--red); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
fieldset { border: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { position: relative; display: inline-flex; gap: 8px; align-items: center; padding: 9px 13px; border: 1.5px solid var(--ink); border-radius: 999px; cursor: pointer; margin: 0; transition: background .2s, color .2s; }
.checks input { position: absolute; opacity: 0; pointer-events: none; }
.checks input:not(:checked) + .xbox path { display: none; }
.checks input:checked ~ span { font-weight: 600; }
.checks label:has(input:checked) { background: var(--ink); color: var(--paper); }
.checks label:has(input:focus-visible) { outline: 2px dashed var(--ink); outline-offset: 3px; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.form-msg { padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--ink); }
.form-msg.ok { background: var(--ink); color: var(--paper); }
.form-msg.err { border-color: var(--red); color: var(--red-deep); }
.hp { position: absolute; left: -9999px; }

/* ---------- PIE ---------- */
.foot { background: var(--red); color: var(--ink); padding: clamp(60px, 8vw, 110px) var(--pad) calc(22px + env(safe-area-inset-bottom)); position: relative; overflow: hidden; }
.foot-title { font-family: var(--f-sticker); font-style: italic; font-variation-settings: 'wght' 900, 'SOFT' 100, 'WONK' 1, 'opsz' 144; font-size: clamp(72px, 15vw, 250px); line-height: .9; transform: rotate(-2deg); display: block; width: fit-content; margin: 0 auto; padding: .1em .12em .14em; }
.foot-sub { text-align: center; margin-top: 22px; color: var(--ink); font-weight: 500; }
.foot-row { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 12px 24px; margin-top: clamp(48px, 6vw, 80px); padding-top: 14px; border-top: 1.5px solid rgba(31,30,27,.7); }
.foot-row a { text-decoration: none; }
.foot-row a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .top { grid-template-columns: 1fr auto; }
  .menu-btn { display: inline-flex; }
  .top-r .contact-btn { display: none; }
  .grid { grid-template-columns: 1fr 1fr; }
  .card:nth-child(3n + 2) { margin-top: 0; }
  .card:nth-child(even) { margin-top: clamp(0px, 6vw, 60px); }
  .ficha-wrap, .proc, .contact { grid-template-columns: 1fr; }
  .panel { grid-template-columns: 1fr; }
  .modal-card { grid-template-columns: 1fr; }
  .modal-img { aspect-ratio: 1600 / 1251; min-height: 0; }
}
@media (max-width: 720px) {
  :root { --nav-h: 58px; }
  .logo span:not(.sr-only) { display: none; }
  .top-r { gap: 6px; }
  .top .btn { padding: 9px 13px; }
  .hero-row { grid-template-columns: 1fr 1fr; }
  .hero-row > :nth-child(2) { display: none; }
  .hero-title { font-size: 19.5vw; margin-right: .2em; }
  .badge { right: -.7em; top: -.9em; }
  /* en celular el subtítulo va debajo del sticker, en dos renglones legibles */
  .hero-sub { position: static; transform: none; flex-direction: column; align-items: center; gap: 2px; margin-top: .55em; padding: 0; font-size: 12px; line-height: 1.4; }
  .hero-stage { align-content: center; }
  .hero-boxes { display: none; }
  .stamp { right: 16px; top: 66px; bottom: auto; width: 96px; }
  .ficha { margin-bottom: 8px; }
  .stamp b { font-size: 28px; }
  .hola-text .i1 { padding-left: 4%; } .hola-text .i2 { padding-left: 8%; } .hola-text .i3 { padding-left: 12%; } .hola-text .i4 { padding-left: 16%; }
  .hero-bottom { flex-direction: column; align-items: stretch; }
  .hero-actions { justify-content: stretch; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .hola-text { font-size: 8.6vw; line-height: 1.12; }
  .grid { grid-template-columns: 1fr; }
  .card:nth-child(even) { margin-top: 0; }
  .ficha-body { grid-template-columns: 1fr; }
  .ficha-photo { width: 120px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat b { font-size: 40px; }
  .stat span { font-size: 9px; }
  .two { grid-template-columns: 1fr; }
  .foot-row { grid-template-columns: 1fr 1fr; }
  .tabs button { padding: 9px 12px; }
  .deck { height: 380px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .js .hero-title, .js .drag, .js .hero-boxes .xbox { opacity: 1; }
  .js .hola-text .w:not(.lit), .js .hola-text .it .w:not(.lit) { color: inherit; }
}
