/* ==========================================================================
   HOLDERA — pages.css: the inner pages
   (nosotros, partners, contacto, aviso-legal, privacidad, 404)

   Loaded AFTER styles.css and it only adds; it never restyles the shell. Same
   art direction as the landing: a light studio band on top (the hero palette,
   quiet — no Perlin field, just the faint wordmark and the vignette) and the
   dark warm sheet rising over it as a lid. Geist only. Every colour is read
   from :root in styles.css; the handful of values that did not exist there are
   the --pg-* tokens below, and there is no colour literal anywhere else in
   this file (grep it before shipping — the token guard does not scan it).
   ========================================================================== */
:root {
  /* the sheet lid overlaps the light band by this much — the designed edge */
  --pg-lid: 48px;
  --pg-lid-sm: 28px;
  /* the lid's corner radius below 901px. styles.css squares main off there
     (the landing's mobile sheet no longer overlaps its hero, so a radius had
     nothing to round); here the lid still rides 28px over the band. */
  --pg-lid-r: 28px;
  --pg-band-min: 58vh;
  /* the top of the clipped wordmark. styles.css only has 14% and 6%; 14% is
     what the landing uses behind the brain, and behind a paragraph it reads as
     a smudge — measured on the first pass, the lead's last line crossed it. */
  --pg-wordmark-a: rgba(20, 20, 20, 0.10);
  /* sticky offset for split-column titles and the legal index */
  --pg-top: 96px;
  /* ghost numerals on the sheet: a fill you can barely see plus a hairline
     stroke, so a 130px "01" reads as structure, not as a headline */
  --pg-numeral: rgba(22, 19, 15, 0.055);
  --pg-numeral-stroke: rgba(22, 19, 15, 0.16);
}

/* --------------------------------------------------------------------------
   Page band — the light top of every inner page
   -------------------------------------------------------------------------- */
.phead {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: var(--pg-band-min);
  padding-top: var(--nav-h);
  color: var(--text);
  background: radial-gradient(120% 95% at 50% 32%, var(--bg-2) 0%, var(--bg) 46%, var(--bg-3) 100%);
}
/* the same soft vignette as the hero: a white lift at the top, a whisper of
   shade at the bottom where the lid lands */
.phead::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--w-35) 0%, var(--w-0) 22%, var(--k-0) 78%, var(--k-06) 100%);
}
/* The texture: the wordmark, sitting low and clipped by the band and again by
   the lid — the landing's HOLDERA, without the brain in front of it. The
   clipping lives on this wrapper, NOT on .phead: the nav's services submenu
   hangs below the header inside the band and must not be cut. */
