/* JGSimancas: el nombre como monumento.
   Tipografía autoalojada (Cabinet Grotesk), sin CDN externos. */

@font-face {
  font-family: "Cabinet Grotesk";
  src: url("fonts/cabinet-grotesk-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cabinet Grotesk";
  src: url("fonts/cabinet-grotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cabinet Grotesk";
  src: url("fonts/cabinet-grotesk-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0e0e0c;
  --surface: #161714;
  --surface-2: #20211d;
  --ink: #e9e9e4;
  --muted: #a8a496;
  --bone: #e4e4df;
  --on-bone: #0e0e0c;
  --on-bone-soft: #3d3b33;
  --accent: #c9a96e;
  --accent-ink: #0e0e0c;

  --t1: #e9e7e1;
  --t2: #c4c2b9;
  --t3: #8f8d82;
  --t4: #4f4e47;

  --s1: #232420;
  --s2: #44463c;
  --s3: #8a8c7c;
  --s4: #b6b8a8;
  --s5: #dcddd2;

  --pad: clamp(20px, 2.2vw, 32px);
  --gap: 8px;
  --font: "Cabinet Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  --step-statement: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem);
  --step-giant: clamp(3.5rem, 1rem + 10vw, 11rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.035em; line-height: 0.95; text-wrap: balance; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.on-bone :focus-visible { outline-color: var(--on-bone); }
::selection { background: var(--accent); color: var(--accent-ink); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: fixed; left: var(--pad); top: var(--pad); z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 12px 16px; font-weight: 500;
  clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap;
}
.skip:focus { clip-path: none; width: auto; height: auto; overflow: visible; }

/* ---------- Entrada de las partes (solo con JS activo) ---------- */
html.js .reveal { opacity: 0; transform: translateY(26px); }
html.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* ---------- Hero: nombre en banda y raíles ---------- */
.hero { padding: var(--pad); min-height: 100svh; display: flex; }
.hero-grid {
  flex: 1;
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto minmax(520px, 1fr);
  min-height: calc(100svh - 2 * var(--pad));
}
.name-band {
  grid-column: 1 / -1;
  background: var(--surface);
  height: var(--band-h, clamp(96px, 13vw, 190px));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.name {
  font-size: var(--name-size, 13.6vw);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  white-space: nowrap;
  padding-bottom: 0.04em;
}
.hero-links {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}
.hero-link {
  background: var(--surface-2);
  padding: 14px 16px;
  min-height: 64px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  text-decoration: none;
  font-size: 1.0625rem;
  font-weight: 500;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.hero-link:hover { background: var(--bone); color: var(--on-bone); }
.hero-link:active { transform: scale(0.98); }

.rail-left { grid-column: 1 / 3; display: flex; flex-direction: column; gap: var(--gap); min-height: 0; }
.brand-tile { flex: 1; min-height: 160px; background: var(--bg); overflow: hidden; display: flex; }
.brand-tile img { width: 100%; height: 100%; object-fit: contain; }
.facts { background: var(--surface); padding: 16px; font-size: var(--step-small); line-height: 1.35; display: grid; gap: 7px; }

.hero-model { grid-column: 3 / 11; position: relative; overflow: hidden; min-height: 0; background: var(--surface); }
.hm { position: absolute; inset: 0 0 34% 0; padding: clamp(16px, 2vw, 28px); display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.hm-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.hm-head strong { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.02em; }
.hm-head span { font-size: var(--step-small); color: var(--muted); }
.hm-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.hm-kpis div { background: var(--surface-2); padding: 10px 12px; display: grid; gap: 2px; }
.hm-kpis span { font-size: 0.8125rem; color: var(--muted); }
.hm-kpis b { font-size: clamp(1.125rem, 1.6vw, 1.625rem); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hm-kpis .low { background: var(--accent); }
.hm-kpis .low span, .hm-kpis .low b { color: var(--accent-ink); }
.hm-chart { flex: 1; min-height: 0; width: 100%; }
.hm-min { stroke: var(--muted); stroke-width: 1; }
.hm-minlabel, .hm-months text { fill: var(--muted); font-size: 16px; font-family: var(--font); }
.hm-line { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
html.js .hero-model.in .hm-line { animation: draw 2.2s var(--ease) 0.5s both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.hm-dots circle { fill: var(--ink); }
.hm-lows circle { fill: var(--accent); }
.hm-note { fill: var(--accent); font-size: 17px; font-weight: 800; font-family: var(--font); }

.statement {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  padding: 24px;
  min-height: 34%;
  display: flex;
  align-items: flex-start;
}
.statement p {
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 30ch;
  text-wrap: balance;
}

.rail-right { grid-column: 11 / 13; display: flex; flex-direction: column; gap: var(--gap); min-height: 0; }
.rt {
  flex: 1;
  padding: 14px;
  font-size: var(--step-small);
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  min-height: 64px;
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
}
.rt.c1 { background: var(--t1); color: var(--on-bone); }
.rt.c2 { background: var(--t2); color: var(--on-bone); }
.rt.c3 { background: var(--t3); color: var(--on-bone); }
.rt.c4 { background: var(--t4); color: var(--ink); }
.rt.c5 {
  background: var(--accent); color: var(--accent-ink);
  font-size: 1.125rem; font-weight: 800; letter-spacing: -0.02em;
  align-items: flex-end; justify-content: space-between;
}
.rt.c5:hover { transform: translateY(-3px); filter: brightness(1.08); }
.rt.c5:active { transform: scale(0.98); }

/* ---------- Secciones comunes ---------- */
.wrap { padding-inline: var(--pad); }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.h-small { font-size: var(--step-head); font-weight: 800; letter-spacing: -0.035em; }
.soft { color: var(--muted); }

/* intro */
.intro { padding: clamp(110px, 16vh, 200px) var(--pad) clamp(100px, 14vh, 180px); }
.intro-text {
  grid-column: 6 / 13;
  font-size: var(--step-statement);
  line-height: 1.22;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-indent: 3em;
  max-width: 34em;
}
.intro-aside { grid-column: 1 / 7; grid-row: 2; margin-top: calc(var(--sq) * -0.72); display: flex; flex-direction: column; gap: 56px; align-items: flex-start; --sq: clamp(200px, 27vw, 400px); }
.intro-aside p { font-size: var(--step-small); line-height: 1.4; max-width: 25ch; color: var(--muted); }
.intro .grid12 { --sq: clamp(200px, 27vw, 400px); }
.intro.on-bone .intro-aside p { color: var(--on-bone-soft); }

/* servicios: columnas de nombres de un solo tamaño */
.services { padding: clamp(80px, 14vh, 180px) var(--pad) clamp(100px, 16vh, 200px); }
.services .h-small { grid-column: 1 / 4; margin-bottom: 96px; }
.svc-col { }
.svc-col:nth-of-type(1) { grid-column: 1 / 4; }
.svc-col:nth-of-type(2) { grid-column: 4 / 7; }
.svc-col:nth-of-type(3) { grid-column: 7 / 10; }
.svc-group { font-size: var(--step-head); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 18px; line-height: 1.05; }
.svc-list { display: grid; gap: 2px; }
.svc-item {
  font-size: 1.0625rem; line-height: 1.3; color: var(--muted); padding: 5px 0; width: 100%;
  transition: color 0.2s var(--ease), transform 0.3s var(--ease);
}
.svc-item:hover, .svc-item:focus-visible, .svc-item.on { color: var(--ink); transform: translateX(6px); }
.svc-desc {
  grid-column: 10 / 13; grid-row: 1 / span 2; align-self: start;
  font-size: 1.0625rem; line-height: 1.35; font-weight: 500; min-height: 4.5em; margin-top: 8px;
  position: sticky; top: 24px;
}
.svc-desc strong { display: block; font-weight: 800; margin-bottom: 6px; font-size: var(--step-lead); letter-spacing: -0.03em; line-height: 1.05; }
.svc-end { display: none; font-size: var(--step-body); color: var(--muted); margin-top: 14px; }

/* cinta */
.band { background: var(--bone); color: var(--on-bone); overflow: hidden; padding: clamp(28px, 5vw, 72px) 0; }
.band-track { display: flex; width: max-content; animation: marq 46s linear infinite; }
.band:hover .band-track { animation-play-state: paused; }
.band-track span {
  font-size: var(--step-giant); font-weight: 800; letter-spacing: -0.05em; line-height: 0.95;
  padding-right: 0.55em; white-space: nowrap;
}
@keyframes marq { to { transform: translateX(-50%); } }

/* plato cuadrado */
.plate { display: grid; grid-template-columns: 1fr 1fr; min-height: 92svh; background: var(--surface); }
.plate-left { display: flex; align-items: center; justify-content: center; padding: var(--pad); }
.plate-frame { width: 100%; max-width: 760px; aspect-ratio: 1; position: relative; overflow: hidden; background: var(--bg); }
.plate-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.7s var(--ease), transform 1.4s var(--ease);
  transform: scale(1.05);
}
.plate-frame img.on { opacity: 1; transform: scale(1); }
.plate-right { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 4vw, 72px) var(--pad); gap: 48px; }
.tabs { display: flex; gap: clamp(18px, 2.4vw, 40px); flex-wrap: wrap; }
.tab { font-size: 1.125rem; font-weight: 500; color: var(--muted); padding: 4px 0; transition: color 0.2s var(--ease); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab:hover { color: var(--ink); }
.plate-title { font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); margin-bottom: 22px; }
.plate-desc { max-width: 34ch; font-size: var(--step-body); line-height: 1.45; }
.plate-cells { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.cell {
  display: flex; align-items: center; justify-content: flex-start; min-height: 72px; padding: 0 22px;
  font-weight: 800; letter-spacing: -0.02em; font-size: 1.125rem; text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.cell.c-ink { background: var(--ink); color: var(--on-bone); }
.cell.c-soft { background: var(--surface-2); color: var(--ink); }
.cell:hover { transform: translateY(-3px); }
.cell:active { transform: scale(0.98); }
.cell.c-soft:hover { background: var(--bone); color: var(--on-bone); }

/* método: acordeón de paneles tintados */
.method { padding: clamp(100px, 15vh, 200px) var(--pad); }
.method-intro { margin-bottom: 64px; align-items: start; }
.method-intro h2 { grid-column: 1 / 6; font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); }
.method-intro p { grid-column: 7 / 12; font-size: 1.125rem; line-height: 1.5; }
.acc { display: flex; height: 520px; }
.stage {
  flex: 1 1 0; min-width: 0; position: relative; overflow: hidden; background: var(--s);
  transition: flex-grow 0.5s var(--ease);
}
.stage[data-open="true"] { flex-grow: 6; }
.s1 { --s: var(--s1); color: var(--ink); }
.s2 { --s: var(--s2); color: var(--ink); }
.s3 { --s: var(--s3); color: var(--on-bone); }
.s4 { --s: var(--s4); color: var(--on-bone); }
.s5 { --s: var(--s5); color: var(--on-bone); }
.stage-btn { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-name { position: absolute; left: 18px; bottom: 18px; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; transition: opacity 0.3s var(--ease); }
.stage[data-open="true"] .stage-name { opacity: 0; }
.stage:not([data-open="true"]):hover { filter: brightness(1.12); }
.stage-body { position: absolute; inset: 0; padding: 24px; display: flex; justify-content: space-between; gap: 24px; opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease) 0.1s; pointer-events: none; }
.stage[data-open="true"] .stage-body { opacity: 1; visibility: visible; }
.stage-copy { display: flex; flex-direction: column; justify-content: space-between; min-width: min(36ch, 100%); flex: 1; }
.stage-title { font-size: 2.5rem; letter-spacing: -0.035em; }
.stage-copy p { font-size: 1.125rem; line-height: 1.45; max-width: 36ch; }
.stage-img { flex: 0 0 min(38%, 360px); overflow: hidden; align-self: stretch; background: var(--bg); }
.stage-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.stage-img figcaption { display: none; }
.stage-img { margin: 0; }
.stage-cap { font-size: var(--step-small); max-width: 36ch; }

/* legajo: el momento vivo */
.dossier { background: var(--bg); padding: clamp(100px, 15vh, 190px) var(--pad); }
.dossier-grid { align-items: start; row-gap: 48px; }
.dossier-left { grid-column: 1 / 6; }
.dossier-left h2 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); margin-bottom: 20px; }
.dossier-left > p { font-size: var(--step-body); max-width: 36ch; margin-bottom: 36px; }
.opts { display: grid; gap: var(--gap); }
.opt {
  width: 100%; background: var(--surface); padding: 20px 22px; font-size: 1.1875rem; font-weight: 500; line-height: 1.25;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.opt::after { content: ""; flex: 0 0 14px; height: 14px; border-radius: 50%; background: var(--surface-2); transition: background 0.25s var(--ease); }
.opt:hover { background: var(--surface-2); }
.opt[aria-checked="true"] { background: var(--bone); color: var(--on-bone); }
.opt[aria-checked="true"]::after { background: var(--on-bone); }
.opt:active { transform: scale(0.99); }
.dossier-right { grid-column: 7 / 13; background: var(--surface); display: flex; flex-direction: column; justify-content: center; min-height: 100%; }
.dossier-out { padding: clamp(28px, 4vw, 64px); display: grid; gap: 26px; align-content: center; }
.dossier-out h3 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); max-width: 14ch; }
.dossier-out p { font-size: var(--step-body); line-height: 1.5; max-width: 46ch; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; align-self: start;
  min-height: 56px; padding: 0 28px; background: var(--accent); color: var(--accent-ink);
  font-weight: 800; letter-spacing: -0.02em; font-size: 1.125rem; text-decoration: none; width: fit-content;
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
}
.btn:hover { transform: translateY(-3px); filter: brightness(1.08); }
.btn:active { transform: scale(0.98); }
.dossier-out.swap { animation: swap 0.5s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* sobre mí: el retrato como capitular */
.about { padding: clamp(100px, 15vh, 190px) var(--pad); }
.about-facts { grid-column: 1 / 3; font-size: var(--step-small); line-height: 1.4; display: grid; gap: 14px; align-content: start; color: var(--muted); }
.about-facts strong { display: block; color: var(--ink); font-weight: 500; }
.about-text { grid-column: 3 / 13; }
.about-text p { font-size: var(--step-statement); line-height: 1.2; font-weight: 500; letter-spacing: -0.015em; }
.about-text p + p { margin-top: 1.4em; color: var(--muted); }
.about-text .lead-in { color: var(--ink); font-weight: 800; }
.about-pic { float: left; width: 3.6em; height: 3.6em; margin: 0.12em 0.5em 0 0; object-fit: cover; }

/* preguntas */
.faq { padding: clamp(100px, 15vh, 190px) var(--pad); }
.faq h2 { font-size: clamp(2.5rem, 5.5vw, 6rem); max-width: 12ch; margin-bottom: 80px; }
.faq-list { margin-left: calc((100% - 11 * var(--gap)) / 12 * 4 + 4 * var(--gap)); display: grid; gap: 0; }
.faq details { padding: 18px 0; }
.faq summary {
  list-style: none; cursor: pointer; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 6px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: 0 0 auto; font-size: 2rem; font-weight: 400; line-height: 1;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] { background: var(--surface); margin: 0 -24px; padding: 18px 24px 26px; }
.faq details p { font-size: 1.0625rem; line-height: 1.5; max-width: 48ch; margin-top: 12px; color: var(--ink); }

/* cierre invertido */
.on-bone { background: var(--bone); color: var(--on-bone); }
.close { min-height: 92svh; padding: clamp(70px, 10vh, 120px) var(--pad) 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 64px; }
.close h2 { font-size: clamp(3.75rem, 11vw, 12rem); line-height: 0.88; letter-spacing: -0.055em; max-width: 9ch; }
.close-bottom { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.close-bottom p { grid-column: 1 / 6; font-size: 1.25rem; line-height: 1.35; font-weight: 500; max-width: 30ch; }
.btn-dark {
  grid-column: 9 / 13; justify-self: end;
  display: inline-flex; align-items: center; justify-content: center; min-height: 64px; padding: 0 36px;
  background: var(--on-bone); color: var(--accent); font-weight: 800; letter-spacing: -0.02em; font-size: 1.25rem; text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.btn-dark:hover { transform: translateY(-3px); background: #1d1c18; }
.btn-dark:active { transform: scale(0.98); }

/* pie: el nombre primero */
.foot { padding: clamp(100px, 15vh, 180px) var(--pad) 28px; }
.foot-name { font-size: var(--foot-size, 15.5vw); font-weight: 800; letter-spacing: -0.055em; line-height: 0.82; white-space: nowrap; margin-bottom: 72px; display: block; }
.foot-grid { column-gap: var(--gap); row-gap: 48px; margin-bottom: 96px; align-items: start; }
.foot-reach { grid-column: 1 / 6; display: grid; gap: 6px; }
.foot-reach a { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; width: fit-content; }
.foot-reach a:hover { text-decoration-color: transparent; }
.foot-links { grid-column: 7 / 13; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; font-size: var(--step-small); }
.foot-links ul { display: grid; gap: 8px; align-content: start; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-links button { text-align: left; }
.foot-links button:hover { text-decoration: underline; }
.foot-news { grid-column: 7 / 13; grid-row: 2; }
.foot-news h3 { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 8px; }
.foot-news > p { font-size: var(--step-small); max-width: 44ch; margin-bottom: 14px; color: var(--on-bone-soft); }
.ml-form .email-row { display: flex; gap: var(--gap); }
.ml-form input[type="email"] {
  flex: 1; min-width: 0; height: 56px; padding: 0 16px; background: #fff; color: var(--on-bone);
  border: 0; font: inherit; font-size: 1.0625rem;
}
.ml-form input[type="email"]::placeholder { color: #5c594e; }
.ml-form button[type="submit"] { height: 56px; padding: 0 22px; background: var(--on-bone); color: var(--bone); font-weight: 800; letter-spacing: -0.02em; transition: transform 0.25s var(--ease); }
.ml-form button[type="submit"]:hover { transform: translateY(-3px); }
.ml-form button[type="submit"]:disabled { opacity: 0.6; transform: none; cursor: progress; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: var(--step-small); line-height: 1.4; cursor: pointer; }
.consent input { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--on-bone); }
.consent a { text-decoration: underline; }
.foot-legal { display: flex; justify-content: space-between; gap: 24px; font-size: var(--step-small); flex-wrap: wrap; align-items: flex-start; }
.foot-legal a { text-decoration: underline; }
.credits { margin-top: 28px; font-size: var(--step-small); line-height: 1.5; max-width: 96ch; color: var(--on-bone-soft); }
.credits a { text-decoration: underline; }

/* ---------- Tableta ---------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-rows: auto auto minmax(480px, 1fr); }
  .rail-right .rt:nth-child(n+2):nth-child(-n+4) { font-size: 0.875rem; }
  .svc-desc { display: none; }
  .svc-end { display: block; }
  .intro-text { grid-column: 5 / 13; }
}

/* ---------- Móvil ---------- */
@media (max-width: 820px) {
  :root { --gap: 6px; }
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; min-height: 0; }
  .name-band { grid-column: 1 / -1; --band-h: clamp(84px, 22vw, 130px); }
  .hero-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-model { grid-column: 1 / -1; grid-row: 3; display: flex; flex-direction: column; }
  .hm { position: static; }
  .hm-chart { flex: none; height: auto; }
  .hm-kpis { grid-template-columns: 1fr; }
  .statement { position: static; min-height: 0; padding: 18px; }
  .statement p { font-size: clamp(1.5rem, 6.4vw, 1.875rem); max-width: none; }
  .rail-left { grid-column: 1 / -1; grid-row: 4; flex-direction: row; }
  .brand-tile { flex: 0 0 42%; min-height: 200px; }
  .facts { flex: 1; }
  .rail-right { grid-column: 1 / -1; grid-row: 5; flex-direction: row; flex-wrap: wrap; }
  .rt { flex: 1 1 calc(50% - 6px); min-height: 70px; }
  .rt.c5 { flex: 1 1 100%; min-height: 84px; }

  .intro { padding-block: 80px 100px; }
  .services, .method, .dossier, .about, .faq { padding-block: 80px; }
  .intro .grid12 { display: flex; flex-direction: column; gap: 36px; }
  .intro-aside { flex-direction: column !important; align-items: stretch !important; }
  .intro-text { font-size: 1.375rem; text-indent: 0; }
  .intro-aside { margin-top: 0; flex-direction: row-reverse; align-items: flex-end; justify-content: space-between; width: 100%; gap: 20px; --sq: 62vw; }
  .intro-aside .xl { width: 100%; max-width: 460px; aspect-ratio: 4 / 3; }
  .intro-aside p { font-size: 0.8125rem; max-width: none; }

  .services .h-small { margin-bottom: 40px; }
  .services .grid12 { display: block; }
  .svc-col { margin-bottom: 40px; }
  .svc-item { font-size: 1.125rem; line-height: 1.4; padding: 3px 0; pointer-events: none; }
  .svc-item:hover { transform: none; color: var(--muted); }
  .svc-item::after { content: none; }

  .plate { grid-template-columns: 1fr; min-height: 0; }
  .plate-left { padding: var(--pad); }
  .plate-frame { aspect-ratio: 5 / 6; max-width: 560px; }
  .paper ol { font-size: 1.0625rem; gap: 8px; }
  .paper h3, .mej h3 { font-size: 1.75rem; }
  .plate-right { padding: 32px var(--pad) 40px; gap: 32px; }
  .plate-cells { grid-template-columns: 1fr; }
  .cell { min-height: 60px; }

  .method-intro { display: block; }
  .method-intro h2 { margin-bottom: 20px; }
  .acc { flex-direction: column; height: auto; }
  .stage { flex: none; height: 64px; transition: height 0.5s var(--ease); }
  .stage[data-open="true"] { height: 320px; }
  .stage.s3[data-open="true"] { height: 520px; }
  .stage-name { writing-mode: horizontal-tb; transform: none; left: 18px; top: 20px; bottom: auto; font-size: 1.125rem; }
  .stage-body { flex-direction: column; padding: 20px; gap: 16px; }
  .stage-title { font-size: 1.75rem; }
  .stage-copy p { font-size: 1.0625rem; }
  .stage-img { flex: 0 0 38%; }

  .dossier-grid { display: flex; flex-direction: column; gap: 36px; }
  .dossier-right { width: 100%; }

  .about .grid12 { display: flex; flex-direction: column-reverse; gap: 36px; }
  .about-text p { font-size: 1.375rem; }
  .about-pic { width: 110px; height: 110px; margin: 0.1em 0.7em 0 0; }
  .about-facts { grid-template-columns: repeat(3, 1fr); font-size: 0.8125rem; gap: 12px; }

  .faq h2 { font-size: 10vw; margin-bottom: 40px; max-width: none; }
  .faq-list { margin-left: 0; }
  .faq summary { font-size: 1.1875rem; }
  .faq details[open] { margin: 0 calc(-1 * var(--pad)); padding: 18px var(--pad) 24px; }

  .close { min-height: 80svh; }
  .close h2 { font-size: 15vw; }
  .close-bottom { display: flex; flex-direction: column; gap: 24px; align-items: stretch; }
  .close-bottom p { font-size: 1.0625rem; }
  .btn-dark { justify-self: stretch; width: 100%; }

  .foot-grid { display: flex; flex-direction: column; gap: 40px; }
  .foot-reach a { font-size: 1.625rem; }
  .foot-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ml-form .email-row { flex-direction: column; }
  .ml-form button[type="submit"] { width: 100%; }
  .foot-legal { flex-direction: column; }

  .band-track span { font-size: 22vw; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; }
  .band-track { animation: none; transform: none; }
  html.js .hero-model.in .hm-line { animation: none; }
  .band-track { width: auto; flex-wrap: wrap; }
  .stage, .plate-frame img, .svc-item, .btn, .btn-dark, .cell, .rt, .hero-link { transition: none; }
  .dossier-out.swap { animation: none; }
}

/* ---------- Páginas interiores (gracias, privacidad, cookies) ---------- */
.page-top { padding: var(--pad); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.page-top a { font-weight: 800; letter-spacing: -0.02em; text-decoration: none; font-size: 1.25rem; }
.page-top a + a { font-weight: 500; font-size: 1rem; text-decoration: underline; }
.doc { padding: clamp(60px, 10vh, 120px) var(--pad) 140px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.doc > h1 { grid-column: 1 / 11; font-size: clamp(2.75rem, 1.2rem + 6vw, 6.5rem); margin-bottom: 28px; line-height: 0.9; letter-spacing: -0.045em; }
.doc > .updated { grid-column: 1 / 13; color: var(--muted); font-size: var(--step-small); margin-bottom: 72px; }
.doc section { grid-column: 5 / 12; margin-bottom: 52px; }
.doc h2 { font-size: var(--step-lead); letter-spacing: -0.03em; margin-bottom: 14px; line-height: 1.1; }
.doc p, .doc li { font-size: 1.0625rem; line-height: 1.6; max-width: 62ch; }
.doc p + p { margin-top: 12px; }
.doc ul { display: grid; gap: 6px; margin: 12px 0; padding-left: 1.1em; list-style: disc; }
.doc a { text-decoration: underline; }
.doc .lead { grid-column: 1 / 11; font-size: var(--step-statement); line-height: 1.2; font-weight: 500; margin-bottom: 80px; max-width: 34em; }
.doc .actions { grid-column: 5 / 12; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 820px) {
  .doc { display: block; }
  .doc > h1 { margin-bottom: 20px; }
  .doc > .updated { margin-bottom: 44px; }
}

/* ---------- Fragmentos de lo que construyo (ejemplos ilustrativos) ---------- */
.xl { margin: 0; width: var(--sq); aspect-ratio: 1; background: #f3f4f2; color: #1c1c19; display: flex; flex-direction: column; overflow: hidden; }
.xl-bar { background: #1f6b43; color: #fff; padding: 7px 10px; font-size: 0.8125rem; font-weight: 500; }
.xl-grid { flex: 1; display: grid; grid-template-columns: 1.3fr 1fr 0.9fr; grid-auto-rows: 1fr; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.xl-grid span { padding: 6px 8px; box-shadow: inset -1px -1px 0 #d7d5cd; display: flex; align-items: center; overflow: hidden; white-space: nowrap; }
.xl-grid .h { background: #e2e4e0; font-weight: 800; }
.xl-grid .err { color: #b3261e; font-weight: 800; }
.xl-grid .q { background: #fbe28b; }
.xl-grid .note { background: #fbe28b; font-style: italic; }

.plate-frame .pf { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: scale(1.03); transition: opacity 0.6s var(--ease), transform 1s var(--ease), visibility 0s 0.6s; display: flex; }
.plate-frame .pf.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.paper { flex: 1; background: #f3f4f2; color: #1c1c19; padding: clamp(20px, 3.4vw, 44px); display: flex; flex-direction: column; gap: 10px; }
.paper-note { font-size: 0.8125rem; color: #5b5a52; }
.paper h3 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); letter-spacing: -0.04em; }
.paper-sub { font-size: 1rem; color: #3d3c36; margin-bottom: 8px; }
.paper ol { list-style: decimal; padding-left: 1.3em; display: grid; gap: 12px; font-size: 1.1875rem; flex: 1; align-content: start; margin-top: 8px; }
.paper-table { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; font-size: 0.9375rem; font-variant-numeric: tabular-nums; background: #e2e4e0; }
.paper-table span { padding: 8px 10px; }
.paper-table .th { font-weight: 800; background: #1c1c19; color: #f3f4f2; }

.app { flex: 1; display: grid; grid-template-columns: 22% 1fr; background: #0f1011; color: #e8e8e4; }
.app-side { background: #17181a; padding: 18px 14px; display: grid; gap: 12px; align-content: start; font-size: 0.875rem; color: #9ea0a3; }
.app-side b { color: #fff; font-size: 1rem; }
.app-main { padding: clamp(14px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.app-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.app-top b { font-size: 1.25rem; letter-spacing: -0.02em; }
.app-top em { font-style: normal; font-size: 0.8125rem; color: #9ea0a3; }
.app-row { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 10px; align-items: center; background: #17181a; padding: 12px; font-size: 0.9375rem; }
.app-row span:last-of-type { color: #b4b6b9; }
.app-row i { font-style: normal; font-size: 0.8125rem; padding: 3px 9px; font-weight: 500; }
.app-row .ok { background: #1f6b43; color: #fff; }
.app-row .go { background: #c9a96e; color: #0e0e0c; }
.app-row .wait { background: #3a3c40; color: #e8e8e4; }
.app-foot { margin-top: auto; font-size: 0.875rem; color: #9ea0a3; }

.mej { flex: 1; background: #f3f4f2; color: #1c1c19; padding: clamp(20px, 3.4vw, 44px); display: flex; flex-direction: column; gap: 14px; }
.mej h3 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); letter-spacing: -0.04em; margin-bottom: 10px; }
.mej-row { display: grid; grid-template-columns: 7.5em 1fr 3em; gap: 12px; align-items: center; font-size: 1rem; }
.mej-row div { background: #e2e4e0; height: 26px; }
.mej-row i { display: block; height: 100%; width: var(--w); background: #1c1c19; }
.mej-row.low i { background: #b3261e; }
.mej-row b { text-align: right; font-variant-numeric: tabular-nums; }
.mej-find { margin-top: auto; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }

.prop { background: #f3f4f2; color: #1c1c19; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.prop h4 { font-size: 1.5rem; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 6px; }
.prop dl { margin: 0; display: grid; gap: 8px; font-size: 0.9375rem; }
.prop dt { font-weight: 800; }
.prop dd { margin: 0 0 4px; color: #3d3c36; }
