/* ==========================================================================
   CatchyBox · catchybox.com · hoja única de la landing (es, en, legales y 404)
   Sistema: docs/redesign/SYSTEM.md (dirección "La caja + injertos", 2026-10-12).
   Siempre en claro: no hay prefers-color-scheme a propósito.
   Fuentes: Clash Display y Satoshi (Fontshare, ITF Free Font License), autohospedadas en /fonts.
   Iconos: Lucide (ISC) como sprite SVG en cada página.
   ========================================================================== */

/* ===== Fuentes ===== */
@font-face { font-family: "Clash Display"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/clash-display-500.woff2") format("woff2"); }
@font-face { font-family: "Clash Display"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/clash-display-600.woff2") format("woff2"); }
@font-face { font-family: "Clash Display"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/clash-display-700.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/satoshi-400.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/satoshi-500.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/satoshi-700.woff2") format("woff2"); }

/* ===== Tokens (SISTEMA.md, secciones 2 a 5) ===== */
:root {
  --bg: #FBF8F4; --bg-2: #F4F0E8; --bg-3: #E9E3D5;
  --ink: #1A1814; --ink-2: #5C574F; --ink-3: #6E685C; --ink-mute: #9A9588; --ink-soft: #2D2820;
  --accent: #E85D2C; --accent-hover: #D14A1B; --accent-text: #B8401A; --on-accent: #FBF8F4;
  --on-ink: #FBF8F4; --on-ink-2: #B8B0A0;
  --ok: #3E7A4B; --warn: #8C6B3D; --bad: #C24A3D;
  --cat-screen: #9A4A86; --cat-read: #7A5C33; --cat-eat: #3E7A4B; --cat-tech: #3F7391; --cat-life: #5C574F;
  --phone: #0E0C0A;

  --display: "Clash Display", "Helvetica Neue", Arial, sans-serif;
  --sans: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-display-1: clamp(44px, 6.8vw, 104px);
  --t-display-2: clamp(36px, 5vw, 72px);
  --t-display-3: clamp(28px, 2.6vw, 40px);
  --t-title: clamp(22px, 1.9vw, 28px);
  --t-card-title: clamp(18px, 1.3vw, 20px);
  --t-lede: clamp(18px, 1.4vw, 22px);
  --t-body: clamp(16px, 0.95rem + 0.2vw, 17px);
  --t-number: clamp(56px, 6vw, 84px);

  --wrap: 1400px; --gutter: max(20px, 4vw); --prose: 62ch; --lede-max: 56ch;
  --band-y: clamp(72px, 9vw, 140px);
  --radius-sm: 10px; --radius: 16px; --radius-lg: 22px; --radius-pill: 999px;
  --border: 2px solid var(--ink);
  --shadow-lift: 0 28px 60px rgba(26, 24, 20, 0.18);
  --shadow-lift-sm: 0 10px 24px rgba(26, 24, 20, 0.10);
  --shadow-phone: 0 40px 80px rgba(26, 24, 20, 0.28);

  --ease: cubic-bezier(0.2, 0.65, 0.25, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 150ms; --dur-base: 400ms; --dur-reveal: 800ms; --dur-scene: 9s; --dur-loop: 7s; --dur-marquee: 48s;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: var(--t-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-display-1); font-weight: 700; line-height: 0.96; letter-spacing: -0.03em; text-transform: uppercase; }
h2 { font-size: var(--t-display-2); }
h3 { font-size: var(--t-title); line-height: 1.15; letter-spacing: -0.01em; }
strong, b { font-weight: 700; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 16px; background: var(--ink); color: var(--on-ink); border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; }
.skip:focus { top: 16px; }
.sprite { display: none; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
/* Los hijos de una rejilla o un flex no pueden empujar la columna con su ancho mínimo de contenido. */
.hero-grid > *, .split > *, .scrolly > *, .loop > *, .types > *, .plans > *, .promises > *, .faq > *, .footer-inner > * { min-width: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Bandas (SISTEMA 6.5) ===== */
.band { padding-block: var(--band-y); }
/* Red de seguridad, no arreglo: ningún adorno de una banda puede desplazar la página en horizontal. */
.band, .hero, .site-header, .site-footer { overflow-x: clip; }
.band.sand { background: var(--bg-2); }
.band.ink { background: var(--ink); color: var(--on-ink); }
.band.coral { background: var(--accent); color: var(--ink); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 700 14px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-text); }
.eyebrow .icon { width: 16px; height: 16px; }
.ink .eyebrow { color: var(--on-ink); opacity: 0.85; }
.coral .eyebrow { color: var(--ink); }
.lede { font-size: var(--t-lede); line-height: 1.5; color: var(--ink-2); max-width: var(--lede-max); margin-top: 20px; }
.ink .lede { color: var(--on-ink-2); }
.coral .lede { color: var(--ink); }
.coral h1, .coral h2 { color: var(--on-accent); }
.section-head { max-width: 100%; }
.section-head + * { margin-top: 56px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.fineprint { margin-top: 16px; font-size: 16px; color: var(--ink-3); }
.coral .fineprint { color: var(--ink); }

/* ===== Botones (SISTEMA 6.1: rol + icono, 44 px o más) ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: var(--radius-pill); border: 2px solid transparent; font: 700 16px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform var(--dur-fast) var(--ease), background-color var(--dur-fast), color var(--dur-fast); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { background: var(--ink-soft); }
.btn-secondary { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-secondary:hover { background: rgba(26, 24, 20, 0.06); }
.btn-tertiary { background: none; padding: 0 6px; min-height: 44px; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.btn-lg { min-height: 60px; padding: 0 32px; font-size: 18px; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.ink .btn-primary { background: var(--accent); color: var(--ink); }
.ink .btn-primary:hover { background: var(--accent-hover); color: var(--on-ink); }
.ink .btn-secondary { border-color: var(--on-ink); color: var(--on-ink); }
.ink .btn-secondary:hover { background: rgba(251, 248, 244, 0.08); }
.coral .btn-primary { background: var(--ink); color: var(--on-ink); }
.coral .btn-secondary { border-color: var(--ink); color: var(--ink); }
.coral .btn-secondary:hover { background: rgba(26, 24, 20, 0.08); }

/* ===== Chips (SISTEMA 6.2) ===== */
.tag { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--bg-2); color: var(--ink-2); font: 700 14px/1 var(--sans); white-space: nowrap; }
.tag .icon { width: 14px; height: 14px; }
.tag.screen { background: color-mix(in srgb, var(--cat-screen) 16%, white); color: var(--cat-screen); }
.tag.read { background: color-mix(in srgb, var(--cat-read) 16%, white); color: var(--cat-read); }
.tag.eat { background: color-mix(in srgb, var(--cat-eat) 16%, white); color: var(--cat-eat); }
.tag.tech { background: color-mix(in srgb, var(--cat-tech) 16%, white); color: var(--cat-tech); }
.tag.life { background: color-mix(in srgb, var(--cat-life) 16%, white); color: var(--cat-life); }
.tag.done { background: color-mix(in srgb, var(--ok) 16%, white); color: var(--ok); }
.tag.src { background: var(--ink); color: var(--on-ink); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* ===== Reveal por scroll (solo con JS; sin JS todo es visible) ===== */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ===== Encabezado ===== */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; text-decoration: none; }
.logo .mark { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: var(--ink); display: grid; place-items: center; }
.logo .mark .icon { width: 20px; height: 20px; }
.nav { display: flex; gap: 26px; margin-inline: auto; font-weight: 700; font-size: 16px; }
.nav a { text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; font-weight: 700; font-size: 15px; text-decoration: none; border-radius: var(--radius-pill); }
.lang:hover { background: var(--bg-2); }
.lang .icon { width: 16px; height: 16px; }

/* ===== Hero: la caja y el teléfono real ===== */
.hero { background: var(--accent); color: var(--ink); padding-top: clamp(48px, 6vw, 96px); overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.hero-copy { padding-bottom: clamp(48px, 6vw, 96px); }
.hero h1 { color: var(--on-accent); }
.hero h1 .line2 { color: var(--ink); }
.hero .eyebrow, .hero .lede, .hero .fineprint, .hero .proof { color: var(--ink); }
.hero .lede { max-width: 48ch; }
.proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: 16px; font-weight: 700; }
.proof span { display: inline-flex; align-items: center; gap: 7px; }
.proof .icon { width: 16px; height: 16px; }
.stage { position: relative; height: clamp(440px, 44vw, 640px); }
.phone { position: relative; width: clamp(240px, 24vw, 330px); padding: 10px; border-radius: 44px; background: var(--phone); box-shadow: var(--shadow-phone); }
.phone::before { content: ""; position: absolute; left: 50%; top: 20px; width: 90px; height: 26px; border-radius: var(--radius-pill); background: var(--phone); transform: translateX(-50%); z-index: 2; }
.phone .screen, .phone > picture, .phone > img { border-radius: 34px; overflow: hidden; aspect-ratio: 1206 / 2622; background: var(--bg); }
.phone picture img, .phone > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-hero { position: absolute; right: 2%; bottom: -12%; width: clamp(200px, 22vw, 310px); z-index: 1; transform: rotate(-4deg); transition: transform 1.2s var(--ease); }
.js .rv.in .phone-hero, .no-js .phone-hero { transform: none; }
.box-scene { position: absolute; left: 0; bottom: 0; width: 58%; height: 100%; z-index: 2; }
.drop { position: absolute; left: 50%; top: 0; width: 64%; border-radius: var(--radius); overflow: hidden; background: var(--bg); color: var(--ink); box-shadow: var(--shadow-lift); opacity: 0; animation: drop var(--dur-scene) var(--ease) infinite; animation-delay: var(--t, 0s); z-index: 1; }
.drop img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.drop .meta { padding: 10px 12px; font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.drop .meta b { font-family: var(--display); font-size: 17px; font-weight: 600; }
@keyframes drop {
  0% { opacity: 0; transform: translate(-50%, -30%) rotate(-10deg); }
  8% { opacity: 1; }
  22% { transform: translate(-50%, 48%) rotate(2deg); }
  30%, 100% { opacity: 0; transform: translate(-50%, 70%) scale(0.9); }
}
.box { position: absolute; left: 0; right: 0; bottom: 0; }
.box .back { position: absolute; left: 6%; right: 6%; bottom: 120px; height: 64px; background: var(--ink-soft); border-radius: var(--radius) var(--radius) 0 0; z-index: 0; }
.box-lid { position: absolute; left: 0; right: 0; bottom: 130px; height: 24px; background: #3A342B; border-radius: 6px; transform-origin: left center; z-index: 1; animation: lid var(--dur-scene) var(--ease) infinite; }
@keyframes lid { 0%, 100% { transform: rotate(-18deg); } 50% { transform: rotate(-26deg); } }
.box .front { position: relative; z-index: 2; height: 140px; background: var(--ink); color: var(--on-ink); border-radius: var(--radius) var(--radius) 0 0; display: flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--display); font-size: clamp(22px, 2.4vw, 34px); font-weight: 700; }
.box .front .icon { width: 28px; height: 28px; }
.counter { position: absolute; left: 0; top: 0; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius-pill); background: var(--bg); color: var(--ink); font-weight: 700; font-size: 15px; box-shadow: var(--shadow-lift-sm); }
.counter .icon { width: 16px; height: 16px; color: var(--accent-text); }

/* ===== Marquee: los 27 tipos ===== */
.marquee { background: var(--ink); color: var(--on-ink); padding-block: 18px; overflow: clip; }
.marquee-track { display: flex; gap: 14px; width: max-content; }
.js .marquee-track { animation: marquee var(--dur-marquee) linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee .tag { font-size: 15px; padding: 10px 16px; background: rgba(251, 248, 244, 0.08); color: var(--on-ink); gap: 8px; }
.marquee .tag .icon { width: 16px; height: 16px; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Cómo funciona: scrollytelling con teléfono fijo ===== */
.scrolly { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; margin-top: 56px; }
.sticky { position: sticky; top: 100px; height: calc(100vh - 140px); max-height: 720px; display: grid; place-items: center; }
.phone-sticky { width: min(330px, 84%); }
.phone-sticky .screens { position: relative; aspect-ratio: 1206 / 2622; border-radius: 34px; overflow: hidden; background: var(--bg); }
.phone-sticky .screen { position: absolute; inset: 0; opacity: 0; transform: translateY(12px); transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease); border-radius: 0; }
.phone-sticky .screen.on { opacity: 1; transform: none; }
.phone-sticky .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pasos { display: grid; gap: clamp(120px, 22vh, 220px); padding-block: 6vh 10vh; }
.paso { max-width: 48ch; }
.paso .num { display: block; font-family: var(--display); font-weight: 700; font-size: var(--t-number); line-height: 0.9; letter-spacing: -0.03em; color: var(--accent); margin-bottom: 16px; }
.paso h3 { font-size: var(--t-display-3); line-height: 1.08; }
.paso p { margin-top: 12px; color: var(--ink-2); }
.paso .tags { margin-top: 16px; }
.paso-shot { display: none; }

/* ===== Bucle: la captura se vuelve ficha ===== */
.loop { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; margin-top: clamp(64px, 8vw, 120px); padding-top: clamp(48px, 6vw, 96px); border-top: var(--border); }
.loop h3 { font-size: var(--t-display-3); line-height: 1.08; }
.loop p { margin-top: 16px; color: var(--ink-2); }
.loop-scene { position: relative; aspect-ratio: 1 / 1.02; }
.capture, .ficha { position: absolute; border-radius: var(--radius); box-shadow: var(--shadow-lift); overflow: hidden; background: var(--bg); }
.capture { left: 0; top: 4%; width: 42%; aspect-ratio: 9 / 16; animation: capture var(--dur-loop) var(--ease) infinite; }
.capture img { width: 100%; height: 100%; object-fit: cover; }
.capture .post { position: absolute; inset: auto 12px 14px 12px; color: #fff; font-size: 14px; line-height: 1.35; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); }
.capture .post b { display: block; font-size: 15px; margin-bottom: 4px; }
.scan { position: absolute; left: 0; right: 0; top: 4%; height: 3px; background: var(--accent); box-shadow: 0 0 18px var(--accent); opacity: 0; animation: scan var(--dur-loop) var(--ease) infinite; }
.ficha { right: 0; bottom: 4%; width: 56%; padding: 18px; border: var(--border); box-shadow: none; animation: ficha var(--dur-loop) var(--ease) infinite; }
.ficha .thumb { aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 14px; }
.ficha .thumb img { width: 100%; height: 100%; object-fit: cover; }
.ficha .t { font-family: var(--display); font-size: var(--t-title); font-weight: 600; line-height: 1.1; }
.ficha .s { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.ficha .fact { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); margin-top: 12px; }
.ficha .fact .icon { width: 16px; height: 16px; color: var(--accent-text); }
.stamp { position: absolute; left: 34%; top: 42%; z-index: 2; font-family: var(--display); font-weight: 700; font-size: clamp(26px, 2.6vw, 36px); color: var(--on-accent); background: var(--accent); padding: 8px 18px; border-radius: var(--radius-sm); transform: rotate(-8deg); opacity: 0; animation: stamp var(--dur-loop) var(--ease-bounce) infinite; }
@keyframes capture { 0% { opacity: 0; transform: translate(-30px, 20px) rotate(-6deg); } 10%, 55% { opacity: 1; transform: none; } 70%, 100% { opacity: 0; transform: translate(0, -20px) scale(0.96); } }
@keyframes scan { 0%, 14% { opacity: 0; top: 4%; } 18% { opacity: 1; } 42% { top: 60%; opacity: 1; } 46%, 100% { opacity: 0; top: 60%; } }
@keyframes ficha { 0%, 42% { opacity: 0; transform: translateY(30px) scale(0.97); } 56%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes stamp { 0%, 56% { opacity: 0; transform: rotate(-8deg) scale(1.6); } 64%, 88% { opacity: 1; transform: rotate(-8deg) scale(1); } 94%, 100% { opacity: 0; } }

/* ===== 27 tipos: fichas tipadas (SISTEMA 6.3) ===== */
.types { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 16px; margin-top: 56px; }
.type { display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius); overflow: hidden; background: var(--bg); color: var(--ink); border: var(--border); transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease); }
.type:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow-lift-sm); }
.type picture img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.type .body { padding: 16px; display: grid; grid-template-rows: auto auto 1fr; align-content: start; }
.type .body b { font-family: var(--display); font-size: var(--t-card-title); font-weight: 600; margin-bottom: 4px; }
.type .body span.meta { font-size: 15px; color: var(--ink-2); }
.type.list { background: var(--ink); color: var(--on-ink); border-color: var(--ink); padding: 20px; grid-template-rows: auto 1fr; align-content: space-between; }
.type.list .big { font-family: var(--display); font-weight: 700; font-size: var(--t-number); line-height: 0.9; color: var(--accent); }
.type.list .fams { font-size: 15px; line-height: 1.5; color: var(--on-ink-2); margin-top: 14px; align-self: end; }
.type.list .fams b { color: var(--on-ink); font-weight: 700; }
.type.poster { background: color-mix(in srgb, var(--cat-screen) 18%, white); }
.type.poster .art { aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--cat-screen); }
.type.poster .art .icon { width: 56px; height: 56px; stroke-width: 1.5; }

/* ===== Split (research, boxes, telegram, bilingüe) ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.checks { display: grid; gap: 14px; margin-top: 28px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--accent-text); }
.ink .checks .icon { color: var(--accent); }
.coral .checks .icon { color: var(--ink); }
.note { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; font-size: 16px; color: var(--ink-2); }
.note .icon { margin-top: 3px; color: var(--accent-text); }
.ink .note { color: var(--on-ink-2); } .ink .note .icon { color: var(--accent); }

/* ===== Research: el recibo con fuentes ===== */
.receipt { position: relative; background: var(--bg); color: var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-lift); max-width: 520px; margin-inline: auto; }
.receipt .head { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.receipt .head picture, .receipt .head img { width: 72px; height: 96px; flex: none; border-radius: 8px; overflow: hidden; }
.receipt .head img { object-fit: cover; }
.receipt .head b { font-family: var(--display); font-size: var(--t-title); font-weight: 600; display: block; line-height: 1.1; }
.receipt .head span { color: var(--ink-2); font-size: 15px; }
.found { display: flex; gap: 8px; margin-bottom: 16px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-2); font-size: 15px; color: var(--ink-2); }
.found .icon { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--accent-text); }
.receipt dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 16px; padding-right: 104px; }
.receipt dt { color: var(--ink-3); }
.receipt dd { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cite { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 6px; background: var(--accent); color: var(--ink); font: 700 13px/1 var(--sans); }
.sources { margin-top: 20px; padding-top: 16px; border-top: 2px dashed var(--bg-3); display: grid; gap: 8px; font-size: 15px; }
.sources li { display: flex; align-items: center; gap: 8px; }
.sources .icon { width: 14px; height: 14px; color: var(--ink-3); margin-left: auto; }
.phone-mini { position: absolute; right: -36px; bottom: -40px; width: 150px; padding: 6px; border-radius: 22px; }
.phone-mini::before { display: none; }
.phone-mini > picture { border-radius: 17px; }

/* ===== Dúo de teléfonos con tomas reales (boxes compartidos y bilingüe) ===== */
.duo { display: flex; justify-content: center; align-items: flex-end; gap: 20px; }
.duo > * { width: clamp(200px, 20vw, 250px); min-width: 0; flex: 0 1 auto; }
.duo .phone { width: 100%; min-width: 0; overflow: hidden; }
.duo > :first-child .phone { transform: translateY(-28px) rotate(-3deg); }
.duo > :last-child .phone { transform: rotate(3deg); }
.phone-fig { margin: 0; display: grid; gap: 14px; justify-items: center; }
.phone-fig figcaption { font: 700 14px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-text); }
.ink .phone-fig figcaption { color: var(--on-ink); }

