/* Estilos de la portada, compartidos por / (es) y /en. */
@font-face {
  font-family:"Avant Garde"; src:url("/fonts/ITCAvantGardeStd-Bk.ttf") format("truetype");
  font-weight:400; font-style:normal; font-display:swap;
}
@font-face {
  font-family:"Avant Garde"; src:url("/fonts/ITCAvantGardeStd-Md.ttf") format("truetype");
  font-weight:500; font-style:normal; font-display:swap;
}
@font-face {
  font-family:"Avant Garde"; src:url("/fonts/ITCAvantGardeStd-Demi.ttf") format("truetype");
  font-weight:600; font-style:normal; font-display:swap;
}
@font-face {
  font-family:"Avant Garde"; src:url("/fonts/ITCAvantGardeStd-Bold.ttf") format("truetype");
  font-weight:700; font-style:normal; font-display:swap;
}
/* Tokens del panel (panel/app/globals.css). */
:root {
  --primary:#3660ff;
  --primary-soft:#eef2ff;
  --mint:#d9fced;
  --teal:#00bdcb;
  --paid:#00702e;
  --ink:#00250b;
  --ink-2:#5a6961;
  --surface:#fafefc;
  --surface-low:#f0fbf6;
  --line:#c4f0dc;
  --bezel:#16181b;
  --paper:#fffef9;
  --shadow:0 30px 60px -24px rgba(0,37,11,.28), 0 6px 18px rgba(0,37,11,.05);
}
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body {
  font-family:"Avant Garde", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background:var(--surface); color:var(--ink);
  -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
img { display:block; width:100%; height:auto; }
a { color:inherit; }
.wrap { max-width:1200px; margin:0 auto; padding:0 28px; }
.num { font-variant-numeric:tabular-nums; }
section { scroll-margin-top:80px; }

.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:10px; text-decoration:none;
  font-size:15px; font-weight:700; border-radius:14px; padding:15px 24px; white-space:nowrap;
  transition:transform .18s, box-shadow .18s, background .18s;
}
.btn-blue { background:var(--primary); color:#fff; box-shadow:0 12px 26px -8px rgba(54,96,255,.6); }
.btn-blue:hover { transform:translateY(-1px); box-shadow:0 16px 30px -8px rgba(54,96,255,.65); }
.btn-line { color:var(--ink); border:1.5px solid var(--line); background:#fff; }
.btn-line:hover { background:var(--surface-low); }

.h2 { font-size:clamp(30px, 4vw, 50px); line-height:1.06; letter-spacing:-.03em; font-weight:700; }
.lede { font-size:18px; line-height:1.6; font-weight:500; color:var(--ink-2); }
.head { max-width:720px; }
.head .lede { margin-top:16px; }
.head.center { margin:0 auto; text-align:center; }

/* ── Navegación ────────────────────────────────────────────────────────── */
.nav {
  position:sticky; top:0; z-index:20; background:rgba(250,254,252,.88);
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(196,240,220,.6);
}
.nav .wrap { display:flex; align-items:center; gap:30px; height:70px; }
.brand { display:flex; align-items:center; gap:10px; text-decoration:none; }
.brand .wordmark { height:22px; width:auto; }
.nav .right { margin-left:auto; display:flex; align-items:center; gap:18px; }
.nav .login { text-decoration:none; font-size:15px; font-weight:600; color:var(--ink); }
.nav .btn { padding:10px 16px; font-size:14px; border-radius:12px; }
/* Selector de idioma: enlace a la otra versión (sin JS, el CSP lo prohíbe). */
.nav .lang {
  text-decoration:none; font-size:13px; font-weight:700; letter-spacing:.04em; color:var(--ink-2);
  border:1.5px solid var(--line); border-radius:10px; padding:7px 10px; background:#fff;
}
.nav .lang:hover { color:var(--ink); background:var(--surface-low); }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { position:relative; padding:80px 0 40px; overflow:clip; }
.hero-copy { max-width:1180px; margin:0 auto; text-align:center; }
.hero h1 { font-size:clamp(36px, 5vw, 62px); line-height:1.04; letter-spacing:-.035em; font-weight:700; text-wrap:balance; }
.hero .lede { margin:22px auto 0; max-width:620px; line-height:1.4; text-wrap:pretty; }
.hero .ctas { display:flex; gap:12px; flex-wrap:wrap; justify-content:center; margin-top:32px; }
.hero .ctas .btn { font-weight:500; }
.hero .powered { margin-top:26px; display:flex; align-items:center; justify-content:center; gap:8px; font-size:13.5px; font-weight:500; color:var(--ink-2); }
.hero .powered img { height:22px; width:auto; }

.stage { position:relative; max-width:1080px; margin:64px auto 0; padding:0 0 9%; }
.stage .mac { width:84%; margin-left:auto; }
.stage .ipad { position:absolute; left:0; bottom:0; width:42%; }

/* Avisos flotantes sobre la composición: lo que el panel te dice en vivo. */
.toast {
  position:absolute; z-index:3; display:flex; gap:12px; align-items:center;
  background:#fff; border:1px solid var(--line); border-radius:16px; padding:12px 16px 12px 12px;
  box-shadow:var(--shadow); font-size:13px; font-weight:500; color:var(--ink-2); line-height:1.35;
}
.toast b { display:block; color:var(--ink); font-size:14.5px; font-weight:700; }
.toast .dot { width:36px; height:36px; border-radius:11px; flex:none; display:flex; align-items:center; justify-content:center; }
.toast .dot img { width:20px; height:20px; }
.toast.paid { top:-28px; right:-1%; }
.toast.paid .dot { background:var(--mint); }
.toast.paid .badge { margin-left:8px; background:var(--paid); color:#fff; font-size:11px; font-weight:700; border-radius:6px; padding:3px 7px; }
.toast.split { right:4%; bottom:4%; }
.toast.split .dot { background:var(--primary-soft); }

/* ── Dispositivos dibujados en CSS ─────────────────────────────────────── */
.ipad {
  background:var(--bezel); border-radius:4% / 5.6%;
  box-shadow:0 0 0 1.5px #3a3d42, 0 0 0 4px #cfd3d7, 0 40px 64px -26px rgba(0,37,11,.45);
}
/* El bisel es margen de la imagen (en % del iPad); un padding en % se mediría
   contra el contenedor y en el hero, que va en position:absolute, salía grueso. */
/* Esquinas concéntricas: radio de la pantalla = radio del marco (4 % del
   ancho) menos el bisel (1.5 %), expresado en % de la imagen (97 % × 67.4 %). */
.ipad img { display:block; width:97%; margin:1.5%; border-radius:2.6% / 3.7%; }
.mac { padding:0 6.5%; }
.mac .lid {
  background:var(--bezel); padding:2.2% 2.2% 3.2%;
  border-radius:3.2% 3.2% 0 0 / 4.9% 4.9% 0 0; box-shadow:0 0 0 1.5px #3a3d42;
}
/* Pantalla con esquinas redondas y concéntricas al marco: radio del marco
   (3.2 %) menos el bisel (2.2 %), en % de la imagen (95.6 % × 62.5 %). */
.mac .lid img { border-radius:1.05% / 1.68%; }
.mac .base {
  position:relative; height:0; padding-bottom:2.2%; margin:0 -7.5%;
  background:linear-gradient(#e4e7ea, #b7bbc0);
  border-radius:0 0 50% 50% / 0 0 100% 100%;
  box-shadow:0 34px 52px -24px rgba(0,37,11,.42);
}
.mac .base::after {
  content:''; position:absolute; left:50%; top:0; width:14%; height:45%;
  transform:translateX(-50%); background:#a5a9ae; border-radius:0 0 10px 10px;
}

/* ── Franja de cobro ───────────────────────────────────────────────────── */
.rails { border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:#fff; }
.rails .wrap { display:flex; align-items:center; gap:14px 36px; flex-wrap:wrap; justify-content:center; padding-top:22px; padding-bottom:22px; }
.rails p { font-size:13px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-2); }
.rails ul { list-style:none; display:flex; gap:10px; flex-wrap:wrap; justify-content:center; align-items:center; }
.rails li {
  height:44px; padding:0 14px; display:flex; align-items:center; gap:8px;
  background:#fff; border:1px solid var(--line); border-radius:10px;
  font-size:14.5px; font-weight:600; color:#30413a;
}
.rails li img { height:22px; width:auto; }
.rails li img.tall { height:28px; }
.rails li svg { width:20px; height:20px; flex:none; stroke:#30413a; fill:none; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.rails .sep { width:1px; height:28px; padding:0; border:0; background:var(--line); margin:0 6px; }

/* ── Antes / con Pronto ────────────────────────────────────────────────── */
.shift { padding:130px 0 0; }
.perks { list-style:none; margin-top:52px; display:grid; grid-template-columns:repeat(6, minmax(0,1fr)); gap:18px; }
.perk { grid-column:span 2; background:#fff; border:1.5px solid var(--line); border-radius:24px; padding:30px 28px; }
.perk:nth-child(4), .perk:nth-child(5) { grid-column:span 3; }
.perk .ico {
  width:56px; height:56px; border-radius:18px; display:flex; align-items:center; justify-content:center;
  background:var(--ink); box-shadow:0 14px 26px -12px rgba(0,37,11,.55);
}
.perk .ico svg { width:34px; height:34px; fill:none; stroke:#fff; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.perk h3 { margin-top:22px; font-size:19px; line-height:1.25; font-weight:700; letter-spacing:-.01em; }
.perk p { margin-top:8px; font-size:15.5px; line-height:1.5; font-weight:500; color:var(--ink-2); }

/* ── Comensal ──────────────────────────────────────────────────────────── */
/* Franja a todo lo ancho en menta: separa "cómo pagan" del resto. */
.diners { margin-top:110px; padding:100px 0; background:var(--mint); }
.diners-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:64px; align-items:center; }
.steps { list-style:none; margin-top:36px; counter-reset:s; }
.steps li { counter-increment:s; display:grid; grid-template-columns:48px 1fr; gap:4px 18px; padding:22px 0; border-top:1px solid var(--line); }
.steps li::before {
  content:counter(s); grid-row:span 2; width:40px; height:40px; border-radius:12px;
  background:var(--primary); color:#fff; font-weight:700; font-size:16px;
  display:flex; align-items:center; justify-content:center;
}
.steps strong { font-size:18px; font-weight:700; }
.steps span { font-size:15.5px; line-height:1.55; font-weight:500; color:var(--ink-2); }

.table-scene {
  position:relative; display:flex; align-items:flex-end; justify-content:center; gap:32px;
  background:var(--surface); border-radius:28px;
  padding:56px 28px 0; overflow:clip; min-height:480px;
}
.tent {
  position:relative; width:210px; flex:none; margin-bottom:56px;
  background:var(--ink); color:#fff; border-radius:18px; padding:24px 22px 22px; text-align:center;
  box-shadow:0 30px 50px -22px rgba(0,37,11,.55); transform:rotate(-3deg);
}
.tent .mesa { font-size:12.5px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--mint); }
.tent .qr { width:120px; height:120px; margin:14px auto; background:#fff; border-radius:14px; display:flex; align-items:center; justify-content:center; }
.tent .qr img { width:78px; height:78px; }
.tent b { display:block; font-size:17px; font-weight:700; line-height:1.25; }
.tent small { display:block; margin-top:8px; font-size:12px; line-height:1.45; color:rgba(255,255,255,.72); font-weight:500; }
.ticket {
  position:relative; width:262px; flex:none; background:var(--paper); color:#1b1b1b;
  padding:20px 20px 28px; font-size:12.5px; line-height:1.5; font-weight:500;
  /* Contorno con drop-shadow (no border) para que también siga el dentado de abajo. */
  filter:drop-shadow(0 0 .7px rgba(0,37,11,.45)) drop-shadow(0 18px 20px rgba(0,37,11,.2));
  transform:rotate(2deg) translateY(10px);
}
.ticket::after {
  content:''; position:absolute; left:0; right:0; bottom:-10px; height:10px;
  background:
    linear-gradient(135deg, var(--paper) 50%, transparent 50%) 0 0 / 14px 10px repeat-x,
    linear-gradient(-135deg, var(--paper) 50%, transparent 50%) 0 0 / 14px 10px repeat-x;
}
.ticket .top { text-align:center; padding-bottom:10px; border-bottom:1.5px dashed #c9c9c2; }
.ticket .top strong { display:block; font-size:15px; font-weight:700; letter-spacing:.02em; }
.ticket table { width:100%; border-collapse:collapse; margin:8px 0; }
.ticket td { padding:2px 0; vertical-align:top; }
.ticket td:last-child { text-align:right; white-space:nowrap; padding-left:10px; }
.ticket .totals { border-top:1.5px dashed #c9c9c2; padding-top:8px; }
.ticket .totals div { display:flex; justify-content:space-between; }
.ticket .totals .grand { font-size:16px; font-weight:700; margin-top:4px; }
.ticket .pay { margin-top:12px; display:flex; gap:12px; align-items:center; border-top:1.5px dashed #c9c9c2; padding-top:12px; }
.ticket .pay img { width:48px; height:48px; flex:none; }
.ticket .pay span { font-size:12px; line-height:1.4; }

/* ── Recorrido por pestañas (sólo CSS) ─────────────────────────────────── */
.tour { padding:130px 0 0; }
.tour input { position:absolute; opacity:0; pointer-events:none; }
.tabs { display:flex; flex-wrap:wrap; gap:8px; margin-top:44px; justify-content:center; }
.tabs label {
  cursor:pointer; user-select:none; font-size:15px; font-weight:600; color:var(--ink-2);
  padding:11px 18px; border-radius:999px; border:1.5px solid var(--line); background:#fff;
  transition:background .15s, color .15s, border-color .15s;
}
.tabs label:hover { color:var(--ink); border-color:#9fdcc2; }
.panels { margin-top:36px; background:var(--ink); border-radius:32px; padding:56px; color:#fff; position:relative; overflow:clip; }
.panels::before {
  content:''; position:absolute; inset:0; pointer-events:none;
  background:url("/brand/pattern-blue.png") repeat; background-size:360px; opacity:.035;
}
/* Arriba, no al centro: así el título empieza en el mismo renglón en todas las pestañas. */
.panel { display:none; position:relative; grid-template-columns:minmax(0,4fr) minmax(0,7fr); gap:52px; align-items:start; }
.panel h3 { font-size:clamp(24px, 2.6vw, 32px); line-height:1.15; letter-spacing:-.02em; font-weight:700; color:var(--teal); }
.panel > div > p { margin-top:14px; font-size:16.5px; line-height:1.6; font-weight:500; color:rgba(230,247,238,.8); }
.panel ul { list-style:none; margin-top:24px; display:grid; gap:12px; }
.panel li { font-size:15px; line-height:1.5; font-weight:500; color:#e6f7ee; padding-left:22px; position:relative; }
.panel li::before { content:''; position:absolute; left:0; top:8px; width:10px; height:2px; background:var(--teal); }
.panel .mac .lid { box-shadow:0 0 0 1.5px #4a4e54; }
.mac .lid video { display:block; width:100%; height:auto; border-radius:1.05% / 1.68%; }
/* Sin movimiento: se muestra la imagen fija en lugar del video. */
.demo-still { display:none; }
@media (prefers-reduced-motion:reduce) { .demo { display:none !important; } .demo-still { display:block; } }
.panel .mac .base { box-shadow:0 30px 50px -20px rgba(0,0,0,.7); }
.panel .ipad { box-shadow:0 0 0 1.5px #4a4e54, 0 0 0 4px #8d9196, 0 40px 60px -22px rgba(0,0,0,.7); }

#t-mesas:checked ~ .tabs [for="t-mesas"],
#t-pagos:checked ~ .tabs [for="t-pagos"],
#t-menu:checked ~ .tabs [for="t-menu"],
#t-reportes:checked ~ .tabs [for="t-reportes"],
#t-recetas:checked ~ .tabs [for="t-recetas"],
#t-almacen:checked ~ .tabs [for="t-almacen"],
#t-staff:checked ~ .tabs [for="t-staff"] { background:var(--ink); border-color:var(--ink); color:#fff; }
#t-mesas:checked ~ .panels .p-mesas,
#t-pagos:checked ~ .panels .p-pagos,
#t-menu:checked ~ .panels .p-menu,
#t-reportes:checked ~ .panels .p-reportes,
#t-recetas:checked ~ .panels .p-recetas,
#t-almacen:checked ~ .panels .p-almacen,
#t-staff:checked ~ .panels .p-staff { display:grid; }
.tour input:focus-visible ~ .tabs label { outline:none; }
#t-mesas:focus-visible ~ .tabs [for="t-mesas"],
#t-pagos:focus-visible ~ .tabs [for="t-pagos"],
#t-menu:focus-visible ~ .tabs [for="t-menu"],
#t-reportes:focus-visible ~ .tabs [for="t-reportes"],
#t-recetas:focus-visible ~ .tabs [for="t-recetas"],
#t-almacen:focus-visible ~ .tabs [for="t-almacen"],
#t-staff:focus-visible ~ .tabs [for="t-staff"] { outline:3px solid var(--primary); outline-offset:3px; }

/* ── Detalles (bento con mini-pantallas) ───────────────────────────────── */
.details { padding:130px 0 0; }
.bento { display:grid; grid-template-columns:repeat(6, minmax(0,1fr)); gap:18px; margin-top:52px; }
.tile { background:#fff; border:1.5px solid var(--line); border-radius:24px; padding:28px; display:flex; flex-direction:column; gap:20px; }
.tile h3 { font-size:19px; font-weight:700; letter-spacing:-.01em; }
.tile p { margin-top:6px; font-size:15px; line-height:1.55; font-weight:500; color:var(--ink-2); }
.tile .ui { margin-top:auto; }
.span-2 { grid-column:span 2; }
.span-3 { grid-column:span 3; }
.span-4 { grid-column:span 4; }
.tile.mint { background:var(--surface-low); }

.mini { background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:16px 18px; font-size:13.5px; font-weight:500; color:var(--ink-2); }
.mini .r { display:flex; justify-content:space-between; gap:12px; padding:5px 0; }
.mini .r b { color:var(--ink); font-weight:700; }
.mini .ok { color:var(--teal); font-weight:700; }
.mini .big { font-size:34px; font-weight:700; color:var(--teal); letter-spacing:-.02em; line-height:1; }
.bar { height:8px; border-radius:99px; background:var(--line); overflow:clip; margin-top:12px; }
.bar i { display:block; height:100%; border-radius:99px; background:var(--teal); }
.chips { display:flex; gap:6px; flex-wrap:wrap; }
.chip { font-size:12.5px; font-weight:600; border-radius:999px; padding:6px 12px; border:1px solid var(--line); background:#fff; color:var(--ink-2); }
.chip.on { background:var(--primary-soft); border-color:#c9d4ff; color:var(--primary); }
.low { color:#ba1a1a; font-weight:700; }

/* ── El dinero ─────────────────────────────────────────────────────────── */
.money { padding:130px 0 0; }
.money-box {
  display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.4fr); gap:64px; align-items:center;
  background:linear-gradient(135deg, #2f55f0, var(--primary)); color:#fff; border-radius:32px; padding:64px 64px 0;
  position:relative; overflow:clip;
}
.money-box .h2 { color:#fff; }
.money-box .lede { color:rgba(255,255,255,.86); margin-top:14px; }
.money-copy { padding-bottom:64px; }
/* Celular dibujado en CSS, como la laptop y el iPad. Sale por abajo del recuadro. */
.phone {
  align-self:end; width:100%; max-width:300px; margin:0 auto -90px; position:relative;
  background:var(--bezel); border-radius:46px; padding:11px;
  box-shadow:0 0 0 1.5px #3a3d42, 0 0 0 4px #cfd3d7, 0 40px 70px -20px rgba(0,20,80,.55);
}
.phone::before {
  content:''; position:absolute; z-index:1; top:21px; left:50%; width:30%; height:22px;
  transform:translateX(-50%); background:var(--bezel); border-radius:12px;
}
.phone img { border-radius:36px; }
.facts { list-style:none; display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:32px; }
.facts li { background:#fff; color:var(--ink); border-radius:20px; padding:22px; }
.facts .ico {
  width:44px; height:44px; border-radius:14px; display:flex; align-items:center; justify-content:center;
  background:var(--ink); margin-bottom:14px;
}
.facts .ico svg { width:26px; height:26px; fill:none; stroke:#fff; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.facts b { display:block; font-size:17px; font-weight:700; }
.facts span:not(.ico) { display:block; margin-top:6px; font-size:14.5px; line-height:1.5; font-weight:500; color:var(--ink-2); }

/* ── Preguntas ─────────────────────────────────────────────────────────── */
.faq { padding:130px 0 0; }
.faq-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.6fr); gap:64px; align-items:start; }
.faq details { border-bottom:1px solid var(--line); }
.faq details:first-child { border-top:2px solid var(--ink); }
.faq summary {
  list-style:none; cursor:pointer; display:flex; justify-content:space-between; gap:20px; align-items:center;
  padding:22px 0; font-size:18px; font-weight:700;
}
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:'+'; font-size:26px; font-weight:500; color:var(--primary); line-height:1; transition:transform .2s; }
.faq details[open] summary::after { transform:rotate(45deg); }
.faq details p { padding:0 40px 24px 0; font-size:16px; line-height:1.65; font-weight:500; color:var(--ink-2); }

/* ── Cierre ────────────────────────────────────────────────────────────── */
.close { padding:130px 0 0; }
.close-box { text-align:center; padding:80px 32px; border-radius:32px; background:var(--surface-low); border:1.5px solid var(--line); position:relative; overflow:clip; }
.close-box::before {
  content:''; position:absolute; inset:0; pointer-events:none;
  background:url("/brand/pattern-mint.png") repeat; background-size:320px; opacity:.6;
  -webkit-mask-image:radial-gradient(ellipse at center, transparent 30%, #000 80%);
  mask-image:radial-gradient(ellipse at center, transparent 30%, #000 80%);
}
.close-box > * { position:relative; }
.close-box .h2 { max-width:760px; margin:0 auto; }
.close-box .lede { max-width:560px; margin:18px auto 0; }
.close-box .ctas { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:30px; }
.close-box .alt { margin-top:16px; font-size:14.5px; font-weight:500; color:var(--ink-2); }
.close-box .alt a { color:var(--primary); font-weight:600; }

.diner-note { margin-top:28px; text-align:center; font-size:15px; line-height:1.55; font-weight:500; color:var(--ink-2); }
.diner-note b { color:var(--ink); }

footer .wrap {
  display:flex; flex-wrap:wrap; align-items:center; gap:12px 24px;
  margin-top:72px; padding-top:28px; padding-bottom:44px; border-top:1px solid var(--line);
  font-size:14px; font-weight:500; color:var(--ink-2);
}
footer a { text-decoration:none; }
footer a:hover { color:var(--ink); }
footer .sp { flex:1; }

/* ── Responsivo ────────────────────────────────────────────────────────── */
@media (max-width:1020px) {
  .diners-grid, .money-box, .faq-grid { grid-template-columns:1fr; gap:44px; }
  .money-copy { order:-1; padding-bottom:0; }
  .phone { margin-bottom:-140px; }
  .hero .lede { max-width:none; }
  .panel { grid-template-columns:1fr; gap:36px; }
  .panels { padding:40px 32px; }
  .bento { grid-template-columns:repeat(2, minmax(0,1fr)); }
  .span-2, .span-3, .span-4 { grid-column:span 1; }
  .bento .wide { grid-column:span 2; }
  .perks { grid-template-columns:repeat(2, minmax(0,1fr)); }
  .perk, .perk:nth-child(4) { grid-column:span 1; }
  .perk:nth-child(5) { grid-column:span 2; }
}
@media (max-width:640px) {
  .wrap { padding:0 16px; }
  .nav .wrap { height:62px; gap:12px; }
  .nav .login { display:none; }
  .brand .wordmark { height:17px; }
  .hero { padding-top:40px; padding-bottom:28px; }
  .hero h1 { font-size:33px; }
  .hero .lede { font-size:16.5px; margin-top:16px; }
  /* Botones del hero a todo lo ancho, uno sobre otro: más fáciles de tocar. */
  .hero .ctas { flex-direction:column; margin-top:26px; }
  .hero .ctas .btn { width:100%; }
  .rails .sep { display:none; }
  /* En el teléfono los avisos no caben encima de las pantallas sin taparlas:
     la laptop va a todo lo ancho y los avisos bajan, apilados, debajo. */
  .stage { margin-top:40px; padding-bottom:0; display:flex; flex-direction:column; gap:10px; }
  .stage .mac { width:100%; padding:0 7% 0 9%; }
  .stage .ipad { left:0; bottom:auto; top:38%; width:40%; }
  .toast { position:static; font-size:12.5px; padding:10px 12px 10px 10px; gap:10px; border-radius:14px; }
  .toast b { font-size:13.5px; }
  .toast .dot { width:32px; height:32px; border-radius:9px; }
  .toast .dot img { width:18px; height:18px; }
  .toast.paid { margin-top:22%; }
  .toast.paid .badge { margin-left:auto; }
  .shift, .diners, .tour, .details, .money, .faq, .close { padding-top:72px; }
  .diners { margin-top:64px; padding-bottom:64px; }
  .perks { margin-top:32px; grid-template-columns:1fr; gap:12px; }
  .perk, .perk:nth-child(4), .perk:nth-child(5) { grid-column:span 1; }
  .perk { display:grid; grid-template-columns:48px 1fr; gap:4px 16px; padding:22px 20px; border-radius:20px; }
  .perk .ico { grid-row:span 2; width:48px; height:48px; border-radius:15px; }
  .perk .ico svg { width:30px; height:30px; }
  .perk h3 { margin-top:2px; font-size:17px; }
  .perk p { margin-top:0; font-size:15px; }
  .tabs { margin-top:28px; }
  .bento { margin-top:32px; }
  .mini .r span { flex:none; }
  .mini .r b { text-align:right; }
  footer .wrap { margin-top:56px; gap:4px 20px; }
  footer a { display:inline-block; padding:10px 0; }
  .table-scene { flex-direction:column; align-items:center; gap:26px; padding:34px 16px 24px; }
  .tent { margin-bottom:0; }
  .ticket { transform:rotate(1.5deg); margin-bottom:18px; }
  .panels { padding:28px 18px; border-radius:24px; }
  .tabs label { font-size:14px; padding:9px 14px; }
  .bento { grid-template-columns:1fr; }
  .bento .wide { grid-column:span 1; }
  .money-box { padding:36px 22px 0; border-radius:24px; gap:8px; }
  .money-copy { padding-bottom:36px; order:-1; }
  .phone { max-width:250px; border-radius:40px; margin-bottom:-120px; }
  .phone img { border-radius:31px; }
  .facts { grid-template-columns:1fr; }
  .close-box { padding:56px 20px; border-radius:24px; }
  .faq details p { padding-right:0; }
  .mac .base::after { border-radius:0 0 5px 5px; }
}
/* ── Animaciones ────────────────────────────────────────────────────────
   Sólo CSS: el CSP prohíbe scripts. Las de scroll usan animation-timeline:
   view() (Chrome/Edge 115+, Safari 26+); donde no existe, @supports las deja
   fuera y todo se ve estático. Se usan translate/scale sueltos, no transform,
   para no pisar los rotate() del tarjetón y el ticket. */
@keyframes rise   { from { opacity:0; translate:0 28px; } }
@keyframes fade   { from { opacity:0; } }
@keyframes slideL { from { opacity:0; translate:-48px 0; } }
@keyframes pop    { from { opacity:0; scale:.85; translate:0 12px; } }
@keyframes print  { from { clip-path:inset(-4px -4px 100% -4px); } to { clip-path:inset(-4px -4px -10% -4px); } }
@keyframes fill   { from { scale:0 1; } }

@media (prefers-reduced-motion:no-preference) {
  /* Entrada del hero al cargar. */
  .hero-copy > * { animation:rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy > :nth-child(2) { animation-delay:.08s; }
  .hero-copy > :nth-child(3) { animation-delay:.16s; }
  .hero-copy > :nth-child(4) { animation-delay:.24s; }
  .stage .mac  { animation:rise 1s .3s cubic-bezier(.2,.7,.2,1) both; }
  .stage .ipad { animation:slideL 1s .5s cubic-bezier(.2,.7,.2,1) both; }
  .toast.paid  { animation:pop .55s 1.1s cubic-bezier(.3,1.4,.5,1) both; }
  .toast.split { animation:pop .55s 1.4s cubic-bezier(.3,1.4,.5,1) both; }

  /* Al cambiar de pestaña en el recorrido. */
  .panel { animation:fade .45s ease both; }
  .panel .mac, .panel .ipad { animation:rise .6s .05s cubic-bezier(.2,.7,.2,1) both; }

  @supports (animation-timeline:view()) {
    .rails li, .head, .perk, .steps li, .tent, .panels, .tile,
    .money-box > div, .facts li, .faq details, .close-box {
      animation:rise linear both; animation-timeline:view(); animation-range:entry 5% cover 28%;
    }
    /* Escalonado: cada elemento empieza un poco después que el anterior. */
    .rails li:nth-child(2n), .perk:nth-child(2n), .steps li:nth-child(2),
    .facts li:nth-child(2n), .faq details:nth-child(2n) { animation-range:entry 12% cover 33%; }
    .rails li:nth-child(3n), .steps li:nth-child(3), .tile:nth-child(3n) { animation-range:entry 18% cover 38%; }
    .tile:nth-child(3n+2) { animation-range:entry 12% cover 33%; }

    /* El ticket sale de la impresora. */
    .ticket { animation:print linear both; animation-timeline:view(); animation-range:entry 20% cover 45%; }
    .bar i { transform-origin:left; animation:fill linear both; animation-timeline:view(); animation-range:entry 30% cover 45%; }

  }
}

@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } .btn, .tabs label, .faq summary::after { transition:none; } }
