/* ==========================================================================
   EDI · Estrategia en Diseño Industrial — hoja de estilos v2
   Sin preprocesadores ni build: CSS plano, variables y media queries.
   Diseño: negro #0a0a0a + arena #e6e4df, acento rojo, titulares Archivo
   condensada en mayúsculas con conectores en Instrument Serif itálica.
   ========================================================================== */

/* ---------- Fuentes (autoalojadas, subconjunto latino) ---------- */
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Chivo Mono"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("/fonts/chivo-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/fonts/instrument-serif-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --page: #e6e4df;        /* fondo arena */
  --paper: #f1f0ec;       /* arena claro */
  --white: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #171617;
  --ink-3: #262525;
  --ink-4: #393939;
  --ink-line: #525252;
  --text: #0a0a0a;
  --muted: #4a4a48;
  --muted-2: #6a6a66;
  --dim: #8a8a86;
  --line: #c6c4bf;
  --line-soft: #d8d5cf;
  --line-faint: #e2dfd9;
  --on-dark: #fcfcfc;
  --on-dark-muted: #d4d2d2;
  --on-dark-dim: #b5b2b2;
  --acc: #0f7f8f;         /* acento: verde azulado (opciones en [data-accent]) */
  --wa: #25d366;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: Archivo, "Instrument Sans", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "Chivo Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1320px;
  --pad: clamp(24px, 4vw, 40px);
  --sec: clamp(72px, 9vw, 120px);
  --sec-sm: clamp(64px, 8vw, 104px);
  --r-xl: 48px; --r-lg: 32px; --r-md: 28px; --r-sm: 24px; --r-xs: 20px; --r-in: 8px;
}
[data-accent="rojo"]    { --acc: #fe1e34; }
[data-accent="naranja"] { --acc: #ff5c00; }
[data-accent="azul"]    { --acc: #1f4ed8; }
[data-accent="cian"]    { --acc: #0f7f8f; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-wrap: pretty;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--acc); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--acc); color: var(--on-dark); font-weight: 600; border-radius: 999px;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
/* overflow-x: clip (y no hidden) para no anular position: sticky de la nav */
html, body { overflow-x: clip; }
.page { min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; background: var(--ink); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; }
.section { padding: var(--sec) var(--pad); background: var(--page); color: var(--text); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--on-dark); }
.section--tight { padding-top: 0; }
.section--sm { padding-block: var(--sec-sm); }
.section--flush-top { padding-top: clamp(24px, 3vw, 40px); }
.stack { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }
.stack--md { gap: clamp(32px, 4vw, 48px); }
.stack--sm { gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: end; }
.grid-auto--start { align-items: start; }
.grid-auto--center { align-items: center; }
.grid-auto--320 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(40px, 5vw, 72px); }
.grid-auto--280 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(32px, 4vw, 56px); }
.rule-top { border-top: 1px solid var(--line); padding-top: 40px; }
.section--ink .rule-top { border-top-color: var(--ink-3); }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.head-row__title { display: flex; flex-direction: column; gap: 20px; }

/* Curva de transición negro → arena */
.curve { background: var(--page); border-radius: 64px 64px 0 0; height: 64px; margin: 0 calc(var(--pad) * -1); }
.curve--paper { background: var(--paper); }
@media (max-width: 640px) { .curve { border-radius: 36px 36px 0 0; height: 40px; } }

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2);
}
.section--ink .eyebrow, .on-dark .eyebrow { color: var(--on-dark-dim); }
.eyebrow--dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); flex: none; }
.eyebrow--dot-after::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); flex: none; }
.display {
  font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -.035em; line-height: .86;
  font-stretch: 66%; text-wrap: balance;
}
.display em {
  font-family: var(--serif); font-style: italic; font-weight: 400; font-stretch: 100%;
  text-transform: none; letter-spacing: -.02em; font-size: .62em;
}
.display .dot { color: var(--acc); }
.display--xl { font-size: clamp(52px, 10.5vw, 148px); }
.display--xl-int { font-size: clamp(48px, 9.5vw, 136px); }
.display--lg { font-size: clamp(42px, 6vw, 84px); line-height: .9; letter-spacing: -.03em; font-stretch: 68%; }
.display--lg em { font-size: .6em; }
.display--md { font-size: clamp(38px, 5vw, 72px); line-height: .9; letter-spacing: -.03em; font-stretch: 68%; }
.display--md em { font-size: .6em; }
.display--cta { font-size: clamp(44px, 6.5vw, 92px); line-height: .88; }
.display--cta em { font-size: .6em; }
.display--sm { font-size: clamp(32px, 4.2vw, 56px); line-height: .95; letter-spacing: -.03em; font-stretch: 72%; font-weight: 700; }
.display--xs { font-size: clamp(26px, 3vw, 38px); line-height: 1.02; letter-spacing: -.025em; font-stretch: 78%; font-weight: 700; }
.h3 {
  font-family: var(--display); font-stretch: 82%; font-weight: 600; font-size: 26px;
  letter-spacing: -.02em; line-height: 1.1; text-transform: uppercase;
}
.h3--sm { font-size: 22px; font-stretch: 80%; }
.h3--xs { font-size: 19px; font-stretch: 88%; text-transform: none; letter-spacing: -.015em; line-height: 1.15; }
.h4 { font-family: var(--display); font-stretch: 88%; font-weight: 600; font-size: 18px; letter-spacing: -.015em; }
.copy { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 52ch; }
.copy--lg { font-size: 17px; line-height: 1.55; max-width: 56ch; }
.copy--xl { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.35; letter-spacing: -.02em; color: var(--text); max-width: 44ch; }
.copy--sm { font-size: 14px; line-height: 1.5; }
.copy--end { justify-self: end; }
.section--ink .copy, .on-dark .copy { color: var(--on-dark-muted); }
.section--ink .copy--xl, .on-dark .copy--xl { color: var(--on-dark); }
.big-num {
  font-family: var(--display); font-stretch: 70%; font-weight: 800; font-size: 52px; line-height: 1; letter-spacing: -.03em;
}
.big-num small { font-size: 24px; }
.big-num--md { font-size: 44px; }
.big-num--sm { font-size: 34px; }
.ghost-num {
  font-family: var(--display); font-stretch: 64%; font-weight: 900; line-height: .8; letter-spacing: -.05em; color: var(--page);
}
.mono { font-family: var(--mono); }

