/* ═══════════════════════════════════════════════════════════════
   AccionaPro · styles.css
   Paleta: blanco · negro #111113 · azul #2C7CD4 · celeste #33A0F0 · oro "Pro" #F8B814
   (en ese orden de uso; el oro solo como acento: bordes al pasar o seleccionar)
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* orden de uso: blanco > negro > azul > celeste > amarillo (el amarillo solo como acento) */
  --black: #111113;
  --ink: #0C0C0E;
  --navy: var(--black);          /* nombre antiguo: hoy es el negro de marca */
  --navy-2: #1C1C20;
  --blue: #2C7CD4;
  --blue-dk: #0D2F6E;
  --sky: #33A0F0;
  --gold: #F8B814;
  --gold-lt: #FCC424;
  --gold-dk: #E0A100;
  --text: #1E1F22;
  --muted: #5C5F66;
  --silver: #8C8F96;
  --line: #E5E5E1;
  --line-2: #D6D6D1;
  --paper: #F6F6F3;
  --white: #FFFFFF;
  --wa: #25D366;

  --grad: linear-gradient(160deg, #26262B 0%, var(--ink) 100%);
  --grad-gold: linear-gradient(135deg, var(--gold-lt), var(--gold-dk));
  --ring-gold: 0 0 0 1px var(--gold), 0 0 0 4px rgba(248, 184, 20, .18);

  /* Todo el sitio en JetBrains Mono (la letra de la consola) */
  --font-display: "JetBrains Mono", ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  --font-body: "JetBrains Mono", ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;

  --nav-h: 76px;
  --r-xl: 14px;
  --r-lg: 12px;
  --r-md: 10px;
  --r-sm: 8px;
  --r-btn: 6px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05), 0 4px 12px -6px rgba(0, 0, 0, .08);
  --shadow-md: 0 1px 3px rgba(0, 0, 0, .05), 0 18px 40px -24px rgba(0, 0, 0, .22);
  --shadow-lg: 0 28px 70px -32px rgba(0, 0, 0, .4);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --section-y: clamp(88px, 12vw, 168px);
}

/* ─── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
svg { display: block; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(248, 184, 20, .35); color: var(--ink); }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 640px) { .container { padding-inline: 32px; } }

section { position: relative; }

/* ─── Tipografía ───────────────────────────────────────── */
.mono { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.7vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--ink);
  text-wrap: balance;
}
.lead { font-size: clamp(1.06rem, 1.4vw, 1.25rem); line-height: 1.6; color: var(--muted); max-width: 620px; text-wrap: pretty; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 14px; height: 2px; background: var(--gold); }
.eyebrow.on-dark { color: var(--gold-lt); }
.eyebrow.on-dark::before { display: none; }

.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .h2 { max-width: 22ch; margin-bottom: 18px; }
.section-head.center { text-align: center; }
.section-head.center .h2, .section-head.center .lead { margin-inline: auto; }
.section-head.center .h2 { max-width: 26ch; }
.section-head.split { display: grid; gap: 20px; align-items: end; }
@media (min-width: 900px) { .section-head.split { grid-template-columns: 1.2fr 1fr; } .section-head.split .h2 { margin-bottom: 0; } }

.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: var(--r-btn);
  background: var(--white); border: 1px solid var(--line);
  font-size: .78rem; font-weight: 500; color: var(--black);
}
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); animation: livePulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(51, 160, 240, 0); } }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ─── Botones ──────────────────────────────────────────── */
/* esquinas de 6px; al pasar o seleccionar: borde dorado */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 13px 20px; border-radius: var(--r-btn); border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; letter-spacing: -.01em;
  white-space: nowrap; isolation: isolate;
  transition: transform .35s var(--ease-out), box-shadow .3s, background-color .25s, border-color .25s, color .25s;
  will-change: transform;
}
.btn-cta { background: var(--black); color: var(--white); border-color: var(--black); box-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
.btn-cta:hover, .btn-cta:focus-visible { transform: translateY(-2px); border-color: var(--gold); box-shadow: var(--ring-gold), 0 14px 28px -16px rgba(0, 0, 0, .55); outline: none; }
.btn-cta:active { transform: translateY(0); border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.btn-arrow { display: grid; place-items: center; color: var(--gold); flex-shrink: 0; transition: transform .35s var(--ease-out); }
.btn-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn-sm { padding: 9px 14px; font-size: .86rem; gap: 10px; }
.btn-sm .btn-arrow svg { width: 16px; height: 16px; }
.btn-lg { padding: 16px 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-on-dark { background: var(--white); color: var(--black); border-color: var(--white); box-shadow: none; }
.btn-on-dark:hover, .btn-on-dark:focus-visible { color: var(--black); border-color: var(--gold); }
.btn-on-dark .btn-arrow { color: var(--black); }

.round-btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-btn);
  border: 1px solid var(--line-2); background: var(--white); color: var(--black);
  transition: transform .35s var(--ease-out), background-color .25s, color .25s, border-color .25s;
}
.round-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.round-btn:hover { background: var(--black); color: var(--white); border-color: var(--gold); transform: translateY(-2px); }

/* ─── Splash + progreso ────────────────────────────────── */
.splash {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-content: center; gap: 26px; justify-items: center;
  background: var(--white);
  transition: opacity .6s var(--ease), visibility .6s;
  animation: splashSafety .01s 4.5s forwards;
}
.splash-logo { width: 220px; opacity: 0; transform: translateY(10px); animation: splashIn .7s .1s var(--ease-out) forwards; }
.splash-bar { width: 160px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.splash-bar i { display: block; height: 100%; background: var(--grad-gold); transform-origin: left; transform: scaleX(0); animation: splashLoad 1.1s .15s var(--ease) forwards; }
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
html:not(.js) .splash { display: none; }
@keyframes splashIn { to { opacity: 1; transform: none; } }
@keyframes splashLoad { to { transform: scaleX(1); } }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; background: var(--grad-gold); transform-origin: left; transform: scaleX(0); }

/* ─── Nav ──────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: height .45s var(--ease), background-color .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  height: 64px;
  background: rgba(255, 255, 255, .94);
  border-bottom-color: var(--line);
  box-shadow: none;
}
@supports (backdrop-filter: blur(12px)) {
  .nav.is-scrolled { background: rgba(255, 255, 255, .72); backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%); }
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-brand img { height: 34px; width: auto; transition: height .45s var(--ease); }
.nav.is-scrolled .nav-brand img { height: 30px; }
.nav-links { display: none; align-items: center; gap: 4px; }
.nav-links a {
  position: relative; padding: 8px 11px; border-radius: var(--r-btn);
  font-size: .84rem; font-weight: 500; color: var(--muted);
  transition: color .25s, background-color .25s;
}
.nav-links a:hover { color: var(--black); background: rgba(17, 17, 19, .05); }
.nav-links a.is-active { color: var(--navy); }
.nav-links a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn-cta { display: none; }

.lang { display: inline-flex; padding: 3px; border-radius: var(--r-btn); background: rgba(17, 17, 19, .06); }
.lang-btn { padding: 5px 10px; border-radius: var(--r-btn); font-family: var(--font-mono); font-size: .72rem; font-weight: 500; color: var(--muted); transition: background-color .25s, color .25s; }
.lang-btn.is-active { background: var(--navy); color: var(--white); }

.burger { position: relative; width: 44px; height: 44px; border-radius: var(--r-btn); background: var(--black); border: 1px solid var(--black); transition: border-color .25s; }
.burger:hover, .menu-open .burger { border-color: var(--gold); }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--white); transition: transform .45s var(--ease), top .45s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 28px;
  padding: calc(var(--nav-h) + 24px) 24px calc(28px + env(safe-area-inset-bottom));
  background: var(--white);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease-out);
  visibility: hidden;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-family: var(--font-display); font-size: clamp(1.6rem, 7vw, 2.2rem); font-weight: 600; letter-spacing: -.03em;
  color: var(--ink); padding: 10px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.menu-open .mobile-menu nav a { opacity: 1; transform: none; }
.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: .05s; }
.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: .1s; }
.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: .15s; }
.menu-open .mobile-menu nav a:nth-child(5) { transition-delay: .2s; }
.menu-open .mobile-menu nav a:nth-child(6) { transition-delay: .25s; }
.mobile-menu-meta { font-size: .9rem; color: var(--muted); text-align: center; }
.menu-open { overflow: hidden; }

@media (min-width: 1100px) {
  .nav-links { display: flex; }
  .nav-actions .btn-cta { display: inline-flex; }
  .burger, .mobile-menu { display: none; }
}
@media (min-width: 640px) and (max-width: 1099px) { .nav-actions .btn-cta { display: inline-flex; } }

/* ─── Hero ─────────────────────────────────────────────── */
.hero {
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav-h) + 40px) 0 72px;
  display: flex; align-items: center;
  overflow: clip;
  background: var(--white);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
/* sin orbes ni brillos: fondo limpio con una cuadrícula muy suave */
.orb, .hero-glow, .hero-particles { display: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(10px); animation: orbDrift 24s ease-in-out infinite alternate; }
.hero .orb-1 { width: 720px; height: 720px; top: -24%; right: -18%; background: radial-gradient(circle, rgba(51, 160, 240, .34), transparent 64%); }
.hero .orb-2 { width: 560px; height: 560px; bottom: -26%; left: -14%; background: radial-gradient(circle, rgba(44, 124, 212, .20), transparent 64%); animation-duration: 30s; animation-delay: -8s; }
.hero .orb-3 { width: 300px; height: 300px; top: 52%; right: 22%; background: radial-gradient(circle, rgba(248, 184, 20, .22), transparent 66%); animation-duration: 20s; animation-delay: -4s; }
@keyframes orbDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-40px, 30px, 0) scale(1.08); }
  100% { transform: translate3d(30px, -24px, 0) scale(.96); }
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(17, 17, 19, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(17, 17, 19, .045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 62% 42%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 62% 42%, #000 20%, transparent 75%);
}
.hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .75; }
.hero-glow { position: absolute; inset: 0; background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 35%), rgba(51, 160, 240, .16), transparent 62%); transition: background .2s linear; }

.hero-inner { position: relative; z-index: 2; display: grid; gap: 56px; align-items: center; }
.hero-copy { max-width: 680px; }
.hero-copy .chip { margin-bottom: 26px; }
.hero-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.05rem, 5vw, 3.9rem);
  line-height: 1.04; letter-spacing: -.035em; color: var(--ink);
  text-wrap: balance; margin-bottom: 26px;
}
.nowrap { white-space: nowrap; }
.hl { position: relative; display: inline-block; color: var(--blue); white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: .02em; height: .11em; border-radius: 1em;
  background: var(--grad-gold); transform: scaleX(0); transform-origin: left;
  animation: hlLine 1s 1.5s var(--ease-out) forwards;
}
@keyframes hlLine { to { transform: scaleX(1); } }
.hero-sub { font-size: clamp(1.08rem, 1.5vw, 1.28rem); color: var(--muted); max-width: 560px; margin-bottom: 34px; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-bottom: 30px; }
.hero-note { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.hero-note .ico { color: #16A34A; }
.hero-trust { color: var(--silver); }

/* split de palabras del titular */
.split-word { display: inline-block; opacity: 0; transform: translateY(.55em) rotate(2deg); filter: blur(6px); animation: wordIn 1s var(--ease-out) forwards; animation-delay: calc(var(--i) * 60ms + 350ms); }
@keyframes wordIn { to { opacity: 1; transform: none; filter: blur(0); } }

/* visual */
.hero-visual { position: relative; width: min(100%, 440px); margin-inline: auto; padding: 24px 0 40px; }
.hero-photo {
  position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .3)); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.08); animation: kenBurns 18s ease-in-out infinite alternate; }
@keyframes kenBurns { to { transform: scale(1.16) translate(-1.5%, -1%); } }

.glass { background: rgba(255, 255, 255, .9); border: 1px solid rgba(255, 255, 255, .8); box-shadow: 0 26px 60px -24px rgba(17, 17, 19, .45), inset 0 1px 0 rgba(255, 255, 255, .7); }
@supports (backdrop-filter: blur(12px)) {
  .glass { background: rgba(255, 255, 255, .72); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%); }
}
.float-card { position: absolute; border-radius: var(--r-md); padding: 14px 16px; animation: bob 7s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-9px); } }
.float-card strong { display: block; font-family: var(--font-display); font-size: .92rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.float-card small { display: block; font-size: .78rem; color: var(--muted); }
.fc-chat { left: -6%; bottom: -2%; width: min(300px, 82%); animation-delay: -2s; }
.fc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.fc-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--wa); color: var(--white); flex-shrink: 0; }
.fc-avatar svg { width: 18px; height: 18px; fill: currentColor; }
.bubble { position: relative; max-width: 88%; padding: 9px 13px; border-radius: 14px; font-size: .86rem; line-height: 1.4; margin-bottom: 8px; }
.bubble.in { background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--text); }
.bubble.out { margin-left: auto; background: var(--navy); color: var(--white); border-bottom-right-radius: 4px; min-height: 36px; min-width: 64px; }
.bubble.out .bubble-text { display: block; transition: opacity .4s; }
.typing { display: none; gap: 4px; padding: 5px 2px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .85); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
.bubble.out.is-typing .typing { display: flex; }
.bubble.out.is-typing .bubble-text { display: none; }
.fc-tag { display: flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--muted); font-size: .66rem; }
.fc-lead, .fc-cal { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; }
.fc-lead { top: 6%; right: -6%; animation-delay: -4s; }
.fc-cal { top: 42%; right: -10%; animation-delay: -1s; }
.fc-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(44, 124, 212, .12); color: var(--blue); flex-shrink: 0; }
.fc-ico.gold { background: rgba(248, 184, 20, .18); color: #B07A00; }
.fc-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; z-index: 2; transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: 10px; color: var(--silver);
}
.scroll-cue i { width: 1px; height: 38px; background: linear-gradient(var(--silver), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--blue); animation: cue 2s var(--ease) infinite; }
@keyframes cue { to { top: 110%; } }

@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1.3fr .8fr; gap: 56px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { width: 100%; max-width: 430px; margin-right: 0; }
  .scroll-cue { display: flex; }
}
@media (max-width: 560px) {
  .fc-lead { right: -2%; }
  .fc-cal { right: -3%; top: 40%; }
  .fc-chat { left: -3%; }
}

/* ─── Prueba social ────────────────────────────────────── */
.proof { padding: 28px 0 var(--section-y); -webkit-user-select: none; user-select: none; }
.stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 30px 8px 30px 0; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 20px; }
.stat:nth-last-child(-n+2) { border-bottom: 0; }
.stat b {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1; letter-spacing: -.04em; margin-bottom: 10px;
  color: var(--black);
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: .92rem; color: var(--muted); }
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { border-bottom: 0; padding: 40px 28px; }
  .stat:nth-child(odd), .stat:nth-child(even) { padding-left: 28px; padding-right: 28px; border-right: 1px solid var(--line); }
  .stat:first-child { padding-left: 0; }
  .stat:last-child { border-right: 0; }
}

