/* =========================================================
   PYMEX AGENCY — diseño 2026 (oscuro, con movimiento)
   ========================================================= */
:root {
  --bg: #05070d;
  --bg-2: #0a0f1c;
  --card: rgba(255, 255, 255, 0.045);
  --card-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #f1f5ff;
  --muted: #a3adc8;
  --blue: #3b82f6;
  --blue-2: #2563eb;
  --sky: #7dd3fc;
  --violet: #8b5cf6;
  --green: #25d366;
  --amber: #fbbf24;
  --pink: #f472b6;
  --grad: linear-gradient(120deg, #60a5fa 0%, #7dd3fc 35%, #a78bfa 100%);
  --grad-btn: linear-gradient(135deg, #3b82f6 0%, #6366f1 60%, #8b5cf6 100%);
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font-d: "Space Grotesk", system-ui, sans-serif;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3 { font-family: var(--font-d); margin: 0; letter-spacing: -0.02em; line-height: 1.08; }
p { margin: 0; }
::selection { background: rgba(59, 130, 246, .45); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-sm { width: 14px; height: 14px; }
.muted { color: var(--muted); }
.text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 999; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }
.hp { position: absolute; left: -9999px; }
.desktop-only { display: inline-flex; }
.linklike { text-decoration: underline; text-underline-offset: 3px; color: var(--sky); padding: 0; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 40px); }
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }

/* ---------- Barra de progreso ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 300; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, border-color .3s;
}
.btn .ic { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 10px 30px -8px rgba(79, 70, 229, .7), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { box-shadow: 0 16px 40px -8px rgba(79, 70, 229, .9), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-glass { background: rgba(20,26,44,.8); border: 1px solid var(--line-2); }
.btn-glass:hover { background: rgba(255,255,255,.12); }
.btn-glass .ic { color: var(--sky); }
.round-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .25s; }
.round-btn:hover { background: var(--card-2); }

/* ---------- Píldoras / etiquetas ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: #dbe5ff; background: rgba(20,26,44,.75); border: 1px solid var(--line); }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(37,211,102,.6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(37,211,102,0); } }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); margin-bottom: 16px; }
.title { font-size: clamp(32px, 4.6vw, 56px); font-weight: 700; max-width: 18ch; }
.head { margin-bottom: clamp(40px, 6vw, 64px); }
.head--center { text-align: center; }
.head--center .title { margin-inline: auto; }
.head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }

/* ---------- Navbar flotante ---------- */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 200; padding: 0 16px; transition: transform .4s var(--ease); }
.nav.is-hidden { transform: translateY(-120%); }
.nav-inner {
  width: min(1200px, 100%); margin: 0 auto; height: 60px; padding: 0 10px 0 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-radius: 999px; border: 1px solid transparent; transition: background .35s, border-color .35s, box-shadow .35s;
}
.nav.is-scrolled .nav-inner { background: rgba(8, 11, 22, .92); border-color: var(--line); box-shadow: 0 10px 40px -10px rgba(0,0,0,.6); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: auto; height: 34px; }
.brand-text { display: inline-flex; align-items: center; gap: 8px; }
.brand-word { width: auto; height: 15px; }
.brand-agency { font-family: var(--font-d); font-weight: 700; font-size: 12px; letter-spacing: .3em; color: #93c5fd; }
.only-light { display: none !important; }
html[data-theme="light"] .only-light { display: inline-block !important; }
html[data-theme="light"] .only-dark { display: none !important; }
.theme-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #c9d2ea; transition: background .2s, color .2s; }
.theme-btn:hover { background: rgba(255,255,255,.07); color: #fff; }
.theme-btn .ic { width: 19px; height: 19px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: #c9d2ea; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.is-active { color: #fff; background: rgba(255,255,255,.07); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #c9d2ea; }
.lang-btn:hover { background: rgba(255,255,255,.07); }
.lang-btn .ic { width: 16px; height: 16px; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px; padding: 6px; border-radius: 16px; background: #0d1324; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.5); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .25s var(--ease); }
.lang.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.lang-menu button:hover, .lang-menu button.is-active { background: rgba(255,255,255,.07); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav.menu-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav.menu-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-menu { display: none; }

/* ---------- Revelados ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + 40px) 0 0; overflow: hidden; isolation: isolate; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; opacity: .55; }
.hero-shade { position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(70% 60% at 20% 40%, rgba(5,7,13,.35), rgba(5,7,13,.9) 75%),
  linear-gradient(180deg, rgba(5,7,13,.5) 0%, rgba(5,7,13,.2) 40%, var(--bg) 100%); }
.hero-glow { position: absolute; z-index: -1; width: 900px; height: 900px; right: -250px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(59,130,246,.32), rgba(139,92,246,.12) 45%, transparent 70%); will-change: transform; animation: float-glow 12s ease-in-out infinite alternate; }
@keyframes float-glow { to { transform: translate(-80px, 60px) scale(1.1); } }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; flex: 1; }
.hero-copy { padding: 40px 0; }
.hero-title { font-size: clamp(44px, 7.4vw, 96px); font-weight: 700; letter-spacing: -0.035em; line-height: 1; margin: 26px 0 24px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .word-wrap { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.hero-title.in .word-wrap { transform: none; }
.hero-title.in .line:nth-child(2) .word-wrap { transition-delay: .12s; }
.hero-sub { font-size: clamp(17px, 1.6vw, 20px); color: #c9d2ea; max-width: 36ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-stage { position: relative; height: 600px; }
.phone {
  position: relative; border-radius: 44px; padding: 12px; background: linear-gradient(160deg, #262d40, #0b0f1a);
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 40px 80px -20px rgba(0,0,0,.8), inset 0 0 0 2px rgba(255,255,255,.04);
}
.phone::after { content: ""; position: absolute; inset: 12px; border-radius: 34px; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.phone-notch { position: absolute; top: 20px; left: 50%; width: 92px; height: 24px; transform: translateX(-50%); background: #000; border-radius: 20px; z-index: 3; }
.phone--hero { position: absolute; width: 300px; height: 590px; left: 50%; top: 0; transform: translateX(-50%) rotate(-3deg); animation: bob 7s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateX(-50%) rotate(-3deg) translateY(-12px); } }
.wa-head { display: flex; align-items: center; gap: 10px; padding: 46px 14px 12px; background: #0b141a; border-radius: 34px 34px 0 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.wa-head strong { display: block; font-size: 14px; }
.wa-head small { display: block; font-size: 11px; color: #8fa3b0; }
.wa-avatar { width: 36px; height: 36px; border-radius: 50%; background: #1f2c34; display: grid; place-items: center; flex: none; font-size: 12px; font-weight: 700; }
.wa-avatar img { width: 24px; height: auto; }
.wa-avatar--food { background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; }
.wa-body {
  height: calc(100% - 92px); padding: 14px 10px; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; overflow: hidden;
  background: #0b141a radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0/16px 16px; border-radius: 0 0 34px 34px;
}
.msg { max-width: 82%; padding: 8px 11px 6px; border-radius: 12px; font-size: 13.5px; line-height: 1.4; position: relative; animation: msg-in .45s var(--ease) both; }
.msg small { display: block; text-align: right; font-size: 10px; opacity: .55; margin-top: 2px; }
.msg--in { align-self: flex-start; background: #202c33; border-top-left-radius: 4px; }
.msg--out { align-self: flex-end; background: #005c4b; border-top-right-radius: 4px; }
.msg--typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: #9fb1bb; animation: typing 1.1s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }

.toast {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; min-width: 230px;
  border-radius: 18px; background: rgba(15, 20, 36, .94); border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px -10px rgba(0,0,0,.6); opacity: 0; transform: translateY(16px) scale(.95);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.toast.show { opacity: 1; transform: none; }
.toast strong { display: block; font-size: 14px; }
.toast small { display: block; font-size: 12px; color: var(--muted); }
.toast .stars { color: var(--amber); letter-spacing: 2px; font-size: 13px; }
.toast-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.toast-ic--star { background: rgba(251,191,36,.16); color: var(--amber); }
.toast-ic--star .ic { fill: currentColor; }
.toast-ic--cal { background: rgba(37,211,102,.15); color: var(--green); }
.toast-ic--user { background: rgba(59,130,246,.18); color: #93c5fd; }
.toast--a { top: 70px; left: -20px; }
.toast--b { top: 300px; right: -30px; }
.toast--c { bottom: 40px; left: 0; }

.hero-marquee { display: flex; align-items: center; gap: 24px; padding: 28px 0 34px; width: min(1200px, 100% - 40px); margin: 0 auto; border-top: 1px solid var(--line); }
.marquee-label { flex: none; font-size: 13px; color: var(--muted); }
.marquee { overflow: hidden; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track span { font-family: var(--font-d); font-weight: 600; font-size: 18px; color: #7f8aa8; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   SERVICIOS — bento con vídeo
   ========================================================= */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 270px; gap: 16px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); isolation: isolate; cursor: default; }
.tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .75; transform: scale(1.04); transition: transform 1.2s var(--ease), opacity .6s; }
.tile:hover video { transform: scale(1.1); opacity: .9; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5,7,13,.05) 20%, rgba(5,7,13,.92) 100%); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(125, 211, 252, .16), transparent 45%); }
.tile:hover::after { opacity: 1; }
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; z-index: 2; }
.tile-body h3 { font-size: clamp(20px, 2vw, 26px); margin: 14px 0 6px; }
.tile-body p { color: #c9d2ea; font-size: 15px; }
.tile-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(59,130,246,.2); color: #93c5fd; border: 1px solid rgba(147,197,253,.25); }
.tile-ic--green { background: rgba(37,211,102,.18); color: #4ade80; border-color: rgba(74,222,128,.3); }
.tile-ic--violet { background: rgba(139,92,246,.22); color: #c4b5fd; border-color: rgba(196,181,253,.3); }
.tile-ic--pink { background: rgba(244,114,182,.2); color: #f9a8d4; border-color: rgba(249,168,212,.3); }
.tile-ic--amber { background: rgba(251,191,36,.18); color: #fcd34d; border-color: rgba(252,211,77,.3); }
.tile--web { grid-column: span 2; grid-row: span 2; }
.tile--web .tile-body h3 { font-size: clamp(26px, 3vw, 38px); }
.tile--chat { grid-column: span 2; }
.tile--redes, .tile--tap { grid-column: span 2; }

/* =========================================================
   DEMO
   ========================================================= */
.section--demo { background: radial-gradient(60% 50% at 50% 0%, rgba(59,130,246,.12), transparent 70%); }
.demo { display: grid; grid-template-columns: 320px 1fr; gap: 20px; }
.demo-tabs { display: flex; flex-direction: column; gap: 10px; }
.demo-tab { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; text-align: left; padding: 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); transition: background .3s, border-color .3s; }
.demo-tab strong { display: block; font-size: 16px; }
.demo-tab small { display: block; color: var(--muted); font-size: 13px; }
.demo-tab:hover { background: var(--card-2); }
.demo-tab.is-active { background: rgba(59,130,246,.1); border-color: rgba(125,211,252,.35); }
.demo-tab-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; background: rgba(59,130,246,.2); color: #93c5fd; }
.demo-tab-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); }
.demo-tab.is-active .demo-tab-bar { animation: tabbar var(--demo-ms, 9000ms) linear forwards; }
.demo.paused .demo-tab-bar { animation: none !important; transform: scaleX(0) !important; }
@keyframes tabbar { to { transform: scaleX(1); } }

.demo-stage { position: relative; min-height: 560px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); overflow: hidden; }
.demo-stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0/22px 22px; -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); }
.demo-badge { position: absolute; top: 18px; right: 18px; z-index: 3; font-size: 11px; font-weight: 700; letter-spacing: .12em; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--line); color: var(--muted); }
.demo-panel { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 40px; padding: 30px; opacity: 0; visibility: hidden; transform: scale(.98); transition: opacity .5s var(--ease), transform .5s var(--ease), visibility .5s; }
.demo-panel.is-active { opacity: 1; visibility: visible; transform: none; }
.phone--demo { width: 270px; height: 500px; flex: none; }
.demo-side { display: flex; flex-direction: column; gap: 12px; max-width: 280px; }
.demo-event { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid var(--line); font-size: 14px; opacity: .25; transform: translateX(10px); transition: opacity .5s var(--ease), transform .5s var(--ease), border-color .5s; }
.demo-event .ic { color: var(--sky); }
.demo-event.on { opacity: 1; transform: none; border-color: rgba(125,211,252,.35); }