.phead__deco { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
/* Sized and sunk so its top edge lands BELOW the lead: at 1440x900 the glyph
   tops sit ~4px under the paragraph and ~95px of them show above the lid. */
.phead__wordmark {
  position: absolute; left: 0; right: 0; bottom: -0.36em;
  text-align: center; white-space: nowrap; user-select: none;
  font-size: clamp(96px, 15.5vw, 224px); line-height: 1; font-weight: 600; letter-spacing: -0.03em;
  background: linear-gradient(180deg, var(--pg-wordmark-a) 0%, var(--text-a06) 45%, var(--text-a0) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* editorial split inside the band: eyebrow + title left, the lead bottom-right */
.phead__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: end;
  gap: 32px clamp(32px, 5vw, 80px);
  padding-top: clamp(48px, 7vh, 88px);
  padding-bottom: calc(var(--pg-lid) + clamp(80px, 11vh, 128px));
}
/* The hero's treatment, one notch smaller: the hero has ~49vw for its copy
   and this column has 8/12 of the container, and the two-sentence titles
   ("Después construimos.") are 20 characters a line. */
.phead__title {
  max-width: 18ch; margin: 0;
  font-size: clamp(44px, 4.8vw, 70px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 500;
  background: linear-gradient(100deg, var(--text) 0%, var(--text-2) 46%, var(--text-fade) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-wrap: balance;
}
/* one sentence per line where there is room; below 901px the title wraps on
   its own and text-wrap: balance keeps the lines even */
@media (min-width: 901px) { .phead__title .ln { display: block; } }
.phead__lead { max-width: 58ch; margin: 0 0 6px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; color: var(--text-2); }

/* no single-word last lines in running copy (progressive: a browser without
   text-wrap: pretty simply wraps as before) */
.phead__lead, .sheet__lead, .prose p, .sector__who, .sector__ex li, .step4 p, .principle p, .person p,
.team__note p, .tech__item p, .tech__label small, .way p, .ways__note, .hint p, .legal__body p, .legal__body li,
.sectors__foot p { text-wrap: pretty; }
/* script.js shows the floating island once this scrolls above the viewport;
   styles.css parks it at 150dvh for the landing's tall stage, here it is the
   bottom edge of the band */
.phead .hero-sentinel { top: auto; bottom: 0; }

/* load-in: CSS only, gated by .has-js so the band is complete without a
   script. The nav joins the choreography (the shell snippet is verbatim, so it
   is selected rather than marked). */
@keyframes pg-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.has-js .phead [data-enter] {
  animation: pg-in 900ms var(--ease) both;
  animation-delay: calc(var(--d, 0) * 1ms + 120ms);
}

/* --------------------------------------------------------------------------
   The sheet on inner pages — a lid over the band, not a full-screen slide
   -------------------------------------------------------------------------- */
.page main { margin-top: calc(-1 * var(--pg-lid)); }

/* the sheet's ghost buttons inherit the LIGHT ghost colour from styles.css
   (--text-2, i.e. dark on dark); the landing never uses one on the sheet */
.sheet .btn--ghost { color: var(--sh-text-2); }
.sheet .btn--ghost:hover { color: var(--sh-text); }

.sec__head { margin-bottom: clamp(40px, 5vw, 72px); }
.sheet__lead + .sheet__actions { margin-top: 32px; }
.sheet__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* placeholder text that Alex has to replace — visibly so */
.ph { font-family: var(--font-mono); font-size: 0.9em; letter-spacing: 0; color: var(--accent-ink); }

/* ---- editorial split: sticky title column + content column ---- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.split__aside { position: sticky; top: var(--pg-top); }
.split .sheet__title { max-width: 12ch; font-size: clamp(34px, 3.9vw, 56px); }

/* ---- prose ---- */
.prose { max-width: 58ch; }
.prose p { margin: 0; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.65; color: var(--sh-text-2); }
.prose p + p { margin-top: 1.25em; }
.prose > p:first-child { font-size: clamp(20px, 1.7vw, 26px); line-height: 1.4; letter-spacing: -0.015em; color: var(--sh-text); }
.prose strong { font-weight: 500; color: var(--sh-text); }

/* ---- "también" ticker: a mono line with hairline dots ---- */
.also {
  list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 20px 0 0;
  border-top: 1px solid var(--sh-border);
  display: flex; flex-wrap: wrap; gap: 10px 0;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sh-muted);
}
.also li { display: inline-flex; align-items: center; }
.also li + li::before { content: ""; width: 3px; height: 3px; margin: 0 14px; border-radius: 50%; background: var(--sh-muted); }
.also__k { color: var(--accent-ink); margin-right: 14px; }

/* ---- sectors: numbered editorial rows ---- */
.sectors { list-style: none; margin: 0; padding: 0; }
.sector {
  display: grid; grid-template-columns: 56px minmax(0, 4fr) minmax(0, 7fr);
  gap: 20px clamp(24px, 4vw, 72px);
  padding: clamp(32px, 4vw, 52px) 0; border-top: 1px solid var(--sh-border);
}
.sector:last-child { border-bottom: 1px solid var(--sh-border); }
.sector__n { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent-ink); padding-top: 12px; }
.sector__name { margin: 0 0 12px; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 500; }
.sector__who { margin: 0; font-size: 14px; line-height: 1.55; color: var(--sh-muted); max-width: 30ch; }
.sector__ex { list-style: none; margin: 0; padding: 0; }
/* La raya va en posición absoluta, no como columna de una rejilla: con las
   siglas en <abbr>, cada trozo de texto y cada sigla pasaban a ser una celda
   de la rejilla y la frase se partía en columnas (29-09-2026). */
.sector__ex li {
  position: relative;
  padding: 14px 0 14px 32px; border-top: 1px solid var(--sh-border);
  font-size: clamp(15px, 1.15vw, 17px); line-height: 1.5; color: var(--sh-text-2);
}
.sector__ex li:first-child { border-top: 0; padding-top: 6px; }
.sector__ex li::before { content: ""; position: absolute; left: 0; top: calc(14px + 0.75em); width: 16px; height: 1px; background: var(--accent-ink); }
.sector__ex li:first-child::before { top: calc(6px + 0.75em); }
.sectors__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  margin-top: clamp(32px, 4vw, 48px);
}
.sectors__foot p { margin: 0; font-size: clamp(16px, 1.3vw, 19px); color: var(--sh-text-2); max-width: 44ch; }

/* ---- the four steps: staggered two-column, ghost numerals ---- */
.steps4 {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px) clamp(32px, 5vw, 72px);
}
.step4 { padding-top: 24px; border-top: 1px solid var(--sh-border); }
.steps4 > :nth-child(even) { margin-top: clamp(40px, 6vw, 96px); }
.step4__n {
  display: block; margin: 0 0 8px;
  font-size: clamp(80px, 9vw, 136px); line-height: 0.9; font-weight: 500; letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  color: var(--pg-numeral); -webkit-text-stroke: 1px var(--pg-numeral-stroke);
}
.step4 h3 { margin: 0 0 12px; font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -0.025em; line-height: 1.1; }
.step4 p { margin: 0; max-width: 34ch; font-size: 15.5px; line-height: 1.6; color: var(--sh-muted); }

