/* ============================================================
   GastoScan — landing
   Estética: "el ticket como interfaz". Navy profundo + azul
   eléctrico de marca, recibos de papel cálido con borde
   troquelado, números en mono tabular. Sin dependencias externas
   (fuentes auto-hospedadas, RGPD-friendly).
   ============================================================ */

/* ---------- Fuentes (self-hosted) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-v9-latin-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-v9-latin-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-v9-latin-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-v9-latin-800.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-v20-latin-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-v20-latin-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-v20-latin-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg-0: #060a1f;
  --bg-1: #0a1133;
  --navy: #10195C;
  --accent: #3C5FD7;
  --accent-bright: #5d7dff;
  --peri: #C3D0FF;
  --ink-soft: #8e9bd1;
  --paper: #f8f5ec;
  --paper-shadow: #e7e2d2;
  --paper-ink: #1c2340;
  --paper-muted: #6a6f86;
  --green: #2fbf71;
  --warn: #ffd166;
  --line: rgba(195, 208, 255, .14);
  --maxw: 1120px;
  --radius: 20px;
  --font-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-display);
  font-weight: 500;
  background: var(--bg-0);
  color: var(--peri);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* height:auto es OBLIGATORIO: sin él, max-width encoge el ancho pero el alto
   se queda en el atributo HTML y la imagen sale estirada verticalmente. */
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }

