/* Mestry · web comercial v2. Tokens first; everything below uses them. */
:root {
  --night: #070d1a;
  --navy: #0f172a;
  --navy-2: #16213a;
  --line-dark: #22304d;
  --bg: #ffffff;
  --soft: #f3f6fb;
  --soft-2: #e8eef8;
  --ink: #0b1220;
  --muted: #4a5568;
  --on-dark: #e8eefc;
  --on-dark-muted: #a8b6d6;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-soft: #dbe7ff;
  --sky: #60a5fa;
  --green: #22c55e;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --small: 0.9375rem;
  --body: 1.0625rem;
  --lead: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --h2: clamp(2.125rem, 1.3rem + 3.2vw, 4rem);
  --h1: clamp(2.75rem, 1.2rem + 5.6vw, 6.25rem);

  --margin: clamp(18px, 4vw, 64px);
  --max: 1280px;
  --radius: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--body); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; }
h3 { font-size: var(--h3); font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
::selection { background: var(--blue); color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 10px 14px; z-index: 50; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: min(100% - 2 * var(--margin), var(--max)); margin-inline: auto; }
.blue { color: var(--sky); }
.blue-ink { color: var(--blue); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 50px; padding: 0 24px;
  border-radius: 999px; border: 0; background: var(--blue); color: #fff; font-weight: 600; font-size: var(--small);
  text-decoration: none; white-space: nowrap; transition: transform .25s var(--ease-out), background-color .2s, box-shadow .25s;
}
.btn:hover { background: var(--blue-hover); transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(37, 99, 235, .7); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn-big { min-height: 58px; padding: 0 30px; font-size: 1.0625rem; }
.btn-ghost { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(232, 238, 252, .28); }
.btn-ghost:hover { background: rgba(232, 238, 252, .08); box-shadow: inset 0 0 0 1.5px rgba(232, 238, 252, .5); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--blue-soft); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px #c9d3e4; }
.btn-outline:hover { background: var(--soft); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ---------- Bar ---------- */
.bar { position: sticky; top: 0; z-index: 40; background: rgba(7, 13, 26, .94); color: var(--on-dark); transition: box-shadow .3s; }
.bar.scrolled { box-shadow: 0 1px 0 rgba(255, 255, 255, .07); }
.bar-in { display: flex; align-items: center; gap: 32px; height: 72px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.03em; text-decoration: none; }
.wordmark i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--blue); }
.wordmark i svg { width: 17px; height: 17px; }
.bar nav { display: flex; gap: 28px; margin-left: auto; font-size: var(--small); }
.bar nav a { text-decoration: none; color: var(--on-dark-muted); transition: color .2s; }
.bar nav a:hover, .bar nav a[aria-current] { color: #fff; }
.bar .btn { min-height: 42px; padding: 0 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--night); color: var(--on-dark); padding: clamp(48px, 6vw, 80px) 0 0; overflow: clip; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(1200px, 130vw); aspect-ratio: 1.6; transform: translate(-50%, 0);
  background: radial-gradient(closest-side, rgba(37, 99, 235, .55), rgba(37, 99, 235, .12) 55%, transparent 75%);
}
.hero-grid { position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: radial-gradient(rgba(168, 182, 214, .22) 1px, transparent 1.4px); background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 70%); mask-image: linear-gradient(to bottom, #000 0%, transparent 70%); }
.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px; background: rgba(37, 99, 235, .14); box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .35); color: #cfe0ff; font-size: var(--small); text-decoration: none; transition: background-color .2s; }
.pill:hover { background: rgba(37, 99, 235, .24); }
.pill b { background: var(--blue); color: #fff; border-radius: 999px; padding: 2px 10px; font-weight: 600; font-size: .8125rem; }
.hero h1 { font-size: var(--h1); margin-top: 28px; }
.lines .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.lines [data-line] { display: block; }
.hero .lead { margin-top: 26px; max-width: 40ch; font-size: var(--lead); color: var(--on-dark-muted); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }

/* Device composition */
.devices { position: relative; margin: clamp(48px, 5vw, 72px) auto 0; width: min(1120px, 100%); padding: 0 var(--margin) 80px; perspective: 1800px; }
.tablet { position: relative; width: 82%; border-radius: 28px; background: #1a2235; padding: 12px; box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.tablet img { border-radius: 18px; width: 100%; }
.phone { position: absolute; right: var(--margin); bottom: 20px; width: clamp(240px, 27%, 320px); border-radius: 40px; background: #1a2235; padding: 10px; box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .85), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.phone .qr { border-radius: 31px; height: 560px; }
.toast {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 16px;
  background: rgba(255, 255, 255, .97); color: var(--ink); font-size: .875rem; line-height: 1.3; box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); pointer-events: none; min-width: 230px;
}
.toast.show { opacity: 1; transform: none; }
.toast i { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); }
.toast i svg { width: 19px; height: 19px; }
.toast b { display: block; font-weight: 650; }
.toast span { color: var(--muted); }
.toast.t1 { left: 0; top: 16%; }
.toast.t2 { left: 8%; bottom: 22%; }
.toast.t3 { right: 31%; top: -22px; }
.toast.t4 { right: 33%; bottom: 12%; }
.toast.green i { background: #dcfce7; color: #15803d; }
.toast.amber i { background: #fef3c7; color: #b45309; }

/* ---------- Marquee ---------- */
.marquee { background: var(--night); color: var(--on-dark); padding: 24px 0 72px; overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 48px; padding-right: 48px; font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem); font-weight: 650; letter-spacing: -0.03em; white-space: nowrap; color: #c6d2ec; }
.marquee span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section frame ---------- */
.section { padding: clamp(96px, 12vw, 168px) 0; }
.section-head { max-width: 820px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--h2); }
.section-head p { margin-top: 22px; font-size: var(--lead); color: var(--muted); max-width: 52ch; }
.section-head.center p { margin-inline: auto; }
.dark { background: var(--night); color: var(--on-dark); }
.dark .section-head p { color: var(--on-dark-muted); }
.tinted { background: var(--soft); }

/* ---------- Business types (photos) ---------- */
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.type { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; color: #fff; background: var(--navy); }
.type img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; transition: scale 1.2s var(--ease-out); will-change: transform; }
.type:hover img { scale: 1.05; }
.type::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 13, 26, .9) 0%, rgba(7, 13, 26, .25) 45%, transparent 70%); }
.type-text { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 24px; }
.type-text h3 { font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); }
.type-text p { margin-top: 8px; color: #dbe4f7; font-size: var(--small); }

/* ---------- Carta con IA ---------- */
.carta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.tabs { display: grid; gap: 10px; margin-top: 40px; }
.tab { display: grid; grid-template-columns: 48px 1fr; gap: 2px 16px; align-items: start; text-align: left; padding: 18px 20px; border: 0; border-radius: 18px; background: transparent; transition: background-color .25s, box-shadow .25s, transform .25s var(--ease-out); }
.tab:hover { background: rgba(255, 255, 255, .7); transform: translateX(4px); }
.tab[aria-pressed="true"] { background: #fff; box-shadow: 0 20px 50px -25px rgba(15, 23, 42, .35); }
.tab i { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--soft-2); color: var(--muted); transition: background-color .25s, color .25s; }
.tab[aria-pressed="true"] i { background: var(--blue); color: #fff; }
.tab i svg { width: 22px; height: 22px; }
.tab b { font-size: 1.125rem; font-weight: 650; }
.tab span { color: var(--muted); font-size: var(--small); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 0; padding: 0; }
.chips li { list-style: none; padding: 8px 14px; border-radius: 999px; background: #fff; font-size: .875rem; color: var(--muted); box-shadow: inset 0 0 0 1px #dfe6f2; }
.carta-stage { position: relative; display: flex; justify-content: center; align-items: center; min-height: 700px; }
.carta-stage::before { content: ""; position: absolute; inset: 5% 2%; border-radius: 40px; background: var(--navy); }
.carta-stage::after { content: ""; position: absolute; inset: 20% 20%; border-radius: 50%; background: radial-gradient(closest-side, rgba(37, 99, 235, .55), transparent); }
.carta-stage .phone { position: relative; right: auto; bottom: auto; z-index: 1; width: 320px; }
.carta-stage .phone .qr { height: 600px; }
.inbox { position: absolute; z-index: 2; right: -2%; bottom: 10%; width: 250px; background: #0b1324; color: var(--on-dark); border-radius: 18px; padding: 14px; font-size: .84rem; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.inbox-title { display: flex; align-items: center; gap: 8px; font-weight: 650; color: var(--on-dark-muted); }
.inbox-title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }
.inbox ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.inbox li { background: var(--navy-2); border-radius: 12px; padding: 10px 12px; animation: pop .35s var(--ease-out); }
.inbox li strong { display: block; color: #fff; }
.inbox li span { display: block; color: var(--on-dark-muted); }
.inbox li button { margin-top: 8px; border: 0; border-radius: 8px; background: var(--blue); color: #fff; font-size: .78rem; font-weight: 600; padding: 6px 10px; }
.inbox li.done { opacity: .5; }
.inbox li.done button { display: none; }
.inbox .inbox-empty { background: none; padding: 2px 0; color: var(--on-dark-muted); animation: none; }

/* QR carta fragment (demo) */
.qr { position: relative; background: #fbfaf7; color: #1d2416; overflow: hidden; display: flex; flex-direction: column; font-size: 14.5px; line-height: 1.4; text-align: left; }
.qr-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 22px 18px 12px; background: #2b2a26; color: #f4efe6; }
.qr-name { font-weight: 700; font-size: 18px; line-height: 1.15; letter-spacing: -0.01em; }
.qr-sub { font-size: 12.5px; color: #d9d2c4; margin-top: 4px; }
.qr-lang { display: flex; background: #403e38; border-radius: 999px; padding: 3px; }
.qr-lang button { border: 0; background: none; color: #d9d2c4; font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 999px; }
.qr-lang button[aria-pressed="true"] { background: #f4efe6; color: #2b2a26; }
.qr-view { display: none; flex: 1; overflow: auto; padding: 12px 14px; scrollbar-width: thin; }
.qr-view.is-on { display: flex; flex-direction: column; animation: fade .3s var(--ease); }
.qr-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.qr-filters button, .qr-chips button { border: 0; box-shadow: inset 0 0 0 1px #d6d0c2; background: #fff; border-radius: 999px; padding: 6px 11px; font-size: 12.5px; color: #2b2a26; transition: background-color .15s, transform .15s; }
.qr-filters button:active, .qr-chips button:active { transform: scale(.95); }
.qr-filters button[aria-pressed="true"] { background: #2b2a26; color: #fff; box-shadow: none; }
.qr-chips button:hover { background: #f1eee6; }
.qr-list { list-style: none; margin: 8px 0 0; padding: 0; }
.qr-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; box-shadow: 0 1px 0 #ebe6da; animation: fade .3s var(--ease); }
.qr-list .n { font-weight: 600; }
.qr-list .p { font-weight: 600; white-space: nowrap; }
.qr-list .d { grid-column: 1 / -1; color: #4f5246; font-size: 13px; }
.qr-list .a { grid-column: 1 / -1; font-size: 12px; color: #8a6a12; }
.qr-list .cat { grid-template-columns: 1fr; box-shadow: none; padding: 12px 0 0; font-size: 12px; font-weight: 700; color: #6b6f60; }
.qr-empty { color: #4f5246; padding: 16px 0; }
.qr-disclosure { font-size: 12px; color: #4f5246; background: #efece3; padding: 8px 10px; border-radius: 10px; }
.qr-chat { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.qr-chat .m { max-width: 88%; padding: 8px 12px; border-radius: 14px; font-size: 13.5px; animation: pop .3s var(--ease-out); }
.qr-chat .u { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.qr-chat .b { align-self: flex-start; background: #fff; box-shadow: inset 0 0 0 1px #e6e1d5; border-bottom-left-radius: 4px; }
.qr-chat .b button { display: block; margin-top: 8px; border: 0; background: var(--blue); color: #fff; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; }
.qr-chat .typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.qr-chat .typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa0a8; animation: blink 1s infinite; }
.qr-chat .typing i:nth-child(2) { animation-delay: .15s; }
.qr-chat .typing i:nth-child(3) { animation-delay: .3s; }
.qr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.qr-mesa-title { font-weight: 700; font-size: 16px; }
.qr-calls { display: grid; gap: 8px; margin-top: 12px; }
.qr-calls button { border: 0; background: #fff; border-radius: 12px; padding: 14px; text-align: left; font-weight: 600; font-size: 14.5px; box-shadow: inset 0 0 0 1px #e6e1d5; transition: background-color .15s, transform .15s; }
.qr-calls button:hover { background: #f1eee6; }
.qr-calls button:active { transform: scale(.98); }
.qr-status { margin-top: 14px; font-size: 13.5px; color: var(--blue-hover); font-weight: 600; min-height: 1.4em; }
.qr-nav { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; box-shadow: 0 -1px 0 #ebe6da; }
.qr-nav button { border: 0; background: none; padding: 12px 0 16px; font-size: 13px; font-weight: 600; color: #5d6155; transition: color .2s; }
.qr-nav button[aria-pressed="true"] { color: var(--blue); box-shadow: inset 0 3px 0 var(--blue); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* ---------- Opening window (TPV) ---------- */
.opening { position: relative; background: var(--night); }
.opening-stage { height: 100svh; overflow: clip; position: relative; }
.opening-stage img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.opening-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 140px var(--margin) 56px; background: linear-gradient(to top, rgba(7, 13, 26, .96) 30%, rgba(7, 13, 26, 0)); color: #fff; text-align: center; }
.opening-caption h2 { font-size: var(--h2); }
.opening-caption p { margin: 16px auto 0; max-width: 48ch; color: var(--on-dark-muted); font-size: var(--lead); }

/* ---------- Pinned story ---------- */
.story { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); margin-top: 40px; }
.story-media { position: sticky; top: 96px; height: calc(100svh - 128px); max-height: 760px; align-self: start; display: flex; flex-direction: column; justify-content: center; }
.story-frame { position: relative; aspect-ratio: 16 / 10.75; border-radius: 26px; background: #1a2235; box-shadow: 0 40px 90px -35px rgba(15, 23, 42, .55); }
.story-frame img { position: absolute; left: 10px; top: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: cover; object-position: 50% 0; border-radius: 17px; opacity: 0; transform: scale(1.03); transition: opacity .6s var(--ease), transform .9s var(--ease-out); }
.story-frame img.is-on { opacity: 1; transform: none; }
.story-frame img.phone-shot { object-fit: contain; background: #0b1324; }
.story-count { margin-top: 18px; color: var(--muted); font-size: var(--small); display: flex; align-items: center; gap: 14px; }
.story-bar { flex: 1; height: 4px; border-radius: 4px; background: var(--soft-2); overflow: hidden; }
.story-bar i { display: block; height: 100%; width: 20%; background: var(--blue); border-radius: 4px; transition: width .5s var(--ease-out); }
.story-list { list-style: none; margin: 0; padding: 0; }
.story-item { min-height: 72svh; display: flex; flex-direction: column; justify-content: center; transition: opacity .4s var(--ease); }
.js .story-item { opacity: .4; }
.js .story-item.is-active { opacity: 1; }
.story-item > i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--blue-soft); color: var(--blue); margin-bottom: 20px; }
.story-item > i svg { width: 24px; height: 24px; }
.story-item h3 { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.375rem); letter-spacing: -0.03em; }
.story-item p { margin-top: 14px; color: var(--muted); font-size: var(--lead); max-width: 34ch; }
.story-item ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.story-item li { display: flex; gap: 10px; align-items: baseline; }
.tick::before, .story-item li::before, .plan li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; transform: translateY(3px); }
.story-mobile-shot { display: none; }

/* ---------- Flow ---------- */
.flow { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 80px; }
.flow-line { position: absolute; left: 10%; right: 10%; top: 44px; height: 2px; background: var(--line-dark); overflow: hidden; }
.flow-line i { position: absolute; top: -3px; left: -80px; width: 80px; height: 8px; border-radius: 8px; background: radial-gradient(closest-side, var(--sky), transparent); animation: pulse-run 4.5s linear infinite; }
.flow-line i:nth-child(2) { animation-delay: 1.5s; }
.flow-line i:nth-child(3) { animation-delay: 3s; }
@keyframes pulse-run { from { transform: translateX(0); } to { transform: translateX(calc(80vw + 80px)); } }
.node { position: relative; text-align: center; }
.node i { position: relative; z-index: 1; display: grid; place-items: center; width: 88px; height: 88px; margin: 0 auto; border-radius: 26px; background: var(--navy-2); color: var(--on-dark-muted); box-shadow: inset 0 0 0 1px var(--line-dark); transition: background-color .4s, color .4s, box-shadow .4s, transform .4s var(--ease-out); }
.node i svg { width: 34px; height: 34px; }
.node.lit i { background: var(--blue); color: #fff; box-shadow: 0 0 0 8px rgba(37, 99, 235, .18), 0 20px 50px -10px rgba(37, 99, 235, .7); transform: translateY(-4px); }
.node h3 { margin-top: 22px; font-size: 1.25rem; }
.node p { margin-top: 8px; color: var(--on-dark-muted); font-size: var(--small); max-width: 22ch; margin-inline: auto; }

/* ---------- Photo statement ---------- */
.statement { position: relative; min-height: 92svh; display: grid; align-items: end; color: #fff; overflow: clip; background: var(--night); }
.statement img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.statement::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 13, 26, .92) 0%, rgba(7, 13, 26, .4) 50%, rgba(7, 13, 26, .1) 100%); }
.statement .wrap { position: relative; z-index: 1; padding-bottom: clamp(48px, 8vw, 112px); }
.statement h2 { font-size: var(--h2); max-width: 15ch; }
.statement p { margin-top: 20px; max-width: 46ch; font-size: var(--lead); color: #dbe4f7; }

/* ---------- Steps (pilot) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 64px 0 0; padding: 0; list-style: none; }
.step { position: relative; padding: 32px; border-radius: var(--radius); background: #fff; box-shadow: 0 1px 0 #e3e9f3, 0 20px 50px -35px rgba(15, 23, 42, .4); transition: transform .35s var(--ease-out), box-shadow .35s; }
.step:hover { transform: translateY(-6px); box-shadow: 0 1px 0 #e3e9f3, 0 30px 60px -30px rgba(15, 23, 42, .45); }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; }
.step h3 { margin-top: 24px; }
.step p { margin-top: 10px; color: var(--muted); }

/* ---------- Coming soon ---------- */
.soon { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 64px; }
.soon-card { grid-column: span 2; position: relative; padding: 30px; border-radius: var(--radius); background: var(--navy-2); box-shadow: inset 0 0 0 1px var(--line-dark); overflow: hidden; transition: transform .35s var(--ease-out), box-shadow .35s; }
.soon-card:nth-child(4), .soon-card:nth-child(5) { grid-column: span 3; }
.soon-card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .5); }
.soon-card > i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(37, 99, 235, .18); color: var(--sky); }
.soon-card > i svg { width: 24px; height: 24px; }
.soon-card h3 { margin-top: 22px; font-size: 1.25rem; }
.soon-card p { margin-top: 8px; color: var(--on-dark-muted); font-size: var(--small); }
.badge { position: absolute; top: 26px; right: 26px; padding: 4px 10px; border-radius: 999px; background: rgba(245, 158, 11, .14); color: #fbbf24; font-size: .78rem; font-weight: 600; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 64px auto 0; max-width: 1040px; }
.plan { position: relative; display: flex; flex-direction: column; padding: clamp(28px, 4vw, 48px); border-radius: 28px; background: #fff; box-shadow: inset 0 0 0 1px #dfe6f2; transition: transform .35s var(--ease-out); }
.plan:hover { transform: translateY(-6px); }
.plan-main { background: var(--navy); color: var(--on-dark); box-shadow: 0 0 0 2px var(--blue), 0 40px 80px -30px rgba(37, 99, 235, .55); }
.plan-tag { position: absolute; top: -14px; left: 32px; padding: 5px 12px; border-radius: 999px; background: var(--blue); color: #fff; font-size: .8125rem; font-weight: 600; }
.plan h3 { font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); }
.plan-for { margin-top: 10px; color: var(--muted); }
.plan-main .plan-for { color: var(--on-dark-muted); }
.plan-price { margin-top: 28px; font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3.25rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.plan-price span { display: block; margin-top: 8px; font-size: var(--small); font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan-main .plan-price span { color: var(--on-dark-muted); }
.plan ul { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 12px; }
.plan li { display: flex; gap: 12px; align-items: baseline; }
.plan .btn { margin-top: auto; }
.pilot-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; max-width: 1040px; margin: 24px auto 0; padding: 24px 28px; border-radius: 22px; background: var(--blue-soft); }
.pilot-banner p { font-size: 1.0625rem; }
.pilot-banner b { font-weight: 650; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq details { border-radius: 18px; background: #fff; margin-bottom: 12px; box-shadow: inset 0 0 0 1px #e1e7f1; transition: box-shadow .25s; }
.faq details[open] { box-shadow: inset 0 0 0 1.5px var(--blue); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-weight: 600; font-size: 1.0625rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v9M3.5 8h9' stroke='%230b1220' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .3s var(--ease-out), background-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--blue-soft); }
.faq details p { padding: 0 24px 22px; color: var(--muted); max-width: 64ch; }
.faq details[open] p { animation: fade .35s var(--ease); }

/* ---------- CTA ---------- */
.cta { position: relative; padding: clamp(80px, 10vw, 140px) 0; background: #1d4ed8; color: #fff; overflow: clip; isolation: isolate; }
.cta::before { content: ""; position: absolute; z-index: -1; right: -10%; top: -40%; width: 60vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .22), transparent); animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-12%, 18%); } }
.cta-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.cta h2 { font-size: var(--h2); }
.cta .lead { margin-top: 18px; font-size: var(--lead); color: #dbe7ff; max-width: 40ch; }
.ask { position: relative; }
.ask input { width: 100%; height: 66px; border: 0; border-radius: 999px; background: #fff; padding: 0 76px 0 26px; font: inherit; color: var(--ink); box-shadow: 0 20px 50px -20px rgba(7, 13, 26, .5); }
.ask input::placeholder { color: #64748b; }
.ask input:focus { outline: none; box-shadow: 0 0 0 4px rgba(255, 255, 255, .45), 0 20px 50px -20px rgba(7, 13, 26, .5); }
.ask button { position: absolute; right: 8px; top: 8px; width: 50px; height: 50px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; transition: transform .25s var(--ease-out); }
.ask button:hover { transform: translateX(3px); }
.ask-help { margin-top: 14px; font-size: var(--small); color: #e3ecff; }
.ways { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 28px 0 0; font-size: var(--small); }
.ways div { display: flex; gap: 8px; }
.ways dt { color: #cfdcff; }
.ways dd { margin: 0; font-weight: 600; }

/* ---------- Footer ---------- */
.foot { background: var(--night); color: var(--on-dark-muted); padding: 72px 0 32px; font-size: var(--small); overflow: hidden; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 24px; }
.foot a { color: var(--on-dark); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-big { margin-top: 56px; font-size: clamp(5rem, 2rem + 16vw, 17rem); font-weight: 750; letter-spacing: -0.06em; line-height: .8; color: #fff; white-space: nowrap; }
.credits { margin-top: 32px; font-size: .8125rem; line-height: 1.6; color: #8b9abb; }
.credits a { color: #b9c6e3; text-decoration: underline; }

/* ---------- Legal pages ---------- */
.legal { max-width: calc(760px + 2 * var(--margin)); margin: 0 auto; padding: 56px var(--margin) 96px; }
.legal h1 { font-size: var(--h2); }
.legal h2 { font-size: var(--h3); margin-top: 48px; letter-spacing: -0.02em; }
.legal p, .legal ul, .legal ol, .legal table { margin-top: 16px; }
.legal ul, .legal ol { padding-left: 1.2em; }
.legal li { margin-top: 6px; }
.legal .draft { margin: 0 0 32px; padding: 16px 20px; border-radius: 14px; background: #fff7d6; color: #5a4300; }
.legal .updated { color: var(--muted); font-size: var(--small); }
.legal mark { background: #fff1b8; color: #5a4300; padding: 0 .2em; border-radius: 4px; }
.legal table { width: 100%; border-collapse: collapse; font-size: var(--small); }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid #dbe1ea; }
.legal a:not(.btn) { color: var(--blue); }
.notfound { padding-top: 15svh; min-height: 70svh; }
.notfound .btn { margin-right: 20px; }

/* ---------- Motion (only when motion is welcome; content is visible otherwise) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] { transform: translateY(105%); animation: line-up .9s var(--ease-out) forwards; animation-delay: calc(var(--i) * 110ms + 120ms); }
  .js [data-load] { opacity: 0; transform: translateY(14px); animation: rise .7s var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
  .js .devices[data-load] { transform: translateY(80px) rotateX(16deg); animation: rise 1.4s var(--ease-out) forwards; animation-delay: .45s; }
  .js .rise { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0ms); }
  .js .rise.in { opacity: 1; transform: none; }
  .js .phone-float { animation: float 7s ease-in-out 2s infinite; }
  @supports (animation-timeline: view()) {
    .opening { height: 200svh; view-timeline-name: --opening; }
    .opening-stage { position: sticky; top: 0; animation: opening-window linear both; animation-timeline: --opening; animation-range: contain 0% contain 70%; }
    .opening-stage img { animation: opening-settle linear both; animation-timeline: --opening; animation-range: contain 0% contain 70%; }
    .opening-caption { animation: caption-in linear both; animation-timeline: --opening; animation-range: contain 40% contain 75%; }
  }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes opening-window { from { clip-path: inset(14% 16% round 28px); } to { clip-path: inset(0 round 0); } }
@keyframes opening-settle { from { transform: scale(1.12); } to { transform: none; } }
@keyframes caption-in { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .flow-line i, .cta::before { animation: none; }
  .toast, .story-frame img, .story-item { transition: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .types { grid-template-columns: 1fr 1fr; }
  .types .type:last-child { grid-column: span 2; aspect-ratio: 16 / 9; }
  .carta-grid, .faq-grid, .cta-grid { grid-template-columns: 1fr; }
  .carta-stage { min-height: 0; padding: 48px 0; }
  .story { grid-template-columns: 1fr; }
  .story-media { display: none; }
  .js .story-item, .story-item { min-height: 0; opacity: 1; padding: 40px 0; }
  .story-mobile-shot { display: block; margin-top: 24px; border-radius: 18px; overflow: hidden; background: #1a2235; padding: 8px; max-width: 560px; }
  .story-mobile-shot img { border-radius: 12px; width: 100%; max-height: 420px; object-fit: cover; object-position: 50% 0; }
  .flow { grid-template-columns: 1fr; gap: 28px; }
  .flow-line { left: 43px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .flow-line i { display: none; }
  .node { display: grid; grid-template-columns: 88px 1fr; gap: 4px 20px; text-align: left; align-items: center; }
  .node i { grid-row: span 2; margin: 0; }
  .node h3 { margin-top: 0; align-self: end; }
  .node p { margin: 0; align-self: start; max-width: none; }
  .steps { grid-template-columns: 1fr; }
  .soon { grid-template-columns: 1fr 1fr; }
  .soon-card, .soon-card:nth-child(4), .soon-card:nth-child(5) { grid-column: span 1; }
  .soon-card:last-child { grid-column: span 2; }
  .plans { grid-template-columns: 1fr; }
  .plan-main { order: -1; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .bar-in { height: 64px; gap: 12px; }
  .bar .btn { padding: 0 14px; }
  .hero h1 { font-size: clamp(2.5rem, 11.5vw, 3.5rem); }
  .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .devices { padding: 0 0 40px; margin-top: 48px; }
  .tablet { width: 120%; margin-left: -4%; border-radius: 20px; padding: 7px; }
  .tablet img { border-radius: 14px; }
  .phone { right: 12px; bottom: 0; width: 50%; border-radius: 30px; padding: 7px; }
  .phone .qr { height: 360px; border-radius: 24px; font-size: 12px; }
  .devices .phone .qr-head { padding: 14px 12px 8px; }
  .devices .phone .qr-name { font-size: 14px; }
  .toast { display: none; }
  .toast.t1 { display: flex; left: 12px; top: auto; bottom: 46%; min-width: 0; max-width: 58%; font-size: .8rem; }
  .types { grid-template-columns: 1fr; }
  .types .type:last-child { grid-column: auto; aspect-ratio: 4 / 5; }
  .type { aspect-ratio: 4 / 5; }
  .carta-stage::before { inset: 3% -4%; border-radius: 28px; }
  .carta-stage { flex-direction: column; }
  .carta-stage .phone { width: min(320px, 88vw); }
  .carta-stage .phone .qr { height: 560px; font-size: 14px; }
  .inbox { position: relative; right: auto; bottom: auto; margin: 16px auto 0; width: min(320px, 88vw); }
  .soon { grid-template-columns: 1fr; }
  .soon-card:last-child { grid-column: auto; }
  .ask input { height: 60px; }
  .ask button { width: 44px; height: 44px; }
  .foot-big { font-size: 27vw; }
}

/* =========================================================================
   v3 · Varias páginas: menú móvil, cabeceras interiores, resumen de producto,
   página de IA, carta y TPV.
   ========================================================================= */

/* Mobile menu button (hidden on desktop) */
.menu-btn { display: none; position: relative; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.menu-btn i, .menu-btn i::before, .menu-btn i::after { position: absolute; left: 12px; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s var(--ease-out), background-color .2s; }
.menu-btn i { top: 21px; }
.menu-btn i::before, .menu-btn i::after { content: ""; left: 0; }
.menu-btn i::before { top: -7px; }
.menu-btn i::after { top: 7px; }
.bar.open .menu-btn i { background: transparent; }
.bar.open .menu-btn i::before { transform: translateY(7px) rotate(45deg); }
.bar.open .menu-btn i::after { transform: translateY(-7px) rotate(-45deg); }
.bar nav a[aria-current] { color: #fff; box-shadow: inset 0 -2px 0 var(--blue); padding-bottom: 4px; }

/* Inner page hero */
.phero { position: relative; background: var(--night); color: var(--on-dark); padding: clamp(56px, 7vw, 104px) 0 clamp(64px, 8vw, 120px); overflow: clip; isolation: isolate; }
.phero::before { content: ""; position: absolute; z-index: -1; right: -10%; top: 0; width: min(1000px, 110vw); aspect-ratio: 1; background: radial-gradient(closest-side, rgba(37, 99, 235, .5), rgba(37, 99, 235, .1) 55%, transparent 75%); }
.phero-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.phero h1 { font-size: clamp(2.75rem, 1.4rem + 3.6vw, 4.75rem); margin-top: 24px; }
.phero-copy > h1:first-child { margin-top: 0; }
.phero .lead { margin-top: 26px; max-width: 38ch; font-size: var(--lead); color: var(--on-dark-muted); }
.phero .hero-actions { justify-content: flex-start; }
.phero .pill { padding: 4px; }
.phero .pill b { padding: 3px 12px; }
.phero-short { padding-bottom: clamp(48px, 6vw, 80px); }
.phero-short::before { left: 50%; right: auto; transform: translateX(-50%); top: 20%; }
.phero-short .lead { margin-inline: auto; }
.phero-visual { position: relative; }

/* AI page: mascot stage with a conversation that builds up */
.ai-stage { position: relative; aspect-ratio: 4 / 4.6; max-width: 520px; margin-left: auto; border-radius: 36px; background: #fff; box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .8), 0 0 0 10px rgba(255, 255, 255, .06); }
.ai-mascot { position: absolute; left: 50%; bottom: 0; width: 76%; transform: translateX(-50%); border-radius: 0 0 36px 36px; }
.bubble { position: absolute; z-index: 2; display: flex; align-items: flex-end; gap: 10px; max-width: 78%; margin: 0; padding: 12px 16px; border-radius: 20px; font-size: .9375rem; line-height: 1.35; box-shadow: 0 20px 50px -18px rgba(7, 13, 26, .55); opacity: 0; transform: translateY(12px) scale(.96); transition: opacity .45s var(--ease-out), transform .55s var(--ease-out); }
.bubble.show { opacity: 1; transform: none; }
.bubble-u { right: -6%; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.bubble-b { left: -10%; background: #fff; color: var(--ink); border-bottom-left-radius: 6px; box-shadow: 0 20px 50px -18px rgba(7, 13, 26, .55), inset 0 0 0 1px #e3e9f3; }
.bubble-b img { flex: none; width: 34px; height: 34px; border-radius: 50%; }
.bubble.b1, .bubble.b3 { top: 5%; }
.bubble.b2, .bubble.b4 { top: 17%; }
/* when the second exchange arrives, the first one leaves */
.ai-stage:has(.b3.show) .b1, .ai-stage:has(.b3.show) .b2 { opacity: 0; transform: translateY(-14px); }

/* QR menu hero: phone with notifications */
.carta-hero { position: relative; display: flex; justify-content: center; min-height: 600px; }
.carta-hero .phone { position: relative; right: auto; bottom: auto; width: 300px; }
.carta-hero .phone .qr { height: 580px; }
.toast.c1 { left: -4%; top: 14%; }
.toast.c2 { right: -6%; top: 42%; }
.toast.c3 { left: 0; bottom: 12%; }

/* POS hero: tablet */
.tablet-hero { width: 118%; }
.phero-tpv .phero-in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }

/* Home: product overview */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 64px; }
.product { position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: 28px; text-decoration: none; min-height: 560px; transition: transform .4s var(--ease-out), box-shadow .4s; }
.product:hover { transform: translateY(-6px); }
.product-text { position: relative; z-index: 1; padding: clamp(28px, 3.5vw, 44px); }
.product h3 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); letter-spacing: -0.03em; }
.product-text > p { margin-top: 12px; max-width: 40ch; font-size: 1.0625rem; }
.product ul { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.product li { padding: 6px 12px; border-radius: 999px; font-size: .875rem; }
.product-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-weight: 650; }
.product-more svg { width: 18px; height: 18px; transition: transform .25s var(--ease-out); }
.product:hover .product-more svg { transform: translateX(4px); }
.product-media { position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.product-media img { transition: transform .8s var(--ease-out); }
.product:hover .product-media img { transform: scale(1.04); }
.product-blue { grid-row: span 2; background: linear-gradient(160deg, #2f6bf0, #1d4ed8 60%, #1e40af); color: #fff; }
.product-blue .product-text > p { color: #dbe7ff; }
.product-blue li { background: rgba(255, 255, 255, .14); }
.product-blue .product-media { margin: 0 24px 24px; border-radius: 22px; background: #fff; }
.product-blue .product-media img { width: min(78%, 420px); }
.product-light { background: var(--soft); color: var(--ink); grid-template-columns: 1fr 1fr; grid-template-rows: none; min-height: 0; }
.product-light .product-text > p { color: var(--muted); }
.product-light li { background: #fff; box-shadow: inset 0 0 0 1px #dfe6f2; color: var(--muted); }
.product-phone { padding-top: 32px; }
.product-phone .phone { position: relative; right: auto; bottom: -60px; width: 250px; }
.product-phone .phone .qr { height: 420px; font-size: 12.5px; }
.product-dark { background: var(--night); color: var(--on-dark); grid-template-columns: 1fr 1fr; grid-template-rows: none; min-height: 0; }
.product-dark .product-text > p { color: var(--on-dark-muted); }
.product-dark li { background: var(--navy-2); color: var(--on-dark-muted); }
.product-dark .product-media { align-items: center; padding: 24px 0; }
.product-dark .product-media img { width: 150%; max-width: none; margin-left: 20%; border-radius: 16px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .7); }
.product-soon { grid-column: 1 / -1; min-height: 0; display: flex; align-items: center; gap: 24px; padding: 28px clamp(28px, 3.5vw, 44px); background: var(--navy); color: var(--on-dark); }
.product-soon > i { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: rgba(37, 99, 235, .2); color: var(--sky); }
.product-soon > i svg { width: 28px; height: 28px; }
.product-soon h3 { font-size: 1.375rem; margin-top: 8px; }
.product-soon p { margin-top: 6px; color: var(--on-dark-muted); }
.product-soon .badge { position: static; display: inline-block; }
.product-soon .product-more { margin: 0 0 0 auto; white-space: nowrap; }

/* Pricing teaser */
.teaser { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(32px, 5vw, 64px); border-radius: 32px; background: var(--soft); }
.teaser h2 { font-size: clamp(1.875rem, 1.2rem + 2.4vw, 3.25rem); }
.teaser p { margin-top: 12px; color: var(--muted); font-size: var(--lead); max-width: 46ch; }

/* AI page: examples list */
.examples-title { margin-top: 40px; font-weight: 650; }
.examples { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.examples li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; background: #fff; box-shadow: 0 1px 0 #e3e9f3, 0 16px 40px -30px rgba(15, 23, 42, .4); font-weight: 550; }
.examples svg { flex: none; width: 20px; height: 20px; color: var(--blue); }
.note { margin-top: 24px; color: var(--muted); font-size: var(--small); max-width: 52ch; }
.more-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 650; text-decoration: none; font-size: 1.0625rem; }
.more-link svg { width: 18px; height: 18px; }

/* AI page: safety */
.safe-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.safe-figure { margin: 48px 0 0; max-width: 340px; border-radius: 28px; overflow: hidden; background: #fff; }
.safe-figure img { width: 100%; }
.safe { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.safe-card { padding: 32px; border-radius: var(--radius); background: var(--navy-2); box-shadow: inset 0 0 0 1px var(--line-dark); transition: transform .35s var(--ease-out), box-shadow .35s; }
.safe-card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .5); }
.safe-card i, .feat i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(37, 99, 235, .2); color: var(--sky); }
.safe-card i svg, .feat i svg { width: 24px; height: 24px; }
.safe-card h3 { margin-top: 22px; font-size: 1.3125rem; }
.safe-card p { margin-top: 10px; color: var(--on-dark-muted); }

/* AI page: two assistants */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 64px; }
.duo-card { display: flex; flex-direction: column; border-radius: 32px; overflow: hidden; background: var(--soft); scroll-margin-top: 96px; transition: transform .4s var(--ease-out); }
.duo-card:hover { transform: translateY(-6px); }
.duo-img { background: #fff; display: flex; justify-content: center; align-items: flex-end; height: clamp(220px, 24vw, 320px); padding-top: 20px; }
.duo-img img { height: 100%; width: auto; }
.duo-text { position: relative; padding: clamp(28px, 3.5vw, 44px); }
.duo-text .badge { position: static; display: inline-block; }
.badge-beta { background: rgba(37, 99, 235, .12); color: var(--blue); }
.duo-text h3 { margin-top: 14px; font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); }
.duo-text p { margin-top: 12px; color: var(--muted); font-size: 1.0625rem; }
.duo-text ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.duo-text li { display: flex; gap: 12px; align-items: baseline; }
.duo-text li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); transform: translateY(-2px); }

/* QR page: feature grid */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.feat { padding: 32px; border-radius: var(--radius); background: var(--soft); transition: transform .35s var(--ease-out), background-color .35s; }
.feat:hover { transform: translateY(-6px); background: var(--soft-2); }
.feat i { background: var(--blue); color: #fff; }
.feat h3 { margin-top: 22px; font-size: 1.3125rem; }
.feat p { margin-top: 10px; color: var(--muted); }

/* Coming soon grids with 2 or 4 items */
.soon-2 .soon-card:nth-child(n), .soon-4 .soon-card:nth-child(n) { grid-column: span 3; }

/* Pricing page */
.section-plans { padding-top: 24px; background: linear-gradient(to bottom, var(--night) 0, var(--night) 140px, var(--bg) 140px); }
.section-plans .plans { margin-top: 0; }
.section-plans .plan:not(.plan-main) { box-shadow: inset 0 0 0 1px #dfe6f2, 0 30px 70px -40px rgba(15, 23, 42, .45); }

/* Footer columns */
.foot-top { align-items: flex-start; }
.foot-what { max-width: 30ch; color: var(--on-dark); font-size: 1.0625rem; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 32px 72px; }
.foot-cols div { display: grid; gap: 10px; align-content: start; }
.foot-h { color: #8b9abb; font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }

@media (max-width: 1000px) {
  .menu-btn { display: block; }
  .bar .btn { margin-left: auto; }
  .bar nav { position: absolute; left: 0; right: 0; top: 100%; display: flex; flex-direction: column; gap: 0; height: calc(100svh - 64px); overflow-y: auto; margin: 0; padding: 8px var(--margin) 24px; background: var(--night); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); font-size: 1.25rem; font-weight: 600; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease-out), visibility 0s .3s; }
  .bar.open nav { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .3s var(--ease-out); }
  .bar nav a { padding: 14px 0; color: var(--on-dark); box-shadow: 0 1px 0 var(--line-dark); }
  .bar nav a[aria-current] { color: var(--sky); box-shadow: 0 1px 0 var(--line-dark); padding-bottom: 14px; }
  .bar nav .nav-lang { color: var(--on-dark-muted); font-size: 1rem; box-shadow: none; }
  .phero-in, .phero-tpv .phero-in { grid-template-columns: 1fr; }
  .ai-stage { margin: 24px auto 0; width: min(100%, 460px); }
  .tablet-hero { width: 100%; }
  .products { grid-template-columns: 1fr; }
  .product-blue { grid-row: auto; }
  .product-light, .product-dark { grid-template-columns: 1fr; }
  .product-phone { min-height: 340px; }
  .product-dark .product-media { padding: 0 0 32px 32px; }
  .product-dark .product-media img { width: 130%; margin-left: 0; }
  .safe-grid { grid-template-columns: 1fr; }
  .safe-figure { display: none; }
  .duo { grid-template-columns: 1fr; }
  .feats { grid-template-columns: 1fr 1fr; }
  .soon-2 .soon-card:nth-child(n), .soon-4 .soon-card:nth-child(n) { grid-column: span 1; }
}
@media (max-width: 640px) {
  .bar .btn { display: none; }
  .menu-btn { margin-left: auto; }
  .phero h1 { font-size: clamp(2.5rem, 11vw, 3.5rem); }
  .phero .hero-actions .btn { width: 100%; }
  .bubble { font-size: .84rem; max-width: 88%; padding: 10px 13px; }
  .bubble-u { right: -2%; }
  .bubble-b { left: -2%; }
  .bubble-b img { width: 28px; height: 28px; }
  .carta-hero { min-height: 0; }
  .carta-hero .phone { width: min(280px, 78vw); }
  .carta-hero .phone .qr { height: 480px; }
  .carta-hero .toast.c1 { display: flex; left: -2%; top: 10%; min-width: 0; max-width: 70%; font-size: .8rem; }
  .product { min-height: 0; }
  .product-soon { flex-wrap: wrap; }
  .product-soon .product-more { margin: 0; }
  .safe { grid-template-columns: 1fr; }
  .feats { grid-template-columns: 1fr; }
  .soon-2, .soon-4 { grid-template-columns: 1fr; }
  .foot-cols { gap: 28px 40px; }
}

/* v3.1: precios confirmados */
.plan-price small { display: block; margin-top: 4px; font-size: var(--small); font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan-main .plan-price small { color: var(--on-dark-muted); }
.plan-more { margin: -12px 0 24px; font-size: var(--small); color: var(--muted); }
.plan-main .plan-more { color: var(--on-dark-muted); }
.plans-note { margin-top: 24px; font-size: var(--small); color: var(--muted); text-align: center; }

/* Aviso legal: botón para mostrar el NIF */
.legal .reveal { min-height: 32px; padding: 0 12px; border: 1.5px solid currentColor; border-radius: 999px; background: none; color: var(--blue); font: inherit; font-size: var(--small); font-weight: 600; cursor: pointer; }