/* ---- principles: numbered hairline rows ---- */
.principles { list-style: none; margin: 0; padding: 0; }
.principle {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px 20px;
  padding: clamp(24px, 3vw, 36px) 0; border-top: 1px solid var(--sh-border);
}
.principle:last-child { border-bottom: 1px solid var(--sh-border); }
.principle__n { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent-ink); padding-top: 8px; }
.principle h3 { margin: 0 0 10px; font-size: clamp(21px, 1.9vw, 27px); letter-spacing: -0.02em; line-height: 1.15; }
.principle p { margin: 0; max-width: 52ch; font-size: 15.5px; line-height: 1.6; color: var(--sh-muted); }

/* ---- double-bezel card (the landing's feature shell) ---- */
.card { padding: 6px; border-radius: var(--r-xl); background: var(--sh-tint); border: 1px solid var(--sh-border); box-shadow: var(--shadow-sh); }
.card__core { border-radius: calc(var(--r-xl) - 6px); background: var(--sh-surface-2); box-shadow: var(--sh-bevel); padding: clamp(28px, 3.4vw, 48px); }

/* ---- team ---- */
.team { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: start; margin-top: clamp(40px, 5vw, 64px); }
.person { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: clamp(20px, 2.5vw, 36px); align-items: start; }
.person__tile { width: 112px; height: 112px; border-radius: var(--r-lg); background: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-ink); }
.person__tile img { width: 26px; height: auto; }
.person__role { margin: 0 0 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-ink); }
.person h3 { margin: 0 0 14px; font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -0.025em; line-height: 1.1; }
.person p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--sh-text-2); }
.person p + p { margin-top: 6px; }
.team__note { margin-top: clamp(32px, 6vw, 96px); padding-top: 24px; border-top: 1px solid var(--sh-border); }
.team__note p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--sh-muted); max-width: 40ch; }
.team__note p + p { margin-top: 12px; }
.team__note .team__lead { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.2; letter-spacing: -0.02em; color: var(--sh-text); }

/* ---- closing CTA band: copy left, actions bottom-right ---- */
.ctaband { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 5vw, 80px); align-items: end; }
.ctaband__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; padding-bottom: 6px; }

/* --------------------------------------------------------------------------
   Partners
   -------------------------------------------------------------------------- */