/* Atmósfera: glows + rejilla + grano */
.atmosphere {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -5%, rgba(60, 95, 215, .35), transparent 60%),
    radial-gradient(700px 500px at -10% 35%, rgba(60, 95, 215, .18), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(16, 25, 92, .9), transparent 70%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 60%, var(--bg-0));
}
.atmosphere::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(195,208,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(195,208,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
}
.atmosphere::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .04 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Microetiquetas mono */
.kicker {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent-bright);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 10, 31, .72);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex; align-items: center; gap: 28px; height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand strong { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a {
  text-decoration: none; font-size: 14.5px; color: var(--ink-soft);
  transition: color .2s;
}
.nav nav a:hover { color: #fff; }
.nav .store-chip { margin-left: 8px; }

.store-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--peri); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
  background: rgba(60,95,215,.12);
}
.store-chip .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--warn); box-shadow: 0 0 10px var(--warn);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 40px; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 48px; align-items: center;
}
.hero .wrap > * { min-width: 0; }
.hero h1 {
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.04; letter-spacing: -.025em; font-weight: 800;
  color: #fff; margin: 18px 0 22px;
}
.hero h1 em {
  font-style: normal; color: var(--accent-bright);
  text-decoration: underline; text-decoration-thickness: 6px;
  text-decoration-color: rgba(60,95,215,.45); text-underline-offset: 7px;
}
.hero .lede { font-size: 19px; color: var(--ink-soft); max-width: 46ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  text-decoration: none; border-radius: 14px; padding: 15px 26px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #fff; box-shadow: 0 10px 30px rgba(60,95,215,.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(60,95,215,.6); }
.btn-ghost { border: 1px solid var(--line); color: var(--peri); background: rgba(255,255,255,.03); }
.btn-ghost:hover { background: rgba(255,255,255,.07); }
.trust-row {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em;
  color: var(--ink-soft);
}
.trust-row span::before { content: "✓ "; color: var(--green); }

/* Escenario del teléfono */
.hero-visual { position: relative; min-height: 420px; }
/* El ancho se acota también por la ALTURA del viewport (el teléfono mide ~2.3x
   su ancho): en ventanas bajas se encoge en vez de comerse el primer pantallazo. */
/* Marco tipo iPhone 17 Pro: bisel fino uniforme, sin isla falsa (la captura real
   ya trae su Dynamic Island y su barra de estado). El teléfono completo debe caber
   en el viewport: si se corta por abajo parece una pantalla infinita. */
.phone {
  position: relative; width: min(290px, 34vh, 72%); margin: 0 auto;
  border-radius: 13.8% / 6.4%; padding: 2.8%;
  background: linear-gradient(160deg, #3a4470, #11173a 55%, #1d2546);
  box-shadow:
    inset 0 0 0 1.5px rgba(195,208,255,.35),
    0 0 0 1px rgba(6,10,31,.9),
    0 40px 80px rgba(3, 6, 20, .8),
    0 0 90px rgba(60,95,215,.25);
  transform: rotate(2.5deg);
}
/* aspect-ratio explícito + width 100%: aunque la imagen tarde o falle, el marco
   mantiene la proporción de iPhone y no revienta la rejilla (min-content). */
.phone img {
  border-radius: 11.4% / 5.3%;
  width: 100%; height: auto; aspect-ratio: 720 / 1564;
  object-fit: cover; background: #0b1133;
}
.receipt-card {
  position: absolute; left: 2%; bottom: -2%; width: 212px;
  transform: rotate(-5deg);
  filter: drop-shadow(0 24px 40px rgba(3,6,20,.7));
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 50% { transform: rotate(-5deg) translateY(-10px); } }

/* El recibo de papel (reutilizable) */
.receipt {
  background: var(--paper); color: var(--paper-ink);
  font-family: var(--font-mono);
  padding: 20px 20px 26px;
  --zig: 10px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--zig)),
    97.5% 100%, 95% calc(100% - var(--zig)), 92.5% 100%, 90% calc(100% - var(--zig)),
    87.5% 100%, 85% calc(100% - var(--zig)), 82.5% 100%, 80% calc(100% - var(--zig)),
    77.5% 100%, 75% calc(100% - var(--zig)), 72.5% 100%, 70% calc(100% - var(--zig)),
    67.5% 100%, 65% calc(100% - var(--zig)), 62.5% 100%, 60% calc(100% - var(--zig)),
    57.5% 100%, 55% calc(100% - var(--zig)), 52.5% 100%, 50% calc(100% - var(--zig)),
    47.5% 100%, 45% calc(100% - var(--zig)), 42.5% 100%, 40% calc(100% - var(--zig)),
    37.5% 100%, 35% calc(100% - var(--zig)), 32.5% 100%, 30% calc(100% - var(--zig)),
    27.5% 100%, 25% calc(100% - var(--zig)), 22.5% 100%, 20% calc(100% - var(--zig)),
    17.5% 100%, 15% calc(100% - var(--zig)), 12.5% 100%, 10% calc(100% - var(--zig)),
    7.5% 100%, 5% calc(100% - var(--zig)), 2.5% 100%, 0 calc(100% - var(--zig)));
}
.receipt .r-head {
  text-align: center; font-weight: 600; font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; padding-bottom: 10px;
}
.receipt .r-sub { text-align: center; font-size: 10px; color: var(--paper-muted); letter-spacing: .06em; }
.receipt hr {
  border: none; border-top: 2px dashed rgba(28,35,64,.22); margin: 12px 0;
}
.receipt .r-line {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 12.5px; padding: 3.5px 0;
}
.receipt .r-line .val { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.receipt .r-total {
  display: flex; justify-content: space-between; font-weight: 600;
  font-size: 15px; padding-top: 4px;
}
.receipt .r-ok { color: var(--green); font-size: 11px; text-align: center; letter-spacing: .1em; margin-top: 8px; font-weight: 600; }
.receipt .barcode {
  margin: 14px auto 0; height: 34px; width: 78%;
  background: repeating-linear-gradient(90deg,
    var(--paper-ink) 0 2px, transparent 2px 5px,
    var(--paper-ink) 5px 6px, transparent 6px 11px,
    var(--paper-ink) 11px 14px, transparent 14px 17px,
    var(--paper-ink) 17px 18px, transparent 18px 22px);
}

/* chip flotante */
.float-chip {
  position: absolute; right: 0; top: 12%; z-index: 3;
  max-width: calc(100% - 12px); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  background: rgba(11, 19, 51, .92); color: var(--peri);
  border: 1px solid rgba(95,125,255,.4); border-radius: 12px; padding: 10px 14px;
  box-shadow: 0 14px 34px rgba(3,6,20,.6), 0 0 24px rgba(60,95,215,.25);
  animation: floaty2 6s ease-in-out infinite;
}
.float-chip .tick { color: var(--green); }
@keyframes floaty2 { 50% { transform: translateY(-12px); } }

/* ---------- Cinta corrida (marquee) ---------- */
.tape { border-block: 1px solid var(--line); background: rgba(10, 17, 51, .5); overflow: hidden; }
.tape-track {
  display: flex; gap: 0; width: max-content;
  animation: tape 38s linear infinite;
}
.tape span {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-soft);
  padding: 13px 26px; white-space: nowrap;
}
.tape b { color: var(--peri); font-weight: 600; }
.tape i { color: var(--green); font-style: normal; }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
section { padding: 96px 0; position: relative; }
.sec-head { max-width: 640px; margin-bottom: 56px; }
.sec-head h2 {
  font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08;
  letter-spacing: -.02em; font-weight: 800; color: #fff; margin-top: 14px;
}
.sec-head p { margin-top: 14px; font-size: 17px; color: var(--ink-soft); }