/* ===== Laptop (SISTEMA 6.6) ===== */
.laptop { width: min(100%, 960px); margin: clamp(40px, 5vw, 64px) auto 0; padding: 12px 12px 0; border-radius: 18px 18px 0 0; background: var(--phone); box-shadow: var(--shadow-phone); }
.laptop picture { border-radius: 8px 8px 0 0; overflow: hidden; aspect-ratio: 1440 / 640; background: var(--bg); }
.laptop picture img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.closing { padding-bottom: 0; overflow: clip; }

/* ===== Telegram: el chat ===== */
.chat { background: var(--bg); color: var(--ink); border: var(--border); border-radius: var(--radius); padding: 20px; max-width: 460px; margin-inline: auto; display: grid; gap: 10px; }
.chat-head { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 2px solid var(--bg-3); }
.chat-head .tile { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; }
.chat-head b { font-family: var(--display); font-size: 20px; font-weight: 600; display: block; line-height: 1.1; }
.chat-head span { font-size: 15px; color: var(--ink-2); }
.bubble { max-width: 82%; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: var(--bg-2); font-size: 16px; }
.bubble.me { align-self: end; justify-self: end; background: var(--ink); color: var(--on-ink); border-radius: 16px 16px 4px 16px; }
.bubble-media { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 8px; }
.bubble-media span { aspect-ratio: 1; border-radius: 6px; }
.bubble-media .eat { background: var(--cat-eat); } .bubble-media .screen { background: var(--cat-screen); } .bubble-media .read { background: var(--cat-read); } .bubble-media .tech { background: var(--cat-tech); }
.bubble .tag { margin-left: 6px; vertical-align: middle; }

