/* DeChinaAPeru.com, casa matriz del grupo — sistema de la landing de optiMind (Manrope, franjas tinta/papel,
   cierre en bloque) + kit «campo vivo y vidrio» de df-optimind, con los colores de DeChinaAPeru y la paleta de cada marca. */

@font-face {
  font-family: 'Manrope';
  src: url('fonts/manrope-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* ═════════ Tokens ═════════ */
:root {
  color-scheme: dark;

  /* Tinta azul-noche (página) y papel blanco frío (secciones de lectura) */
  --ink: #08131d;
  --ink-raised: #13283a;
  --paper: #f4f6f8;
  --on-ink: #f4f6f8;
  --on-ink-muted: #a9b8c6;
  --on-paper: #08131d;
  --on-paper-muted: #4b5966;

  /* Marca (logo): azul, rojo, amarillo, gris */
  --red: #e53012;                /* sellos y piezas grandes */
  --red-action: #d1290d;         /* fondo de botón con texto blanco (≈5:1) */
  --red-hover: #b3220a;
  --red-text: #ff6a4d;           /* rojo legible sobre tinta */
  --red-ink: #b02008;            /* rojo legible sobre papel */
  --yellow: #fbb81d;             /* solo resaltador y detalles */

  --line: rgb(244 246 248 / .14);
  --line-strong: rgb(244 246 248 / .26);
  --paper-line: rgb(8 19 29 / .14);
  --paper-line-strong: rgb(8 19 29 / .3);

  /* Vidrio (receta del kit, variante oscura sobre campo azul) */
  --glass-bg: rgb(8 19 29 / .5);
  --glass-border: linear-gradient(140deg, rgb(255 255 255 / .42), rgb(255 255 255 / .1) 40%, rgb(255 255 255 / .04) 70%, rgb(255 255 255 / .2));
  --glass-highlight: rgb(255 255 255 / .16);
  --glass-blur: 20px;
  --glass-saturate: 160%;
  --specular: rgb(255 255 255 / .12);
  --specular-o: .5;
  --glow: rgb(255 255 255 / .05);
  --shadow-rgb: 0 0 0;
  --grain: .10;

  --font: 'Manrope', 'Avenir Next', 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur: 180ms;

  --radius-sm: 8px;
  --radius-md: 12px;

  --shell: min(1240px, 100% - 64px);
  --section-space: clamp(96px, 11vw, 168px);
}

/* Campos: cuatro stops de claro a profundo; el último es el fondo y el campo se hunde en él */
.hero    { --field-1: #4aa3dc; --field-2: #0f6aa5; --field-3: #0a3f68; --field-4: #08131d; --field-veil: rgb(8 19 29 / .9); }
.closing { --field-1: #f04a26; --field-2: #e53012; --field-3: #c4270d; --field-4: #9c1f09; --field-veil: rgb(140 26 6 / .86); }

/* ═════════ Base ═════════ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  caret-color: var(--red-text);
  scrollbar-color: var(--red-action) var(--ink);
}
/* Grano de página: el mismo tile gaussiano del campo, muy bajo, por encima de todo */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background-image: var(--grain-url, none); background-size: 256px 256px;
  mix-blend-mode: overlay; opacity: .05;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3, p, dl, dd, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--red-action); color: #fff; }
:focus-visible { outline: 3px solid var(--red-text); outline-offset: 4px; border-radius: 4px; }
.paper-section :focus-visible { outline-color: var(--red-ink); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--red-action); border-radius: 999px; border: 2px solid var(--ink); }

.num { font-variant-numeric: tabular-nums; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.section-shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px;
  background: var(--paper); color: var(--on-paper); border-radius: var(--radius-sm); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ═════════ Tipografía (una sola voz: Manrope) ═════════ */
.display {
  font-size: clamp(2.7rem, 6.2vw, 5.5rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.headline {
  font-size: clamp(2.05rem, 4.4vw, 3.6rem);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.section-lede { max-width: 56ch; margin-top: 20px; font-size: 1.08rem; line-height: 1.65; color: var(--on-ink-muted); }
.paper-section .section-lede { color: var(--on-paper-muted); }

mark { background: linear-gradient(transparent 12%, var(--yellow) 12%, var(--yellow) 88%, transparent 88%); color: var(--on-paper); padding: 0 .18em; border-radius: 2px; }

.chip {
  display: inline-flex; align-items: center; min-height: 24px; padding: 3px 10px; border-radius: 999px;
  font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--on-ink); border: 1px solid var(--line-strong); background: rgb(8 19 29 / .4);
}

/* ═════════ Botones ═════════ */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border-radius: var(--radius-md);
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.button:active { transform: translateY(1px); }
.button--primary { background: var(--red-action); color: #fff; box-shadow: 0 10px 28px rgb(0 0 0 / .3); }
.button--ghost { background: transparent; color: var(--on-ink); border-color: var(--line-strong); }
.button--ink { background: var(--ink); color: var(--on-ink); box-shadow: 0 14px 34px rgb(8 19 29 / .32); }
.button--small { min-height: 44px; padding: 10px 18px; font-size: .92rem; }
@media (hover: hover) {
  .button--primary:hover { background: var(--red-hover); box-shadow: 0 16px 34px rgb(0 0 0 / .36); transform: translateY(-2px); }
  .button--ghost:hover { border-color: var(--on-ink); background: rgb(244 246 248 / .06); transform: translateY(-2px); }
  .button--ink:hover { background: #0e2234; transform: translateY(-2px); }
}

/* ═════════ Campo vivo, grano y vidrio (kit df-optimind) ═════════ */
.mesh { position: relative; overflow: hidden; overflow: clip; isolation: isolate; background: var(--field-4); }
/* Sin JS o antes del primer frame: una aproximación quieta en los mismos stops */
.mesh::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(160deg, var(--field-2), var(--field-3) 45%, var(--field-4) 85%);
}
.mesh__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: auto; z-index: 0; }
.mesh--veil::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(100% 120% at 22% 55%, var(--field-veil) 5%, transparent 70%);
}
.mesh__content { position: relative; z-index: 2; }
.grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  mix-blend-mode: overlay; opacity: var(--grain);
  background-image: var(--grain-url, none); background-repeat: repeat; background-size: 256px 256px; image-rendering: pixelated;
}

.glass {
  position: relative; isolation: isolate;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 30px 80px rgb(var(--shadow-rgb) / .28), 0 0 60px var(--glow);
  transition: box-shadow var(--dur) var(--ease);
}
.glass--flat { box-shadow: inset 0 1px 0 var(--glass-highlight); }
.glass--r-lg { border-radius: 14px; }
.glass--r-xl { border-radius: 18px; }
.glass--r-2xl { border-radius: 24px; }
.glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--glass-border);
  -webkit-mask: linear-gradient(black 0 0) content-box, linear-gradient(black 0 0);
  mask: linear-gradient(black 0 0) content-box, linear-gradient(black 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; z-index: 2;
}
.glass::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), var(--specular), transparent 60%);
  opacity: var(--specular-o); pointer-events: none; z-index: 1; transition: opacity var(--dur) var(--ease);
}
.glass:hover::after { opacity: 1; }
.glass > * { position: relative; z-index: 3; }