/* ---------- Píldoras, etiquetas, botones ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  background: var(--ink); color: var(--on-dark); border-radius: 999px; padding: 6px 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
}
.pill--outline { background: transparent; color: inherit; border: 1px solid var(--line); padding: 8px 16px; font-size: 11px; letter-spacing: .12em; }
.pill--text { background: transparent; color: inherit; border: 1px solid var(--ink); padding: 10px 20px; font-family: var(--font); font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2);
}
.section--ink .tag, .on-dark .tag { color: var(--on-dark-dim); }
.badge { background: #fff100; color: var(--ink); border-radius: 999px; padding: 5px 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }

.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 24px;
  min-width: 280px; height: 64px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  background: var(--on-dark); color: var(--ink);
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { background: var(--acc); color: var(--on-dark); }
.btn--ink { background: var(--ink); color: var(--on-dark); }
.btn--ink:hover { background: var(--acc); color: var(--on-dark); }
.btn--outline { background: transparent; color: var(--on-dark); border-color: var(--ink-line); }
.btn--outline:hover { background: transparent; color: var(--on-dark); border-color: var(--on-dark); }
.btn--outline-ink { background: transparent; color: var(--ink); border-color: var(--ink); min-width: 0; height: 48px; padding: 0 22px; gap: 10px; font-size: 11px; }
.btn--outline-ink:hover { background: var(--ink); color: var(--on-dark); }
.btn--sm { min-width: 0; height: 44px; padding: 0 22px; gap: 10px; font-size: 11px; letter-spacing: .12em; justify-content: center; }
.btn--md { min-width: 0; height: 60px; padding: 0 30px; gap: 16px; }
.btn--text { background: transparent; border: 0; color: var(--muted-2); min-width: 0; height: 48px; padding: 0 22px; }
.btn--text:hover { background: transparent; color: var(--ink); }
.btn .arr { font-family: var(--mono); font-size: 16px; }
.btn--phone { font-size: 14px; letter-spacing: .08em; text-transform: none; }
.link {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 8px; white-space: nowrap; color: var(--ink);
  transition: color .18s ease;
}
.link .arr { font-size: 14px; transition: transform .18s ease; }
.link:hover { color: var(--acc); }
.link:hover .arr { transform: translate(2px, -2px); }
.section--ink .link, .on-dark .link { color: var(--on-dark); border-bottom-color: var(--ink-line); }
.section--ink .link:hover, .on-dark .link:hover { color: var(--on-dark); border-bottom-color: var(--on-dark); }
.link--dim { color: var(--on-dark-dim); border-bottom-color: var(--ink-3); }
.on-dark .link--dim { color: var(--on-dark-dim); border-bottom-color: var(--ink-3); }
@media (max-width: 640px) { .btn { min-width: 0; width: 100%; height: 58px; } .btn--sm { height: 44px; width: auto; } }

/* ---------- Tarjetas y figuras ---------- */
.card { background: var(--white); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); min-width: 0; }
.card--tight { padding: 20px; }
.card--sm { border-radius: var(--r-sm); padding: 24px; }
.card--md { border-radius: var(--r-md); padding: 28px; }
.card--ink { background: var(--ink); color: var(--on-dark); }
.card--acc { border: 1px solid var(--acc); }
.card--stack { display: flex; flex-direction: column; gap: 12px; }
.card--stack > .push { margin-top: auto; }
.fig { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fig__img { position: relative; overflow: hidden; background: var(--line-soft); border-radius: var(--r-md); }
.section--ink .fig__img, .on-dark .fig__img { background: var(--ink-2); }
.fig__img img { width: 100%; height: 100%; object-fit: cover; }
.fig__img--r20 { border-radius: var(--r-xs); }
.fig__img--r24 { border-radius: var(--r-sm); }
.fig__img--r32 { border-radius: var(--r-lg); }
.fig__img--sq { border-radius: 0; }
.fig__img--white { background: var(--white); }
.fig__img--contain img { object-fit: contain; }
.fig__img--zoom img { transition: transform .5s ease; }
a:hover .fig__img--zoom img, .fig--hover:hover .fig__img img { transform: scale(1.03); }
.caption {
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2);
}
.section--ink .caption, .on-dark .caption { color: var(--on-dark-dim); }
.meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 0 4px; font-size: 15px; }
.meta strong { font-weight: 500; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40; display: flex; justify-content: center;
  padding: 20px clamp(16px, 3vw, 32px); pointer-events: none;
}
.nav__bar {
  pointer-events: auto; width: 100%; max-width: var(--wrap); position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--white); color: var(--ink); border-radius: var(--r-xl); padding: 10px 10px 10px 28px;
  box-shadow: 0 10px 40px rgba(10, 10, 10, .12);
}
.nav__brand { display: flex; align-items: baseline; gap: 12px; color: var(--ink); }
.nav__brand:hover { color: var(--ink); }
.nav__logo { font-family: var(--display); font-stretch: 66%; font-weight: 900; font-size: 26px; line-height: 1; letter-spacing: -.03em; }
.nav__tagline { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.nav__menu { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 500; }
.nav__menu > a { color: var(--muted-2); display: inline-flex; align-items: center; gap: 8px; }
.nav__menu > a:hover { color: var(--ink); }
.nav__menu > a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav__menu > a[aria-current="page"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
.nav__menu .btn { color: var(--on-dark); }
.nav__menu .btn:hover { color: var(--on-dark); }
.nav__toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: var(--ink); color: var(--on-dark); position: relative; flex: none;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 12px; width: 20px; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease;
}
.nav__toggle span { top: 21px; }
.nav__toggle span::before { left: 0; top: -6px; }
.nav__toggle span::after { left: 0; top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1100px) { .nav__tagline { display: none; } .nav__menu { gap: 16px; } }
@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__bar { padding: 8px 8px 8px 22px; }
  .nav__menu {
    display: none; position: absolute; left: 0; right: 0; top: calc(100% + 10px);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-radius: var(--r-lg); padding: 10px 22px 18px; font-size: 17px;
    box-shadow: 0 16px 48px rgba(10, 10, 10, .18);
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu > a { padding: 14px 0; border-bottom: 1px solid var(--line-faint); }
  .nav__menu .btn { margin-top: 14px; justify-content: center; height: 52px; width: 100%; }
}

/* ---------- Hero (inicio) ---------- */
.hero { background: var(--ink); color: var(--on-dark); padding: 56px 0 0; position: relative; overflow: hidden; }
.hero__head { padding: 0 var(--pad); display: flex; flex-direction: column; gap: clamp(48px, 7vw, 96px); }
.hero__meta {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-dim);
}
.hero__title { max-width: 15ch; }
.hero__foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; align-items: end; padding-bottom: 8px; }
.hero__actions { display: flex; gap: 32px; flex-wrap: wrap; align-items: center; justify-self: start; }
.hero__strip {
  margin-top: clamp(40px, 6vw, 72px); padding: 0 clamp(8px, 1.5vw, 16px);
  display: grid; grid-template-columns: 1.11fr 1.07fr .62fr; gap: 8px; align-items: end;
}
.hero__tail {
  margin-top: clamp(48px, 7vw, 88px); background: var(--page); color: var(--text);
  border-radius: 64px 64px 0 0; padding: clamp(40px, 5vw, 64px) var(--pad) 0;
}
@media (max-width: 900px) {
  .hero__strip { grid-template-columns: 1fr 1fr; }
  .hero__strip > :last-child { display: none; }
}
@media (max-width: 640px) {
  .hero { padding-top: 32px; }
  .hero__head { gap: 36px; }
  .hero__strip { grid-template-columns: 1fr; gap: 12px; }
  .hero__strip > :last-child { display: flex; }
  .hero__actions { gap: 20px; }
  .hero__tail { border-radius: 36px 36px 0 0; }
}