.google-badge {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 28px;
  padding: 12px 18px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-sm);
  font-size: .92rem;
}
.g-logo { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: conic-gradient(#EA4335 0 25%, #FBBC05 0 50%, #34A853 0 75%, #4285F4 0); color: var(--white); font-weight: 700; font-size: .85rem; }
.stars { color: var(--gold); letter-spacing: 2px; }
.google-badge a { color: var(--blue); font-weight: 600; }

/* cinta decorativa: nunca se pausa ni se puede seleccionar o tocar */
.marquee { margin-top: clamp(56px, 8vw, 96px); overflow: hidden; pointer-events: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.marquee-label { text-align: center; color: var(--silver); margin-bottom: 22px; }
.marquee-track {
  display: flex; width: max-content;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  animation: marquee 48s linear infinite;
}
.marquee ul { display: flex; flex-shrink: 0; }
.marquee li {
  display: flex; align-items: center; gap: 28px; padding-right: 28px;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: -.02em;
  color: var(--silver); white-space: nowrap;
}
.marquee li::after { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── "Cómo funciona": se reproduce sola en bucle (main.js → initStory) ─── */
.story {
  padding: var(--section-y) 0; overflow: clip;
  background: var(--paper);
}
.story-sticky { position: relative; }
.story-inner { position: relative; display: grid; gap: 28px; }
.story-copy .eyebrow { margin-bottom: 10px; }
.story-copy .h2 { font-size: clamp(1.35rem, 5.2vw, 2.9rem); max-width: 22ch; }
.story-lead { display: none; color: var(--muted); margin-top: 14px; max-width: 420px; }

/* móvil: título → teléfono → tarjeta del paso, apilados y sin encimarse */
@media (max-width: 899px) {
  .story-inner { display: flex; flex-direction: column; gap: 0; }
  .story-copy { display: contents; }
  .story-stage { order: 2; margin: 18px auto 0; }
  /* las 5 tarjetas comparten la misma celda: el alto lo pone la más larga y nunca tapan el teléfono */
  .story-caps { order: 3; position: relative; display: grid; margin-top: 14px; flex-shrink: 0; }
  .story-caps .cap { position: relative; left: auto; right: auto; bottom: auto; grid-area: 1 / 1; }
}
.story-caps { z-index: 5; }
/* barra de progreso del paso activo (como un video) */
.cap::after {
  content: ""; position: absolute; left: 20px; right: 20px; bottom: 10px; height: 2px; border-radius: 2px;
  background: var(--blue); transform-origin: left; transform: scaleX(0);
}
.cap.is-on::after { animation: capFillX var(--step-dur, 3600ms) linear forwards; }
@keyframes capFillX { to { transform: scaleX(1); } }
@keyframes capFillY { to { transform: scaleY(1); } }
.cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 20px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line); box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(18px); pointer-events: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease-out);
}
@supports (backdrop-filter: blur(12px)) { .cap { background: rgba(255, 255, 255, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); } }
.cap.is-on { opacity: 1; transform: none; pointer-events: auto; }
.cap-num { color: var(--blue); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cap-num::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.cap h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -.025em; color: var(--ink); margin-bottom: 4px; }
.cap p { font-size: .95rem; color: var(--muted); line-height: 1.5; }

.story-stage {
  position: relative; align-self: center; justify-self: center;
  width: min(92vw, 440px); aspect-ratio: 1;
  perspective: 1200px;
  container-type: inline-size; /* la letra del teléfono escala con el escenario */
}
.story-path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.path-base { fill: none; stroke: rgba(17, 17, 19, .12); stroke-width: 2; stroke-dasharray: 4 8; }
.path-draw { fill: none; stroke: url(#pathGrad); stroke-width: 3; stroke-linecap: round; }

.node {
  position: absolute; z-index: 3; transform: translate(-50%, -50%) scale(.92);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 8px; border-radius: var(--r-btn);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .74rem; font-weight: 600; color: var(--muted); white-space: nowrap;
  transition: transform .6s var(--ease-out), color .4s, box-shadow .5s, border-color .4s;
}
.node-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--line); transition: background .4s, box-shadow .4s; }
.node.is-on { transform: translate(-50%, -50%) scale(1.04); color: var(--black); border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 12px 26px -14px rgba(0, 0, 0, .35); }
.node.is-on .node-dot { background: var(--black); box-shadow: 0 0 0 4px rgba(17, 17, 19, .1); }
.node.is-on .node-dot.wa { background: var(--wa); box-shadow: 0 0 0 5px rgba(37, 211, 102, .2); }
.node.is-on .node-dot.gold { background: var(--grad-gold); box-shadow: 0 0 0 5px rgba(248, 184, 20, .22); }
.n0 { left: 15.3%; top: 21.3%; }
.n1 { left: 84.7%; top: 25%; }
.n2 { left: 78.3%; top: 75.3%; }
.n3 { left: 19.7%; top: 78.3%; }
.n4 { left: 8.5%; top: 50%; }

.phone {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  height: 94%; aspect-ratio: 9 / 18.6; max-width: 56%;
  transform: translate(-50%, -50%) rotateY(var(--ry, -14deg)) rotateX(var(--rx, 6deg));
  transform-style: preserve-3d;
  border-radius: 13% / 6.4%; padding: 3.2%;
  background: linear-gradient(145deg, #2A2A2F, var(--ink));
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .6), inset 0 0 0 1.5px rgba(255, 255, 255, .08);
}
.phone-notch { position: absolute; top: 3.6%; left: 50%; width: 28%; height: 2.6%; margin-left: -14%; border-radius: 99px; background: var(--ink); z-index: 3; }
.phone-screen { position: relative; height: 100%; border-radius: 10.5% / 5.2%; overflow: hidden; background: #EFEFEC; display: flex; flex-direction: column; font-size: clamp(.5rem, 2.75cqi, .74rem); }
.ph-top { display: flex; align-items: center; gap: .7em; padding: 2.6em 1em .8em; background: var(--navy); color: var(--white); }
.ph-top b { display: block; font-size: 1.05em; }
.ph-top small { display: block; opacity: .7; font-size: .85em; }
.ph-av { display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%; background: var(--grad-gold); color: var(--navy); font-weight: 700; }
.ph-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: .6em; padding: 1em .85em; overflow: hidden; }
.ph-msg { max-width: 86%; padding: .65em .85em; border-radius: 1em; line-height: 1.35; opacity: 0; transform: translateY(8px) scale(.97); transition: opacity .45s var(--ease), transform .55s var(--ease-out); }
.ph-msg.in { background: var(--white); color: var(--text); border-bottom-left-radius: .3em; }
.ph-msg.out { align-self: flex-end; background: #D9F5E0; color: #0F3D24; border-bottom-right-radius: .3em; }
.ph-badge { display: block; font-size: .8em; color: #13804A; margin-bottom: .25em; letter-spacing: .06em; }
.ph-card { border-radius: 1em; padding: .85em .95em; background: var(--white); box-shadow: 0 8px 20px -10px rgba(17, 17, 19, .35); opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .5s var(--ease), transform .6s var(--ease-out); }
.ph-card-t { display: block; font-size: .8em; color: var(--blue); margin-bottom: .5em; letter-spacing: .06em; }
.ph-card dl { display: grid; gap: .3em; font-size: .9em; }
.ph-card dl div { display: flex; justify-content: space-between; gap: .5em; }
.ph-card dt { color: var(--muted); flex-shrink: 0; }
.ph-card dd { font-weight: 600; color: var(--ink); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-card.cal { background: var(--navy); color: var(--white); }
.ph-card.cal .ph-card-t { color: var(--gold-lt); }
.ph-cal-big { font-family: var(--font-display); font-weight: 600; font-size: 1.6em; letter-spacing: -.02em; }
.ph-cal-sub { opacity: .75; }
.ph-msg.show, .ph-card.show { opacity: 1; transform: none; animation: phIn .6s var(--ease-out); }
.ph-body > [data-step-min]:not(.show) { display: none; }
@keyframes phIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }
/* paso 5: mini página del restaurante con contenido real */
.ph-web {
  position: absolute; inset: 0; z-index: 4; background: var(--white);
  display: flex; flex-direction: column; gap: .75em; padding: 2.8em .9em .9em;
  clip-path: inset(100% 0 0 0); transition: clip-path .8s var(--ease-out);
}
.ph-web.show { clip-path: inset(0 0 0 0); }
.ph-web-nav { display: flex; align-items: center; gap: .55em; }
.ph-web-nav i { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: .6em; background: var(--grad); color: var(--white); font-style: normal; font-weight: 700; font-size: .85em; }
.ph-web-nav b { font-size: 1.05em; color: var(--ink); }
.ph-web-burger { margin-left: auto; display: grid; gap: .3em; width: 1.3em; }
.ph-web-burger s { display: block; height: .14em; border-radius: 1em; background: var(--ink); }
.ph-web-hero { display: grid; gap: .45em; padding: 1em; border-radius: 1em; color: var(--white); background: radial-gradient(circle at 85% 15%, rgba(248, 184, 20, .3), transparent 55%), var(--ink); }
.ph-web-kicker { font-size: .78em; color: var(--gold-lt); letter-spacing: .02em; }
.ph-web-h { font-size: 1.25em; line-height: 1.2; letter-spacing: -.02em; }
.ph-web-btn { justify-self: start; margin-top: .3em; padding: .5em 1.1em; border-radius: var(--r-btn); background: var(--grad-gold); color: var(--navy); font-weight: 700; font-size: .9em; box-shadow: 0 0 0 0 rgba(248, 184, 20, .6); animation: ctaPing 1.6s infinite; }
@keyframes ctaPing { 0% { box-shadow: 0 0 0 0 rgba(248, 184, 20, .7); } 70% { box-shadow: 0 0 0 .8em rgba(248, 184, 20, 0); } 100% { box-shadow: 0 0 0 0 rgba(248, 184, 20, 0); } }
.ph-web-label { font-size: .75em; font-weight: 700; color: var(--blue); letter-spacing: .08em; text-transform: uppercase; }
.ph-web-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .55em; }
.ph-web-item { display: grid; gap: .15em; padding: .55em; border-radius: .8em; background: var(--paper); border: 1px solid var(--line); }
.ph-web-item i { display: grid; place-items: center; height: 2.3em; margin-bottom: .2em; border-radius: .55em; background: var(--white); font-style: normal; font-size: 1.2em; }
.ph-web-item b { font-size: .85em; color: var(--ink); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-web-item small { font-size: .78em; color: var(--blue); font-weight: 700; }
.ph-web-toast {
  display: flex; align-items: center; gap: .6em; margin-top: auto; padding: .65em .75em; border-radius: .9em;
  background: #ECFDF3; border: 1px solid rgba(22, 163, 74, .35); opacity: 0; transform: translateY(1em);
}
.ph-web.show .ph-web-toast { animation: toastIn .5s .7s var(--ease-out) forwards; }
@keyframes toastIn { to { opacity: 1; transform: none; } }
.ph-web-ok { display: grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: 50%; background: #16A34A; color: var(--white); font-weight: 700; flex-shrink: 0; }
.ph-web-toast b { display: block; font-size: .82em; color: #14532D; }
.ph-web-toast small { display: block; font-size: .74em; color: #3F6B50; }
/* teléfono chico: 2 platos y aviso compacto, así todo entra en la pantalla */
@media (max-width: 899px) {
  .ph-web { gap: .55em; }
  .ph-web-hero { padding: .8em; }
  .ph-web-item:nth-child(n+3) { display: none; }
  .ph-web-toast { padding: .5em .6em; }
  .ph-web-toast > span:last-child { min-width: 0; }
  .ph-web-toast b, .ph-web-toast small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* fondo de chat con textura, para que la pantalla nunca se vea vacía */
.ph-body { background-image: radial-gradient(rgba(17, 17, 19, .07) 1px, transparent 1.3px); background-size: 1.1em 1.1em; }

.story-dots { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: none; flex-direction: column; gap: 10px; }
.story-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(17, 17, 19, .18); transition: background .4s, transform .4s var(--ease-out), height .4s var(--ease-out); }
.story-dots i.is-on { background: var(--black); height: 24px; border-radius: 4px; }

@media (min-width: 900px) {
  .story-inner { grid-template-columns: .9fr 1.1fr; align-items: center; gap: 40px; }
  .story-copy .h2 { font-size: clamp(1.8rem, 2.9vw, 2.7rem); }
  .story-lead { display: block; }
  .story-caps { position: relative; left: auto; right: auto; bottom: auto; margin-top: 36px; display: grid; gap: 4px; }
  .cap {
    position: relative; opacity: .38; transform: none; pointer-events: auto;
    background: transparent; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    padding: 14px 0 14px 22px; border-radius: 0; border-left: 2px solid var(--line);
    transition: opacity .5s var(--ease), border-color .5s;
  }
  .cap.is-on { opacity: 1; cursor: default; }
  .cap { cursor: pointer; }
  .cap::after { left: -2px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; transform-origin: top; transform: scaleY(0); background: var(--black); }
  .cap.is-on::after { animation-name: capFillY; }
  .cap p { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .6s var(--ease-out), opacity .5s var(--ease), margin .5s; }
  .cap.is-on p { max-height: 6em; opacity: 1; margin-top: 4px; }
  .cap h3 { font-size: 1.2rem; margin-bottom: 0; }
  .cap-num { margin-bottom: 2px; }
  .story-stage { width: min(44vw, 600px); margin-top: 0; }
  .phone-screen { font-size: clamp(.5rem, 2.05cqi, .74rem); }
  .story-dots { display: flex; }
  .node { font-size: .82rem; padding: 8px 14px 8px 9px; }
}

/* ─── Servicios (tarjetas apiladas) ────────────────────── */
.services { padding: var(--section-y) 0; background: var(--white); }
/* flex (no grid): en una grilla el sticky queda atrapado en su propia fila */
.svc-stack { display: flex; flex-direction: column; gap: 28px; padding-bottom: 4vh; }
.svc-card {
  --s: 1; --dim: 0;
  position: relative;
  display: grid; overflow: hidden;
  border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  transform: scale(var(--s)); transform-origin: 50% 0;
  transition: box-shadow .5s var(--ease), border-color .5s;
}
.svc-card::after { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: var(--dim); pointer-events: none; border-radius: inherit; }
.svc-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.svc-card:hover .svc-media img { transform: scale(1.06); }
.svc-body { position: relative; padding: 26px 24px 30px; }
.svc-num { position: absolute; top: 28px; right: 24px; color: var(--silver); }
.svc-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-sm); background: var(--black); color: var(--white); margin-bottom: 18px; }
.svc-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc-body h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.5vw, 1.95rem); letter-spacing: -.03em; line-height: 1.08; color: var(--ink); margin-bottom: 12px; }
.svc-body > p { color: var(--muted); margin-bottom: 18px; }
.ticks { display: grid; gap: 9px; margin-bottom: 24px; }
.ticks li { position: relative; padding-left: 30px; font-size: .97rem; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(44, 124, 212, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C7CD4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.svc-link { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; color: var(--navy); padding-bottom: 4px; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 2px no-repeat; transition: background-size .45s var(--ease-out), gap .35s var(--ease-out); }
.svc-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.svc-link:hover { background-size: 100% 2px; gap: 14px; }

/* luz que sigue al cursor */
:where([data-spotlight]) { position: relative; } /* :where = no pisa el sticky de .svc-card */
[data-spotlight]::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), rgba(17, 17, 19, .035), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
[data-spotlight]:hover::before { opacity: 1; }

@media (min-width: 900px) {
  /* apilado sticky solo en escritorio: en móvil la tarjeta es más alta que la pantalla */
  .svc-card { position: sticky; top: calc(var(--nav-h) + 12px); grid-template-columns: 1fr 1fr; min-height: min(560px, 72vh); }
  .svc-card:nth-child(2) { top: calc(var(--nav-h) + 26px); }
  .svc-card:nth-child(3) { top: calc(var(--nav-h) + 40px); }
  .svc-card:nth-child(4) { top: calc(var(--nav-h) + 54px); }
  .svc-media { aspect-ratio: auto; }
  .svc-body { display: flex; flex-direction: column; justify-content: center; padding: 48px 52px; }
  .svc-num { top: 40px; right: 44px; }
  .svc-card:nth-child(even) .svc-media { order: 2; }
}

/* ─── Consola en vivo ──────────────────────────────────── */
.console {
  padding: var(--section-y) 0; overflow: hidden; color: #D4D4D8;
  background: radial-gradient(ellipse 60% 50% at 85% 20%, rgba(44, 124, 212, .12), transparent 70%), var(--ink);
}
.circuit { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .35; pointer-events: none; }
.console-inner { position: relative; display: grid; gap: 48px; align-items: center; }
.console .h2 { color: var(--white); max-width: 17ch; margin-bottom: 20px; }
.console .lead { color: #A8A8B0; margin-bottom: 32px; }
.console-win {
  border-radius: var(--r-lg); overflow: hidden;
  background: rgba(24, 24, 27, .85); border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02) inset;
}
@supports (backdrop-filter: blur(12px)) { .console-win { background: rgba(24, 24, 27, .65); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); } }
.console-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.console-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3A3A40; }
.console-bar i:first-child { background: #FF6159; } .console-bar i:nth-child(2) { background: var(--gold); } .console-bar i:nth-child(3) { background: #28C840; }
.console-bar span { margin-left: 10px; color: #8A8A93; font-size: .7rem; text-transform: none; letter-spacing: .02em; }
.console-log { min-height: 300px; padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; text-transform: none; letter-spacing: 0; font-size: .78rem; }
.log-row { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 9px 12px; border-radius: 10px; animation: logIn .6s var(--ease-out); }
.log-row:last-child { background: rgba(255, 255, 255, .05); }
.log-ts { color: #74747C; }
.log-agent { color: var(--sky); }
.log-msg { grid-column: 1 / -1; color: #E4E4E7; line-height: 1.45; }
.log-msg.hi { color: var(--gold-lt); }
@keyframes logIn { from { opacity: 0; transform: translateY(12px); } }
.console-foot { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-top: 1px solid rgba(255, 255, 255, .08); color: #9A9AA3; font-size: .7rem; }
@media (min-width: 900px) {
  .console-inner { grid-template-columns: .9fr 1.1fr; gap: 72px; }
  .log-row { grid-template-columns: 74px 128px 1fr; }
  .log-msg { grid-column: auto; }
}

/* ─── Proceso ──────────────────────────────────────────── */
.process { padding: var(--section-y) 0; background: var(--paper); }
.proc-band { position: relative; height: clamp(240px, 46vh, 460px); border-radius: var(--r-xl); overflow: hidden; margin-bottom: 64px; box-shadow: var(--shadow-md); }
.proc-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .35)); }
.proc-band img { width: 100%; height: 118%; object-fit: cover; will-change: transform; transform: translate3d(0, var(--py, -6%), 0); }
/* Circuito de 4 pasos: main.js ubica la línea entre el primer y último ícono, mueve
   la luz (.pipe-pulse) y enciende cada paso (.is-lit) cuando la luz llega */
.pipe { position: relative; padding: 40px 22px 38px; border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.pipe-grid { position: relative; z-index: 2; display: grid; gap: 34px; }
.pipe-node { display: grid; grid-template-columns: 64px 1fr; gap: 0 18px; align-items: start; align-content: start; }
.pipe-dot {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px;
  background: var(--white); border: 1px solid #DCDCD7;
  transition: border-color .45s, box-shadow .45s, background-color .45s, transform .45s var(--ease-out);
}
.pipe-dot svg { width: 26px; height: 26px; fill: none; stroke: var(--silver); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .45s; }
.pipe-dot::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 2px solid var(--gold); opacity: 0; pointer-events: none; }
.pipe-node.is-lit .pipe-dot { border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 1px var(--gold), 0 10px 24px -14px rgba(0, 0, 0, .35); transform: scale(1.05); }
.pipe-node.is-lit .pipe-dot svg { stroke: var(--black); }
.pipe-node.is-lit .pipe-dot::after { animation: pipePing .9s var(--ease-out); }
@keyframes pipePing { from { opacity: .75; transform: scale(1); } to { opacity: 0; transform: scale(1.5); } }
.pipe-step { color: var(--blue); font-size: .68rem; letter-spacing: .16em; margin: 6px 0 6px; }
.pipe-node h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; letter-spacing: -.02em; color: var(--ink); margin-bottom: 6px; }
.pipe-node p:not(.pipe-step) { color: var(--muted); font-size: .88rem; line-height: 1.55; }
.pipe-line { position: absolute; z-index: 1; width: 2px; height: 2px; border-radius: 2px; background: rgba(17, 17, 19, .1); }
.pipe-fill { position: absolute; inset: 0; border-radius: inherit; background: var(--blue); transform-origin: 0 0; transform: scaleX(0); }
.pipe.is-vertical .pipe-fill { background: var(--blue); transform: scaleY(0); }
.pipe-pulse {
  position: absolute; left: 0; top: 0; z-index: 1; width: 52px; height: 14px; margin: -7px 0 0 -26px; border-radius: 14px;
  background: radial-gradient(ellipse at center, #fff 0 14%, rgba(248, 184, 20, .9) 32%, rgba(248, 184, 20, 0) 72%);
  opacity: 0; pointer-events: none; will-change: transform;
}
.pipe.is-vertical .pipe-pulse { width: 14px; height: 52px; margin: -26px 0 0 -7px; }
@media (min-width: 900px) {
  .pipe { padding: 48px 24px 44px; }
  .pipe-grid { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .pipe-node { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 0 16px; }
  .pipe-dot { margin-bottom: 18px; }
}

/* ─── Proyectos ────────────────────────────────────────── */
.projects { padding: var(--section-y) 0; background: var(--white); }
.proj-grid { display: grid; gap: 64px 40px; }
.proj { display: grid; gap: 26px; }
.proj-media { position: relative; display: block; padding: 0 12% 7% 0; transform-style: preserve-3d; transition: transform .7s var(--ease-out); }
.browser { position: relative; border-radius: 16px; overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-md); transition: box-shadow .6s var(--ease-out); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--paper); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #D4D4D0; }
.browser-bar > span { margin-left: 8px; padding: 3px 12px; border-radius: 99px; background: var(--white); border: 1px solid var(--line); font-size: .7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease-out); }
.mini-phone {
  position: absolute; right: 0; bottom: 0; width: 26%; aspect-ratio: 420 / 909;
  border-radius: 18px; padding: 5px; background: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
  transition: transform .7s var(--ease-out);
}
.mini-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 13px; }
.proj:hover .browser { box-shadow: var(--shadow-lg); }
.proj:hover .browser img { transform: scale(1.04); }
.proj:hover .mini-phone { transform: translateY(-12px) rotate(-2deg); }
.proj-info h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; letter-spacing: -.03em; color: var(--ink); }
.proj-tag { color: var(--blue); margin: 6px 0 10px; }
.proj-info > p:not(.proj-tag) { color: var(--muted); margin-bottom: 12px; max-width: 46ch; }
.proj-link { font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .3s, color .3s; }
.proj-link:hover { color: var(--blue); border-color: var(--blue); }
/* proyecto privado: solo vista previa, sin enlace ni dirección; las capturas no se pueden abrir ni arrastrar */
.proj-private .proj-media { cursor: default; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.proj-private .proj-media img { pointer-events: none; }
.browser-lock { display: inline-flex; align-items: center; gap: 6px; }
.browser-lock svg, .proj-lock svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.proj-lock { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .66rem; }
.proj-lock svg { width: 14px; height: 14px; color: var(--blue); }
@media (min-width: 900px) {
  .proj-grid { grid-template-columns: 1fr 1fr; }
  .proj:nth-child(even) { margin-top: 120px; }
}

/* ─── Agentes en acción: demos de 30 s (main.js → initAgents) ─── */
.agents { padding: var(--section-y) 0; background: var(--paper); }
/* pasos: 1 eliges el rubro → 2 ves la demo de su agente */
.ag-step { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ag-step + .ag-stage { margin-top: 0; }
#ag-demo { margin-top: clamp(26px, 4vw, 40px); scroll-margin-top: 90px; }
.ag-step-n {
  display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: var(--r-btn);
  background: var(--black); color: var(--white); font-family: var(--font-mono); font-size: .82rem; font-weight: 600;
}
.ag-step b { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem, 2vw, 1.3rem); letter-spacing: -.02em; color: var(--ink); line-height: 1.25; }
.ag-step small { display: block; font-size: .78rem; color: var(--muted); }

/* rubros: cada tarjeta es la pestaña de su demo (data-agent) */
.rubro-grid {
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory;
  margin-inline: -20px; padding: 6px 20px 16px; scroll-padding-inline: 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 36px), transparent);
          mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 36px), transparent);
}
.rubro-grid::-webkit-scrollbar { display: none; }
.rubro {
  flex: 0 0 min(216px, 62vw); scroll-snap-align: center;
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 16px 15px 14px; text-align: left;
  border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
}
.rubro:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.rubro-ico { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 4px; border-radius: var(--r-sm); background: var(--paper); color: var(--blue); transition: background .3s, color .3s; }
.rubro-ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rubro b { font-size: .88rem; color: var(--ink); line-height: 1.3; }
.rubro small { font-size: .74rem; color: var(--muted); line-height: 1.45; margin-bottom: 8px; }
.rubro-agent { margin-top: auto; padding: 3px 9px; border-radius: var(--r-btn); background: var(--paper); border: 1px solid var(--line); font-size: .62rem; letter-spacing: .04em; color: var(--navy); }
.rubro-go { padding-top: 10px; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.rubro-go .go-on { display: none; align-items: center; gap: 6px; }
.rubro-go .go-on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: rubroPulse 1.4s ease-in-out infinite; }
.rubro.is-on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 16px 34px -20px rgba(0, 0, 0, .35); }
.rubro.is-on .rubro-ico { background: var(--black); color: var(--white); }
.rubro.is-on .rubro-agent { background: rgba(44, 124, 212, .1); border-color: rgba(44, 124, 212, .3); color: var(--blue); }
.rubro.is-on .go-ver { display: none; }
.rubro.is-on .go-on { display: inline-flex; }
@keyframes rubroPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@media (min-width: 640px) { .rubro-grid { margin-inline: -32px; padding-inline: 32px; scroll-padding-inline: 32px; } }
@media (min-width: 900px) {
  .rubro-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; overflow: visible; margin-inline: 0; padding: 0; -webkit-mask-image: none; mask-image: none; }
}
@media (min-width: 1200px) { .rubro-grid { grid-template-columns: repeat(6, 1fr); } }