/* ═════════ Header ═════════ */
.site-header { position: fixed; z-index: 50; top: 14px; left: 0; right: 0; pointer-events: none; }
.site-header__bar {
  pointer-events: auto;
  width: min(1240px, 100% - 32px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 8px; min-height: 60px;
  transition: background-color 240ms var(--ease), box-shadow 240ms var(--ease);
}
/* Fuera del campo el vidrio no tiene qué refractar: pasa a tinta sólida translúcida (como optiMind al hacer scroll) */
.site-header.is-solid .site-header__bar { background: rgb(8 19 29 / .88); box-shadow: 0 12px 34px rgb(0 0 0 / .28), inset 0 0 0 1px var(--line); }
.site-header.is-solid .site-header__bar::before,
.site-header.is-solid .site-header__bar::after { opacity: 0; }
/* Logo del grupo en su versión para fondo oscuro, directo sobre el vidrio: sin placa blanca */
.brand-plate { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 10px; }
.brand-plate img { width: auto; height: 32px; }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px;
  font-size: .92rem; font-weight: 600; text-decoration: none; color: var(--on-ink);
  transition: background-color var(--dur) var(--ease);
}
.site-nav a:hover, .site-nav a[aria-current='true'] { background: rgb(244 246 248 / .1); }

/* ═════════ Hero ═════════ */
.hero { min-height: 100vh; min-height: 100svh; display: grid; }
.hero__shell {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; align-items: center;
  width: var(--shell); margin-inline: auto; padding: 132px 0 88px;
}
.hero .display { color: #fff; font-size: clamp(2.7rem, 5.4vw, 5rem); }
.accent { display: block; color: var(--red-text); }
.hero__lede { max-width: 50ch; margin-top: 32px; font-size: clamp(1.06rem, 1.4vw, 1.2rem); line-height: 1.6; color: #dfe7ee; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__legal { margin-top: 28px; font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--on-ink-muted); }

/* ═════════ Cinta ═════════ */
.belt { overflow: hidden; border-block: 1px solid var(--line); background: var(--ink); }
.belt__track { display: flex; width: max-content; animation: belt 42s linear infinite; }
.belt:hover .belt__track { animation-play-state: paused; }
.belt ul { display: flex; flex: none; }
.belt li {
  display: inline-flex; align-items: center; gap: 22px; padding: 18px 0 18px 22px;
  font-weight: 650; font-size: .98rem; color: var(--on-ink); white-space: nowrap;
}
.belt li::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
@keyframes belt { to { transform: translateX(-50%); } }

/* Paletas del campo por marca: el directorio tiñe el campo del hero y cada capítulo usa la suya */
.dir-row--meproind, .brand--meproind, .pill--meproind { --field-1: #ffb066; --field-2: #fc8f33; --field-3: #7a3608; --field-4: #08131d; --brand-accent: #fc8f33; --brand-on: #1a0e04; }
.dir-row--darkfunnels, .brand--darkfunnels, .pill--darkfunnels { --field-1: #e48a5e; --field-2: #c2562a; --field-3: #4f1f0f; --field-4: #08131d; --brand-accent: #c2562a; --brand-on: #fff; }
.dir-row--arkabia, .brand--arkabia, .pill--arkabia { --field-1: #ffe169; --field-2: #ffd400; --field-3: #f0a800; --field-4: #08131d; --brand-accent: #f0c400; --brand-on: #1a1400; }
.dir-row--paititi, .brand--paititi, .pill--paititi { --field-1: #e2b04e; --field-2: #2f6b4f; --field-3: #1d4a36; --field-4: #08131d; --brand-accent: #e2b04e; --brand-on: #151006; }
.dir-row--importar, .pill--importar { --field-1: #4aa3dc; --field-2: #0f6aa5; --field-3: #0a3f68; --field-4: #08131d; --brand-accent: #0f6aa5; --brand-on: #fff; }

/* ═════════ Directorio del grupo (placa en vidrio) ═════════ */
.directory { justify-self: end; width: 100%; max-width: 560px; padding: 14px; }
.directory__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 4px 8px 12px; }
.directory__title { font-size: 1rem; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.directory__count { font-size: .8rem; font-weight: 700; color: var(--on-ink-muted); }
.directory__list { display: grid; gap: 8px; }
.dir-row {
  display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; align-items: center; gap: 18px;
  min-height: 72px; padding: 12px 16px; border-radius: 14px;
  background: var(--paper); color: var(--on-paper); text-decoration: none;
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease);
}
.dir-row:hover, .dir-row:focus-visible { transform: translateX(-6px); box-shadow: 0 0 0 2px var(--brand-accent), 0 14px 30px rgb(0 0 0 / .28); outline: none; }
.dir-row__logo { display: flex; align-items: center; height: 30px; }
.dir-row__logo img, .dir-row__logo svg { height: 100%; width: auto; max-width: 128px; }
.dir-row--meproind .dir-row__logo img { height: 34px; }
.dir-row--arkabia .dir-row__logo svg { height: 18px; color: #262626; }
.dir-row__what { display: grid; gap: 2px; line-height: 1.3; }
.dir-row__what strong { font-size: .98rem; font-weight: 750; letter-spacing: -.01em; }
.dir-row__what span { font-size: .8rem; color: var(--on-paper-muted); }
.dir-row__go { width: 1.1em; height: 1.1em; color: var(--on-paper-muted); transition: color 240ms var(--ease); }
.dir-row:hover .dir-row__go, .dir-row:focus-visible .dir-row__go { color: var(--on-paper); }
.logo-df { color: var(--on-paper); }
.logo-paititi { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .14em; font-size: .92rem; color: #1f3d2e; }
.logo-paititi svg { height: 28px; width: 28px; flex: none; }

/* ═════════ Capítulos de cada empresa ═════════ */
.brand { color: #fff; }
.brand.mesh::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(90% 120% at 18% 50%, rgb(8 19 29 / .88) 8%, transparent 72%);
}
.brand--flip.mesh::after { background: radial-gradient(90% 120% at 82% 50%, rgb(8 19 29 / .88) 8%, transparent 72%); }
.brand__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center;
  padding-block: clamp(96px, 11vw, 160px);
}
.brand--flip .brand__copy { order: 2; }
/* Logo de cada empresa en blanco sobre su campo, como cabecera del capítulo; cada marca conserva su símbolo de color.
   Alturas ajustadas a ojo para que las cuatro pesen lo mismo. */
.brand__plate { display: inline-flex; align-items: center; height: 52px; color: #fff; }
.brand__plate img, .brand__plate svg { height: 100%; width: auto; }
.brand__plate img { filter: brightness(0) invert(1); }
.brand__plate .logo-df { color: #fff; }
.brand__plate .logo-ark { height: 30px; color: #fff; }
.brand__plate.logo-paititi { gap: 14px; font-size: 1.5rem; letter-spacing: .16em; color: #fff; }
.brand__plate.logo-paititi svg { height: 52px; width: 52px; }
.brand .headline { margin-top: 28px; color: #fff; max-width: 16ch; }
.brand__lede { margin-top: 20px; max-width: 48ch; font-size: 1.08rem; line-height: 1.65; color: #dfe7ee; }
.facts { margin-top: 28px; max-width: 520px; }
.facts > div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; padding: 12px 0; border-top: 1px solid rgb(255 255 255 / .16); }
.facts > div:last-child { border-bottom: 1px solid rgb(255 255 255 / .16); }
.facts dt { font-size: .86rem; font-weight: 600; color: var(--on-ink-muted); }
.facts dd { font-size: .95rem; font-weight: 750; }
.button--brand { margin-top: 32px; background: var(--brand-accent); color: var(--brand-on); box-shadow: 0 10px 28px rgb(0 0 0 / .3); }
@media (hover: hover) { .button--brand:hover { transform: translateY(-2px); filter: brightness(1.06); } }
.brand__note { margin-top: 18px; font-size: .78rem; color: var(--on-ink-muted); max-width: 52ch; }

.brand__ficha { padding: 14px; display: grid; gap: 12px; }
.brand__ficha figcaption { padding: 0 6px 2px; font-size: .78rem; color: var(--on-ink-muted); }
.ficha__main { border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--ink-raised); }
.ficha__main--square { aspect-ratio: 1 / 1; }
.ficha__main img, .ficha__pair img { width: 100%; height: 100%; object-fit: cover; }
.ficha__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ficha__pair img { aspect-ratio: 4 / 3; border-radius: 14px; }

/* DarkFunnels: conversación de demostración */
.chat__head { display: flex; align-items: center; gap: 12px; padding: 4px 6px; }
.chat__avatar { width: 40px; height: 40px; padding: 6px; border-radius: 50%; background: #17120e; flex: none; }
.chat__who { display: grid; line-height: 1.25; flex: 1; }
.chat__who strong { font-size: .95rem; }
.chat__who small { font-size: .76rem; color: #8fd6b2; }
.chat__body { display: grid; gap: 10px; padding: 18px 14px; border-radius: 14px; background: #17120e; min-height: 300px; align-content: center; }
.bubble { max-width: 85%; padding: 12px 14px; border-radius: 14px; font-size: .95rem; line-height: 1.45; }
.bubble small { display: block; margin-top: 4px; font-size: .7rem; opacity: .7; }
.bubble--in { justify-self: start; background: #2b221c; color: #f5f1ec; border-bottom-left-radius: 3px; }
.bubble--out { justify-self: end; background: #33241a; color: #f5f1ec; border: 1px solid rgb(194 86 42 / .34); border-bottom-right-radius: 3px; }

/* Arkabia: la frase del fundador */
.quote-card blockquote { padding: 6px 10px 0; }
.ficha__main--wide { aspect-ratio: 1200 / 625; }
.quote-card blockquote p { font-size: clamp(1.5rem, 2.6vw, 2.15rem); font-weight: 750; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
.quote-card figcaption { font-size: .82rem; color: #dfe7ee; }

/* PAITITI: platos */
.plates__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.plates__row li { display: grid; gap: 6px; justify-items: center; font-size: .76rem; font-weight: 700; color: #dfe7ee; }
.plates__row img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }

/* ═════════ Importación (secundaria) ═════════ */
.import__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: end; }
.import__head .section-lede { margin-top: 0; }
.import__steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin-top: clamp(40px, 6vw, 72px); }
.import__steps li { counter-increment: step; padding: 24px 0; border-top: 1px solid var(--paper-line-strong); }
.import__steps li::before { content: counter(step); display: block; margin-bottom: 10px; font-weight: 800; font-size: .95rem; color: var(--red-ink); font-variant-numeric: tabular-nums; }
.import__steps h3 { font-size: clamp(1.08rem, 1.5vw, 1.24rem); font-weight: 750; letter-spacing: -.02em; line-height: 1.25; }
.import__steps p { margin-top: 8px; color: var(--on-paper-muted); font-size: .95rem; }
.import__proof { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(40px, 6vw, 96px); align-items: start; margin-top: clamp(56px, 8vw, 104px); padding-top: 40px; border-top: 1px solid var(--paper-line-strong); }
.quote blockquote p { font-size: clamp(1.7rem, 3.2vw, 2.7rem); font-weight: 750; line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
.quote mark { padding: 0 .08em; }
.quote figcaption { margin-top: 24px; font-size: 1rem; color: var(--on-paper-muted); }
.quote figcaption strong { color: var(--on-paper); }
.import__figure { display: flex; align-items: baseline; align-items: last baseline; gap: 4px; flex-wrap: wrap; font-size: clamp(3.4rem, 6vw, 5rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.import__figure-label { max-width: 11em; margin-left: 10px; font-size: 1rem; font-weight: 750; line-height: 1.25; letter-spacing: -.01em; }
.clients__logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 24px 0 28px; }
.clients__logos li { display: grid; place-items: center; height: 84px; border-radius: var(--radius-md); background: #fff; box-shadow: inset 0 0 0 1px var(--paper-line); }
.clients__logos img { max-height: 48px; max-width: 72%; width: auto; mix-blend-mode: multiply; }
.clients__logos .clients__logo--tall img { max-height: 70px; }
.import__also { margin-top: 18px; font-size: .9rem; color: var(--on-paper-muted); }

/* Cierre: marcas como enlaces */
.closing__brands { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.closing__brands a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .5); color: #fff; font-weight: 700; text-decoration: none; transition: background-color var(--dur) var(--ease); }
.closing__brands a:hover { background: rgb(255 255 255 / .14); }

/* ═════════ Papel ═════════ */
.paper-section { background: var(--paper); color: var(--on-paper); padding-block: var(--section-space); }
.paper-section ::selection { background: var(--yellow); color: var(--on-paper); }

/* ═════════ FAQ ═════════ */
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq details { border-top: 1px solid var(--paper-line-strong); }
.faq__groups details:last-child { border-bottom: 1px solid var(--paper-line-strong); }
.faq summary {
  position: relative; display: flex; align-items: center; min-height: 64px; padding: 14px 44px 14px 0;
  font-size: clamp(1.02rem, 1.4vw, 1.14rem); font-weight: 700; letter-spacing: -.01em; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ''; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; margin-top: -1px;
  background: var(--red-ink); border-radius: 2px; transition: transform 220ms var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 44px 22px 0; color: var(--on-paper-muted); max-width: 62ch; }

/* ═════════ Cierre ═════════ */
.closing { color: #fff; }
.closing.mesh::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(90% 110% at 20% 50%, var(--field-veil) 10%, transparent 72%);
}
.closing__inner {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(40px, 6vw, 88px); align-items: center;
  padding-block: clamp(104px, 13vw, 184px);
}
.closing__title { font-size: clamp(2.9rem, 7.4vw, 6rem); color: #fff; max-width: 11ch; }
.closing__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.closing .glass { --glass-bg: rgb(8 19 29 / .42); }
.contact-card { padding: 10px 24px; color: #fff; }
.contact-card > div { padding: 16px 0; border-top: 1px solid rgb(255 255 255 / .18); }
.contact-card > div:first-child { border-top: 0; }
.contact-card dt { font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: rgb(255 255 255 / .78); }
.contact-card dd { margin-top: 4px; font-weight: 650; line-height: 1.45; }
.contact-card a { text-decoration-thickness: 1px; }
.closing :focus-visible { outline-color: #fff; }

/* ═════════ Footer ═════════ */
.site-footer { padding: 72px 0 40px; border-top: 1px solid var(--line); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer__brand p { margin-top: 16px; max-width: 30ch; color: var(--on-ink-muted); font-size: .92rem; }
.site-footer__brand .brand-plate { padding: 6px 0; }
.site-footer__brand .brand-plate img { height: 34px; }
.site-footer__col { display: grid; gap: 4px; align-content: start; font-size: .92rem; }
.site-footer__col a, .site-footer__col span { display: inline-flex; align-items: center; min-height: 36px; color: var(--on-ink-muted); text-decoration: none; }
.site-footer__col a:hover { color: var(--on-ink); text-decoration: underline; }
.site-footer__legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--on-ink-muted); }


/* ═════════ Responsive ═════════ */
@media (max-width: 1120px) {
  .hero__shell { column-gap: 40px; }
  .dir-row { grid-template-columns: 108px minmax(0, 1fr) auto; gap: 14px; }
  .dir-row__logo img, .dir-row__logo svg { max-width: 108px; }
  .import__head { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .import__head .section-lede { margin-top: 20px; }
  .import__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  :root { --shell: min(1240px, 100% - 48px); }
  .site-nav { display: none; }
  .hero__shell { grid-template-columns: minmax(0, 1fr); row-gap: 48px; padding-top: 124px; }
  .hero .display { font-size: clamp(2.6rem, 9vw, 4.4rem); }
  .directory { justify-self: stretch; max-width: none; }
  .mesh--veil::after { background: linear-gradient(to bottom, var(--field-veil) 52%, transparent 72%); opacity: .72; }
  .brand__grid, .import__proof, .faq__grid, .closing__inner { grid-template-columns: minmax(0, 1fr); }
  .brand--flip .brand__copy { order: 0; }
  .brand.mesh::after, .brand--flip.mesh::after { display: none; }
  .brand__copy { position: relative; }
  .brand__copy::before {
    content: ''; position: absolute; inset: -56px -16px -40px; z-index: -1; pointer-events: none;
    background: radial-gradient(130% 75% at 50% 45%, rgb(8 19 29 / .84) 55%, rgb(8 19 29 / 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 96px, #000 calc(100% - 64px), transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 96px, #000 calc(100% - 64px), transparent);
  }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  :root { --shell: calc(100% - 32px); --section-space: 92px; }
  html { scroll-padding-top: 80px; }
  .site-header { top: 10px; }
  .site-header__bar { width: calc(100% - 24px); min-height: 56px; padding: 6px; }
  .site-header .button--small { min-height: 42px; padding: 8px 14px; }
  .brand-plate img { height: 28px; }
  .hero__shell { padding: 108px 0 56px; }
  .hero__actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .directory { padding: 10px; }
  .dir-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "logo go" "what go"; row-gap: 8px; min-height: 0; padding: 14px; }
  .dir-row__logo { grid-area: logo; height: 26px; }
  .dir-row__what { grid-area: what; }
  .dir-row__go { grid-area: go; }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .import__steps { grid-template-columns: minmax(0, 1fr); }
  .plates__row { gap: 6px; }
  .closing__title { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 340px) {
  .hero .display { font-size: 2.3rem; }
}

/* ═════════ Movimiento reducido: se diseña, no se apaga ═════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .belt__track { animation: none; }
  .dir-row:hover, .dir-row:focus-visible { transform: none; }
}