/* ===== Precios ===== */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border: var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.plan { display: grid; gap: 14px; align-content: start; padding: 36px 28px; border-right: var(--border); }
.plan:last-child { border-right: 0; }
.plan.featured { background: var(--accent); color: var(--ink); }
.plan .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan .flag { font: 700 14px/1 var(--sans); padding: 8px 12px; border-radius: var(--radius-pill); background: var(--ink); color: var(--on-ink); white-space: nowrap; }
.plan .for { font-size: 16px; color: var(--ink-2); }
.plan.featured .for { color: var(--ink); }
.plan .price { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 4vw, 56px); line-height: 1; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan.featured .price { color: var(--on-accent); }
.plan .price small { flex-basis: 100%; font-family: var(--sans); font-size: 16px; font-weight: 500; letter-spacing: 0; }
.plan.featured .price small { color: var(--ink); }
.plan .alt { font-size: 15px; color: var(--ink-3); }
.plan.featured .alt { color: var(--ink); }
.plan .checks { margin-top: 4px; }
.plan .checks li { font-size: 16px; }
.plan .checks .icon { width: 20px; height: 20px; }
.plan.featured .checks .icon { color: var(--ink); }
.plan .btn { margin-top: 8px; justify-self: start; }
.notes { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; font-size: 16px; color: var(--ink-2); }
.notes span { display: inline-flex; gap: 8px; align-items: flex-start; }
.notes .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--accent-text); }
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(48px, 6vw, 80px); }
.promise { background: var(--bg); border: var(--border); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; align-content: start; }
.promise .tile { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; }
.promise .tile .icon { width: 22px; height: 22px; }
.promise h3 { font-size: var(--t-card-title); line-height: 1.2; }
.promise p { font-size: 16px; color: var(--ink-2); }
.promise .btn-tertiary { justify-self: start; padding-left: 0; }