/* Hero interior */
.hero-int { background: var(--ink); color: var(--on-dark); padding: 56px var(--pad) 0; }
.hero-int__body { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }
.hero-int__body > .copy--lg, .hero-int__body > .copy--xl { margin-bottom: clamp(48px, 6vw, 80px); color: var(--on-dark-muted); }
.hero-int__body > .copy--xl { color: var(--on-dark); }
.hero-int .display { max-width: 15ch; }
@media (max-width: 640px) { .hero-int { padding-top: 32px; } .hero-int__body { gap: 28px; } }

/* ---------- Puntos clave ---------- */
.keypoints { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 1px; background: var(--line); }
.keypoint { background: var(--page); padding: 24px 26px 32px; display: flex; flex-direction: column; gap: 20px; }
.keypoint__num { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--muted-2); }
.keypoint__text { font-size: 19px; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }

/* ---------- Servicios (tarjetas) ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.service { display: flex; flex-direction: column; gap: 24px; background: var(--white); border-radius: var(--r-lg); padding: 20px 20px 28px; color: var(--ink); min-width: 0; }
.service:hover { color: var(--ink); }
.service .fig__img { aspect-ratio: 200 / 140; background: var(--paper); }
.service__body { display: flex; flex-direction: column; gap: 14px; padding: 0 8px; }
.service__body .copy { font-size: 15px; }

/* ---------- Proyectos (inicio) ---------- */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; align-items: start; }
.project { display: flex; flex-direction: column; gap: 14px; min-width: 0; color: var(--ink); }
.project:hover { color: var(--ink); }
.project--wide { grid-column: span 2; }
@media (max-width: 560px) { .project--wide { grid-column: span 1; } }
.feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: center; background: var(--white); border-radius: var(--r-lg); padding: 20px; }
.feature__copy { display: flex; flex-direction: column; gap: 18px; padding: clamp(8px, 2vw, 28px); min-width: 0; }
.pop-strip { display: flex; align-items: flex-end; justify-content: center; gap: 4%; padding: 6% 6% 4%; background: var(--white); height: 100%; }
.pop-strip img { width: auto; height: auto; max-height: 100%; object-fit: contain; }
.pop-strip img:nth-child(1) { flex: 0 1 26%; }
.pop-strip img:nth-child(2) { flex: 0 1 30%; }
.pop-strip img:nth-child(3) { flex: 0 1 36%; }