.flow { display: flex; flex-direction: column; align-items: stretch; width: min(420px, 100%); }
.flow-node { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid var(--line); transition: border-color .5s, background .5s, box-shadow .5s; }
.flow-node strong { display: block; font-size: 15px; }
.flow-node small { display: block; font-size: 13px; color: var(--muted); }
.flow-node > div { flex: 1; }
.flow-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; background: rgba(59,130,246,.18); color: #93c5fd; }
.flow-ic--green { background: rgba(37,211,102,.16); color: #4ade80; }
.flow-ok { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #04210f; transform: scale(0); transition: transform .45s var(--ease); }
.flow-ok .ic { width: 15px; height: 15px; stroke-width: 3; }
.flow-node.on { border-color: rgba(125,211,252,.45); background: rgba(59,130,246,.1); box-shadow: 0 0 0 4px rgba(59,130,246,.08); }
.flow-node.on .flow-ok { transform: scale(1); }
.flow-line { position: relative; height: 26px; width: 2px; margin-left: 36px; background: var(--line); overflow: hidden; }
.flow-line span { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--grad); transform: scaleY(0); transform-origin: 50% 0; transition: transform .5s linear; }
.flow-line.on span { transform: scaleY(1); }
.flow-counter { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; min-width: 170px; color: var(--muted); font-size: 14px; }
.flow-count { font-family: var(--font-d); font-weight: 700; font-size: 64px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.tap-scene { position: relative; width: 460px; max-width: 100%; height: 480px; }
.tap-plate { position: absolute; left: 0; top: 150px; width: 190px; height: 190px; border-radius: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(145deg, #111827, #1f2937); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); }
.tap-plate .ic { width: 46px; height: 46px; color: var(--amber); }
.tap-plate strong { font-family: var(--font-d); font-size: 20px; }
.tap-plate small { color: var(--muted); font-size: 12px; }
.tap-ripple { position: absolute; inset: -2px; border-radius: 30px; border: 2px solid var(--amber); opacity: 0; }
.tap-scene.tapping .tap-ripple { animation: ripple 1.2s var(--ease) 2; }
@keyframes ripple { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }
.phone--tap { position: absolute; right: 0; top: 0; width: 230px; height: 460px; transition: transform 1s var(--ease); }
.tap-scene.tapping .phone--tap { transform: translate(-150px, 60px) rotate(-12deg); }
.tap-scene.reviewing .phone--tap { transform: none; }
.tap-screen { position: absolute; inset: 12px; border-radius: 34px; background: #fff; color: #202124; display: flex; flex-direction: column; align-items: center; padding: 64px 18px 18px; gap: 12px; overflow: hidden; }
.g-word { font-family: "Product Sans", var(--font); font-weight: 600; font-size: 28px; letter-spacing: -0.02em; }
.g1 { color: #4285f4; } .g2 { color: #ea4335; } .g3 { color: #fbbc05; } .g4 { color: #34a853; }
.tap-screen p { font-size: 14px; font-weight: 600; color: #3c4043; }
.tap-stars { display: flex; gap: 4px; }
.tap-stars .ic { width: 30px; height: 30px; color: #dadce0; fill: #dadce0; stroke: none; transition: color .25s, fill .25s, transform .3s var(--ease); }
.tap-stars .ic.on { fill: #fbbc05; transform: scale(1.12); }
.tap-text { width: 100%; min-height: 70px; padding: 10px; border-radius: 10px; border: 1px solid #dadce0; font-size: 12.5px; color: #3c4043; line-height: 1.45; }
.tap-send { margin-top: auto; align-self: stretch; text-align: center; padding: 10px; border-radius: 999px; background: #1a73e8; color: #fff; font-size: 13px; font-weight: 600; transition: transform .2s; }
.tap-send.press { transform: scale(.94); }
.tap-done { position: absolute; inset: 0; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-weight: 600; opacity: 0; transition: opacity .5s; }
.tap-done .ic { width: 54px; height: 54px; padding: 12px; border-radius: 50%; background: #34a853; color: #fff; stroke-width: 3; }
.tap-scene.done .tap-done { opacity: 1; }

/* =========================================================
   FRASE + DATOS
   ========================================================= */
.section--statement { padding-top: 40px; }
.statement { font-family: var(--font-d); font-weight: 600; font-size: clamp(28px, 4.4vw, 58px); line-height: 1.15; letter-spacing: -0.02em; max-width: 22ch; }
.statement .w { color: rgba(241,245,255,.16); transition: color .4s; }
.statement .w.lit { color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px; }
.stat { padding: 26px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--font-d); font-size: clamp(36px, 4vw, 52px); line-height: 1; margin-bottom: 10px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat > span { color: var(--muted); font-size: 15px; }

/* =========================================================
   PROYECTOS — carrusel
   ========================================================= */
.slider-arrows { display: flex; gap: 10px; }
.slider { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px max(20px, calc((100vw - 1200px) / 2)) 30px; scrollbar-width: none; }
.slider::-webkit-scrollbar { display: none; }
.proj { flex: none; width: min(420px, 82vw); scroll-snap-align: start; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; transition: transform .5s var(--ease), border-color .4s; }
.proj:hover { transform: translateY(-6px); border-color: var(--line-2); }
.proj-media { position: relative; height: 270px; overflow: hidden; }
.proj-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.proj:hover .proj-media img { transform: scale(1.06); }
.proj-body { padding: 24px 26px 28px; }
.proj-body h3 { font-size: 24px; margin: 12px 0 8px; }
.proj-body p { color: var(--muted); font-size: 15px; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.07); border: 1px solid var(--line); color: #c9d2ea; }
.link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 600; color: var(--sky); }
.link .ic { width: 16px; height: 16px; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* =========================================================
   PARA QUIÉN — banda con vídeo
   ========================================================= */
.band { position: relative; overflow: hidden; border-radius: var(--r-lg); min-height: 460px; display: flex; align-items: flex-end; border: 1px solid var(--line); isolation: isolate; }
.band video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,7,13,.95) 0%, rgba(5,7,13,.75) 45%, rgba(5,7,13,.15) 100%); }
.band-copy { padding: clamp(28px, 5vw, 60px); max-width: 640px; }
.band .title { font-size: clamp(30px, 4vw, 48px); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chips span { padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; background: rgba(20,26,44,.7); border: 1px solid var(--line-2); }

/* =========================================================
   PROCESO
   ========================================================= */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps-line { position: absolute; left: 6%; right: 6%; top: 44px; height: 2px; background: var(--line); }
.steps-line span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.step { position: relative; padding: 0 10px; text-align: center; }
.step-n { display: inline-grid; place-items: center; width: 88px; height: 88px; margin-bottom: 22px; border-radius: 50%; font-family: var(--font-d); font-weight: 700; font-size: 26px; background: var(--bg); border: 1px solid var(--line-2); box-shadow: 0 0 0 8px var(--bg); position: relative; z-index: 1; }
.step-n::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.step h3 { font-size: 24px; margin-bottom: 8px; }
.step p { color: var(--muted); max-width: 28ch; margin: 0 auto; }

/* ---------- Opiniones (solo con datos reales) ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { padding: 26px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.review .stars { color: var(--amber); letter-spacing: 3px; }
.review p { margin: 12px 0 18px; }
.review strong { display: block; }
.review small { color: var(--muted); }

/* =========================================================
   FAQ
   ========================================================= */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: var(--r); background: var(--card); border: 1px solid var(--line); transition: background .3s, border-color .3s; }
.faq details[open] { background: var(--card-2); border-color: var(--line-2); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .35s var(--ease); color: var(--sky); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { padding: 0 22px 22px; color: var(--muted); }

/* =========================================================
   CONTACTO
   ========================================================= */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); padding: clamp(28px, 5vw, 60px); border-radius: var(--r-lg); border: 1px solid var(--line);
  background: radial-gradient(80% 80% at 0% 0%, rgba(59,130,246,.22), transparent 60%), radial-gradient(70% 70% at 100% 100%, rgba(139,92,246,.18), transparent 60%), var(--bg-2); }
.contact .title { margin-bottom: 12px; }
.contact-links { display: flex; flex-direction: column; gap: 10px; margin-top: 30px; }
.c-link { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid var(--line); transition: background .25s, transform .3s var(--ease); }
.c-link:hover { background: rgba(255,255,255,.09); transform: translateX(4px); }
.c-link .ic { width: 22px; height: 22px; color: var(--sky); }
.c-link--wa .ic { color: var(--green); }
.c-link strong { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.c-link span { font-weight: 600; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 500; color: #c9d2ea; }
.field.full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 14px; font: inherit; font-size: 16px; color: var(--text);
  background: rgba(5,7,13,.6); border: 1px solid var(--line-2); transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a3adc8' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field select option { background: #0d1324; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(125,211,252,.15); }
.form-note { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
.form-ok { display: none; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; padding: 12px; border-radius: 14px; background: rgba(37,211,102,.12); color: #86efac; font-weight: 600; font-size: 14px; }
.form-ok.is-visible { display: flex; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer-grid .muted { margin-top: 14px; font-size: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; font-size: 14px; color: #c9d2ea; }
.footer-links a:hover { color: #fff; }
.footer-links .linklike { color: #c9d2ea; font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---------- Modales ---------- */
.modal { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2,4,10,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .3s; }
.modal-card { position: relative; width: min(460px, 100%); max-height: calc(100svh - 32px); overflow-y: auto; padding: 30px; border-radius: var(--r-lg); background: linear-gradient(160deg, #111a30, #0a0f1c); border: 1px solid var(--line-2); box-shadow: 0 40px 100px rgba(0,0,0,.6); animation: pop .45s var(--ease); }
.modal-card h3 { font-size: 28px; margin: 16px 0 6px; }
.modal-card form { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.modal-card .muted + .muted { margin-top: 10px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); }
.modal-close:hover { background: rgba(255,255,255,.12); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.96); } }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 150; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; box-shadow: 0 14px 34px rgba(37,211,102,.4); transition: transform .35s var(--ease), opacity .35s; }
.wa-float .ic { width: 30px; height: 30px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--green); animation: wa-pulse 2.4s var(--ease) infinite; }
@keyframes wa-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }
.wa-float:hover { transform: scale(1.08); }
.wa-float.is-yielding { transform: translateY(120px); opacity: 0; pointer-events: none; }

/* ---------- Banner de cookies ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 400; margin: 0 auto; max-width: 760px; display: flex; align-items: center; gap: 18px; padding: 16px 18px; border-radius: 20px; background: rgba(13,19,36,.97); border: 1px solid var(--line-2); box-shadow: 0 20px 60px rgba(0,0,0,.5); font-size: 14px; color: #c9d2ea; transform: translateY(140%); transition: transform .6s var(--ease); }
.cookie-banner.is-visible { transform: none; }
.cookie-banner[hidden] { display: none; }
.cookie-actions { display: flex; gap: 8px; flex: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { height: 560px; max-width: 520px; width: 100%; margin: 0 auto 30px; }
  .hero-copy { text-align: center; }
  .hero-copy .hero-sub { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .demo { grid-template-columns: 1fr; }
  .demo-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .demo-tabs::-webkit-scrollbar { display: none; }
  .demo-tab { flex: 1 0 240px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 1140px) {
  .nav-links, .desktop-only { display: none; }
  .nav-toggle { display: block; }
  .nav .nav-inner { background: rgba(8, 11, 22, .92); border-color: var(--line); }
  .mobile-menu { display: flex; flex-direction: column; gap: 4px; width: min(1200px, 100%); margin: 8px auto 0; padding: 12px; border-radius: 24px; background: rgba(8, 11, 22, .98); border: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .3s var(--ease); }
  .nav.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
  .mobile-menu > a { padding: 14px 12px; border-radius: 12px; font-size: 17px; font-weight: 500; }
  .mobile-menu > a:hover { background: rgba(255,255,255,.06); }
  .mobile-lang { display: flex; gap: 8px; padding: 10px 12px; }
  .mobile-lang button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
  .mobile-lang button.is-active { background: rgba(59,130,246,.2); border-color: rgba(125,211,252,.4); }
  .mobile-menu .btn { margin-top: 6px; }
}
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
  .tile--web { grid-column: span 2; grid-row: span 1; height: 320px; }
  .tile--chat, .tile--redes, .tile--tap { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps-line { left: 50%; right: auto; top: 44px; bottom: 44px; width: 2px; height: auto; transform: translateX(-50%); }
  .steps-line span { transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
  .reviews { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .lang-btn .ic:first-child { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 24px); }
  .hero-title { font-size: clamp(42px, 12.5vw, 60px); margin: 20px 0 18px; }
  .hero-cta .btn { width: 100%; }
  .hero-stage { height: 500px; margin-bottom: 24px; }
  .phone--hero { width: 250px; height: 490px; }
  .toast { min-width: 0; max-width: 70%; gap: 10px; padding: 9px 12px 9px 9px; }
  .toast strong { font-size: 13px; }
  .toast small { font-size: 11px; }
  .toast-ic { width: 34px; height: 34px; border-radius: 10px; }
  .toast--a { left: 0; top: 30px; }
  .toast--b { right: 0; top: 230px; }
  .toast--c { left: 0; bottom: 20px; }
  .hero-marquee { flex-direction: column; align-items: flex-start; gap: 12px; width: calc(100% - 32px); }
  .marquee { width: 100%; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .tile--web, .tile--chat, .tile--redes, .tile--tap { grid-column: auto; }
  .tile--web { height: auto; }
  .tile-body { padding: 22px; }
  .demo-tab { flex-basis: 210px; padding: 14px; }
  .demo-tab small { display: none; }
  .demo-stage { min-height: 600px; }
  .demo-panel { flex-direction: column; gap: 18px; padding: 50px 16px 20px; justify-content: flex-start; }
  .phone--demo { width: 240px; height: 410px; }
  .demo-side { flex-direction: row; flex-wrap: wrap; justify-content: center; max-width: none; gap: 8px; }
  .demo-event { padding: 8px 12px; font-size: 12px; transform: none; }
  .demo-event .ic { width: 16px; height: 16px; }
  .flow { width: 100%; }
  .flow-count { font-size: 44px; }
  .tap-scene { transform: scale(.8); transform-origin: top center; height: 400px; }
  .stats { gap: 10px; margin-top: 44px; }
  .stat { padding: 18px; }
  .head--row { align-items: flex-start; flex-direction: column; }
  .slider-arrows { display: none; }
  .proj-media { height: 220px; }
  .band { min-height: 520px; }
  .band::before { background: linear-gradient(180deg, rgba(5,7,13,.1) 0%, rgba(5,7,13,.85) 55%, rgba(5,7,13,.97) 100%); }
  .form-grid { grid-template-columns: 1fr; }
  .contact { padding: 24px 18px; }
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 12px; left: 12px; right: 12px; bottom: 12px; }
  .cookie-actions .btn { flex: 1; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .footer-bottom { flex-direction: column; }
}

/* =========================================================
   MEJORAS: logos, TapStars con reseñas, calculadora, brillo
   ========================================================= */
/* Logos en la cinta */
.marquee-track .brand-item { display: inline-flex; align-items: center; gap: 10px; }
.marquee-track .brand-item img { width: 22px; height: 22px; filter: invert(1); opacity: .6; }

/* Brillo que cruza los botones principales */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: 0; width: 40%; height: 100%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.32), transparent);
  transform: translateX(-160%) skewX(-20deg); animation: shine 5s ease-in-out infinite;
}
@keyframes shine { 0%, 65% { transform: translateX(-160%) skewX(-20deg); } 100% { transform: translateX(360%) skewX(-20deg); } }

/* TapStars: placa NFC + reseñas de Google */
.tile--tap { background: radial-gradient(70% 90% at 80% 30%, rgba(251,191,36,.22), transparent 60%), radial-gradient(60% 70% at 10% 0%, rgba(66,133,244,.2), transparent 60%), #0b1020; }
.tile--tap::before { background: linear-gradient(180deg, transparent 35%, rgba(5,7,13,.88) 100%); }
.tap-visual { position: absolute; inset: 0; z-index: 0; }
.tap-card {
  position: absolute; right: 7%; top: 22px; width: 220px; aspect-ratio: 1.586; padding: 14px 16px; border-radius: 16px;
  display: flex; flex-direction: column; gap: 3px; color: #fff;
  background: linear-gradient(135deg, #111827 0%, #1f2937 55%, #0b1220 100%);
  border: 1px solid rgba(255,255,255,.16); box-shadow: 0 24px 50px -12px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.12);
  transform: rotate(-6deg); animation: card-float 6s ease-in-out infinite; will-change: transform;
}
.tap-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.1) 45%, transparent 60%); }
@keyframes card-float { 50% { transform: rotate(-3deg) translateY(-8px); } }
.tap-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.tap-g { width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; font: 700 18px/1 var(--font); }
.tap-card-nfc { width: 24px; height: 24px; color: var(--amber); }
.tap-card strong { font-family: var(--font-d); font-size: 15px; }
.tap-card small { font-size: 11px; color: #cbd5e1; line-height: 1.3; }
.tap-card-stars { margin-top: auto; color: #fbbc05; letter-spacing: 2px; font-size: 15px; }
.g-reviews { position: absolute; left: 22px; top: 14px; width: 210px; height: 112px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); }
.g-review {
  position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px;
  background: #fff; color: #202124; box-shadow: 0 10px 24px -8px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(130px); animation: review-rise 7.5s linear infinite; will-change: transform, opacity;
}
.g-review:nth-child(2) { animation-delay: 2.5s; }
.g-review:nth-child(3) { animation-delay: 5s; }
@keyframes review-rise { 0% { opacity: 0; transform: translateY(130px); } 10% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(-50px); } }
.g-review b { display: block; color: #fbbc05; font-size: 12px; letter-spacing: 1px; }
.g-review small { display: block; font-size: 11px; color: #5f6368; }
.g-av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; flex: none; }
.g-av--1 { background: #4285f4; } .g-av--2 { background: #ea4335; } .g-av--3 { background: #34a853; }

/* Calculadora */
.section--calc { padding-top: 40px; }
.calc { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 56px); padding: clamp(26px, 4.5vw, 56px); border-radius: var(--r-lg); border: 1px solid var(--line);
  background: radial-gradient(70% 90% at 100% 0%, rgba(139,92,246,.18), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(59,130,246,.16), transparent 60%), var(--bg-2); }
.calc .title { font-size: clamp(30px, 3.8vw, 46px); margin-bottom: 12px; }
.calc-field { margin-top: 30px; }
.calc-label { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 14px; font-weight: 500; }
.calc-label b { font-family: var(--font-d); font-size: 22px; color: var(--sky); white-space: nowrap; }
.calc input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; cursor: pointer;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6) 0/var(--fill, 30%) 100% no-repeat, rgba(255,255,255,.1); }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 5px solid #6366f1; box-shadow: 0 4px 14px rgba(99,102,241,.6); transition: transform .2s; }
.calc input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 5px solid #6366f1; }
.calc input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc-result { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 28px; border-radius: var(--r); background: rgba(5,7,13,.55); border: 1px solid var(--line-2); }
.calc-kicker { color: var(--muted); font-weight: 500; }
.calc-big span { display: block; font-family: var(--font-d); font-weight: 700; font-size: clamp(64px, 8vw, 92px); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc-big small { color: #c9d2ea; font-size: 16px; }
.calc-ring { position: relative; width: 132px; height: 132px; display: grid; place-items: center; align-content: center; }
.calc-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.calc-ring circle { fill: none; stroke-width: 9; }
.ring-bg { stroke: rgba(255,255,255,.08); }
.ring-fg { stroke: #60a5fa; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset .6s var(--ease); }
.calc-ring span { font-family: var(--font-d); font-weight: 700; font-size: 32px; line-height: 1; }
.calc-ring small { font-size: 11px; color: var(--muted); max-width: 90px; line-height: 1.25; }
.calc-note { font-size: 12px; color: var(--muted); }

@media (max-width: 1080px) {
  .calc { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bento { grid-auto-rows: minmax(260px, auto); }
  .tile--tap { min-height: 340px; }
  .tap-card { width: 152px; right: 12px; top: 16px; padding: 10px 11px; }
  .tap-card strong { font-size: 13px; }
  .tap-card small { font-size: 10px; }
  .tap-g { width: 24px; height: 24px; font-size: 15px; }
  .g-reviews { left: 12px; top: 12px; width: 156px; height: 150px; }
  .g-review small { white-space: nowrap; }
  .g-review { padding: 6px 8px; gap: 8px; }
  .g-av { width: 24px; height: 24px; font-size: 11px; }
  .g-review small { font-size: 10px; }
  .calc-label { font-size: 14px; }
  .calc-label b { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-title .word-wrap { transform: none; }
  .marquee-track { animation: none; }
}

/* =========================================================
   Textos claros fijos dentro de piezas que siempre son oscuras
   ========================================================= */
.tile-body, .band, .phone, .tap-plate { color: #f1f5ff; }
.band .eyebrow { color: #7dd3fc; }

/* =========================================================
   MODO CLARO
   ========================================================= */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fb;
  --bg-2: #ffffff;
  --card: rgba(15, 23, 42, .035);
  --card-2: rgba(15, 23, 42, .06);
  --line: rgba(15, 23, 42, .1);
  --line-2: rgba(15, 23, 42, .16);
  --text: #0b1220;
  --muted: #4b5568;
  --sky: #2563eb;
  --grad: linear-gradient(120deg, #2563eb 0%, #0891b2 45%, #7c3aed 100%);
}
html[data-theme="light"] body { transition: background-color .3s; }
html[data-theme="light"] .btn-glass { background: #fff; box-shadow: 0 4px 14px -6px rgba(15,23,42,.18); }
html[data-theme="light"] .pill { color: #1e3a8a; background: rgba(255,255,255,.9); }
html[data-theme="light"] .nav.is-scrolled .nav-inner { background: rgba(255,255,255,.94); box-shadow: 0 10px 30px -12px rgba(15,23,42,.2); }
html[data-theme="light"] .theme-btn, html[data-theme="light"] .nav-links a, html[data-theme="light"] .lang-btn { color: #334155; }
html[data-theme="light"] .theme-btn:hover, html[data-theme="light"] .lang-btn:hover,
html[data-theme="light"] .nav-links a:hover, html[data-theme="light"] .nav-links a.is-active { color: #0b1220; background: rgba(15,23,42,.06); }
html[data-theme="light"] .lang-menu { background: #fff; box-shadow: 0 20px 50px rgba(15,23,42,.15); }
html[data-theme="light"] .lang-menu button:hover, html[data-theme="light"] .lang-menu button.is-active { background: rgba(15,23,42,.06); }
html[data-theme="light"] .brand-agency { color: #2563eb; }
html[data-theme="light"] .nav-toggle span { background: #0b1220; }

html[data-theme="light"] .hero-video { opacity: .16; }
html[data-theme="light"] .hero-shade { background:
  radial-gradient(70% 60% at 20% 40%, rgba(245,247,251,.5), rgba(245,247,251,.9) 75%),
  linear-gradient(180deg, rgba(245,247,251,.6) 0%, rgba(245,247,251,.3) 40%, var(--bg) 100%); }
html[data-theme="light"] .hero-glow { background: radial-gradient(circle, rgba(59,130,246,.22), rgba(139,92,246,.1) 45%, transparent 70%); }
html[data-theme="light"] .hero-sub { color: #334155; }
html[data-theme="light"] .toast { background: rgba(255,255,255,.98); box-shadow: 0 20px 40px -12px rgba(15,23,42,.28); }
html[data-theme="light"] .marquee-track span { color: #64748b; }
html[data-theme="light"] .marquee-track .brand-item img { filter: none; opacity: .5; }

html[data-theme="light"] .tile { border-color: transparent; box-shadow: 0 20px 40px -24px rgba(15,23,42,.45); }
html[data-theme="light"] .demo-stage { background: #fff; box-shadow: 0 30px 60px -40px rgba(15,23,42,.35); }
html[data-theme="light"] .demo-stage::before { background: radial-gradient(rgba(15,23,42,.09) 1px, transparent 1px) 0 0/22px 22px; }
html[data-theme="light"] .demo-tab, html[data-theme="light"] .demo-event, html[data-theme="light"] .flow-node { background: #fff; }
html[data-theme="light"] .demo-tab.is-active, html[data-theme="light"] .flow-node.on { background: #eff6ff; }
html[data-theme="light"] .demo-badge { background: rgba(15,23,42,.05); }
html[data-theme="light"] .statement .w { color: rgba(11,18,32,.14); }
html[data-theme="light"] .statement .w.lit { color: var(--text); }
html[data-theme="light"] .stat, html[data-theme="light"] .faq details { background: #fff; }
html[data-theme="light"] .tag { color: #334155; background: rgba(15,23,42,.05); }
html[data-theme="light"] .proj { box-shadow: 0 20px 40px -30px rgba(15,23,42,.4); }
html[data-theme="light"] .band { border-color: transparent; }
html[data-theme="light"] .c-link { background: #fff; }
html[data-theme="light"] .c-link:hover { background: #f1f5f9; }
html[data-theme="light"] .field { color: #334155; }
html[data-theme="light"] .field input, html[data-theme="light"] .field select, html[data-theme="light"] .field textarea { background: #fff; }
html[data-theme="light"] .field select option { background: #fff; }
html[data-theme="light"] .footer-links, html[data-theme="light"] .footer-links .linklike { color: #475569; }
html[data-theme="light"] .footer-links a:hover { color: #0b1220; }
html[data-theme="light"] .modal-card { background: #fff; box-shadow: 0 40px 100px rgba(15,23,42,.25); }
html[data-theme="light"] .modal-backdrop { background: rgba(15,23,42,.45); }
html[data-theme="light"] .modal-close { background: rgba(15,23,42,.06); }
html[data-theme="light"] .cookie-banner { background: rgba(255,255,255,.98); color: #334155; box-shadow: 0 20px 60px rgba(15,23,42,.18); }
html[data-theme="light"] .calc-result { background: #fff; }
html[data-theme="light"] .calc-big small { color: #334155; }
html[data-theme="light"] .calc input[type=range] { background: linear-gradient(90deg, #3b82f6, #8b5cf6) 0/var(--fill, 30%) 100% no-repeat, rgba(15,23,42,.1); }
html[data-theme="light"] .ring-bg { stroke: rgba(15,23,42,.08); }
@media (max-width: 1140px) {
  html[data-theme="light"] .nav .nav-inner { background: rgba(255,255,255,.95); box-shadow: 0 10px 30px -14px rgba(15,23,42,.25); }
  html[data-theme="light"] .mobile-menu { background: #fff; box-shadow: 0 20px 50px rgba(15,23,42,.15); }
  html[data-theme="light"] .mobile-menu > a:hover { background: rgba(15,23,42,.05); }
}

/* =========================================================
   FIX MÓVIL: nada se sale de la pantalla ni se solapa
   ========================================================= */
html, body { overflow-x: clip; max-width: 100%; }
@media (max-width: 1080px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc > *, .calc-copy > *, .calc-label > span { min-width: 0; }
}
@media (max-width: 640px) {
  .nav { padding: 0 12px; }
  .nav-inner { padding: 0 6px 0 12px; gap: 8px; }
  .brand { gap: 7px; min-width: 0; flex: 0 1 auto; }
  .brand-mark { height: 28px; }
  .brand-text { gap: 6px; }
  .brand-word { height: 13px; }
  .brand-agency { font-size: 10px; letter-spacing: .2em; }
  .nav-actions { gap: 2px; flex: none; }
  .theme-btn { width: 38px; height: 38px; }
  .lang-btn { padding: 0 8px; gap: 4px; }
  .nav-toggle { width: 42px; height: 42px; }
  .nav-toggle span { left: 12px; right: 12px; }
  .calc { padding: 22px 18px; }
  .calc-label { gap: 10px; }
  .calc-label b { font-size: 19px; }
  .calc-result { padding: 22px 16px; }
}
@media (max-width: 370px) {
  .brand-agency { display: none; }
}

/* FIX: la cabecera fija (con el menú móvil oculto dentro) tapaba los botones de debajo */
.nav { pointer-events: none; }
.nav-inner { pointer-events: auto; }
.nav.menu-open .mobile-menu { pointer-events: auto; }

/* =========================================================
   AVISO DE COOKIES (nuevo)
   ========================================================= */
.cookie-banner { left: 20px; right: auto; bottom: 20px; margin: 0; max-width: 430px; flex-direction: column; align-items: stretch; gap: 12px; padding: 20px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(17,26,48,.98), rgba(10,15,28,.98)); }
.cookie-head { display: flex; align-items: center; gap: 12px; }
.cookie-head strong { font-family: var(--font-d); font-size: 17px; color: var(--text); }
.cookie-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(59,130,246,.18); color: #93c5fd; }
.cookie-ic .ic { width: 19px; height: 19px; }
.cookie-banner p { line-height: 1.55; }
.cookie-banner p a { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px; }
.cookie-actions .btn { padding: 0 10px; min-width: 0; }
@media (max-width: 640px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 16px; }
  .cookie-actions { grid-template-columns: 1fr 1fr; }
  .cookie-actions #cookie-accept { grid-column: 1 / -1; order: -1; height: 46px; }
}

.consent-list { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.consent-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.consent-row strong { display: block; font-size: 15px; }
.consent-row small { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.consent-row--off { opacity: .7; }
.consent-always, .consent-never { flex: none; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.consent-always { color: #86efac; background: rgba(37,211,102,.12); }
.consent-never { color: var(--muted); background: rgba(255,255,255,.06); }
.switch { position: relative; flex: none; width: 48px; height: 28px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,.16); transition: background .25s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 3px; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.consent-actions .btn { padding: 0 12px; }
.consent-links { margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted); }
.consent-links a { color: var(--sky); }
@media (max-width: 420px) { .consent-actions { grid-template-columns: 1fr; } }

/* =========================================================
   REGISTRO DEMO
   ========================================================= */
.modal-card--demo { width: min(440px, 100%); }
.reg-google { margin-top: 22px; }
.reg-google-btn { display: flex; justify-content: center; min-height: 44px; }
.reg-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 2px; font-size: 13px; color: var(--muted); }
.reg-or::before, .reg-or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: #c9d2ea; cursor: pointer; line-height: 1.45; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--blue); cursor: pointer; }
.check a { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }
.form-err { padding: 10px 12px; border-radius: 12px; background: rgba(248,113,113,.12); color: #fca5a5; font-size: 14px; font-weight: 500; }
.reg-legal { margin-top: 14px; font-size: 12.5px; color: var(--muted); text-align: center; }

html[data-theme="light"] .cookie-banner { background: #fff; }
html[data-theme="light"] .cookie-head strong { color: #0b1220; }
html[data-theme="light"] .consent-row { background: #f8fafc; }
html[data-theme="light"] .switch span { background: rgba(15,23,42,.18); }
html[data-theme="light"] .consent-never { background: rgba(15,23,42,.06); }
html[data-theme="light"] .check { color: #334155; }
html[data-theme="light"] .form-err { color: #b91c1c; background: #fef2f2; }

/* =========================================================
   PÁGINAS LEGALES
   ========================================================= */
.legal-nav { position: sticky; top: 0; z-index: 50; background: rgba(5,7,13,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.legal-nav .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 68px; }
.legal-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(28px, 4vw, 44px); background: radial-gradient(60% 80% at 80% 0%, rgba(59,130,246,.18), transparent 70%); }
.legal-hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 700; margin: 6px 0 14px; }
.legal-hero p { color: var(--muted); max-width: 60ch; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding-bottom: 100px; }
.legal-toc { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.legal-toc span { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.legal-toc a { padding: 7px 12px; border-radius: 10px; color: #c9d2ea; border-left: 2px solid transparent; }
.legal-toc a:hover { background: rgba(255,255,255,.05); color: #fff; }
.legal-body { min-width: 0; max-width: 760px; }
.legal-summary { padding: 22px 24px; border-radius: var(--r); background: rgba(59,130,246,.08); border: 1px solid rgba(125,211,252,.25); margin-bottom: 36px; }
.legal-summary strong { display: block; font-family: var(--font-d); font-size: 18px; margin-bottom: 10px; }
.legal-summary ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.legal-summary li { display: flex; gap: 10px; color: #dbe5ff; }
.legal-summary li .ic { width: 18px; height: 18px; color: #4ade80; margin-top: 3px; }
.legal-body section { padding: 26px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.legal-body h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 12px; }
.legal-body h3 { font-size: 17px; margin: 18px 0 6px; }
.legal-body p, .legal-body li { color: #c9d2ea; line-height: 1.7; }
.legal-body p + p { margin-top: 10px; }
.legal-body ul { padding-left: 20px; margin: 10px 0 0; display: grid; gap: 6px; }
.legal-body a { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }
.legal-data { display: grid; grid-template-columns: 160px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-top: 12px; }
.legal-data dt, .legal-data dd { margin: 0; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 15px; }
.legal-data dt:first-of-type, .legal-data dd:first-of-type { border-top: 0; }
.legal-data dt { color: var(--muted); background: rgba(255,255,255,.03); }
.legal-data dd { overflow-wrap: anywhere; }
.todo { display: inline-block; padding: 1px 8px; border-radius: 6px; background: rgba(251,191,36,.14); color: #fcd34d; font-size: 14px; }
.table-wrap { overflow-x: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: 16px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.legal-table th, .legal-table td { text-align: left; padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; color: #c9d2ea; }
.legal-table th { border-top: 0; background: rgba(255,255,255,.04); color: var(--text); font-weight: 600; }
.legal-table code { font-size: 13px; color: var(--sky); }
.legal-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 16px; }
.legal-done { color: #86efac; font-weight: 600; font-size: 14px; }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { display: none; }
}
@media (max-width: 560px) {
  .legal-data { grid-template-columns: 1fr; }
  .legal-data dt { border-top: 1px solid var(--line); padding-bottom: 4px; background: transparent; font-size: 13px; }
  .legal-data dd { border-top: 0; padding-top: 0; }
  .legal-data dt:first-of-type { border-top: 0; }
}
html[data-theme="light"] .legal-nav { background: rgba(255,255,255,.9); }
html[data-theme="light"] .legal-body p, html[data-theme="light"] .legal-body li, html[data-theme="light"] .legal-table td, html[data-theme="light"] .legal-toc a, html[data-theme="light"] .legal-summary li { color: #334155; }
html[data-theme="light"] .todo { color: #92400e; background: #fef3c7; }

/* Por qué PYMEX */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why-card { padding: 28px 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s; }
.why-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.why-card h3 { font-size: 20px; margin: 18px 0 8px; }
.why-card p { color: var(--muted); font-size: 15px; }
@media (max-width: 1080px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why { grid-template-columns: 1fr; } .why-card { padding: 22px 20px; } }
html[data-theme="light"] .why-card { background: #fff; }
