@import url('/fonts/bodoni-moda/bodoni-moda.css');
@import url('/fonts/geist/geist.css');

/* Tinta — portafolio de una página en blanco y negro puro, «dibujado a pluma». Bodoni Moda (titulares) + Geist (texto).
   El achurado (cross-hatching) sale de tres lugares: las fotos, que script.js dibuja con WebGL en la web publicada; los fondos,
   sombras y rellenos de texto, que son patrones de líneas en CSS (--hatch); y las líneas a mano en SVG que se dibujan al bajar.
   html.is-ed = editor (todo quieto y editable, fotos en gris) · html.gs = GSAP activo · html.still = sin GSAP o «reducir movimiento». */

:root {
  --paper: #fff;
  --ink: #0a0a0a;
  --mute: #555;
  --line: rgba(10, 10, 10, .16);
  --serif: 'Bodoni Moda', 'Didot', 'Times New Roman', serif;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(20px, 4vw, 56px);
  /* Achurado: una capa a −45° y, cruzada, otra a 45° */
  --hatch: repeating-linear-gradient(-45deg, var(--ink) 0 1px, transparent 1px 6px);
  --hatch-x: repeating-linear-gradient(-45deg, var(--ink) 0 1px, transparent 1px 6px), repeating-linear-gradient(45deg, var(--ink) 0 1px, transparent 1px 6px);
  --hatch-paper: repeating-linear-gradient(-45deg, var(--paper) 0 1px, transparent 1px 6px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body, button, input, select, textarea { font-family: var(--sans); }
/* sin «font boosting» de Chrome: agrandaba el menú en capturas largas y en algunos celulares */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.contact :focus-visible, .foot :focus-visible { outline-color: var(--paper); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; font-weight: 600; }
.skip-link:focus { left: 8px; }
.tm-al-left { text-align: left; } .tm-al-center { text-align: center; } .tm-al-right { text-align: right; }

/* ─── Tipografía ─── */
.h-xl { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6.4vw, 104px); line-height: 1; letter-spacing: -.025em; overflow-wrap: anywhere; }
.label { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .2em; margin-bottom: 24px; }
.lb-sq { width: 14px; height: 14px; flex: none; border: 1px solid currentColor; background: var(--hatch); }
.label-inv .lb-sq, .contact .lb-sq { background: var(--hatch-paper); }
.lead { font-size: 20px; line-height: 1.55; color: var(--mute); max-width: 520px; }
.cap { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--mute); }
.ln { padding-bottom: .06em; } /* líneas de SplitText */
.sec { padding: clamp(90px, 12vw, 170px) var(--pad); max-width: 1480px; margin: 0 auto; position: relative; }
.sec-head { margin-bottom: clamp(44px, 6vw, 80px); max-width: 1000px; }

/* ─── Botones: el relleno entra como achurado y termina sólido ─── */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px;
  font-size: 15px; font-weight: 500; letter-spacing: .02em; border: 1.5px solid var(--ink); border-radius: 999px; cursor: pointer; transition: color .45s var(--ease); white-space: nowrap; }