.ag-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }

/* reproductor (la "pantalla" del video) */
.demo { position: relative; display: flex; flex-direction: column; border-radius: var(--r-xl); overflow: hidden; background: var(--ink); color: #E4E4E7; border: 1px solid rgba(255, 255, 255, .08); box-shadow: var(--shadow-lg); }
.demo-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.demo-av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--grad-gold); color: var(--navy); font-weight: 700; font-size: .82rem; flex-shrink: 0; }
.demo-who { min-width: 0; }
.demo-who b { display: block; color: var(--white); font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-who small { display: flex; align-items: center; gap: 6px; font-size: .7rem; color: #9A9AA3; }
.demo-top .ag-channel { margin-left: auto; flex-shrink: 0; }
.demo-chat {
  height: 420px; overflow-y: auto; scrollbar-width: none; scroll-behavior: smooth;
  display: flex; flex-direction: column; gap: 10px; padding: 18px 16px 24px;
  background: #141416;
}
.demo-chat::-webkit-scrollbar { display: none; }
.dm { max-width: 84%; padding: 10px 13px; border-radius: 14px; font-size: .82rem; line-height: 1.5; animation: dmIn .45s var(--ease-out); }
.dm.in { align-self: flex-start; background: #26262B; color: #E9E9EC; border-bottom-left-radius: 4px; }
.dm.out { align-self: flex-end; background: var(--blue); color: var(--white); border-bottom-right-radius: 4px; }
.dm-tag { display: block; font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; opacity: .72; margin-bottom: 3px; }
.dm-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.dm-btns span { padding: 5px 11px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .45); font-size: .72rem; }
.dm.card { align-self: flex-end; width: min(84%, 290px); padding: 12px 14px; background: var(--white); color: var(--ink); border-bottom-right-radius: 4px; }
.dm-card-t { display: block; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 7px; }
.dm.card ul { display: grid; gap: 3px; font-size: .78rem; }
.dm.card.ok .dm-card-t { color: #15803D; }
.dm.card.pay .dm-card-t { color: #A16207; }
.dm.card.order li:last-child { margin-top: 4px; padding-top: 5px; border-top: 1px dashed var(--line); font-weight: 700; }
.dm-pay { display: block; margin-top: 9px; padding: 7px; border-radius: 9px; background: var(--navy); color: var(--white); text-align: center; font-weight: 600; font-size: .76rem; }
.dm.file { align-self: flex-start; display: flex; align-items: center; gap: 8px; background: #26262B; color: #E9E9EC; }
.dm.file svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dm-divider { align-self: center; padding: 4px 12px; border-radius: 99px; background: rgba(255, 255, 255, .07); color: #9A9AA3; font-size: .68rem; letter-spacing: .06em; animation: dmIn .45s var(--ease-out); }
.dm.typing { align-self: flex-end; display: flex; gap: 4px; padding: 13px 14px; background: var(--blue); }
.dm.typing.in { align-self: flex-start; background: #26262B; border-bottom-left-radius: 4px; } /* el cliente escribiendo */
.dm.typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .85); animation: blink 1.2s infinite; }
.dm.typing i:nth-child(2) { animation-delay: .15s; }
.dm.typing i:nth-child(3) { animation-delay: .3s; }
.dm.no-anim, .dm-divider.no-anim { animation: none; }
@keyframes dmIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }

.demo-unmute {
  position: absolute; top: 80px; right: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px; border-radius: var(--r-btn); background: rgba(255, 255, 255, .95); color: var(--navy);
  font-weight: 600; font-size: .78rem; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); animation: unmuteRing 2.6s infinite;
}
.demo-unmute svg, .demo-voice svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.demo.voice-on .demo-unmute, .demo.no-voice .demo-unmute, .demo.no-voice .demo-voice { display: none; }
@media (max-width: 899px) { .demo-unmute { top: auto; right: auto; left: 14px; bottom: 76px; } } /* lejos de los botones flotantes */
@keyframes unmuteRing { 0% { box-shadow: 0 0 0 0 rgba(248, 184, 20, .55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(248, 184, 20, 0); } }

.demo-end {
  position: absolute; left: 0; right: 0; top: 69px; bottom: 61px; z-index: 4;
  display: grid; place-content: center; justify-items: center; gap: 16px; padding: 24px; text-align: center;
  background: rgba(0, 0, 0, .86); animation: dmIn .4s var(--ease-out);
}
.demo-end-t { color: var(--white); font-weight: 600; max-width: 26ch; }
.demo-end-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.demo-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--r-btn); border: 1px solid rgba(255, 255, 255, .3); color: var(--white); font-weight: 600; font-size: .82rem; transition: background-color .25s, transform .3s var(--ease-out); }
.demo-btn:hover { background: rgba(255, 255, 255, .1); border-color: var(--gold); transform: translateY(-2px); }
.demo-btn.primary { background: var(--white); color: var(--black); border-color: var(--white); }
.demo-btn.primary:hover { background: var(--white); border-color: var(--gold); }
.demo-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.demo-count { font-family: var(--font-mono); font-size: .72rem; opacity: .7; }

.demo-controls { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #0C0C0E; border-top: 1px solid rgba(255, 255, 255, .07); }
.demo-play, .demo-voice { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-btn); background: rgba(255, 255, 255, .08); color: var(--white); flex-shrink: 0; transition: background-color .25s; }
.demo-play:hover, .demo-voice:hover { background: rgba(255, 255, 255, .16); }
.demo-play svg { width: 15px; height: 15px; fill: currentColor; }
.demo-play .i-play, .demo.is-paused .demo-play .i-pause, .demo-voice .i-sound, .demo.voice-on .demo-voice .i-muted { display: none; }
.demo.is-paused .demo-play .i-play, .demo.voice-on .demo-voice .i-sound { display: block; }
.demo.voice-on .demo-voice { background: var(--blue); }
.demo-bar { position: relative; flex: 1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); cursor: pointer; }
.demo-bar::before { content: ""; position: absolute; inset: -12px 0; }
.demo-bar i { position: absolute; inset: 0; border-radius: inherit; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.demo-time { color: #9A9AA3; font-size: .68rem; letter-spacing: .02em; text-transform: none; white-space: nowrap; }
.demo-tag { padding: 3px 8px; border-radius: 6px; background: rgba(248, 184, 20, .16); color: var(--gold-lt); font-size: .6rem; }

/* panel de información del agente */
.ag-info { padding: 26px 22px; border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
/* el botón puede bajar a 2 líneas: en inglés o traducido no debe ensanchar la demo */
.ag-info .btn { max-width: 100%; white-space: normal; text-align: left; line-height: 1.25; }
.ag-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.ag-channel { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--r-btn); font-family: var(--font-mono); font-size: .64rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.ag-channel.whatsapp { background: rgba(37, 211, 102, .14); color: #138A43; }
.ag-channel.instagram { background: rgba(193, 53, 132, .12); color: #A12D6B; }
.demo .ag-channel.whatsapp { background: rgba(37, 211, 102, .16); color: #5BE897; }
.demo .ag-channel.instagram { background: rgba(245, 138, 198, .16); color: #F7A1D2; }
.ag-demo-of { padding: 4px 10px; border-radius: var(--r-btn); border: 1px solid var(--line); color: var(--muted); font-size: .62rem; text-transform: none; letter-spacing: .02em; }
.ag-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.45rem, 2.4vw, 1.95rem); letter-spacing: -.03em; color: var(--ink); margin-bottom: 8px; }
.ag-tagline { font-weight: 600; color: var(--navy); line-height: 1.5; margin-bottom: 10px; }
.ag-desc { color: var(--muted); font-size: .88rem; margin-bottom: 20px; }
.ag-label { color: var(--blue); font-size: .64rem; letter-spacing: .14em; margin-bottom: 10px; }
.ag-tasks { display: grid; gap: 8px; margin-bottom: 12px; }
.ag-task { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); font-size: .82rem; line-height: 1.35; transition: border-color .4s, background-color .4s, color .4s; }
.ag-task-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--white); border: 1px solid var(--line); color: var(--silver); font-family: var(--font-mono); font-size: .7rem; flex-shrink: 0; transition: background-color .4s, border-color .4s, color .4s; }
.ag-task-t { margin-left: auto; padding-left: 8px; color: var(--silver); font-family: var(--font-mono); font-size: .66rem; opacity: 0; transition: opacity .4s; }
.ag-task.is-done { border-color: rgba(44, 124, 212, .45); background: #FAFAF8; color: var(--ink); }
.ag-task.is-done .ag-task-n { background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--blue); color: transparent; }
.ag-task.is-done .ag-task-t { opacity: 1; }
.ag-task.is-new { animation: taskPop .7s var(--ease-out); }
@keyframes taskPop { from { box-shadow: 0 0 0 0 rgba(51, 160, 240, .5); } to { box-shadow: 0 0 0 10px rgba(51, 160, 240, 0); } }
.ag-result { display: none; align-items: center; gap: 12px; margin-bottom: 18px; padding: 12px 14px; border-radius: 14px; background: #ECFDF3; border: 1px solid rgba(22, 163, 74, .3); }
.ag-result.is-on { display: flex; animation: dmIn .5s var(--ease-out); }
.ag-result-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #16A34A; color: var(--white); flex-shrink: 0; }
.ag-result-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ag-result b { display: block; color: #14532D; font-size: .88rem; }
.ag-result small { display: block; color: #3F6B50; font-size: .76rem; line-height: 1.45; }
.ag-rubros { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.ag-rubros li { padding: 5px 11px; border-radius: var(--r-btn); background: var(--paper); border: 1px solid var(--line); color: var(--text); font-size: .72rem; }

@media (min-width: 1000px) {
  .ag-stage { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 28px; }
  .demo-chat { height: 470px; }
  .ag-info { padding: 30px 28px; }
}

/* ─── FAQ ──────────────────────────────────────────────── */
.faq { padding: var(--section-y) 0; background: var(--paper); }
.faq-grid { display: grid; gap: 40px; }
.faq-head .h2 { margin-bottom: 28px; max-width: 18ch; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 24px 48px 24px 0;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem, 1.6vw, 1.22rem); letter-spacing: -.02em; color: var(--ink);
  transition: color .3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: var(--r-btn);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111113' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  border: 1px solid var(--line); transition: transform .45s var(--ease-out), background-color .3s;
}
.faq-item[open] summary::after { transform: rotate(135deg); background-color: var(--gold-lt); border-color: var(--gold-lt); }
.faq-item summary:hover { color: var(--blue); }
.faq-item summary:hover::after { border-color: var(--gold); }
.faq-item p { padding: 0 48px 26px 0; color: var(--muted); animation: faqIn .5s var(--ease-out); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } }
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
  .faq-head { position: sticky; top: calc(var(--nav-h) + 40px); }
}

/* ─── Contacto / Cotizar ───────────────────────────────── */
.contact { padding: var(--section-y) 0; overflow: clip; background: var(--white); }
.contact-bg { position: absolute; inset: 0; pointer-events: none; }
.contact .orb-1 { width: 640px; height: 640px; top: -10%; left: -20%; background: radial-gradient(circle, rgba(51, 160, 240, .16), transparent 65%); }
.contact .orb-2 { width: 520px; height: 520px; bottom: 0; right: -16%; background: radial-gradient(circle, rgba(248, 184, 20, .12), transparent 65%); animation-delay: -10s; }
.contact .container { position: relative; }
.flow-steps { display: flex; justify-content: center; gap: 10px; margin-bottom: 28px; }
.flow-steps li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: var(--r-btn); background: var(--white); border: 1px solid var(--line); color: var(--muted); font-size: .9rem; transition: all .45s var(--ease); }
.flow-steps span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--line); font-family: var(--font-mono); font-size: .75rem; color: var(--muted); transition: all .45s var(--ease); }
.flow-steps li.is-on { color: var(--black); border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.flow-steps li.is-on span { background: var(--navy); color: var(--white); }
.flow-steps li.is-done span { background: #16A34A; color: var(--white); }

.contact-grid { display: grid; gap: 24px; align-items: stretch; }
.glass-solid { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-md); }
.quote-form { padding: 30px 24px; display: grid; gap: 18px; align-content: start; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; gap: 18px; }
.field label { font-size: .86rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--r-sm);
  background: var(--paper); border: 1px solid var(--line-2); color: var(--ink);
  transition: border-color .25s, box-shadow .25s, background-color .25s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111113' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 42px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #9A9AA0; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--silver); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 3px rgba(248, 184, 20, .2); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #E5484D; box-shadow: 0 0 0 4px rgba(229, 72, 77, .1); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: .82rem; color: var(--muted); text-align: center; }
.form-status { font-size: .92rem; text-align: center; color: var(--navy); min-height: 1.2em; }
.form-status.is-error { color: #C0262D; }
.form-status .btn { margin-top: 12px; }
.quote-form.is-sending [data-submit] { pointer-events: none; opacity: .75; }
.quote-form.is-done { opacity: .55; pointer-events: none; }

.cal-card { position: relative; padding: 22px; display: flex; flex-direction: column; min-height: 560px; overflow: hidden; }
.cal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.cal-head b { display: block; font-family: var(--font-display); color: var(--ink); letter-spacing: -.01em; }
.cal-head small { display: block; color: var(--muted); font-size: .85rem; }
.cal-embed { flex: 1; min-height: 480px; border-radius: var(--r-md); overflow: auto; background: var(--paper); }
.cal-lock {
  position: absolute; inset: 86px 22px 22px; z-index: 2;
  display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 24px;
  border-radius: var(--r-md);
  background: repeating-linear-gradient(135deg, rgba(17, 17, 19, .025) 0 12px, transparent 12px 24px), linear-gradient(180deg, rgba(245, 248, 252, .96), rgba(245, 248, 252, .9));
  border: 1.5px dashed rgba(17, 17, 19, .16);
  transition: opacity .6s var(--ease), visibility .6s;
}
.cal-lock svg { width: 34px; height: 34px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cal-lock p { max-width: 28ch; color: var(--navy); font-weight: 500; }
.cal-card.is-open .cal-lock { opacity: 0; visibility: hidden; }
.cal-fallback { text-align: center; padding: 18px; }
.cal-fallback a, .cal-link { color: var(--blue); font-weight: 600; }

.contact-info { display: grid; gap: 24px; margin-top: 40px; }
.info-list { display: grid; gap: 14px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-md); background: rgba(255, 255, 255, .7); border: 1px solid var(--line); font-size: .95rem; color: var(--text); }
.info-list svg { width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.info-list small { display: block; font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-mono); }
.info-list a:hover { color: var(--blue); }
.map { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-height: 320px; background: var(--paper); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; filter: saturate(.85) contrast(1.02); }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } .quote-form { padding: 38px 36px; } }
@media (min-width: 1000px) {
  .contact-grid { grid-template-columns: 1fr 1.05fr; gap: 28px; }
  .contact-info { grid-template-columns: .8fr 1.2fr; align-items: stretch; }
}

/* ─── Footer ───────────────────────────────────────────── */
.footer { position: relative; background: var(--ink); color: #A8A8B0; padding: clamp(72px, 10vw, 120px) 0 28px; overflow: hidden; }

.footer .container { position: relative; }
.footer-top { display: grid; gap: 40px; }
.footer-brand img { width: 56px; height: 56px; padding: 8px; border-radius: var(--r-sm); background: var(--white); margin-bottom: 20px; }
.footer-brand p { max-width: 34ch; margin-bottom: 26px; color: #D0D0D5; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: .95rem; }
.footer-col p.mono { color: var(--gold-lt); margin-bottom: 6px; }
.footer-col a { transition: color .25s; width: fit-content; }
.footer-col a:hover { color: var(--white); }
.socials { display: flex; gap: 10px; margin-top: 8px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-btn); border: 1px solid rgba(255, 255, 255, .15); transition: border-color .25s; }
.socials a:hover { border-color: var(--gold); }
.socials svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-word {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 13vw, 11.5rem);
  line-height: .9; letter-spacing: -.06em; color: var(--white); white-space: nowrap;
  margin: clamp(56px, 8vw, 96px) 0 28px; user-select: none;
  background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, .25)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer-word span { background: linear-gradient(180deg, var(--gold-lt) 20%, rgba(244, 168, 4, .3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: #85858E; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; } }

/* ─── Flotantes ────────────────────────────────────────── */
.floaters { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; transition: transform .5s var(--ease-out); }
.has-mcta .floaters { transform: translateY(-74px); }
.wa-float {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--white); color: #1DA851; border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-out), box-shadow .4s, border-color .25s;
}
.wa-float svg { width: 21px; height: 21px; fill: currentColor; }
.wa-float:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.bot-launch {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px; border-radius: var(--r-btn);
  background: var(--black); color: var(--white); border: 1px solid var(--black); box-shadow: 0 16px 34px -16px rgba(0, 0, 0, .6);
  transition: transform .45s var(--ease-out), box-shadow .45s, border-color .25s, padding .45s var(--ease-out);
}
.bot-launch img { width: 44px; height: 44px; padding: 6px; border-radius: 4px; background: var(--white); }
.bot-launch-label { display: none; padding-right: 14px; font-family: var(--font-display); font-weight: 600; font-size: .9rem; }
.bot-launch:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--ring-gold), 0 20px 40px -18px rgba(0, 0, 0, .6); }
.bot-launch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(248, 184, 20, .4); animation: ring 6s 4s infinite; pointer-events: none; }
.bot-launch { position: relative; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(248, 184, 20, .4); } 30%, 100% { box-shadow: 0 0 0 10px rgba(248, 184, 20, 0); } }
@media (min-width: 900px) { .bot-launch-label { display: inline; } }
.bot-is-open .floaters { opacity: 0; pointer-events: none; }