/* ---------- Marcas ---------- */
.brands__list {
  display: flex; flex-wrap: wrap; gap: 10px 32px;
  font-family: var(--display); font-stretch: 72%; font-weight: 700; font-size: clamp(26px, 3.6vw, 46px);
  letter-spacing: -.03em; line-height: 1.1; text-transform: uppercase;
}
.brands__list li { display: flex; align-items: center; gap: 32px; }
.brands__list li:not(:last-child)::after { content: "·"; color: var(--ink-line); }
.brands__list li:nth-child(4n+1):not(:last-child)::after { color: var(--acc); }
@media (max-width: 640px) { .brands__list { gap: 6px 16px; } .brands__list li { gap: 16px; } }

/* ---------- Taller / cifras ---------- */
.taller { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(40px, 5vw, 72px); align-items: start; }
.taller__copy { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 400px) { .stats { grid-template-columns: 1fr; } }
.stat { background: var(--white); border-radius: var(--r-sm); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.stat--acc { border: 1px solid var(--acc); }
.stat__label { font-size: 14px; line-height: 1.4; color: var(--muted); }
.taller__gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; min-width: 0; }
.taller__gallery .fig--wide { grid-column: 1 / -1; }
.taller__gallery .fig--wide .fig__img { aspect-ratio: 687 / 394; }
.taller__gallery .fig--sq .fig__img { aspect-ratio: 1 / 1; }