/* ===== FAQ ===== */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 80px); margin-top: 56px; }
.faq details { border-top: var(--border); }
.faq details:last-child, .faq details:nth-last-child(2):nth-child(odd) { border-bottom: var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-family: var(--display); font-size: var(--t-card-title); font-weight: 600; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 22px; height: 22px; transition: transform var(--dur-base) var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .answer { padding: 0 0 24px; max-width: var(--prose); color: var(--ink-2); display: grid; gap: 12px; }
.faq .answer a { color: var(--accent-text); }

/* ===== Cierre ===== */
.closing { text-align: center; }
.closing .lede { margin-inline: auto; }
.closing .actions { justify-content: center; }

/* ===== Pie ===== */
.site-footer { border-top: var(--border); padding-block: 40px; font-size: 16px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.footer-brand p { margin-top: 10px; color: var(--ink-2); max-width: 40ch; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; font-weight: 700; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.footer-nav .icon { width: 16px; height: 16px; }
.footer-legal { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--bg-3); color: var(--ink-3); font-size: 15px; }

/* ===== Páginas legales ===== */
.doc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; padding-block: clamp(48px, 6vw, 96px); }
.toc { position: sticky; top: 100px; align-self: start; font-size: 16px; }
.toc-title { font: 700 14px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
.toc ol { display: grid; gap: 2px; }
.toc a { display: block; padding: 7px 0; text-decoration: none; color: var(--ink-2); border-bottom: 1px solid var(--bg-3); }
.toc a:hover { color: var(--ink); }
.prose { max-width: var(--prose); }
.prose h1 { font-size: var(--t-display-2); text-transform: none; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.prose h2 { font-size: var(--t-display-3); line-height: 1.08; margin: 56px 0 16px; padding-top: 24px; border-top: var(--border); }
.prose h3 { margin: 28px 0 10px; }
.prose p, .prose li { margin-bottom: 14px; color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 14px; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent-text); }
.prose .doc-meta { font-size: 15px; color: var(--ink-3); }
.prose .lede { margin-top: 16px; margin-bottom: 28px; }
.prose .doc-note { background: var(--bg-2); border: var(--border); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 16px; color: var(--ink); }
.essentials { background: var(--bg-2); border: var(--border); border-radius: var(--radius); padding: 24px 28px; margin: 32px 0; }
.essentials h2 { border: 0; margin: 0 0 16px; padding: 0; font-size: var(--t-title); }
.essentials ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.essentials li { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.essentials .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--accent-text); }
.table-wrap { overflow-x: auto; margin-bottom: 16px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; border: var(--border); border-radius: var(--radius-sm); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--bg-3); }
.prose th { background: var(--bg-2); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.prose details { border-top: 1px solid var(--bg-3); padding: 10px 0; }
.prose summary { cursor: pointer; font-weight: 700; }
.only-narrow { display: none; }

/* ===== 404 ===== */
.empty { padding-block: clamp(64px, 10vw, 140px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.empty-figure { width: min(100%, 420px); height: auto; margin-inline: auto; grid-column: 1 / -1; }
.empty-figure .f-box { fill: var(--ink); }
.empty-figure .f-flap { fill: var(--ink-soft); }
.empty-figure .f-catch { fill: var(--accent); }
.empty-figure .f-trail { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 6 6; }
.empty-block h1, .empty-block h2 { font-size: var(--t-display-2); text-transform: none; font-weight: 600; letter-spacing: -0.02em; }
.empty-block p { margin-top: 16px; font-size: var(--t-lede); color: var(--ink-2); max-width: 40ch; }

/* ===== Movimiento reducido ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .marquee-track, .drop, .box-lid, .capture, .scan, .ficha, .stamp { animation: none !important; }
  .drop { opacity: 1; transform: translate(-50%, 48%); }
  .drop:nth-child(n + 3) { display: none; }
  .capture, .ficha { opacity: 1; transform: none; }
  .phone-hero { transform: none; }
  .btn:hover, .type:hover { transform: none; }
}

/* ===== 900 px: nav se esconde, grids de 4 y 3 pasan a 2 ===== */
@media (max-width: 900px) {
  .nav, .header-actions .btn-secondary { display: none; }
  .header-actions { margin-left: auto; }
  .types, .promises { grid-template-columns: repeat(2, 1fr); }
  .faq { grid-template-columns: 1fr; }
  .faq details:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  .doc { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; }
  .phone-mini { right: 8px; bottom: -24px; width: 120px; }
  .only-wide { display: none; } .only-narrow { display: inline; }
  /* Dúo de teléfonos compacto: a 768 el split sigue en dos columnas y cada teléfono mide unos 190 px. */
  .duo { gap: 10px; }
  .duo > * { width: 48%; }
  .duo > :first-child .phone { transform: translateY(-16px) rotate(-2deg); }
  .duo > :last-child .phone { transform: rotate(2deg); }
}

/* ===== 720 px: una columna ===== */
@media (max-width: 720px) {
  /* Header compacto: logo y una sola acción (primaria, con rol e ícono). El idioma queda en el pie. */
  .site-header .wrap { gap: 10px; justify-content: space-between; }
  .site-header .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
  .site-header .lang { display: none; }
  .header-actions { margin-left: 0; }
  .logo { font-size: 22px; }
  .hero-grid, .split, .scrolly, .loop, .empty, .footer-inner { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .hero-copy { padding-bottom: 0; }
  .stage { height: 420px; }
  .phone-hero { width: 190px; right: 0; bottom: -16%; }
  .box-scene { width: 66%; }
  .box .front { height: 110px; }
  .box .back { bottom: 96px; height: 50px; } .box-lid { bottom: 104px; }
  .counter { display: none; }
  .sticky { display: none; }
  .pasos { gap: 56px; padding-block: 0; }
  .paso-shot { display: block; margin-top: 20px; width: 70%; max-width: 260px; }
  .paso-shot .phone { width: 100%; }
  .types, .plans, .promises { grid-template-columns: 1fr; }
  .plan { border-right: 0; border-bottom: var(--border); }
  .plan:last-child { border-bottom: 0; }
  .laptop { margin-top: 32px; padding: 8px 8px 0; border-radius: 12px 12px 0 0; }
  .laptop picture { aspect-ratio: 1440 / 900; }
  /* En un teléfono no hace falta la miniatura del teléfono: tapaba el texto del recibo. */
  .phone-mini { display: none; }
  .receipt dl { padding-right: 0; }
  .receipt { padding: 22px; }
  .loop-scene { aspect-ratio: 3 / 4; margin-top: 12px; }
  .capture { width: 46%; top: 0; }
  .ficha { width: 62%; bottom: 0; padding: 14px; }
  .ficha .thumb { aspect-ratio: 16 / 9; margin-bottom: 10px; }
  .ficha .t { font-size: 18px; }
  .stamp { left: 4%; top: 18%; font-size: 24px; }
  .drop { width: 56%; }
  .btn-lg { width: 100%; }
  .actions .btn { flex: 1 1 100%; }
}

/* ===== 400 px: teléfonos angostos (360), el header sigue cabiendo con logo y una acción ===== */
@media (max-width: 400px) {
  .logo { font-size: 20px; gap: 8px; }
  .site-header .btn { padding: 0 12px; gap: 8px; }
}

/* ===== Spanish suggestion bar (English pages only). Hidden by default; site.js removes [hidden]. ===== */
/* Fixed to the bottom so showing it after first paint never shifts the page (the CSP forbids an inline head script). */
.lang-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); background: var(--bg-3); color: var(--ink); border-top: var(--border); box-shadow: var(--shadow-lift-sm); }
.lang-bar[hidden] { display: none; }
.lang-bar p { margin: 0; font-weight: 700; font-size: 16px; }
.lang-bar-close { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 2px solid transparent; border-radius: var(--radius-pill); background: transparent; color: var(--ink); cursor: pointer; }
.lang-bar-close:hover { background: var(--bg-2); border-color: var(--ink); }