.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 85;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .55s var(--ease-out);
}
@supports (backdrop-filter: blur(12px)) { .mobile-cta { background: rgba(255, 255, 255, .78); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%); } }
.has-mcta .mobile-cta { transform: none; }
@media (min-width: 900px) { .mobile-cta { display: none; } .has-mcta .floaters { transform: none; } }

/* ─── Asistente virtual ────────────────────────────────── */
.assistant {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 110; /* sobre el nav (100) */
  width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100svh - 110px));
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .55);
  transform-origin: 100% 100%;
  animation: botIn .5s var(--ease-out);
}
@keyframes botIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.bot-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 18px; background: var(--black); color: var(--white); border-bottom: 2px solid var(--gold); }
.bot-head img { width: 38px; height: 38px; padding: 4px; border-radius: 4px; background: var(--white); }
.bot-head b { display: block; font-family: var(--font-display); font-size: 1rem; }
.bot-head small { display: flex; align-items: center; gap: 6px; font-size: .78rem; opacity: .9; }
.bot-close { margin-left: auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-btn); background: rgba(255, 255, 255, .14); color: var(--white); transition: background-color .25s; }
.bot-close:hover { background: rgba(255, 255, 255, .26); }
.bot-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.bot-msgs { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.bmsg { max-width: 86%; padding: 11px 14px; border-radius: var(--r-md); font-size: .92rem; line-height: 1.5; animation: logIn .4s var(--ease-out); }
.bmsg.bot { background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 5px; color: var(--text); }
.bmsg.user { align-self: flex-end; background: var(--navy); color: var(--white); border-bottom-right-radius: 5px; }
.bmsg .btn { margin-top: 10px; }
.bmsg.typing-msg { display: flex; gap: 4px; padding: 14px 16px; }
.bmsg.typing-msg i { width: 7px; height: 7px; border-radius: 50%; background: var(--silver); animation: blink 1.2s infinite; }
.bmsg.typing-msg i:nth-child(2) { animation-delay: .15s; }
.bmsg.typing-msg i:nth-child(3) { animation-delay: .3s; }
.bot-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px; background: var(--paper); border-top: 1px solid var(--line); }
.bot-quick button { padding: 8px 13px; border-radius: var(--r-btn); background: var(--white); border: 1px solid var(--line); font-size: .82rem; font-weight: 500; color: var(--navy); transition: border-color .25s, background-color .25s, color .25s; }
.bot-quick button:hover { border-color: var(--gold); color: var(--black); }
.bot-quick button.is-cta { background: var(--black); color: var(--white); border-color: var(--black); }
.bot-quick button.is-cta:hover { border-color: var(--gold); color: var(--white); }
.bot-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--white); }
.bot-input input { flex: 1; padding: 12px 14px; border-radius: var(--r-btn); border: 1.5px solid var(--line); background: var(--paper); min-width: 0; font-size: 16px; color: var(--ink); } /* 16px: iOS no hace zoom */
.bot-input input:focus { outline: none; border-color: var(--gold); background: var(--white); }
.bot-input button { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r-btn); background: var(--black); color: var(--white); border: 1px solid var(--black); flex-shrink: 0; transition: border-color .25s; }
.bot-input button:hover { border-color: var(--gold); }
.bot-input svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Celular y tablet: pantalla completa que sigue al área visible (--vv-* lo calcula main.js
   con visualViewport), así el campo y el botón Enviar quedan siempre sobre el teclado */