.btn .btn-fill { position: absolute; inset: 0; z-index: -1; background: var(--hatch-x); transform: translateY(101%); transition: transform .55s var(--ease); }
.btn .btn-fill::after { content: ''; position: absolute; inset: 0; background: currentColor; opacity: 0; transition: opacity .35s .15s; }
.btn .ar { transition: transform .45s var(--ease); flex: none; }
.btn:hover .ar { transform: translateX(4px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink .btn-fill { background: var(--hatch-paper); }
.btn-ink:hover .btn-fill, .btn-line:hover .btn-fill, .btn-paper:hover .btn-fill { transform: none; }
.btn-line { background: var(--paper); color: var(--ink); }
.btn-line:hover { color: var(--ink); }
.btn-paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-paper .btn-fill { background: var(--hatch); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn-big { min-height: 64px; padding: 0 34px; font-size: 17px; }
.wa-ic { flex: none; }

/* ─── Cabecera ─── */
.nav { position: fixed; z-index: 50; top: 0; left: 0; right: 0; color: var(--ink); transition: background-color .5s var(--ease), color .5s var(--ease), transform .6s var(--ease), box-shadow .5s; }
.nav-in { max-width: 1480px; margin: 0 auto; display: flex; align-items: center; gap: 22px; height: 84px; padding: 0 var(--pad); transition: height .5s var(--ease); }
.nav.is-solid { background: rgba(255, 255, 255, .92); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nav.is-solid .nav-in { height: 68px; }
.nav.is-up { transform: translateY(-100%); }
.nav.is-dark { background: rgba(10, 10, 10, .9); color: var(--paper); box-shadow: 0 1px 0 rgba(255, 255, 255, .14); }
.nav.is-dark .btn-ink { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.nav.is-dark .btn-ink .btn-fill { background: var(--hatch); }
.logo { margin-right: auto; display: inline-flex; align-items: center; min-height: 44px; font-family: var(--serif); font-size: 26px; letter-spacing: -.02em; line-height: 1; }
/* logo en imagen (lo sube el dueño): sobre la cabecera oscura del contacto lleva un fondo de papel para que un logo negro no desaparezca */
.nav.is-dark .logo img { background: var(--paper); border-radius: 6px; padding: 3px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nl { display: inline-flex; align-items: baseline; gap: 6px; min-height: 44px; padding: 12px 12px 0; font-size: 15px; position: relative; }
/* número del enlace por contador: al quitar una sección el editor quita su enlace y los demás se renumeran solos
   (escrito a mano quedaban saltos, «01, 04, 07») */
.nav-links { counter-reset: nl; }
.nl { counter-increment: nl; }
.nl-n::before { content: counter(nl, decimal-leading-zero); }
.nl-n { font-size: 11px; color: var(--mute); font-variant-numeric: tabular-nums; }
.nav.is-dark .nl-n { color: rgba(255, 255, 255, .6); }
.nl::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 5px; background: var(--hatch); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav.is-dark .nl::after { background: var(--hatch-paper); }
.nl:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: none; color: inherit; cursor: pointer; position: relative; flex: none; }
.nav-toggle i { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease); }
.nav-toggle i:first-child { top: 18px; } .nav-toggle i:last-child { top: 27px; }
.nav.is-open .nav-toggle i:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav.is-open .nav-toggle i:last-child { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-links { position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: 100px var(--pad) 40px;
    background: var(--paper); color: var(--ink); clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease); }
  .nav-links::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 30vh; background: var(--hatch); opacity: .9;
    -webkit-mask: linear-gradient(transparent, #000); mask: linear-gradient(transparent, #000); pointer-events: none; }
  .nl { font-family: var(--serif); font-size: clamp(40px, 11vw, 72px); letter-spacing: -.02em; min-height: 66px; padding: 0; line-height: 1.1; gap: 14px;
    transform: translateY(30px); opacity: 0; transition: transform .8s var(--ease), opacity .8s var(--ease); }
  .nl-n { font-family: var(--sans); font-size: 13px; }
  .nl::after { display: none; }
  .nav.is-open { color: var(--ink); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav.is-open .nl-n { color: var(--mute); }
  .nav.is-open .nav-links { clip-path: inset(0 0 0 0); }
  .nav.is-open .nl { transform: none; opacity: 1; }
  .nav.is-open .nl:nth-child(2) { transition-delay: .05s; } .nav.is-open .nl:nth-child(3) { transition-delay: .1s; }
  .nav.is-open .nl:nth-child(4) { transition-delay: .15s; } .nav.is-open .nl:nth-child(5) { transition-delay: .2s; }
}

/* ─── Fotos achuradas (.hx): la <img> abajo y el <canvas> del script encima, del mismo tamaño ─── */
.hx { position: relative; overflow: hidden; background: var(--paper); }
.hx-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); }
.hx-live { position: absolute; inset: 0; pointer-events: none; }
.hx-live canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
html.is-ed .hx-live { display: none; }

/* ─── Portada ─── */
.hero { position: relative; min-height: 100svh; padding: 120px var(--pad) 90px; max-width: 1480px; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(30px, 5vw, 90px); align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 28px; }
/* El tamaño sale del ancho de la columna (cqi), no de la ventana: «Webs con oficio,» entra en una línea en cualquier pantalla,
   también en la vista previa del editor, donde la columna es más angosta que la ventana */
.hero-copy { container-type: inline-size; }
.hero-title { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 6vw, 108px); font-size: clamp(40px, 13.2cqi, 112px); line-height: .96; letter-spacing: -.035em; }
.ht { display: block; }
.ht-2 { font-style: italic; padding-left: .55em; }
.hero-lead { margin-top: 34px; font-size: 20px; line-height: 1.55; color: var(--mute); max-width: 520px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero-status { display: inline-flex; align-items: center; gap: 10px; margin-top: 34px; font-size: 14px; color: var(--mute); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); position: relative; flex: none; }
.dot::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--ink); animation: dot 2.4s var(--ease) infinite; }
@keyframes dot { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.hero-fig { position: relative; }
.hx-hero { aspect-ratio: 4 / 5; width: 100%; }
.fig-corner { position: absolute; width: 26px; height: 26px; border: 1.5px solid var(--ink); pointer-events: none; }
.fig-corner.tl { top: -12px; left: -12px; border-right: 0; border-bottom: 0; }
.fig-corner.br { bottom: 30px; right: -12px; border-left: 0; border-top: 0; }
.hero-scroll { position: absolute; left: var(--pad); bottom: 26px; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.hs-line { width: 1px; height: 38px; background: var(--ink); transform-origin: top; animation: hsl 2.2s var(--ease) infinite; }
@keyframes hsl { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* La portada nace oculta solo fuera del editor y aparece sola si el script no llega */
html:not(.is-ed):not(.still):not(.gs) [data-in] { opacity: 0; animation: tm-safe .8s 2.6s forwards; }
@keyframes tm-safe { to { opacity: 1; } }

/* ─── Cinta de oficios ─── */
.mq { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 26px 0; overflow: hidden; position: relative; }
.disc { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; padding: 0 var(--pad); }
.disc li, .mq-w { font-family: var(--serif); font-size: clamp(30px, 4.4vw, 64px); line-height: 1.1; letter-spacing: -.02em; }
.disc li:nth-child(even), .mq-w:nth-child(4n+3) { font-style: italic; }
.mq.is-on .disc { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.mq-track { display: flex; width: max-content; will-change: transform; }
.mq-group { display: flex; align-items: center; flex: none; }
.mq-w { white-space: nowrap; padding: 0 28px; }
.mq-star { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid var(--ink); background: var(--hatch-x); }

/* ─── Manifiesto: el texto nace achurado y se entinta ─── */
.manifesto { padding-top: clamp(80px, 10vw, 150px); }
.mf-text { font-family: var(--serif); font-size: clamp(32px, 4.6vw, 74px); line-height: 1.12; letter-spacing: -.02em; max-width: 1240px; }
html.gs .mf-text, html.gs .mf-text .wd { --f: 0; color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(var(--ink), var(--ink)), repeating-linear-gradient(-45deg, var(--ink) 0 1.2px, transparent 1.2px 4px);
  background-size: calc(var(--f) * 100%) 100%, auto; background-repeat: no-repeat, repeat; }
html.gs .mf-text:has(.wd) { background: none; color: inherit; }
.scrib { color: var(--ink); width: 100%; height: 40px; }
.scrib svg { width: 100%; height: 100%; display: block; overflow: visible; }
.scrib-top { margin-bottom: clamp(40px, 6vw, 80px); }

/* ─── Proyectos ─── */
.works { max-width: none; padding-left: 0; padding-right: 0; }
.works .sec-head { padding: 0 var(--pad); max-width: 1480px; margin-left: auto; margin-right: auto; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 40px; }
.works .sec-head .label { width: 100%; margin-bottom: 0; }
.works-hint { font-size: 14px; color: var(--mute); }
@media (hover: none) { .works-hint { display: none; } }
.works-view { max-width: 1480px; margin: 0 auto; padding: 0 var(--pad); }
.works-track { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 70px 40px; counter-reset: wk; }
.work { counter-increment: wk; position: relative; }
.work-ph { aspect-ratio: 4 / 3; }
.work:nth-child(4n+1) .work-ph, .work:nth-child(4n+4) .work-ph { aspect-ratio: 4 / 5; }
.work-meta { display: flex; align-items: baseline; gap: 16px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--ink); }
.work-n::before { content: counter(wk, decimal-leading-zero); font-size: 13px; font-variant-numeric: tabular-nums; }
.work-name { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 46px); line-height: 1.05; letter-spacing: -.02em; }
.work-year { margin-left: auto; font-size: 14px; color: var(--mute); font-variant-numeric: tabular-nums; }
.work-cat { margin-top: 10px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.work-desc { margin-top: 10px; font-size: 17px; color: var(--mute); max-width: 460px; }
.work-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; font-size: 15px; font-weight: 500; position: relative; }
.work-link::after { content: ''; position: absolute; left: 0; right: 24px; bottom: 8px; height: 1px; background: var(--ink); transform-origin: left; transition: transform .5s var(--ease); }
.work-link:hover::after { transform: scaleX(0); transform-origin: right; }
.work-link .ar { transition: transform .45s var(--ease); }
.work-link:hover .ar { transform: translate(3px, -3px); }
.works-count { display: none; }
/* Desde 1024 px con GSAP: una fila horizontal que avanza con el scroll (la sección queda fijada) */
@media (min-width: 1024px) {
  html.gs .works-pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 84px 0 118px; overflow: hidden; }
  html.gs .works { padding-top: 0; padding-bottom: 0; }
  html.gs .works .sec-head { margin-bottom: 4vh; width: 100%; }
  html.gs .works-view { max-width: none; padding: 0; width: 100%; }
  html.gs .works-track { display: flex; flex-wrap: nowrap; gap: 6vw; width: max-content; padding: 0 var(--pad); align-items: flex-start; }
  html.gs .work { flex: none; width: 34vw; }
  html.gs .work:nth-child(n) .work-ph { aspect-ratio: auto; height: clamp(200px, calc(100vh - 580px), 46vh); } /* (n): gana a las 4/5 de la tarjeta 1 y 4, que quedaban angostas */
  html.gs .work:nth-child(4n+1), html.gs .work:nth-child(4n+4) { width: 27vw; }
  html.gs .work:nth-child(even) { margin-top: 3vh; }
  html.gs .work-desc { display: none; }
  html.gs .works-count { display: flex; align-items: center; gap: 26px; position: absolute; left: var(--pad); right: var(--pad); bottom: 26px; font-family: var(--serif); font-size: 18px; font-variant-numeric: tabular-nums; }
  html.gs .wc-bar { flex: 1; height: 1px; background: var(--line); position: relative; }
  html.gs .wc-bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
  html.gs .wc-n b { font-weight: 400; font-size: 40px; }
}
/* la foto toma lo que sobra del alto (título + datos + contador ≈ 580 px): «Ver sitio» nunca llega al contador */
@media (min-width: 1024px) and (max-height: 820px) { html.gs .works .sec-head { margin-bottom: 2vh; } }

/* ─── Servicios: filas que se llenan de achurado al pasar el mouse ─── */
.svc-list { counter-reset: sv; border-bottom: 1px solid var(--ink); }
.svc { counter-increment: sv; position: relative; isolation: isolate; display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px 30px; align-items: center; padding: 34px 0; }
.svc-line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink); transform-origin: left; }
.svc-fill { position: absolute; inset: 0; z-index: -1; background: var(--hatch-x); opacity: .14; clip-path: inset(0 100% 0 0); transition: clip-path .7s var(--ease); }
.svc:hover .svc-fill { clip-path: inset(0 0 0 0); }
.svc-n::before { content: '(' counter(sv, decimal-leading-zero) ')'; font-size: 14px; font-variant-numeric: tabular-nums; }
.svc-t { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 56px); line-height: 1.05; letter-spacing: -.02em; transition: transform .6s var(--ease); }
.svc:hover .svc-t { transform: translateX(14px); font-style: italic; }
.svc-d { font-size: 17px; color: var(--mute); max-width: 440px; }
/* «Cotizar →»: WhatsApp con el nombre del servicio; en la web publicada toda la fila lo abre */
.svc-ar { justify-self: end; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.svc-ar::after { content: ''; position: absolute; inset: 0; }
html.is-ed .svc-ar::after { display: none; }
.svc-cta { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.svc:hover .svc-cta { background-size: 100% 1px; }
.svc-ar .ar { transition: transform .5s var(--ease); }
.svc:hover .svc-ar .ar { transform: rotate(-45deg); }
@media (max-width: 860px) { .svc { grid-template-columns: 50px minmax(0, 1fr); } .svc-d, .svc-ar { grid-column: 2; } .svc-ar { justify-self: start; } }

/* ─── Proceso ─── */
.proc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 50px 34px; counter-reset: pr; }
.step { counter-increment: pr; position: relative; }
.step-ic { width: 110px; height: 92px; margin-bottom: 18px; position: relative; }
.step-ic::before { content: ''; position: absolute; left: 22px; top: 26px; width: 74px; height: 58px; border-radius: 50%; background: var(--hatch); opacity: .55; }
.pr-ic { position: relative; width: 110px; height: 92px; display: block; }
.step-n::before { content: counter(pr, decimal-leading-zero); display: block; font-size: 13px; letter-spacing: .14em; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.step-t { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; letter-spacing: -.01em; }
.step-d { margin-top: 10px; font-size: 17px; color: var(--mute); }
.scrib-proc { margin-top: 70px; }

/* ─── Sobre mí ─── */
.about-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.about-fig { position: relative; }
.hx-about { aspect-ratio: 1; position: relative; z-index: 1; border: 1.5px solid var(--ink); }
.fig-shadow { position: absolute; z-index: 0; left: 18px; top: 18px; right: -18px; bottom: 32px; background: var(--hatch-x); }
.about-copy .sec-head { margin-bottom: 26px; }
.about-copy .h-xl { font-size: clamp(36px, 4.4vw, 70px); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 24px; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--ink); }
.stat-v { display: block; font-family: var(--serif); font-size: clamp(48px, 5vw, 76px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-l { display: block; margin-top: 8px; font-size: 15px; color: var(--mute); }
.tools { margin-top: 36px; }
.tools-t { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 14px; }
.tool-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-list li { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 999px; font-size: 15px; transition: background-color .3s, color .3s; }
.tool-list li:hover { background: var(--ink); color: var(--paper); }

/* ─── Opiniones: tarjetas con sombra achurada ─── */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 46px 40px; }
.quote { position: relative; isolation: isolate; padding: 40px 34px 34px; border: 1.5px solid var(--ink); background: var(--paper); display: flex; flex-direction: column; transition: transform .5s var(--ease); }
.quote::after { content: ''; position: absolute; z-index: -2; inset: 0; transform: translate(12px, 12px); background: var(--hatch); border: 1px solid var(--ink); transition: transform .5s var(--ease); }
.quote::before { content: ''; position: absolute; z-index: -1; inset: 0; background: var(--paper); }
.quote:hover { transform: translate(-4px, -4px); }
.quote:hover::after { transform: translate(18px, 18px); }
.q-mark { font-family: var(--serif); font-size: 110px; line-height: .6; height: 46px; display: block; color: transparent; background: var(--hatch-x); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 1px var(--ink); }
.q-text { font-family: var(--serif); font-size: 23px; line-height: 1.4; flex: 1; }
.quote figcaption { display: flex; flex-direction: column; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); }
.q-name { font-weight: 500; font-size: 16px; }
.q-proj { font-size: 14px; color: var(--mute); }

/* ─── Contacto: de papel a tinta ─── */
.contact { position: relative; background: var(--ink); color: var(--paper); padding: 0 var(--pad) clamp(80px, 10vw, 140px); overflow: clip; }
/* Líneas horizontales que engrosan hacia abajo: un degradado hecho solo con trazos, como en un grabado */
.ink-fade { position: relative; height: clamp(120px, 16vw, 220px); margin: 0 calc(-1 * var(--pad)); background: var(--paper); }
/* GSAP estira solo las líneas (--s); el papel se queda, así no asoma el negro del contacto por encima */
.ink-fade::before { content: ''; position: absolute; inset: 0; transform: scaleY(var(--s, 1)); transform-origin: bottom; background:
  repeating-linear-gradient(0deg, var(--ink) 0 6px, transparent 6px 8px) 0 100% / 100% 30% no-repeat,
  repeating-linear-gradient(0deg, var(--ink) 0 4px, transparent 4px 8px) 0 70% / 100% 22% no-repeat,
  repeating-linear-gradient(0deg, var(--ink) 0 2.5px, transparent 2.5px 8px) 0 40% / 100% 22% no-repeat,
  repeating-linear-gradient(0deg, var(--ink) 0 1px, transparent 1px 8px) 0 0 / 100% 30% no-repeat; }
.contact-in { max-width: 1480px; margin: 0 auto; padding-top: clamp(70px, 9vw, 130px); }
.ct-big { font-family: var(--serif); font-weight: 400; line-height: .9; letter-spacing: -.045em; margin: 10px 0 50px; white-space: nowrap; }
.fit { display: inline-block; white-space: nowrap; font-size: clamp(64px, 17vw, 300px); }
.ct-fit { font-style: italic; }
.ct-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px; border-top: 1px solid rgba(255, 255, 255, .3); padding-top: 40px; }
.contact .lead { color: rgba(255, 255, 255, .78); }
.ct-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.ct-mail { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 15px; color: rgba(255, 255, 255, .7); }
.mail-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper); font-family: var(--serif); font-size: 22px; background: linear-gradient(currentColor, currentColor) 0 85% / 100% 1px no-repeat; transition: background-size .5s var(--ease); }
.mail-link:hover { background-size: 0 1px; background-position: 100% 85%; }
.mail-pick { position: fixed; z-index: 90; min-width: 230px; background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); box-shadow: 8px 8px 0 rgba(10, 10, 10, .9); padding: 8px; display: flex; flex-direction: column; }
.mail-pick p { font-size: 13px; color: var(--mute); padding: 8px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.mail-pick a, .mail-pick button { display: flex; align-items: center; min-height: 44px; padding: 0 12px; font: inherit; font-size: 16px; color: inherit; background: none; border: 0; text-align: left; cursor: pointer; }
.mail-pick a:hover, .mail-pick button:hover { background: var(--hatch); }

/* ─── Pie ─── */
.foot { background: var(--ink); color: var(--paper); padding: 0 var(--pad) 30px; overflow: clip; }
.foot-in { max-width: 1480px; margin: 0 auto; border-top: 1px solid rgba(255, 255, 255, .3); padding-top: 50px; }
.foot-cols { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 30px; }
.fcol-t { font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .7); margin-bottom: 12px; }
.fcol-links { display: flex; flex-wrap: wrap; gap: 0 26px; }
.fcol-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 17px; }
.fcol-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.to-top { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; }
.tt-ar { width: 40px; height: 40px; border-radius: 50%; border: 1px solid currentColor; display: inline-flex; align-items: center; justify-content: center; transition: background-color .3s, color .3s; }
.to-top:hover .tt-ar { background: var(--paper); color: var(--ink); }
.foot-name { margin: 40px 0 10px; font-family: var(--serif); line-height: .9; letter-spacing: -.04em; white-space: nowrap; }
.ft-fit { color: transparent; background: var(--hatch-paper); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 1px var(--paper); }
.foot-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .3); font-size: 14px; color: rgba(255, 255, 255, .7); }