/* Cómo funciona: tres recibos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step.receipt { padding: 26px 24px 34px; transition: transform .25s ease; }
.step.receipt:hover { transform: translateY(-6px) rotate(-.6deg); }
.step .num {
  font-size: 38px; font-weight: 600; letter-spacing: -.02em;
  color: var(--accent);
}
.step h3 {
  font-family: var(--font-display); font-size: 21px; font-weight: 700;
  margin: 8px 0 8px; color: var(--paper-ink); letter-spacing: -.01em;
}
.step p { font-family: var(--font-display); font-size: 15px; color: #4c5470; line-height: 1.55; }
.step .r-foot {
  margin-top: 16px; font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--paper-muted);
}

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(195,208,255,.06), rgba(195,208,255,.015));
  padding: 26px 24px; transition: border-color .2s, transform .2s, background .2s;
}
.feature:hover { border-color: rgba(95,125,255,.45); transform: translateY(-4px); }
.feature .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(60,95,215,.18); border: 1px solid rgba(95,125,255,.35);
  font-size: 20px; margin-bottom: 16px;
}
.feature h3 { color: #fff; font-size: 17.5px; font-weight: 700; letter-spacing: -.01em; }
.feature p { margin-top: 7px; font-size: 14.5px; color: var(--ink-soft); }
.feature .tag {
  display: inline-block; margin-top: 12px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent-bright);
}

/* Empresas */
.business {
  border: 1px solid var(--line); border-radius: 28px;
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(60,95,215,.3), transparent 60%),
    linear-gradient(160deg, rgba(16,25,92,.55), rgba(7,11,34,.9));
  padding: 64px 56px; overflow: hidden; position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 48px; align-items: center;
}
.business > * { min-width: 0; }
.business h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; color: #fff; letter-spacing: -.02em; margin-top: 14px; }
.business .lede { margin-top: 14px; color: var(--ink-soft); font-size: 16.5px; }
.biz-points { list-style: none; margin-top: 26px; display: grid; gap: 13px; }
.biz-points li { display: flex; gap: 12px; font-size: 15.5px; color: var(--peri); }
.biz-points li::before { content: "→"; color: var(--accent-bright); font-weight: 700; }
.biz-points b { color: #fff; }
.biz-visual { position: relative; }
.biz-visual .phone { transform: rotate(-2deg); width: min(280px, 36vh, 80%); }
.biz-chip {
  position: absolute; left: 0; bottom: 10%;
  background: var(--paper); color: var(--paper-ink);
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  border-radius: 10px; padding: 12px 16px; line-height: 1.7;
  box-shadow: 0 18px 40px rgba(3,6,20,.6); transform: rotate(-4deg);
}
.biz-chip .who { color: var(--accent); }

/* Privacidad */
.privacy { text-align: center; }
.privacy h2 {
  font-size: clamp(28px, 4vw, 48px); color: #fff; font-weight: 800;
  letter-spacing: -.02em; max-width: 21ch; margin: 14px auto 0;
}
.privacy h2 em { font-style: normal; color: var(--accent-bright); }
.privacy-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  max-width: 880px; margin: 48px auto 0;
}
.privacy-card {
  border: 1px dashed rgba(195,208,255,.3); border-radius: 16px; padding: 24px 20px;
  font-size: 14.5px; color: var(--ink-soft); background: rgba(10,17,51,.4);
}
.privacy-card b { display: block; color: #fff; font-size: 15.5px; margin-bottom: 6px; }
.privacy .links { margin-top: 28px; font-family: var(--font-mono); font-size: 13px; }
.privacy .links a { color: var(--accent-bright); text-decoration-color: rgba(95,125,255,.4); text-underline-offset: 4px; }

/* Precios (v4: tres planes — Gratis / Autónomo / Empresa por asientos) */
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; justify-content: center; }
.price.receipt { padding: 30px 28px 40px; }
.price .plan-name { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-align: center; }
.price .plan-for { text-align: center; font-size: 11px; color: var(--paper-muted); margin-top: 4px; letter-spacing: .04em; }
.price .amount {
  text-align: center; margin: 18px 0 4px; color: var(--paper-ink);
  font-family: var(--font-display); font-weight: 800; font-size: 54px; letter-spacing: -.03em;
}
.price .amount small { font-size: 17px; font-weight: 600; color: var(--paper-muted); letter-spacing: 0; }
.price .alt { text-align: center; font-size: 12px; color: var(--paper-muted); }
.price .r-line { font-size: 13px; }
.price .r-line .val { color: var(--green); }
.price .iva { text-align: center; font-size: 10.5px; color: var(--paper-muted); margin-top: 14px; letter-spacing: .08em; }
.price.featured { outline: 3px solid var(--accent); outline-offset: 4px; position: relative; }
.price .ribbon {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px;
  font-family: var(--font-mono); white-space: nowrap;
}

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px;
  background: rgba(10,17,51,.45); overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 24px;
  font-weight: 700; font-size: 16.5px; color: #fff;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--font-mono); font-size: 20px;
  color: var(--accent-bright); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 24px 22px; color: var(--ink-soft); font-size: 15px; }