.assistant, .bot-msgs, .bot-quick { overscroll-behavior: contain; }
@media (max-width: 899px) {
  .assistant {
    left: 0; right: 0; bottom: auto; top: var(--vv-top, 0px);
    width: 100%; height: 100vh; height: var(--vv-h, 100dvh);
    border: 0; border-radius: 0;
    animation: botSheet .4s var(--ease-out);
  }
  .bot-head { padding-top: calc(14px + env(safe-area-inset-top)); }
  .bot-msgs { padding-top: 14px; }
  .bot-quick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .bot-quick::-webkit-scrollbar { display: none; }
  .bot-quick button { flex-shrink: 0; white-space: nowrap; }
  .bot-input { flex-shrink: 0; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .assistant.kb-open .bot-input { padding-bottom: 10px; }
  .assistant.kb-open .bot-quick { display: none; }
  .bot-is-open, .bot-is-open body { overflow: hidden; }
  .bot-is-open .scroll-progress { opacity: 0; }
}
@keyframes botSheet { from { opacity: 0; transform: translateY(24px); } }

/* ─── Revelado al hacer scroll ─────────────────────────── */
/* .reveal-on la pone main.js: si el JS no carga, todo queda visible */
.reveal-on .reveal { opacity: 0; transform: translateY(30px); transition: opacity .95s var(--ease), transform 1.05s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal-on .reveal.is-visible { opacity: 1; transform: none; }
/* defensa: un elemento con split nunca queda invisible */
.reveal[data-split], .reveal-on .reveal[data-split] { opacity: 1; transform: none; }
/* el titular espera a que se vaya el splash */
.js:not(.is-loaded) .split-word, .js:not(.is-loaded) .hl::after { animation-play-state: paused; }

/* Solo efectos intrusivos se apagan con reduced-motion (Windows lo trae activo) */
@media (prefers-reduced-motion: reduce) {
  .hero-particles, .circuit { display: none; }
  .hero-photo img { animation: none; }
  .marquee-track { animation-duration: 90s; }
}

/* ─── Portal AccionaPro: video narrado (lib/portal-demo.js) ─── */
.portal { padding: var(--section-y) 0; background: var(--white); }
.pv { margin-top: clamp(28px, 4vw, 44px); border-radius: var(--r-xl); overflow: hidden; background: #0C0C0E; border: 1px solid rgba(0, 0, 0, .1); box-shadow: var(--shadow-lg); }
.pv-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0C0C0E; }
.pv-frame:fullscreen { width: 100vw; height: 100vh; aspect-ratio: auto; background: #000; }
.pv-frame:-webkit-full-screen { width: 100vw; height: 100vh; background: #000; }
.pv-stage { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; }
.pv-poster { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 18px); border: 0; color: var(--white); cursor: pointer; background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .72)); transition: opacity .45s, visibility .45s; }
.pv.is-started .pv-poster { opacity: 0; visibility: hidden; }
.pv-big { display: grid; place-items: center; width: clamp(58px, 9vw, 96px); height: clamp(58px, 9vw, 96px); border-radius: var(--r-md); background: var(--white); border: 2px solid var(--white); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .55); transition: transform .35s var(--ease-out); }
.pv-big svg { width: 38%; height: 38%; margin-left: 7%; fill: var(--navy); }
.pv-poster:hover .pv-big { transform: scale(1.05); border-color: var(--gold); }
.pv-poster-t { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pv-poster-t b { font-family: var(--font-display); font-weight: 600; font-size: clamp(.95rem, 2.4vw, 1.5rem); letter-spacing: -.02em; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.pv-poster-t small { display: flex; gap: 8px; }
.pv-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--r-btn); background: rgba(0, 0, 0, .72); border: 1px solid rgba(255, 255, 255, .2); font-size: .72rem; }
.pv-chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pv-controls { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #0C0C0E; border-top: 1px solid rgba(255, 255, 255, .07); }
.pv-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-btn); background: rgba(255, 255, 255, .08); color: var(--white); flex-shrink: 0; transition: background-color .25s; }
.pv-btn:hover { background: rgba(255, 255, 255, .16); }
.pv-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pv-btn .i-play, .pv-btn .i-pause { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.pv .i-pause, .pv.is-playing .i-play, .pv .i-off, .pv.is-muted .i-on { display: none; }
.pv.is-playing .i-pause, .pv.is-muted .i-off { display: block; }
.pv-bar { position: relative; flex: 1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); cursor: pointer; }
.pv-bar::before { content: ""; position: absolute; inset: -12px 0; }
.pv-bar > i { position: absolute; inset: 0; border-radius: inherit; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.pv-ticks i { position: absolute; top: -2px; width: 2px; height: 10px; border-radius: 1px; background: rgba(255, 255, 255, .35); }
.pv-time { color: #9A9AA3; font-size: .7rem; white-space: nowrap; }
.pv-cap-m { display: none; }
.pv-voice { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pv-voice-l { margin-right: 4px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--silver); }
.pv-voice button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--white); font-size: .8rem; color: var(--text); transition: border-color .25s, background-color .25s, color .25s; }
.pv-voice button:hover { border-color: var(--gold); }
.pv-voice button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pv-voice button.is-on { border-color: var(--gold); background: var(--black); color: var(--white); font-weight: 600; }
.pv-chapters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 14px 0 4px; list-style: none; }
.pv-chapters::-webkit-scrollbar { display: none; }
.pv-chapters button { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 8px 12px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--white); font-size: .76rem; color: var(--text); transition: border-color .25s, background-color .25s; }
.pv-chapters button span { font-size: .66rem; color: var(--silver); }
.pv-chapters button:hover { border-color: var(--gold); }
.pv-chapters li.is-on button { border-color: var(--gold); background: var(--white); color: var(--black); font-weight: 600; box-shadow: 0 0 0 1px var(--gold); }
.pt-grid { display: grid; gap: 16px; margin-top: clamp(36px, 5vw, 56px); }
.pt-col { padding: 28px 26px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--paper); }
.pt-tag { display: inline-block; padding: 5px 10px; border-radius: var(--r-btn); background: #F1F1EE; color: var(--blue); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }
.pt-col h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: -.02em; color: var(--ink); margin: 12px 0 16px; }
.pt-list { display: grid; gap: 12px; }
.pt-list li { position: relative; padding-left: 26px; font-size: .88rem; line-height: 1.55; color: var(--muted); }
.pt-list li::before { content: "✓"; position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #F1F1EE; color: var(--blue); font-size: .7rem; font-weight: 700; }
.pt-list b { color: var(--ink); }
.pt-stats { display: grid; gap: 12px; margin-top: 16px; }
.pt-stats div { padding: 20px 22px; border-radius: var(--r-lg); background: var(--ink); }
.pt-stats b { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--sky); letter-spacing: -.02em; }
.pt-stats span { font-size: .8rem; color: #B4B4BC; }
.pt-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 26px; }
.pt-cta-note { font-size: .82rem; color: var(--muted); }
@media (min-width: 640px) { .pt-stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) {
  .pt-grid { grid-template-columns: 1fr 1fr; }
  .pv-chapters { flex-wrap: wrap; overflow: visible; }
}
@media (max-width: 899px) {
  .pv-cap-m { display: block; min-height: 2.8em; margin: 12px 4px 0; font-size: .84rem; line-height: 1.45; color: var(--muted); }
  .pv-cap-m b { color: var(--ink); }
  .pv-controls { gap: 9px; padding: 8px 10px; }
  .pv-btn { width: 32px; height: 32px; }
  .pv-time { font-size: .64rem; }
}