.tech { margin-top: clamp(8px, 2vw, 24px); }
.tech__group {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 20px clamp(24px, 4vw, 72px);
  padding: clamp(28px, 3.5vw, 48px) 0; border-top: 1px solid var(--sh-border);
}
.tech__group:last-of-type { border-bottom: 1px solid var(--sh-border); }
.tech__label { margin: 0; padding-top: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sh-muted); }
.tech__label small { display: block; margin-top: 8px; font-family: var(--font); font-size: 13px; letter-spacing: 0; text-transform: none; line-height: 1.5; color: var(--sh-muted); max-width: 22ch; }
.tech__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px clamp(24px, 3vw, 48px); }
.tech__item {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; align-items: start;
  padding: 10px; margin: -10px; border-radius: var(--r-lg);
  transition: background-color var(--t-fast) var(--ease);
}
.tech__item:hover { background: var(--sh-tint); }
.tech__mark {
  width: 48px; height: 48px; border-radius: var(--r-md); display: grid; place-items: center;
  background: var(--sh-surface); box-shadow: inset 0 0 0 1px var(--sh-border), var(--sh-bevel);
  transition: background-color var(--t-fast) var(--ease);
}
.tech__mark svg { width: 20px; height: 20px; fill: currentColor; color: var(--sh-text); transition: color var(--t-fast) var(--ease); }
/* Estas baldosas ya no llevan logotipos de marca (paso 10: la pagina dejo de
   nombrar marcas), asi que tampoco leen --brand: la baldosa se enciende y el
   glifo se dibuja en tinta encima. Si se volviera a poner var(--brand, ...)
   aqui sin que ninguna pagina declare --brand en linea, check-tokens.js lo
   cantaria como "token usado pero nunca definido". */
.tech__item:hover .tech__mark { background: var(--sh-text); }
.tech__item:hover .tech__mark svg { color: var(--ink); }
.tech__item h3 { margin: 4px 0 6px; font-size: 19px; letter-spacing: -0.02em; line-height: 1.15; }
.tech__item p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--sh-muted); max-width: 38ch; }

.more { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 20px clamp(24px, 4vw, 72px); padding: clamp(28px, 3.5vw, 48px) 0 0; }
.more__list { list-style: none; margin: 0; padding: 8px 0 0; display: flex; flex-wrap: wrap; gap: 12px 0; font-size: clamp(16px, 1.3vw, 19px); letter-spacing: -0.01em; color: var(--sh-text-2); }
.more__list li { padding-right: 18px; margin-right: 18px; border-right: 1px solid var(--sh-border-strong); line-height: 1.3; }
.more__list li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }

/* ---- "¿Usas otra herramienta?": one bezelled block, four numbered ways ---- */
.ways { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); }
.ways .sheet__title { font-size: clamp(30px, 3.4vw, 48px); max-width: 14ch; margin-bottom: 20px; }
.ways .tag { margin-bottom: 20px; }
.ways__list { list-style: none; margin: 0; padding: 0; }
.way { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--sh-border); }
.way:first-child { border-top: 0; padding-top: 0; }
.way__n { font-size: clamp(30px, 2.6vw, 40px); line-height: 1; font-weight: 500; letter-spacing: -0.04em; color: var(--pg-numeral); -webkit-text-stroke: 1px var(--pg-numeral-stroke); }
.way h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.015em; }
.way p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--sh-muted); max-width: 44ch; }
.ways__note { display: flex; gap: 14px; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--sh-border); font-size: 14px; line-height: 1.55; color: var(--sh-text-2); max-width: 40ch; }
.ways__note::before { content: ""; flex: none; width: 1px; background: var(--accent-ink); }