/* ---------- Procesos, pasos, materiales ---------- */
.procesos { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--ink-3); border: 1px solid var(--ink-3); border-radius: 8px; overflow: hidden; }
.proceso { background: var(--ink); padding: 28px 24px; display: flex; flex-direction: column; gap: 48px; min-height: 220px; }
.proceso__num { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--on-dark-dim); }
.proceso:first-child .proceso__num { color: var(--acc); }
.proceso__text { font-size: 17px; font-weight: 500; line-height: 1.35; margin-top: auto; }
@media (max-width: 640px) { .proceso { min-height: 0; gap: 14px; padding: 20px; } }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.step { background: var(--white); border-radius: var(--r-sm); padding: 24px; display: flex; flex-direction: column; gap: 16px; min-height: 200px; }
.step--ink { background: var(--ink); color: var(--on-dark); }
.step__num { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--muted-2); }
.step--ink .step__num { color: var(--on-dark-dim); }
.step__title { font-family: var(--display); font-stretch: 80%; font-weight: 600; font-size: 21px; line-height: 1.1; letter-spacing: -.02em; text-transform: uppercase; margin-top: auto; }
.step__desc { font-size: 14px; line-height: 1.5; color: var(--muted); }
.step--ink .step__desc { color: var(--on-dark-muted); }
.materials { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; min-width: 0; }
.material { background: var(--white); border-radius: var(--r-sm); padding: 24px; display: flex; flex-direction: column; gap: 12px; min-height: 160px; }
.material--ink { background: var(--ink); color: var(--on-dark); }
.material__num { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--dim); }
.material--ink .material__num { color: var(--acc); }
.material__name { font-family: var(--display); font-stretch: 80%; font-weight: 600; font-size: 22px; letter-spacing: -.02em; text-transform: uppercase; margin-top: auto; }
.material__desc { font-size: 14px; line-height: 1.5; color: var(--muted); }
.material--ink .material__desc { color: var(--on-dark-muted); }
.spec { border: 1px solid var(--acc); border-radius: var(--r-sm); padding: 28px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.spec__rows { display: flex; flex-direction: column; gap: 12px; }
.spec__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--ink-3); padding-bottom: 10px; }
.spec__row:last-child { border-bottom: 0; padding-bottom: 0; }
.spec__row span:first-child { font-size: 14px; color: var(--on-dark-muted); }