/* escenario del portal (1280×720, se escala entero) */
.ps { position: relative; width: 1280px; height: 720px; overflow: hidden; background: #FBFCFD; color: #0F1C2E; font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; font-size: 13px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
.ps * { box-sizing: border-box; }
.ps b { font-weight: 600; }
.ps-i { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ps-i.wa { color: #22C55E; } .ps-i.ig { color: #E1306C; } .ps-i.fb { color: #1877F2; }
.ps-chrome { height: 34px; display: flex; align-items: center; gap: 16px; padding: 0 14px; background: #EEF1F5; border-bottom: 2px solid #C3CEDB; }
.ps-dots { display: flex; gap: 6px; } .ps-dots i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; } .ps-dots i:nth-child(2) { background: #FEBC2E; } .ps-dots i:nth-child(3) { background: #28C840; }
.ps-url { display: flex; align-items: center; gap: 7px; width: 520px; height: 23px; padding: 0 12px; border-radius: 99px; background: #fff; border: 2px solid #C3CEDB; font-size: 11.5px; color: #4B5868; }
.ps-url .ps-i { width: 11px; height: 11px; }
.ps-app { position: absolute; top: 34px; left: 0; right: 0; bottom: 28px; display: flex; }
.ps-side { position: relative; z-index: 3; width: 220px; flex-shrink: 0; display: flex; flex-direction: column; padding: 16px 12px 12px; background: #F6F8FA; border-right: 2px solid #C3CEDB; }
.ps.no-side .ps-side { display: none; }
.ps-brand { display: flex; align-items: center; gap: 9px; padding: 0 6px 12px; margin-bottom: 12px; border-bottom: 2px solid #C3CEDB; font-size: 15px; }
.ps-logo img { display: block; width: 28px; height: 28px; }
.ps-logo .ps-av, .ps.is-client .ps-logo img { display: none; }
.ps.is-client .ps-logo .ps-av { display: inline-grid; width: 28px; height: 28px; border-radius: 8px; font-size: 10px; }
.ps-ws { display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin-bottom: 14px; border: 2px solid #C3CEDB; border-radius: 9px; background: #fff; font-size: 12px; color: #4B5868; }
.ps-ws .ps-i { width: 14px; height: 14px; }
.ps-sl { display: block; padding: 0 8px 6px; font-size: 10px; letter-spacing: .14em; color: #8795A6; font-weight: 600; }
.ps-nav { display: flex; flex-direction: column; gap: 2px; }
.ps-nav[hidden] { display: none; }
.ps-nv { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; font-size: 13.5px; color: #3B4A5C; transition: background-color .3s, box-shadow .3s; }
.ps-nv .ps-i { width: 17px; height: 17px; }
.ps-nv.act { background: #E3ECF6; color: #0F1C2E; font-weight: 600; }
.ps-nv.act .ps-i { color: #2C7CD4; }
.ps-nv.on { background: #FFF4D6; box-shadow: inset 0 0 0 1px #F8B814; }
.ps-pop { position: absolute; left: 206px; top: 318px; width: 250px; padding: 12px 14px; border-radius: 12px; background: #0F1C2E; color: #DCE6F2; font-size: 12px; line-height: 1.45; box-shadow: 0 20px 40px -18px rgba(15, 28, 46, .6); opacity: 0; transform: translateX(-8px); transition: opacity .35s, transform .35s; }
.ps-pop.on { opacity: 1; transform: none; }
.ps-pop b { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; color: #F8B814; font-size: 13px; }
.ps-user { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 10px 6px 0; border-top: 2px solid #C3CEDB; }
.ps-user > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #1C3B63; color: #fff; font-weight: 700; font-size: 12px; }
.ps-user b { display: block; font-size: 13px; } .ps-user small { font-size: 11px; color: #8795A6; }
.ps-main { position: relative; flex: 1; overflow: hidden; }
.ps-pg { position: absolute; inset: 0; padding: 22px 26px; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.ps-pg.on { opacity: 1; visibility: visible; }
.ps-eb { margin-bottom: 3px; font-size: 10.5px; letter-spacing: .14em; font-weight: 700; color: #2C7CD4; }
.ps-pg h1 { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: #0F1C2E; }
.ps-pg h1 small { font-size: 13px; font-weight: 500; color: #6A7B8E; }
.ps-lead { margin-top: 3px; font-size: 13px; color: #6A7B8E; }
.ps-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.ps-head.sm { align-items: flex-end; margin-bottom: 12px; }
.ps-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; border-radius: 10px; background: #1C3B63; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background-color .3s, color .3s; }
.ps-btn .ps-i { width: 15px; height: 15px; }
.ps-btn.ghost { background: #fff; color: #1C3B63; border: 2px solid #B6C3D2; }
.ps-btn.wide { display: flex; justify-content: center; width: 100%; margin-top: 12px; }
.ps-btn.sm { height: 30px; padding: 0 12px; font-size: 12px; }
.ps-btn.alt { background: #F8B814; color: #0F1C2E; }
.ps-av { display: inline-grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; background: #E8EEF5; color: #1C3B63; font-style: normal; font-weight: 700; font-size: 11px; }
.ps-av.o { background: #FCE7D6; color: #B4532A; } .ps-av.b { background: #E0ECFF; color: #1D4ED8; } .ps-av.g { background: #DFF5EA; color: #15803D; }
.ps-av.p { background: #EDE7FB; color: #6D28D9; } .ps-av.y { background: #FEF3C7; color: #A16207; }
.ps-av.lg { width: 46px; height: 46px; border-radius: 13px; font-size: 15px; } .ps-av.xl { width: 58px; height: 58px; border-radius: 16px; font-size: 18px; }
.ps-on { padding: 3px 9px; border-radius: 99px; background: #E3F6EA; color: #15803D; font-size: 11px; font-weight: 600; font-style: normal; letter-spacing: 0; }
.ps-box { position: relative; padding: 16px 18px; border: 2px solid #C3CEDB; border-radius: 14px; background: #fff; }
.ps-box h3 { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.ps-box h3 small { font-size: 11.5px; font-weight: 500; color: #6A7B8E; }
.ps-box h3.big { margin-bottom: 2px; font-size: 20px; }
.ps-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 12px; }
.ps-k { display: flex; gap: 12px; padding: 14px 16px; border: 2px solid #C3CEDB; border-radius: 14px; background: #fff; }
.ps-k > .ps-i { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: #EEF4FB; color: #2C7CD4; }
.ps-k small { display: block; font-size: 11.5px; color: #6A7B8E; }
.ps-k b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ps-k em { font-size: 11px; font-style: normal; color: #8795A6; }
.ps-kpis.r { margin-top: 4px; }
.ps-kpis.r .ps-k { padding: 12px 14px; } .ps-kpis.r .ps-k b { font-size: 23px; }
.ps-two { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; }
.ps-bars { --g: 0; display: flex; align-items: flex-end; gap: 5px; height: 190px; }
.ps-two.r .ps-bars { height: 150px; }
.ps-bars i { flex: 1; height: calc(var(--h) * var(--g)); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #33A0F0, #2C7CD4); }
.ps-rank { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1.5px dashed #C3CEDB; font-size: 12.5px; color: #4B5868; }
.ps-rank b { color: #0F1C2E; } .ps-rank em { font-style: normal; font-weight: 700; color: #2C7CD4; }
.ps-table { overflow: hidden; border: 2px solid #C3CEDB; border-radius: 14px; background: #fff; }
.ps-tr { display: grid; grid-template-columns: 2fr 1.4fr .7fr 1.3fr .8fr; align-items: center; padding: 11px 16px; border-bottom: 1.5px solid #D2DBE5; font-size: 13px; color: #3B4A5C; transition: background-color .3s; }
.ps-tr > span { display: flex; align-items: center; gap: 7px; min-width: 0; }
.ps-tr > span:first-child { gap: 10px; color: #0F1C2E; }
.ps-tr.th { background: #F7F9FB; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6A7B8E; }
.ps-tr.new { display: none; }
.ps-tr.new.on { display: grid; background: #FFF8E5; animation: psIn .5s var(--ease-out); }
.ps-table.ct .ps-tr { grid-template-columns: 1.55fr 1.2fr 1.1fr 1.6fr .65fr 1.2fr; }
.ps-tr[data-crow].on { background: #EEF4FB; }
.ps-tg { padding: 2px 8px; border-radius: 99px; background: #E3ECF6; color: #1D4ED8; font-size: 10.5px; font-weight: 600; font-style: normal; }
.ps-tg.r { background: #FCE7F3; color: #BE185D; } .ps-tg.v { background: #FEF3C7; color: #A16207; } .ps-tg.n { background: #E3F6EA; color: #15803D; }
.ps-modal { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: rgba(15, 28, 46, .38); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.ps-modal.on { opacity: 1; visibility: visible; }
.ps-dlg { width: 470px; padding: 22px 24px; border-radius: 18px; background: #fff; box-shadow: 0 30px 60px -20px rgba(15, 28, 46, .5); }
.ps-dlg h3 { font-size: 18px; font-weight: 700; } .ps-dlg p { margin: 4px 0 14px; font-size: 12.5px; color: #6A7B8E; }
.ps label { display: block; margin-bottom: 10px; font-size: 11.5px; font-weight: 600; color: #4B5868; }
.ps-in { position: relative; display: flex; align-items: center; min-height: 36px; margin-top: 5px; padding: 8px 12px; border: 2px solid #B6C3D2; border-radius: 10px; background: #fff; font-size: 13px; font-weight: 500; color: #0F1C2E; transition: border-color .3s, color .3s; }
.ps-in.sel { padding-right: 30px; }
.ps-in.sel::after { content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 1.6px solid #8795A6; border-bottom: 1.6px solid #8795A6; transform: rotate(45deg); }
.ps-dlg .ps-in.sel { color: #A9B4C2; }
.ps-dlg .ps-in.sel.on { color: #0F1C2E; border-color: #2C7CD4; }
.ps-in.area { display: block; min-height: 104px; line-height: 1.5; font-weight: 400; }
.ps-caret { display: inline-block; width: 2px; height: 15px; margin-left: 1px; vertical-align: -2px; background: #2C7CD4; opacity: 0; }
.ps-caret.on { opacity: 1; animation: psBlink 1s steps(1) infinite; }
.ps-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ps-sw-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0 10px; font-size: 13px; font-weight: 600; }
.ps-sw { position: relative; display: inline-block; flex-shrink: 0; width: 36px; height: 20px; border-radius: 99px; background: #CBD5E1; transition: background-color .3s; }
.ps-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .3s; }
.ps-sw.on { background: #16A34A; } .ps-sw.on::after { transform: translateX(16px); }
.ps-dlg-f { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.ps-cli { display: flex; align-items: center; gap: 14px; } .ps-cli h1 { font-size: 24px; }
.ps-tabs { display: flex; gap: 22px; margin-bottom: 16px; border-bottom: 2px solid #C3CEDB; font-size: 12.5px; color: #4B5868; white-space: nowrap; }
.ps-tabs span { position: relative; padding-bottom: 10px; }
.ps-tabs span.act { color: #0F1C2E; font-weight: 600; }
.ps-tabs span.act::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: #1C3B63; }
.ps-tabs em { margin-left: 3px; padding: 1px 6px; border-radius: 99px; background: #E8EEF5; font-size: 10.5px; font-style: normal; }
.ps-tp { display: none; } .ps-tp.on { display: block; }
.ps-agent { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; }
.ps-agents { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ps-ag { display: flex; align-items: center; gap: 9px; padding: 7px 12px; border: 2px solid #C3CEDB; border-radius: 12px; background: #fff; }
.ps-ag .ps-i { width: 26px; height: 26px; padding: 5px; border-radius: 8px; background: #EEF4FB; color: #2C7CD4; }
.ps-ag b { display: block; font-size: 12.5px; } .ps-ag small { font-size: 11px; color: #6A7B8E; }
.ps-ag.act { border-color: #2C7CD4; }
.ps-ag.new { display: none; }
.ps-ag.new.on { display: flex; border-color: #16A34A; background: #F3FCF6; animation: psPop .5s var(--ease-out); }
.ps-agents [data-addsuc] { margin-left: auto; }
.ps-chips { display: flex; gap: 8px; margin: 4px 0 12px; }
.ps-chips span { padding: 6px 12px; border: 2px solid #B6C3D2; border-radius: 99px; font-size: 12px; transition: background-color .3s, color .3s; }
.ps-chips span.on { background: #1C3B63; border-color: #1C3B63; color: #fff; }
.ps-tool { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1.5px solid #D2DBE5; }
.ps-tool > .ps-i { width: 32px; height: 32px; padding: 7px; border-radius: 9px; background: #EEF4FB; color: #2C7CD4; }
.ps-tool > div { flex: 1; } .ps-tool b { display: block; font-size: 13px; } .ps-tool small { font-size: 11.5px; color: #6A7B8E; }
.ps-tool.sm { padding: 8px 0; } .ps-tool.sm b { font-weight: 500; font-size: 12.5px; }
.ps-chs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ps-ch { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid #C3CEDB; border-radius: 14px; background: #fff; transition: border-color .4s, background-color .4s; }
.ps-ch > .ps-i { width: 38px; height: 38px; padding: 9px; border-radius: 11px; background: #F1F5F9; }
.ps-ch > div { flex: 1; } .ps-ch b { font-size: 14px; } .ps-ch small { display: block; font-size: 11.5px; color: #6A7B8E; }
.ps-ch.on { border-color: #A7E3BE; background: #F3FCF6; }
.ps-ch.on small { color: #15803D; font-weight: 600; }
.ps-ch.on .ps-btn { background: #16A34A; border-color: #16A34A; color: #fff; }
.ps-funnel { grid-column: span 2; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 18px; border: 1.5px dashed #B9CBE0; border-radius: 14px; opacity: 0; transform: translateY(8px); transition: opacity .45s, transform .45s; }
.ps-funnel.on { opacity: 1; transform: none; }
.ps-funnel > span { display: flex; gap: 10px; } .ps-funnel > span .ps-i { width: 28px; height: 28px; }
.ps-funnel > i { width: 140px; height: 2px; background: linear-gradient(90deg, #B9CBE0, #2C7CD4); }
.ps-funnel > b { display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; background: #1C3B63; color: #fff; font-size: 13.5px; }
.ps-play { display: grid; grid-template-columns: 250px 1fr; gap: 14px; height: 512px; margin-top: 14px; }
.ps-box.side h4 { margin: 14px 0 8px; font-size: 12px; }
.ps-conv { padding: 8px 10px; border-radius: 9px; font-size: 12.5px; color: #4B5868; }
.ps-conv.on { background: #E3ECF6; color: #0F1C2E; font-weight: 600; }
.ps-box.chat { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.ps-chat-h { padding: 12px 16px; border-bottom: 1.5px solid #D2DBE5; } .ps-chat-h b { font-size: 14px; } .ps-chat-h small { display: block; font-size: 11.5px; color: #6A7B8E; }
.ps-chat { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; overflow: hidden; background: #F8FAFC; }
.ps-m { max-width: 74%; padding: 9px 12px; border-radius: 14px; font-size: 13px; line-height: 1.45; animation: psIn .35s var(--ease-out); }
.ps-m small { display: block; margin-bottom: 2px; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #2C7CD4; }
.ps-m.me { align-self: flex-end; background: #1C3B63; color: #fff; border-bottom-right-radius: 4px; }
.ps-m.ai, .ps-m.cu { align-self: flex-start; background: #fff; border: 1.5px solid #CBD5E1; border-bottom-left-radius: 4px; }
.ps-m.tl { align-self: flex-start; display: flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid #F6DE9C; border-radius: 8px; background: #FFF8E5; color: #8A6100; font-family: var(--font-mono); font-size: 10.5px; }
.ps-m.tl .ps-i { width: 13px; height: 13px; }
.ps-m.ev { align-self: center; display: flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; background: #E3F6EA; color: #15803D; font-size: 12px; font-weight: 600; }
.ps-m.ev .ps-i { width: 14px; height: 14px; }
[data-ichat] .ps-m.ai { align-self: flex-end; background: #E7F0FB; border-color: #CFE0F5; border-radius: 14px 14px 4px 14px; }
.ps-m.hu { align-self: flex-end; background: #FFF4D6; border: 1px solid #F6DE9C; border-radius: 14px 14px 4px 14px; }
.ps-m.hu small { color: #A16207; }
.ps-ok { align-self: center; padding: 6px 12px; border-radius: 99px; background: #E3F6EA; color: #15803D; font-size: 12px; font-weight: 600; animation: psIn .35s; }
.ps-comp { display: flex; align-items: center; gap: 8px; height: 40px; margin: 10px 14px 12px; padding: 0 12px; border: 2px solid #B6C3D2; border-radius: 12px; background: #fff; font-size: 13px; color: #0F1C2E; transition: border-color .3s, box-shadow .3s; }
.ps-comp > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-comp .ps-i { width: 18px; height: 18px; color: #2C7CD4; }
.ps-comp.act { border-color: #F8B814; box-shadow: 0 0 0 3px rgba(248, 184, 20, .2); }
[data-icomp]:not(.act) > span { color: #8795A6; }
.ps-pg[data-pg="login"] { display: grid; place-items: center; background: radial-gradient(ellipse 60% 60% at 50% 40%, #EAF2FC, #F6F8FA); }
.ps-login { width: 380px; padding: 30px 32px; border: 2px solid #C3CEDB; border-radius: 22px; background: #fff; text-align: center; box-shadow: 0 30px 60px -30px rgba(15, 28, 46, .35); }
.ps-login h2 { margin: 12px 0 4px; font-size: 20px; font-weight: 700; }
.ps-login p { margin-bottom: 16px; font-size: 13px; color: #6A7B8E; }
.ps-login label { text-align: left; }
.ps-login small { display: block; margin-top: 14px; font-size: 11.5px; color: #8795A6; }
.ps-filt { display: flex; gap: 6px; }
.ps-filt span { padding: 6px 12px; border-radius: 99px; background: #F1F5F9; font-size: 12px; color: #4B5868; }
.ps-filt span.on { background: #1C3B63; color: #fff; }
.ps-ib { display: grid; grid-template-columns: 262px 1fr 214px; height: 548px; overflow: hidden; border: 2px solid #C3CEDB; border-radius: 14px; background: #fff; }
.ps-list { border-right: 1.5px solid #D2DBE5; }
.ps-li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1.5px solid #D9E1EA; }
.ps-li.on { background: #EEF4FB; box-shadow: inset 3px 0 0 #2C7CD4; }
.ps-li > div { flex: 1; min-width: 0; } .ps-li b { display: block; font-size: 13px; }
.ps-li small { display: block; overflow: hidden; font-size: 11.5px; color: #6A7B8E; white-space: nowrap; text-overflow: ellipsis; }
.ps-li em { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-style: normal; }
.ps-li em .ps-i { width: 14px; height: 14px; }
.ps-badge { padding: 2px 7px; border-radius: 99px; font-size: 10px; font-weight: 700; font-style: normal; white-space: nowrap; }
.ps-badge.ia { background: #E3ECF6; color: #1D4ED8; } .ps-badge.hu { background: #FFF1CC; color: #A16207; }
.ps-badge.lg { padding: 4px 10px; font-size: 11px; }
.ps-conv-v { position: relative; display: flex; flex-direction: column; min-width: 0; }
.ps-cv-h { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1.5px solid #D2DBE5; }
.ps-cv-h > div { flex: 1; } .ps-cv-h b { font-size: 13.5px; } .ps-cv-h small { display: block; font-size: 11.5px; color: #6A7B8E; }
.ps-banner { max-height: 0; overflow: hidden; padding: 0 14px; background: #FFF4D6; color: #8A6100; font-size: 12px; font-weight: 600; transition: max-height .3s, padding .3s; }
.ps-banner.on { max-height: 40px; padding: 8px 14px; }
.ps-day { align-self: center; padding: 3px 10px; border-radius: 99px; background: #EEF2F6; font-size: 11px; color: #6A7B8E; }
.ps-typing { align-self: flex-end; display: flex; gap: 4px; padding: 11px 12px; border-radius: 14px; background: #E7F0FB; }
.ps-typing i { width: 6px; height: 6px; border-radius: 50%; background: #6C8CB5; animation: blink 1.2s infinite; }
.ps-typing i:nth-child(2) { animation-delay: .15s; } .ps-typing i:nth-child(3) { animation-delay: .3s; }
.ps-info { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 14px; border-left: 1.5px solid #D2DBE5; text-align: center; }
.ps-info > b { font-size: 14px; } .ps-info > small { font-size: 11.5px; color: #6A7B8E; }
.ps-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 8px 0; }
.ps-tags span { padding: 3px 9px; border-radius: 99px; background: #E3ECF6; color: #1D4ED8; font-size: 11px; font-weight: 600; }
.ps-tags [data-tagbday] { display: none; } .ps-tags [data-tagbday].on { display: inline-block; background: #FCE7F3; color: #BE185D; }
.ps-info dl { display: grid; grid-template-columns: 1fr auto; gap: 8px; width: 100%; margin-top: 10px; font-size: 12px; text-align: left; }
.ps-info dt { color: #6A7B8E; } .ps-info dd { font-weight: 600; }
.ps-phone { position: absolute; left: 30px; bottom: 12px; z-index: 4; display: flex; flex-direction: column; width: 250px; height: 486px; padding: 9px; border-radius: 34px; background: #0F172A; box-shadow: 0 30px 60px -20px rgba(15, 28, 46, .6); opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .5s var(--ease-out); }
.ps-phone.on { opacity: 1; transform: none; }
.ps-ph-s { display: flex; justify-content: space-between; align-items: flex-start; height: 24px; padding: 4px 16px 0; border-radius: 26px 26px 0 0; background: #075E54; color: #fff; font-size: 10px; }
.ps-ph-s i { width: 74px; height: 16px; margin-top: -4px; border-radius: 0 0 10px 10px; background: #0F172A; }
.ps-ph-h { display: flex; align-items: center; gap: 8px; padding: 6px 10px 9px; background: #075E54; color: #fff; }
.ps-ph-h b { font-size: 12.5px; } .ps-ph-h small { display: block; font-size: 10px; opacity: .85; }
.ps-ph-h .ps-av { width: 28px; height: 28px; border-radius: 50%; font-size: 10px; }
.ps-ph-c { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 10px 8px; overflow: hidden; border-radius: 0 0 26px 26px; background: #EFE7DE; }
.ps-ph-c .ps-m { max-width: 86%; padding: 7px 9px; border-radius: 9px; font-size: 11.5px; }
.ps-ph-c .ps-m.me { background: #D9FDD3; color: #111B21; border-radius: 9px 2px 9px 9px; }
.ps-ph-c .ps-m.bz { align-self: flex-start; background: #fff; border-radius: 2px 9px 9px 9px; }
.ps-drawer { position: absolute; top: 0; right: 0; bottom: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 300px; padding: 22px 20px; border-left: 2px solid #C3CEDB; background: #fff; text-align: center; box-shadow: -20px 0 40px -20px rgba(15, 28, 46, .3); transform: translateX(105%); transition: transform .45s var(--ease-out); }
.ps-drawer.on { transform: none; }
.ps-drawer > b { font-size: 15px; } .ps-drawer > small { font-size: 11.5px; color: #6A7B8E; }
.ps-drawer h4 { align-self: stretch; margin: 14px 0 6px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #6A7B8E; text-align: left; }
.ps-drawer ul { align-self: stretch; display: grid; gap: 6px; text-align: left; font-size: 12px; }
.ps-drawer li { padding: 8px 10px; border-radius: 9px; background: #F7F9FB; }
.ps-drawer p { align-self: stretch; padding: 10px; border-radius: 9px; background: #FFF8E5; font-size: 12.5px; text-align: left; }
.ps-calw { display: grid; grid-template-columns: 1fr 236px; gap: 14px; height: 100%; }
.ps-ctool { display: flex; align-items: center; gap: 8px; margin: 12px 0 8px; font-size: 13px; }
.ps-ctool > b { margin: 0 6px; }
.ps-pill { padding: 5px 10px; border: 2px solid #B6C3D2; border-radius: 8px; font-size: 12px; }
.ps-in.sm { min-height: 30px; margin: 0; padding: 4px 30px 4px 10px; font-size: 12px; }
.ps-seg { display: flex; padding: 3px; border-radius: 9px; background: #F1F5F9; }
.ps-seg span { padding: 4px 10px; border-radius: 7px; font-size: 12px; color: #6A7B8E; }
.ps-seg span.on { background: #fff; color: #0F1C2E; font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.ps-ctool .ps-btn { margin-left: auto; }
.ps-leg { display: flex; gap: 16px; margin-bottom: 10px; font-size: 11.5px; color: #4B5868; }
.ps-leg span::before { content: "●"; margin-right: 5px; }
.ps-leg .ok::before { color: #2563EB; } .ps-leg .mv::before { color: #F59E0B; } .ps-leg .x::before { color: #EF4444; } .ps-leg .done::before { color: #16A34A; }
.ps-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.ps-day-c { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ps-day-c > b { padding-bottom: 5px; border-bottom: 1.5px solid #D2DBE5; font-size: 12px; color: #4B5868; text-align: center; }
.ps-ev { padding: 8px 9px; border-left: 3px solid #2563EB; border-radius: 8px; background: #EFF5FF; font-size: 10.5px; line-height: 1.35; transition: background-color .4s, border-color .4s; }
.ps-ev b { display: block; font-size: 11px; } .ps-ev span { color: #4B5868; }
.ps-ev.mv { border-color: #F59E0B; background: #FFF7E6; }
.ps-ev.x { border-color: #EF4444; background: #FEF2F2; color: #9CA3AF; text-decoration: line-through; }
.ps-ev.done { border-color: #16A34A; background: #EEFBF2; }
.ps-ev.new, .ps-ev.ghost, .ps-ev.gone { display: none; }
.ps-ev.new.on, .ps-ev.ghost.on { display: block; animation: psPop .5s var(--ease-out); }
.ps-ev.new.on { box-shadow: 0 0 0 2px #2563EB; } .ps-ev.ghost.on { box-shadow: 0 0 0 2px #F59E0B; }
.ps-menu { position: absolute; z-index: 5; display: grid; min-width: 156px; padding: 5px; border: 2px solid #C3CEDB; border-radius: 10px; background: #fff; box-shadow: 0 16px 30px -12px rgba(15, 28, 46, .35); opacity: 0; visibility: hidden; }
.ps-menu.on { opacity: 1; visibility: visible; }
.ps-menu span { padding: 7px 10px; border-radius: 7px; font-size: 12px; }
.ps-menu [data-cm-re], .ps-menu [data-cm-done] { background: #EEF4FB; }
.ps-hours .ps-hr { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1.5px solid #D9E1EA; font-size: 12.5px; }
.ps-hr > span { width: 34px; font-weight: 600; }
.ps-hr em { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; font-style: normal; color: #4B5868; }
.ps-split { display: grid; grid-template-columns: 78px 1fr 38px; align-items: center; gap: 8px; margin: 10px 0; font-size: 12px; }
.ps-split i { --g: 0; position: relative; height: 10px; overflow: hidden; border-radius: 99px; background: #EEF2F6; }
.ps-split i::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: calc(var(--w) * var(--g)); border-radius: inherit; background: linear-gradient(90deg, #2C7CD4, #33A0F0); }
.ps-split b { text-align: right; }
.ps-peak { margin-top: 14px; font-size: 12px; color: #6A7B8E; }
.ps-cfg { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.ps-logo-up { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ps-logo-up b { display: block; } .ps-logo-up small { display: block; font-size: 11.5px; color: #6A7B8E; }
.ps-link { font-size: 12px; font-weight: 600; color: #2C7CD4; }
.ps-mem { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1.5px solid #D9E1EA; }
.ps-mem b { display: block; font-size: 13px; } .ps-mem small { font-size: 11.5px; color: #6A7B8E; }
.ps-mem.new { display: none; } .ps-mem.new.on { display: flex; background: #F3FCF6; animation: psIn .4s; }
.ps-cfg .ps-btn.ghost + h3 { margin-top: 14px; }
.ps-foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; height: 28px; padding: 0 16px; background: #0F1C2E; color: #9FB0C6; font-size: 11px; }
.ps-foot > span { display: flex; align-items: center; gap: 8px; }
.ps-mlogo img { display: block; width: 16px; height: 16px; }
/* portada y cierre: el Inbox en vivo atenuado detrás, como la portada del video */
.ps-card { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; text-align: center; color: #fff; background: linear-gradient(180deg, rgba(10, 20, 40, .58) 0%, rgba(10, 20, 40, .84) 100%); -webkit-backdrop-filter: blur(2.5px); backdrop-filter: blur(2.5px); opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.ps-card.on { opacity: 1; visibility: visible; }
.ps-card-logo { display: inline-block; padding: 22px 38px; border-radius: 26px; background: rgba(255, 255, 255, .97); box-shadow: 0 28px 60px -22px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .6); }
.ps-card-logo img { display: block; width: 430px; height: auto; }
.ps-card.on .ps-card-logo { animation: psLogo .8s var(--ease-out) both; }
.ps-card-e { margin-top: 26px; font-size: 13px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: #F8B814; }
.ps-card h2 { margin: 8px 0 12px; font-size: 56px; font-weight: 700; letter-spacing: -.035em; text-shadow: 0 4px 24px rgba(0, 0, 0, .4); }
.ps-card h2 span { color: #33A0F0; }
.ps-card-s { max-width: 860px; margin: 0 auto 26px; font-size: 17px; line-height: 1.55; color: #B9C8DC; }
.ps-card-b { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 99px; background: rgba(255, 255, 255, .08); font-size: 14px; font-weight: 600; }
.ps-card-b .ps-mlogo img { width: 22px; height: 22px; }
.ps-card-c { display: flex; align-items: center; justify-content: center; gap: 26px; margin-top: 28px; font-size: 15px; color: #B9C8DC; opacity: 0; transition: opacity .5s .3s; }
.ps-card-c.on { opacity: 1; }
.ps-card-c b { margin-right: 6px; color: #33A0F0; }
.ps-card-cta { padding: 9px 18px; border-radius: 99px; background: #F8B814; color: #0F1C2E; font-weight: 700; }
.ps-cap { position: absolute; left: 50%; bottom: 44px; z-index: 7; min-width: 440px; max-width: 780px; padding: 14px 26px; border-radius: 16px; background: rgba(10, 20, 40, .94); color: #fff; text-align: center; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6); opacity: 0; transform: translate(-50%, 14px); transition: opacity .4s, transform .4s var(--ease-out); }
.ps-cap.on { opacity: 1; transform: translate(-50%, 0); }
.ps-cap.pos-tr, .ps-cap.pos-br, .ps-cap.pos-tl { min-width: 0; max-width: 470px; text-align: left; }
.ps-cap.pos-tr { left: auto; right: 24px; top: 50px; bottom: auto; transform: translateY(-10px); }
.ps-cap.pos-br { left: auto; right: 24px; transform: translateY(14px); }
.ps-cap.pos-tl { left: 246px; top: 50px; bottom: auto; transform: translateY(-10px); }
.ps-cap.pos-tr.on, .ps-cap.pos-br.on, .ps-cap.pos-tl.on { transform: none; }
.ps-cap b { display: block; font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.ps-cap small { display: block; margin-top: 4px; font-size: 13.5px; color: #A9BCD6; }
.ps-toast { position: absolute; top: 50px; right: 20px; z-index: 6; display: flex; align-items: center; gap: 10px; padding: 11px 16px; border: 1px solid #CDEFD9; border-radius: 13px; background: #fff; color: #0F1C2E; font-size: 13px; font-weight: 600; box-shadow: 0 16px 34px -16px rgba(15, 28, 46, .4); opacity: 0; transform: translateY(-8px); transition: opacity .35s, transform .35s; }
.ps-toast.on { opacity: 1; transform: none; }
.ps-toast i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #16A34A; color: #fff; font-size: 12px; font-style: normal; }
.ps-cur { position: absolute; left: 0; top: 0; z-index: 9; width: 24px; height: 24px; pointer-events: none; opacity: 0; transition: opacity .3s; will-change: transform; }
.ps-cur.on { opacity: 1; }
.ps-cur svg { display: block; width: 24px; height: 24px; margin: -2px 0 0 -4px; fill: #0F1C2E; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); transform-origin: 4px 2px; transition: transform .15s; }
.ps-cur.click svg { transform: scale(.84); }
.ps-cur i { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border: 2px solid #F8B814; border-radius: 50%; opacity: 0; }
.ps-cur.click i { animation: psRing .45s ease-out; }
.ps.is-card .ps-cur, .ps.is-card .ps-cap, .ps.is-card .ps-toast { display: none; }
@keyframes psIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes psPop { from { opacity: 0; transform: scale(.85); } }
@keyframes psRing { 0% { opacity: .95; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes psBlink { 50% { opacity: 0; } }
@keyframes psLogo { from { opacity: 0; transform: translateY(14px) scale(.94); } }

/* ─── Cotizador (lib/cotizador.js) ─── */
.quoter { padding: var(--section-y) 0; background: var(--paper); }
.qz { display: grid; gap: 20px; margin-top: clamp(26px, 4vw, 40px); }
.qz-loading { padding: 40px 0; text-align: center; color: var(--muted); }
.qz-step { margin-bottom: 16px; padding: 22px 20px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--white); }
.qz-step[hidden] { display: none; }
.qz-step h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: -.02em; color: var(--ink); }
.qz-n { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: var(--r-btn); background: var(--black); color: var(--white); font-size: .78rem; }
.qz-hint { margin: -6px 0 14px; font-size: .8rem; color: var(--muted); }
.qz-hint-b { margin: 10px 2px 0; font-size: .76rem; }
/* pasos 1 y 2: listas desplegables con el mismo aspecto que el campo "Servicio" de Contacto */
.qz-pick { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.qz-main { min-width: 0; }
/* con una lista abierta, los botones flotantes y la barra del total no tapan las opciones */
.qz-dd-open .floaters { opacity: 0; pointer-events: none; }
.qz-dd-open .qz-bar { display: none !important; }
.qz-pick .qz-step { margin-bottom: 0; }
@media (min-width: 720px) { .qz-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qz-dd { position: relative; }
.qz-dd-btn {
  display: flex; align-items: center; width: 100%; min-height: 54px; padding: 14px 42px 14px 16px; border-radius: var(--r-sm);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111113' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; border: 1px solid var(--line-2); color: #9A9AA0; text-align: left;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.qz-dd-btn:hover { border-color: var(--gold); }
.qz-dd-btn:focus-visible, .qz-dd.is-open .qz-dd-btn { outline: none; border-color: var(--gold); background-color: var(--white); box-shadow: 0 0 0 3px rgba(248, 184, 20, .2); }
.qz-dd.is-open .qz-dd-btn { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111113' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 15 6-6 6 6'/%3E%3C/svg%3E"); }
.qz-dd-btn.has-v { color: var(--ink); }
.qz-dd-v { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; overflow: hidden; }
.qz-dd-v span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.qz-dd-v svg, .qz-dd-o > svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.qz-dd-list {
  position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; right: 0; max-height: min(400px, 62vh); overflow-y: auto; overscroll-behavior: contain;
  padding: 6px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--white); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .3);
  animation: qzDd .22s var(--ease-out);
}
.qz-dd-list[hidden] { display: none; }
@keyframes qzDd { from { opacity: 0; transform: translateY(-6px); } }
.qz-dd-o { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border-radius: var(--r-btn); border: 1px solid transparent; text-align: left; font-size: .86rem; line-height: 1.3; color: var(--text); transition: background-color .2s; }
.qz-dd-o:hover, .qz-dd-o:focus-visible { outline: none; background: var(--paper); border-color: var(--gold); }
.qz-dd-o:focus-visible { box-shadow: 0 0 0 1px var(--gold); }
.qz-dd-o.is-on { background: var(--paper); color: var(--black); font-weight: 600; }
.qz-dd-o[data-rubro].is-on::after { content: "✓"; margin-left: auto; color: var(--gold-dk); font-weight: 700; }
.qz-dd-svc { align-items: flex-start; gap: 12px; padding: 12px; }
.qz-dd-svc + .qz-dd-svc { margin-top: 2px; }
.qz-dd-t { display: grid; gap: 3px; flex: 1; min-width: 0; }
.qz-dd-t b { font-size: .9rem; color: var(--ink); }
.qz-dd-t small { font-size: .74rem; line-height: 1.45; font-weight: 400; color: var(--muted); }
.qz-dd-foot { position: sticky; bottom: -6px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px -6px -6px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--white); font-size: .74rem; color: var(--muted); }
@media (min-width: 720px) { [data-dd="svc"] .qz-dd-list { left: auto; width: min(480px, 135%); } }
.qz-otro { width: 100%; margin-top: 10px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--paper); font: inherit; font-size: .84rem; color: var(--ink); }
.qz-svc-i { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: var(--r-btn); background: var(--paper); color: var(--blue); }
.qz-svc-i svg, .qz-panel h4 svg, .qz-g-t svg, .qz-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.qz-svc-p { margin-top: 3px; font-size: .78rem; font-weight: 700; color: var(--blue); }
.qz-check { display: grid; place-items: center; flex-shrink: 0; width: 20px; height: 20px; margin-top: 9px; border: 1.5px solid #CFCFCA; border-radius: 6px; font-style: normal; background: var(--white); }
.qz-dd-svc.is-on .qz-check { border-color: var(--black); background: var(--black); }
.qz-dd-svc.is-on .qz-check::after { content: "✓"; color: var(--gold-lt); font-size: .72rem; font-weight: 700; }
.qz-panel { margin-bottom: 12px; padding: 18px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.qz-panel h4 { display: flex; align-items: center; gap: 8px; font-size: 1rem; color: var(--ink); }
.qz-panel h4 svg { color: var(--blue); }
.qz-panel > p { margin-top: 6px; font-size: .8rem; color: var(--muted); }
.qz-lab { margin: 16px 0 8px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--silver); }
.qz-lab small { letter-spacing: 0; text-transform: none; }
.qz-seg input { position: absolute; opacity: 0; pointer-events: none; }
/* página web: base incluida a la vista */
.qz-suma { margin: -4px 0 12px; font-size: .78rem; }
.qz-base { padding: 14px 16px; border: 1px solid var(--black); border-left: 3px solid var(--gold); border-radius: var(--r-sm); background: var(--white); }
.qz-base-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.qz-base-h b { font-size: .9rem; color: var(--ink); }
.qz-base-h span { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.qz-base ul { display: grid; gap: 5px; font-size: .74rem; line-height: 1.45; color: var(--muted); }
.qz-base li { position: relative; padding-left: 18px; }
.qz-base li::before { content: "✓"; position: absolute; left: 0; color: var(--black); font-weight: 700; }
@media (min-width: 640px) { .qz-base ul { grid-template-columns: 1fr 1fr; column-gap: 18px; } }
.qz-pago-n { margin-top: 8px; }
/* WhatsApp y chatbot: lo que siempre va, a la vista */
.qz-fixed { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); }
.qz-fixed div { display: flex; justify-content: space-between; gap: 12px; font-size: .8rem; color: var(--text); }
.qz-fixed b { white-space: nowrap; color: var(--ink); }
.qz-seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--white); }
.qz-seg .qz-opt { padding: 7px 16px; border: 0; border-radius: var(--r-btn); background: transparent; }
.qz-seg .qz-opt.is-on { background: var(--black); color: var(--white); box-shadow: inset 0 0 0 1px var(--gold); }
.qz-opts { display: grid; gap: 6px; }
.qz-opt { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--white); font-size: .78rem; line-height: 1.4; color: var(--text); cursor: pointer; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.qz-opt:hover { border-color: var(--gold); }
.qz-opt input { width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--black); }
.qz-opt-t { flex: 1; }
.qz-opt-p { font-size: .72rem; font-weight: 600; color: var(--blue); white-space: nowrap; }
.qz-opt.is-on { border-color: var(--gold); background: var(--white); box-shadow: inset 0 0 0 1px var(--gold); color: var(--black); }
.qz-opt.is-incl .qz-opt-p { color: #15803D; }
.qz-rec { margin-left: 6px; padding: 2px 7px; border-radius: var(--r-btn); background: #FFF4D6; color: #A16207; font-size: .6rem; font-style: normal; white-space: nowrap; }
.qz-note { margin-top: 8px; padding: 10px 12px; border-radius: var(--r-sm); background: #E3F6EA; color: #15803D; font-size: .76rem; }
.qz-muted { margin-top: 10px; font-size: .72rem; line-height: 1.5; color: var(--muted); }
.qz-stepper { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); }
.qz-stepper > div { flex: 1; } .qz-stepper b { display: block; font-size: .82rem; color: var(--ink); } .qz-stepper small { font-size: .7rem; color: var(--muted); }
.qz-stepper > span { display: flex; align-items: center; gap: 6px; }
.qz-stepper button { width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: var(--r-btn); background: var(--paper); font-size: 1rem; color: var(--ink); transition: border-color .2s; }
.qz-stepper button:hover { border-color: var(--gold); }
.qz-stepper output { min-width: 22px; text-align: center; font-weight: 700; color: var(--ink); }
.qz-recbox { margin-top: 12px; padding: 14px; border: 1px dashed var(--silver); border-radius: var(--r-sm); background: var(--white); }
.qz-recbox b { font-size: .84rem; color: var(--ink); }
.qz-recbox ul { margin: 8px 0 12px; font-size: .8rem; color: var(--text); }
.qz-recbox li::before { content: "→ "; color: var(--gold-dk); }
.qz-sum { padding: 22px 20px; border-radius: var(--r-xl); background: var(--ink); color: #E4E4E7; box-shadow: var(--shadow-lg); }
.qz-sum-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.qz-sum-h b { font-family: var(--font-display); font-size: 1.15rem; color: var(--white); white-space: nowrap; }
.qz-sum-h span { font-size: .66rem; color: #9A9AA3; text-align: right; }
.qz-sum-r { margin-bottom: 10px; font-size: .76rem; color: #B4B4BC; } .qz-sum-r b { color: var(--white); }
.qz-empty { padding: 18px 0 6px; font-size: .84rem; line-height: 1.5; color: #B4B4BC; }
.qz-g { padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.qz-g-t { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; font-size: .82rem; font-weight: 700; color: var(--white); }
.qz-g-t svg { width: 16px; height: 16px; color: var(--sky); }
.qz-l { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: .74rem; line-height: 1.4; color: #C4C4CA; }
.qz-l b { flex-shrink: 0; color: var(--white); font-weight: 600; text-align: right; white-space: nowrap; }
.qz-l b small { display: block; color: #9A9AA3; font-weight: 500; }
.qz-incl-t { font-style: normal; color: #6EE7B7; }
.qz-g-n { margin-top: 4px; font-size: .7rem; color: #6EE7B7; }
.qz-falta { margin-top: 2px; font-size: .74rem; line-height: 1.45; color: var(--gold-lt); }
.qz-dcto { margin-top: 4px; padding-top: 8px; border-top: 1px dashed rgba(255, 255, 255, .16); color: var(--gold); }
.qz-dcto b { color: var(--gold); }
.qz-tot { margin-top: 12px; padding: 14px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .06); border-left: 2px solid var(--gold); }
.qz-tot span { display: block; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: #9A9AA3; }
.qz-tot b { display: block; margin: 2px 0; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -.02em; color: var(--white); }
.qz-tot small { font-size: .7rem; color: #B4B4BC; }
.qz-tot.qz-mes { margin-top: 8px; border-left-color: var(--sky); } .qz-tot.qz-mes b { font-size: 1.12rem; color: var(--white); }
.qz-meta { display: grid; gap: 6px; margin-top: 12px; font-size: .7rem; line-height: 1.5; color: #B4B4BC; }
.qz-meta b { color: var(--white); }
.qz-actions { display: grid; gap: 10px; margin-top: 16px; }
.qz-actions .btn[disabled] { opacity: .45; pointer-events: none; }
/* sobre fondo negro el botón principal va en blanco (al pasar: borde dorado) */
.qz-sum .btn-cta, .qz-bar .btn-cta { background: var(--white); color: var(--black); border-color: var(--white); }
.qz-sum .btn-cta .btn-arrow { color: var(--black); }
.qz-actions .btn { white-space: normal; }
.qz-row { display: flex; flex-wrap: wrap; gap: 8px; }
.qz-link { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--r-btn); background: transparent; color: var(--white); font-size: .74rem; white-space: nowrap; transition: background-color .25s, border-color .25s; }
.qz-link:hover { background: rgba(255, 255, 255, .06); border-color: var(--gold); }
.qz-link[disabled] { opacity: .4; pointer-events: none; }
.qz-link svg { width: 16px; height: 16px; }
.qz-ok { padding: 14px; border: 1px solid rgba(110, 231, 183, .35); border-radius: var(--r-sm); background: rgba(22, 163, 74, .15); }
.qz-ok b { color: #6EE7B7; } .qz-ok p { margin-top: 4px; font-size: .76rem; line-height: 1.5; color: #E4E4E7; }
.qz-form { position: relative; display: grid; gap: 10px; margin-top: 12px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--white); }
.qz-form[hidden] { display: none; }
.qz-form label { display: grid; gap: 4px; font-size: .72rem; color: var(--muted); }
.qz-req { font-style: normal; font-weight: 700; color: #DC2626; }
.qz-form input, .qz-form textarea { padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-btn); background: var(--paper); font: inherit; font-size: .84rem; color: var(--ink); }
.qz-form input:focus, .qz-form textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(248, 184, 20, .2); }
.qz-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* preguntas opcionales para conocer al cliente (vienen del formulario de precalificación) */
.qz-perfil { display: grid; gap: 12px; padding: 14px; border-radius: var(--r-sm); background: var(--paper); }
.qz-perfil-t b { display: block; font-size: .8rem; color: var(--black); }
.qz-perfil-t small { display: block; margin-top: 2px; font-size: .7rem; line-height: 1.4; color: var(--muted); }
.qz-q { border: 0; }
.qz-q legend { margin-bottom: 6px; font-size: .72rem; font-weight: 600; color: var(--text); }
.qz-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.qz-chip { position: relative; display: inline-flex !important; cursor: pointer; }
.qz-chip input { position: absolute; opacity: 0; pointer-events: none; }
.qz-chip span { padding: 6px 11px; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--white); font-size: .72rem; line-height: 1.3; color: var(--text); transition: border-color .2s, background-color .2s, color .2s; }
.qz-chip:hover span { border-color: var(--gold); }
.qz-chip input:checked + span { border-color: var(--gold); background: var(--black); color: var(--white); }
.qz-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(248, 184, 20, .3); }
.qz-ok + .btn { margin-top: 2px; }
.qz-err { min-height: 1em; font-size: .74rem; color: #DC2626; }
.qz-priv { font-size: .68rem; color: var(--silver); }
.qz-fallback { margin-top: 18px; text-align: center; font-size: .82rem; color: var(--muted); }
.qz-fallback a { color: var(--blue); font-weight: 600; }
.qz-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; border-radius: var(--r-md); background: var(--ink); border: 1px solid rgba(255, 255, 255, .1); color: var(--white); box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .55); }
.qz-bar.is-on { display: flex; }
.qz-bar small { display: block; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: #9A9AA3; }
.qz-bar b { font-size: .8rem; white-space: nowrap; }
.qz-bar .btn { flex-shrink: 0; padding-inline: 16px; font-size: .8rem; }
@media (min-width: 640px) { .qz-cols { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) {
  .qz { grid-template-columns: minmax(0, 1fr) 390px; align-items: start; }
  .qz-side { position: sticky; top: calc(var(--nav-h) + 16px); max-height: calc(100vh - var(--nav-h) - 110px); overflow-y: auto; scrollbar-width: thin; border-radius: var(--r-xl); }
  /* dentro del cotizador el asistente queda solo como ícono, bajo el resumen (el resumen ya trae su botón de WhatsApp) */
  .in-quoter .bot-launch-label, .in-quoter .wa-float { display: none; }
  /* el botón de enviar queda siempre a la vista al pie del resumen */
  .qz-sum .qz-actions { position: sticky; bottom: 0; z-index: 1; margin: 16px -20px -22px; padding: 14px 20px 20px; background: var(--ink); border-radius: 0 0 var(--r-xl) var(--r-xl); box-shadow: 0 -18px 22px -14px var(--ink); }
  .qz-bar { display: none !important; }
}
@media (max-width: 999px) { .in-quoter .floaters { transform: translateY(-74px); } }

/* hoja para imprimir o guardar en PDF */
#qz-print { display: none; }
@media print {
  html.qz-printing body > *:not(#qz-print) { display: none !important; }
  html.qz-printing #qz-print { display: block !important; }
  @page { size: A4; margin: 16mm; }
}
.qp { font-family: Inter, "Segoe UI", system-ui, sans-serif; font-size: 11pt; color: #111113; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.qp header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 3px solid #111113; }
.qp header img { width: 210px; height: auto; }
.qp header div { text-align: right; } .qp header b { display: block; font-size: 13pt; color: #111113; } .qp header span { display: block; font-size: 9.5pt; color: #6B6E75; }
.qp-to { margin: 16px 0 12px; } .qp-to span { display: block; font-size: 8.5pt; letter-spacing: .1em; text-transform: uppercase; color: #6B6E75; } .qp-to b { font-size: 13pt; } .qp-to small { display: block; color: #4A4D53; }
.qp table { width: 100%; border-collapse: collapse; }
.qp td { padding: 5px 8px; border-bottom: 1px solid #E5E5E1; vertical-align: top; font-size: 10.5pt; }
.qp tr { break-inside: avoid; }
.qp td.r small { display: block; font-size: 8.5pt; line-height: 1.3; color: #4A4D53; }
.qp td.r { text-align: right; white-space: nowrap; }
.qp tr.g td { padding-top: 9px; background: #F3F3F0; color: #111113; font-weight: 700; border-left: 3px solid #F8B814; }
.qp tr.t td { font-weight: 700; font-size: 12pt; }
.qp tr.t.m td { color: #2C7CD4; }
.qp-meta { margin: 14px 0; padding: 12px 14px; border-radius: 6px; background: #F6F6F3; font-size: 9.5pt; line-height: 1.6; }
.qp h4 { margin: 12px 0 6px; color: #111113; } .qp ol { list-style: decimal; padding-left: 18px; font-size: 10pt; line-height: 1.6; }
.qp footer { margin-top: 22px; padding-top: 10px; border-top: 1px solid #E5E5E1; font-size: 8.5pt; color: #6B6E75; text-align: center; }