/* --------------------------------------------------------------------------
   Contacto
   -------------------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.contact .sheet__title { font-size: clamp(34px, 3.9vw, 56px); max-width: 12ch; }
.channels { list-style: none; margin: 0; padding: 0; }
.channel {
  display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px 16px; align-items: baseline;
  padding: 18px 0; border-top: 1px solid var(--sh-border);
}
.channel:last-child { border-bottom: 1px solid var(--sh-border); }
.channel__k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sh-muted); }
.channel a {
  display: inline-block; text-decoration: none; overflow-wrap: anywhere;
  font-size: clamp(19px, 1.7vw, 26px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; color: var(--sh-text);
  transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.channel a:hover { color: var(--accent-ink); transform: translateX(4px); }
.channel a[data-placeholder] { color: var(--sh-text-2); }
.contact__meta { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 8px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.02em; color: var(--sh-muted); }
.contact__meta b { font-weight: 500; color: var(--sh-text-2); }
.after__lab { margin: 32px 0 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sh-muted); }
.after { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 0; }
.after li { display: inline-flex; align-items: baseline; gap: 10px; padding-right: 22px; margin-right: 22px; border-right: 1px solid var(--sh-border-strong); font-size: 14.5px; color: var(--sh-text-2); }
.after li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.after__n { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--accent-ink); }

/* "nos ayuda saber": three hairline rows, numeral + statement + detail */
.hints { list-style: none; margin: 0; padding: 0; }
.hint {
  display: grid; grid-template-columns: 80px minmax(0, 5fr) minmax(0, 7fr); gap: 16px clamp(24px, 4vw, 64px); align-items: start;
  padding: clamp(24px, 3vw, 36px) 0; border-top: 1px solid var(--sh-border);
}
.hint:last-child { border-bottom: 1px solid var(--sh-border); }
.hint__n { font-size: clamp(34px, 3vw, 44px); line-height: 1; font-weight: 500; letter-spacing: -0.04em; color: var(--pg-numeral); -webkit-text-stroke: 1px var(--pg-numeral-stroke); }
.hint h3 { margin: 4px 0 0; font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -0.02em; line-height: 1.15; }
.hint p { margin: 4px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--sh-muted); max-width: 46ch; }

/* --------------------------------------------------------------------------
   Legal pages — long-form prose with a sticky index
   -------------------------------------------------------------------------- */
.legal { display: grid; grid-template-columns: 220px minmax(0, 68ch); gap: clamp(40px, 6vw, 112px); align-items: start; }
.legal__toc { position: sticky; top: var(--pg-top); }
.legal__toc p { margin: 0 0 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sh-muted); }
.legal__toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.legal__toc li { border-top: 1px solid var(--sh-border); }
.legal__toc li:last-child { border-bottom: 1px solid var(--sh-border); }
.legal__toc a {
  display: flex; gap: 14px; align-items: baseline; padding: 10px 0;
  font-size: 13.5px; line-height: 1.35; color: var(--sh-text-2); text-decoration: none;
  counter-increment: toc; transition: color var(--t-fast) var(--ease);
}
.legal__toc a::before { content: counter(toc, decimal-leading-zero); flex: none; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--sh-muted); }
.legal__toc a:hover { color: var(--sh-text); }
.legal__date { margin: 0 0 clamp(32px, 4vw, 48px); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--sh-muted); }
.legal__body section + section { margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--sh-border); }
.legal__body h2 { margin: 0 0 18px; font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -0.025em; line-height: 1.1; scroll-margin-top: var(--pg-top); }
.legal__body h3 { margin: 28px 0 10px; font-size: 17px; letter-spacing: -0.01em; }
.legal__body p, .legal__body li { font-size: clamp(15.5px, 1.15vw, 17px); line-height: 1.7; color: var(--sh-text-2); }
.legal__body p { margin: 0 0 1em; }
.legal__body p:last-child { margin-bottom: 0; }
.legal__body ul { margin: 0 0 1em; padding-left: 1.2em; }
.legal__body li + li { margin-top: 6px; }
.legal__body a { color: var(--sh-text); text-underline-offset: 3px; text-decoration-color: var(--sh-border-strong); transition: text-decoration-color var(--t-fast) var(--ease); }
.legal__body a:hover { text-decoration-color: var(--accent-ink); }
.legal__dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 24px; margin: 0 0 1.2em; }
.legal__dl dt { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sh-muted); padding-top: 4px; }
.legal__dl dd { margin: 0; font-size: 16px; color: var(--sh-text-2); }
/* following an index link marks the section you landed on */
.legal__body section:target > h2 { color: var(--accent-ink); }