.faq .a a { color: var(--accent-bright); }

/* CTA final */
.final { text-align: center; padding-bottom: 120px; }
.final .receipt {
  max-width: 460px; margin: 0 auto; padding: 34px 30px 44px;
  transform: rotate(-1.2deg);
}
.final .receipt h2 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em;
  font-size: 30px; color: var(--paper-ink); margin: 6px 0 10px;
}
.final .receipt p { font-family: var(--font-display); color: #4c5470; font-size: 15px; }
.final .btn-primary { margin-top: 20px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line); padding: 48px 0 60px;
  background: rgba(5, 8, 24, .8);
}
footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 36px; }
footer .brand strong { font-size: 16px; }
footer .tagline { margin-top: 12px; font-size: 13.5px; color: var(--ink-soft); max-width: 30ch; }
footer h4 {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px;
}
footer ul { list-style: none; display: grid; gap: 9px; }
footer ul a { text-decoration: none; font-size: 14.5px; color: var(--peri); }
footer ul a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.copyright {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
}

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.hero [data-stagger] { opacity: 0; transform: translateY(22px); animation: rise .8s ease forwards; }
.hero [data-stagger="1"] { animation-delay: .05s; }
.hero [data-stagger="2"] { animation-delay: .15s; }
.hero [data-stagger="3"] { animation-delay: .25s; }
.hero [data-stagger="4"] { animation-delay: .38s; }
.hero [data-stagger="5"] { animation-delay: .5s; }
.hero-visual { opacity: 0; animation: rise 1s ease .35s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero [data-stagger], .hero-visual { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
/* En ventanas medianas (portátiles pequeños, ventanas a media pantalla) el hero
   a dos columnas queda apretado: pasa a una columna antes que el resto. */
@media (max-width: 1100px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 26px; }
  .hero { padding-top: 56px; }
  .hero-visual { min-height: 0; margin-top: 26px; }
  .phone { width: min(290px, 36vh, 72%); }
  .receipt-card { left: 6%; width: 230px; }
}
@media (max-width: 960px) {
  .nav nav { display: none; }
  .nav .store-chip { margin-left: auto; white-space: nowrap; }
  .receipt-card { left: 2%; width: 220px; }
  .steps, .features, .privacy-grid { grid-template-columns: 1fr 1fr; }
  .business { grid-template-columns: 1fr; padding: 44px 30px; }
  .pricing { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav nav { display: none; }
  .nav .wrap { gap: 12px; }
  .nav .store-chip { margin-left: auto; font-size: 10px; padding: 7px 10px; letter-spacing: .05em; }
  section { padding: 68px 0; }
  .steps, .features, .privacy-grid { grid-template-columns: 1fr; }
  .float-chip { right: 8px; top: 2%; font-size: 11px; }
  .phone { width: min(260px, 84%); }
  footer .wrap { grid-template-columns: 1fr; gap: 28px; }
  .business { padding: 36px 22px; }
  .biz-chip { position: static; margin: 18px auto 0; transform: rotate(-2deg); width: max-content; }
}

/* ---------- v4: tarjeta Empresa por asientos ---------- */
/* La escalera de asientos: precios en tinta (no en verde de "check"). */
.price .seat-table .val { color: var(--paper-ink); }
/* Nota del tramo (2 €/asiento hasta 100, 1 € después). */
.price .seat-note {
  font-size: 10.5px; color: var(--paper-muted); text-align: center;
  margin: 10px 0 4px; letter-spacing: .02em; line-height: 1.6;
}
/* Enlace "Escríbenos" dentro de una línea del recibo. */
.price .r-line a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }

/* v5: las etiquetas de los recibos de precios no se "comen" — el texto envuelve
   dentro de su columna y el ✓/precio queda fijo a la derecha. */
.price .r-line span:first-child { flex: 1 1 auto; min-width: 0; }
.price .r-line .val { flex: 0 0 auto; }