/* ─── Aparición de bloques: solo con GSAP (en el editor y sin script todo se ve) ─── */
html.gs [data-rv] { visibility: hidden; }
html.gs [data-draw] { stroke-dasharray: 1 1; stroke-dashoffset: 1; }

/* ─── Editor: todo plano, en columna y editable ─── */
html.is-ed .nav { position: sticky; background: var(--paper); box-shadow: 0 1px 0 var(--line); }
html.is-ed .hero { min-height: 0; padding-top: 60px; }
html.is-ed .hero-scroll { position: static; margin-top: 30px; }
html.is-ed .mq .disc { position: static; width: auto; height: auto; clip-path: none; }
html.is-ed .svc-list, html.is-ed .fcol-links, html.is-ed .stats { display: flex; flex-direction: column; }
html.is-ed .dot::after, html.is-ed .hs-line { animation: none; }
html.is-ed .fit { white-space: normal; }

/* ─── Tablet y celular: una columna ─── */
@media (max-width: 900px) {
  .hero { padding-top: 110px; padding-bottom: 80px; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-fig { order: -1; max-width: 520px; width: 100%; }
  .hx-hero { aspect-ratio: 5 / 4; }
  .hx-hero .hx-img { object-position: 50% 22%; }
  .ht-2 { padding-left: .3em; }
  .hero-scroll { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-fig { max-width: 520px; }
  .fig-corner.br { bottom: 30px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .hero-lead, .lead { font-size: 18px; }
  .hero-btns .btn { flex: 1 1 auto; }
  .fig-corner { display: none; }
  .work-ph, .work:nth-child(4n+1) .work-ph, .work:nth-child(4n+4) .work-ph { aspect-ratio: 4 / 3; }
  .quote { padding: 30px 24px 26px; }
  .quote::after { transform: translate(8px, 8px); }
  .q-text { font-size: 20px; }
  .fig-shadow { left: 10px; top: 10px; right: -10px; }
  .btn-big { width: 100%; }
  .ct-actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