/* --------------------------------------------------------------------------
   404 — three ways out
   -------------------------------------------------------------------------- */
.exits { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.exit { border-top: 1px solid var(--sh-border); }
.exit:last-child { border-bottom: 1px solid var(--sh-border); }
.exit a {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) 40px; align-items: center; gap: 20px;
  padding: 22px 0; text-decoration: none; color: var(--sh-text);
}
.exit__n { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent-ink); }
.exit__t { font-size: clamp(26px, 3vw, 44px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.exit__t small { display: block; margin-top: 6px; font-size: 14px; letter-spacing: 0; font-weight: 400; color: var(--sh-muted); }
.exit__arrow {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--sh-control-border); color: var(--sh-text);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.exit a:hover .exit__arrow { background: var(--sh-text); color: var(--ink); transform: translate(2px, -1px); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .tech__list { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .phead { min-height: 0; }
  .phead__inner { grid-template-columns: 1fr; gap: 24px; padding-top: 36px; padding-bottom: calc(var(--pg-lid-sm) + 52px); }
  .phead__title { font-size: clamp(36px, 9.4vw, 48px); letter-spacing: -0.03em; max-width: none; }
  .phead__lead { margin-bottom: 0; }
  .phead__wordmark { font-size: clamp(96px, 26vw, 200px); }

  .page main { margin-top: calc(-1 * var(--pg-lid-sm)); border-radius: var(--pg-lid-r) var(--pg-lid-r) 0 0; }
  /* styles.css paints a 200px light-to-dark ramp on the first sheet of the
     landing below 901px, because there the sheet and the hero meet on a
     straight line. Here the sheet still overlaps the band as a rounded lid
     with its lit rim, so the seam IS designed and the ramp would only wash
     the lid's corners into the band. */
  .page main > .sheet:first-child {
    background:
      radial-gradient(70% 40% at 50% 0%, var(--accent-a10) 0%, var(--accent-a0) 60%),
      linear-gradient(180deg, var(--sh-bg) 0%, var(--sh-bg) calc(100% - 200px), var(--sh-bg-2) 100%);
  }

  .split, .team, .ctaband, .ways, .contact, .legal, .tech__group, .more, .steps4 { grid-template-columns: 1fr; }
  .split__aside, .legal__toc { position: static; }
  .steps4 > :nth-child(even) { margin-top: 0; }
  .sector { grid-template-columns: 40px minmax(0, 1fr); }
  .sector__ex { grid-column: 2; }
  .hint { grid-template-columns: 56px minmax(0, 1fr); }
  .hint p { grid-column: 2; margin-top: 0; }
  .ctaband__actions { justify-content: flex-start; padding-bottom: 0; }
  .team__note { margin-top: 8px; }
  .person { grid-template-columns: 80px minmax(0, 1fr); }
  .person__tile { width: 80px; height: 80px; border-radius: var(--r-md); }
  .legal__toc { margin-bottom: 8px; }
  /* el indice de aviso-legal y privacidad son las filas mas tocadas de esas dos
     paginas y median 38px de alto: 6px por debajo del minimo comodo de 44 */
  .legal__toc a { min-height: 44px; }
  .tech__label { padding-top: 0; }
}

@media (max-width: 560px) {
  .channel { grid-template-columns: 1fr; gap: 6px; }
  /* the three steps stack: a divider that dangles at a line end is worse than none */
  .after { flex-direction: column; gap: 10px; }
  .after li { border-right: 0; margin-right: 0; padding-right: 0; }
  .legal__dl { grid-template-columns: 1fr; gap: 4px 0; }
  .legal__dl dd { margin-bottom: 8px; }
  .exit a { grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 14px; }
  .sector { grid-template-columns: 32px minmax(0, 1fr); }
  .tech__item { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  .tech__mark { width: 40px; height: 40px; border-radius: var(--r-sm); }
  .way { grid-template-columns: 48px minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Reduced motion — styles.css already zeroes every animation and transition;
   restated here so the band's load-in cannot outlive that rule by accident.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .has-js .phead [data-enter] { animation: none; }
}