/* Filas de servicio (página Servicios) */
.service-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(32px, 4vw, 64px); align-items: center; }
.service-row__copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.service-row__head { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.service-row__num { font-size: clamp(72px, 9vw, 124px); color: #d1cec8; }
.service-row .fig__img { aspect-ratio: 200 / 140; border-radius: var(--r-lg); }
.service-row__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-width: 0; }
.service-row__pair .fig__img { aspect-ratio: 387 / 397; }
@media (min-width: 700px) { .service-row--flip > .fig { order: -1; } }
.num-list { display: flex; flex-direction: column; padding-top: 8px; }
.num-list li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.num-list li:last-child { border-bottom: 1px solid var(--line); }
.num-list li span:first-child { font-family: var(--mono); font-size: 11px; color: var(--dim); }

/* ---------- Galería (proyectos) ---------- */
.filters { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--ink-3); padding: 24px 0 clamp(40px, 5vw, 64px); }
.filters__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; height: 42px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--ink-line); background: transparent; color: var(--on-dark);
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover { border-color: var(--on-dark); color: var(--on-dark); }
.chip[aria-pressed="true"] { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.gallery { columns: 300px 3; column-gap: 20px; }
.gallery__item { break-inside: avoid; margin: 0 0 20px; display: flex; flex-direction: column; gap: 12px; }
.gallery__item[hidden] { display: none; }
.gallery__item .fig__img--zoom img { transition: transform .5s ease; }
.gallery__item:hover .fig__img--zoom img { transform: scale(1.03); }

/* ---------- Nosotros ---------- */
.mv { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.mv__cell { background: var(--white); border-radius: var(--r-lg); padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.mv__cell--ink { background: var(--ink); color: var(--on-dark); }
.mv__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.mv__num { font-size: clamp(56px, 7vw, 96px); }
.mv__cell--ink .mv__num { color: #1a1a1a; }
.mv__text { font-family: var(--display); font-stretch: 92%; font-weight: 500; font-size: clamp(20px, 2.2vw, 27px); line-height: 1.3; letter-spacing: -.02em; }
.list-num { display: flex; flex-direction: column; min-width: 0; }
.list-num li { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); align-items: baseline; }
.list-num li:last-child { border-bottom: 1px solid var(--line); }
.list-num__n { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--dim); }
.list-num li:first-child .list-num__n { color: var(--acc); }
.list-num__t { font-size: clamp(20px, 2.2vw, 26px); font-weight: 500; letter-spacing: -.015em; line-height: 1.3; }
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.team__member { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.team__member .fig__img { aspect-ratio: 4 / 5; border-radius: var(--r-sm); }
.team__name { display: flex; flex-direction: column; gap: 4px; }
.team__name span:last-child { font-size: 14px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--lg { gap: 10px; }

/* ---------- CTA ---------- */
.cta { background: var(--ink); color: var(--on-dark); padding: var(--sec) var(--pad); position: relative; overflow: hidden; }
.cta--sm { padding-block: var(--sec-sm); }
.cta__ghost {
  position: absolute; right: -4%; top: -18%; font-family: var(--display); font-stretch: 62%; font-weight: 900;
  font-size: clamp(280px, 38vw, 520px); line-height: 1; letter-spacing: -.05em; color: #111111; pointer-events: none; user-select: none;
}
.cta--sm .cta__ghost { top: -24%; font-size: clamp(240px, 32vw, 440px); }
.cta__grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: end; }
.cta__row { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.cta__copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.cta__copy .display { max-width: 16ch; }
.cta__actions { display: flex; flex-direction: column; gap: 16px; justify-self: start; }
@media (max-width: 640px) { .cta__grid { gap: 32px; } .cta__actions { width: 100%; } }

/* ---------- Footer ---------- */
.footer { margin-top: auto; background: var(--ink-2); color: var(--on-dark-muted); padding: clamp(48px, 6vw, 72px) var(--pad) 0; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer__brand { display: flex; flex-direction: column; gap: 18px; grid-column: span 2; min-width: 0; }
.footer__logo { font-family: var(--display); font-stretch: 66%; font-weight: 900; font-size: 44px; letter-spacing: -.03em; line-height: 1; color: var(--on-dark); }
.footer__brand p { font-size: 15px; line-height: 1.6; max-width: 44ch; }
.footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer__col a:hover { color: var(--on-dark); }
.footer__col .eyebrow { font-size: 10px; color: var(--dim); }
.footer__col strong { color: var(--on-dark); font-weight: 600; }
.footer__col a.break { overflow-wrap: anywhere; }
.footer__bottom {
  margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--ink-4);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim);
}
.footer__giant {
  font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: clamp(60px, 13.5vw, 200px);
  line-height: .78; letter-spacing: -.045em; color: #1f1e1f; text-transform: uppercase; margin-top: 24px; white-space: nowrap; user-select: none;
}
@media (max-width: 560px) { .footer__brand { grid-column: span 1; } }

/* ---------- WhatsApp flotante ---------- */
.whatsapp {
  position: fixed; right: 24px; bottom: 24px; z-index: 50; display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 22px; background: var(--ink); color: var(--on-dark); border: 1px solid var(--ink-line); border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  transition: border-color .18s ease, background-color .18s ease;
}
.whatsapp::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wa); flex: none; }
.whatsapp:hover { background: var(--ink-2); color: var(--on-dark); border-color: var(--on-dark); }
@media (max-width: 640px) { .whatsapp { right: 16px; bottom: 16px; height: 48px; padding: 0 16px; } }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(32px, 4vw, 56px); align-items: start; }
.contact__info { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.contact__rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.contact__row { display: grid; grid-template-columns: minmax(96px, 110px) 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contact__row .tag { padding-top: 4px; color: var(--dim); }
.contact__row a { word-break: break-word; }
.contact__row a:hover { color: var(--acc); }
.form { display: flex; flex-direction: column; gap: 28px; background: var(--white); padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); min-width: 0; }
.form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > span, .field__label { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.field input, .field textarea, .field select {
  width: 100%; height: 48px; padding: 0 14px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-in);
  color: var(--ink); font-size: 15px; min-width: 0;
}
.field textarea { height: auto; padding: 14px; resize: vertical; line-height: 1.55; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--acc); outline-offset: -1px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--acc); }
.form__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.form__chips label { position: relative; }
.form__chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.form__chips span { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.form__chips input:checked + span { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.form__chips input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 3px; }
.form__attach { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px; border: 1px dashed var(--line); border-radius: var(--r-in); font-size: 14px; color: var(--muted); }
.form__footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--line-faint); }
.form__note { font-size: 13px; color: var(--muted-2); max-width: 38ch; line-height: 1.5; }
.form__status { font-size: 14px; color: var(--acc); }
.form__status:empty { display: none; }
.form__success { display: flex; flex-direction: column; gap: 24px; background: var(--white); border: 1px solid var(--acc); padding: clamp(32px, 4vw, 56px); border-radius: var(--r-lg); min-height: 420px; justify-content: center; min-width: 0; }
.form__success__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); min-width: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer; font-size: 19px; font-weight: 500; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 18px; color: var(--dim); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 clamp(0px, 4vw, 48px) 26px 0; font-size: 16px; line-height: 1.65; color: var(--muted); }
@media (max-width: 640px) { .faq summary { font-size: 17px; padding: 18px 0; } }

/* ---------- Animación de entrada ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Impresión ---------- */
@media print {
  .nav, .whatsapp, .skip-link, .cta__ghost, .footer__giant { display: none !important; }
  .section, .hero, .hero-int, .cta { padding: 24px 0; }
  body, .page { background: #fff; color: #000; }
}
