/* ══════════════════════════════════════════════════════════════
   Zymbiotek — hoja de estilos del sitio público
   Sistema visual claro (DESIGN.md jul-2026) · 2 modos vía tokens.css
   Lenguaje: plataforma de operación y control, no landing futurista.
   ══════════════════════════════════════════════════════════════ */

/* ── Base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 16px); }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--t-slow), color var(--t-slow);
}

::selection { background: var(--highlight); color: var(--text); }

/* ── Scrollbar: visible y usable en ambos motores · coherente 2 modos ──────
   Firefox: scrollbar-width AUTO (ancho normal, no 'thin') + color de alto
   contraste. WebKit/Blink: barra ancha (14px) con thumb de color --muted
   claramente distinguible del track, redondeado y fácil de agarrar. */
html {
  scrollbar-width: auto;                               /* Firefox: no adelgazar */
  scrollbar-color: var(--muted) var(--surface-2);      /* thumb / track */
}
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track {
  background: var(--surface-2);
  border-left: 1px solid var(--border);
}
::-webkit-scrollbar-thumb {
  background: var(--muted);                             /* thumb bien visible */
  border: 3px solid var(--surface-2);                  /* aire, thumb ~8px agarrable */
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text); }
::-webkit-scrollbar-thumb:active { background: var(--primary); }
::-webkit-scrollbar-corner { background: var(--surface-2); }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-chip);
}

img, svg { max-width: 100%; }

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

section { padding: 88px 0; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 650; }
h3 { font-size: 1.08rem; font-weight: 600; }

.num, .cval, .amount, .commission, [data-counter],
.pricing-price, td { font-variant-numeric: tabular-nums; }

/* El viejo degradado ahora es acento sólido: un solo color de intención */
.gradient-text { color: var(--primary); }

.section-header { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-header p { color: var(--muted); margin-top: 14px; font-size: 1rem; }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--highlight);
  border: 1px solid transparent;
  padding: 5px 12px;
  border-radius: var(--radius-chip);
  margin-bottom: 14px;
}

/* ── Navegación ───────────────────────────────────────────────── */
#site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-height);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background-color var(--t-slow);
}
#site-nav.scrolled { border-bottom-color: var(--border); }

#site-nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 36px; width: auto; display: block; }
.logo .logo-dark  { display: block; }
.logo .logo-light { display: none; }
[data-theme="dark"] .logo .logo-dark  { display: none; }
[data-theme="dark"] .logo .logo-light { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  display: block;
  padding: 8px 13px;
  border-radius: var(--radius-ctl);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color var(--t), background-color var(--t);
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a[data-active="true"] { color: var(--primary); background: var(--highlight); }

.nav-cta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.nav-btn, .btn-login, .theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: var(--radius-ctl);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--t), background-color var(--t), color var(--t);
}
.nav-btn:hover, .btn-login:hover, .theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.nav-btn-tg svg { color: var(--brand-telegram); }
.nav-btn-wa svg { color: var(--brand-whatsapp); }

.btn-login {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-login:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
[data-theme="dark"] .btn-login { color: #10241f; }

.theme-toggle { padding: 8px 10px; }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-ctl);
  background: var(--surface);
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform var(--t-slow), opacity var(--t);
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  z-index: 99;
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 8px 0 12px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 24px;
  color: var(--text);
  font-weight: 500;
  border-left: 3px solid transparent;
}
.mobile-menu a:hover { background: var(--surface-2); border-left-color: var(--primary); }

/* ── Botones generales ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: var(--radius-ctl);
  font-size: 0.94rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--t), border-color var(--t), color var(--t), box-shadow var(--t);
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
[data-theme="dark"] .btn-primary { color: #10241f; }
/* Telegram y WhatsApp = misma familia de CTA (superficie + borde), identidad
   solo en el ícono de marca. Telegram deja de ser un bloque plano de color. */
.btn-outline, .btn-whatsapp, .btn-telegram {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover, .btn-whatsapp:hover, .btn-telegram:hover { border-color: var(--primary); color: var(--primary); }
.btn-whatsapp svg { color: var(--brand-whatsapp); }
.btn-telegram svg { color: var(--brand-telegram); }

/* ── Hero ─────────────────────────────────────────────────────── */
#inicio {
  position: relative;
  padding: calc(var(--nav-height) + 72px) 0 72px;
  overflow: hidden;
}
/* Fondo: cuadrícula de "papel milimetrado" — control, no humo */
#inicio::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 90% 70% at 60% 20%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 60% 20%, black 30%, transparent 75%);
  pointer-events: none;
}
.hero-glow { display: none; }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.hero-content .sub {
  color: var(--muted);
  font-size: 1.04rem;
  margin: 18px 0 26px;
  max-width: 520px;
}

.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.hero-stats .num {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: baseline;
}
.hero-stats .num span { color: var(--primary); font-weight: 600; }
.hero-stats .label { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

/* ── Hero: panel operativo (visual principal) ─────────────────── */
.hero-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.hero-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
}
.hero-panel-title .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  animation: hp-pulse 2.4s ease-in-out infinite;
}
.hero-panel-range {
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 3px 9px;
  border-radius: var(--radius-chip);
}
.hero-panel-body { padding: 16px; display: grid; gap: 14px; }

.hp-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hp-kpi {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 10px 12px;
  background: var(--surface);
}
.hp-kpi b {
  display: block;
  font-size: 1.28rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.hp-kpi small { color: var(--muted); font-size: 0.7rem; display: block; margin-top: 1px; }
.hp-kpi .delta { font-size: 0.7rem; font-weight: 700; color: var(--success); }

.hp-chart {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 12px 12px 6px;
}
.hp-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.76rem;
  margin-bottom: 4px;
}
.hp-chart-head b { font-weight: 600; }
.hp-chart-head span { color: var(--muted); }
.hp-chart svg { display: block; width: 100%; height: auto; color: var(--primary); }
.hp-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: hp-draw 1.6s ease-out 0.3s forwards;
}
.hp-area { fill: currentColor; opacity: 0; animation: hp-fade 0.8s ease-out 1.5s forwards; }
.hp-grid-line { stroke: var(--border); stroke-width: 1; }
.hp-dot-end { fill: currentColor; opacity: 0; animation: hp-fade 0.4s ease-out 1.8s forwards; }

.hp-rows { display: grid; gap: 8px; }
.hp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 8px 12px;
  background: var(--surface);
}
.hp-row .st {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.hp-row .st.ok   { background: var(--success); }
.hp-row .st.warn { background: var(--warning); }
.hp-row span { color: var(--muted); margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }

.hero-panel-caption {
  font-size: 0.68rem;
  color: var(--muted);
  text-align: right;
  padding: 0 16px 12px;
}

@keyframes hp-draw  { to { stroke-dashoffset: 0; } }
@keyframes hp-fade  { to { opacity: 0.12; } }
@keyframes hp-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }
.hp-dot-end { animation-fill-mode: forwards; }
@keyframes hp-dot   { to { opacity: 1; } }
.hp-dot-end { animation-name: hp-dot; }

/* ── Canales ──────────────────────────────────────────────────── */
.canales-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.canal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.canal-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-chip);
  border: 1px solid var(--border);
  background: var(--surface-2);
  margin-bottom: 14px;
}

.badge-prox {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--warning);
  background: var(--warning-bg);
  padding: 5px 12px;
  border-radius: var(--radius-chip);
}

.hero-services { display: grid; gap: 8px; margin-top: 6px; }
.hsvc {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.hsvc b { display: block; font-size: 0.86rem; font-weight: 600; }
.hsvc small { color: var(--muted); font-size: 0.76rem; }
.hsvc-ico { font-size: 1.1rem; flex-shrink: 0; }
.hsvc-chip {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: var(--radius-chip);
}
.hsvc-hoy  { color: var(--success); background: var(--success-bg); }
.hsvc-prox { color: var(--muted); border: 1px dashed var(--border); background: transparent; }

/* Mock de chat Telegram (ilustrativo) */
.tg-chat {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.tg-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.tg-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
}
.tg-name { font-size: 0.84rem; font-weight: 600; }
.tg-status { font-size: 0.7rem; color: var(--muted); }
.tg-body { padding: 14px; display: grid; gap: 8px; background: var(--bg); }
.tg-msg {
  position: relative;
  max-width: 84%;
  font-size: 0.8rem;
  padding: 8px 12px 16px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
}
.tg-msg-in  { background: var(--surface); justify-self: start; }
.tg-msg-out { background: var(--highlight); border-color: transparent; justify-self: end; }
.tg-time {
  position: absolute;
  right: 10px; bottom: 3px;
  font-size: 0.6rem;
  color: var(--muted);
}
.tg-keyboard { display: flex; gap: 8px; margin-top: 2px; }
.tg-kb-btn {
  flex: 1;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-ctl);
  padding: 7px 6px;
}

/* ── Widget de chat flotante (asistente conversacional, ilustrativo) ──────
   Reincorpora una representación visible del chat, integrada al sistema DEC-367.
   Reutiliza las clases .tg-avatar/.tg-msg/.tg-time. No conecta a un bot real:
   es demostración honesta con CTA al canal vivo (Telegram). */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 18px 12px 14px;
  background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg); cursor: pointer;
  font-family: inherit; font-size: 0.9rem; font-weight: 600;
  transition: transform var(--t), background var(--t);
}
.chat-fab:hover { background: var(--primary-hover); transform: translateY(-2px); }
[data-theme="dark"] .chat-fab { color: #10241f; }
.chat-fab svg { flex-shrink: 0; }
.chat-fab .fab-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success); box-shadow: 0 0 0 2px var(--primary);
}
.chat-fab.hidden { display: none; }

.chat-widget {
  position: fixed; right: 22px; bottom: 22px; z-index: 201;
  width: min(360px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden; display: none; flex-direction: column;
  animation: chat-in 0.2s ease-out;
}
.chat-widget.open { display: flex; }
@keyframes chat-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.chat-widget-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.chat-widget-head .tg-avatar { width: 34px; height: 34px; }
.cw-name { font-size: 0.88rem; font-weight: 650; }
.cw-status { font-size: 0.72rem; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.cw-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.chat-widget-close {
  margin-left: auto; background: none; border: none; cursor: pointer;
  color: var(--muted); padding: 4px; border-radius: var(--radius-chip); display: inline-flex;
}
.chat-widget-close:hover { color: var(--text); background: var(--surface); }
.chat-widget-body { padding: 14px; display: grid; gap: 8px; background: var(--bg); height: 300px; overflow-y: auto; align-content: start; }
.tg-msg.typing { color: var(--muted); font-style: italic; }
.chat-widget-input {
  display: flex; gap: 8px; align-items: center;
  padding: 10px 12px; border-top: 1px solid var(--border); background: var(--surface);
}
.chat-widget-input input {
  flex: 1; min-width: 0; font: inherit; font-size: 0.9rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 9px 14px;
}
.chat-widget-input input:focus { outline: none; border-color: var(--primary); box-shadow: var(--shadow-glow-accent); }
.chat-widget-send {
  flex-shrink: 0; width: 40px; height: 40px; border: none; border-radius: 50%;
  background: var(--primary); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
[data-theme="dark"] .chat-widget-send { color: #10241f; }
.chat-widget-send:disabled { opacity: 0.5; cursor: not-allowed; }
.chat-widget-note { font-size: 0.64rem; color: var(--muted); text-align: center; padding: 0 12px 9px; background: var(--surface); }
.chat-widget-note a { font-weight: 600; }

@media (max-width: 560px) {
  .chat-fab { right: 14px; bottom: 14px; }
  .chat-widget { right: 14px; bottom: 14px; }
}

/* ── Servicios ────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--t), box-shadow var(--t-slow), transform var(--t-slow);
}
.service-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.service-card p { color: var(--muted); font-size: 0.88rem; flex: 1; }
.service-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-card);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  background: var(--highlight);
}
.service-icon.icon-yellow { color: var(--warning); background: var(--warning-bg); }
.service-icon.icon-green  { color: var(--success); background: var(--success-bg); }
.service-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--highlight);
  padding: 4px 10px;
  border-radius: var(--radius-chip);
}

/* ── Cómo funciona ────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 26px 22px;
  overflow: hidden;
}
.step p { color: var(--muted); font-size: 0.88rem; margin-top: 8px; }
.step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem; font-weight: 700;
  margin-bottom: 12px;
}
[data-theme="dark"] .step-num { color: #10241f; }
.step-big-num {
  position: absolute;
  top: -18px; right: 6px;
  font-size: 6.5rem;
  font-weight: 800;
  color: var(--surface-2);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}
.step h3, .step p, .step-icon { position: relative; z-index: 1; }
.step-icon { font-size: 1.4rem; margin-bottom: 6px; }

/* ── Precios ──────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.pricing-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--primary);
}
.featured-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--primary);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
[data-theme="dark"] .featured-badge { color: #10241f; }
.pricing-name { font-size: 1rem; font-weight: 650; margin-bottom: 8px; }
.pricing-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.pricing-price .currency { font-size: 1rem; color: var(--muted); font-weight: 600; }
.pricing-price .amount { font-size: 2.4rem; font-weight: 750; letter-spacing: -0.02em; }
.pricing-period { color: var(--muted); font-size: 0.84rem; margin-bottom: 16px; }
.pricing-divider { height: 1px; background: var(--border); margin: 14px 0; }
.pricing-features { list-style: none; display: grid; gap: 9px; flex: 1; margin-bottom: 20px; }
.pricing-features li { display: flex; gap: 9px; font-size: 0.86rem; color: var(--text); }
.pricing-features .check { color: var(--success); font-weight: 700; flex-shrink: 0; }
.pricing-cta { width: 100%; text-align: center; }

/* Bundles / precios web */
.web-pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.web-bundle-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-top: 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t), box-shadow var(--t-slow);
}
.web-bundle-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.web-bundle-badge {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em;
  color: var(--warning); background: var(--warning-bg);
  padding: 4px 10px; border-radius: var(--radius-chip);
}
.web-bundle-discount { color: var(--success); font-weight: 700; }
.web-bundle-text { color: var(--muted); font-size: 0.88rem; }

/* ── FAQ ──────────────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 4px 18px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 13px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform var(--t-slow);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); font-size: 0.88rem; padding: 0 0 15px; }
.faq-link { font-weight: 600; }

/* ── Páginas web (browser mock) ───────────────────────────────── */
.browser-mock {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.browser-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.browser-url {
  flex: 1;
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-chip);
  padding: 3px 10px;
}
.browser-screen { position: relative; min-height: 150px; height: 200px; overflow: hidden; background: var(--surface-2); }
.browser-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #fff; }

/* ── Clientes ─────────────────────────────────────────────────── */
.clients-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.client-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.client-header { display: flex; align-items: center; gap: 12px; }
.client-rubro { color: var(--muted); font-size: 0.8rem; }
.client-link { font-size: 0.85rem; font-weight: 600; }
.bot-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--success);
  background: var(--success-bg);
  padding: 3px 9px;
  border-radius: var(--radius-chip);
}

/* ── Referidos ────────────────────────────────────────────────── */
.ref-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 36px; }
.ref-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px;
  text-align: center;
}
.ref-step p { color: var(--muted); font-size: 0.86rem; }
.ref-step-icon { font-size: 1.6rem; margin-bottom: 8px; }
.ref-step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--highlight);
  color: var(--primary);
  font-weight: 700; font-size: 0.8rem;
  margin-bottom: 10px;
}
.ref-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.ref-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.ref-table th {
  text-align: left;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
}
.ref-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.ref-table tr:last-child td { border-bottom: none; }
.ref-table tr:hover td { background: var(--highlight); }
.commission { color: var(--success); font-weight: 700; }
.ref-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: var(--radius-chip);
  font-size: 0.84rem;
}
.ref-conditions { color: var(--muted); font-size: 0.8rem; margin-top: 18px; }
.ref-cta { margin-top: 22px; text-align: center; }

/* ── Contacto ─────────────────────────────────────────────────── */
.contact-box {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.contact-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* ── Footer ───────────────────────────────────────────────────── */
footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
/* Footer centrado como composición: cada bloque centrado en el eje, no
   apoyado a la izquierda. justify-items + text-align + margin auto. */
.footer-inner {
  display: grid;
  gap: 22px;
  justify-items: center;
  text-align: center;
}
.footer-info {
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 620px;
  margin: 0 auto;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
}
.footer-links a { color: var(--muted); font-size: 0.86rem; }
.footer-links a:hover { color: var(--primary); }
.footer-socials { display: flex; justify-content: center; gap: 10px; }
.footer-socials a {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-ctl);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
}
.footer-socials a:hover { color: var(--primary); border-color: var(--primary); }
.footer-socials svg { fill: currentColor; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.footer-legal a { color: var(--muted); font-size: 0.8rem; }
.footer-legal a:hover { color: var(--primary); }
.footer-copy { color: var(--muted); font-size: 0.78rem; }

/* ── Páginas legales (privacidad, términos, devoluciones, reclamaciones) ── */
.page-hero {
  padding: calc(var(--nav-height) + 56px) 0 40px;
  border-bottom: 1px solid var(--border);
}
.page-hero p { color: var(--muted); margin-top: 10px; font-size: 0.95rem; }

.legal-body { padding: 52px 0 96px; }
.legal-body .container { max-width: 800px; }
.legal-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.legal-section h2 {
  font-size: 1.2rem;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.legal-section h3 { font-size: 1.02rem; margin: 18px 0 8px; }
.legal-section p { color: var(--text); margin-bottom: 12px; line-height: 1.65; }
.legal-section ul { list-style: disc; padding-left: 20px; margin-bottom: 12px; }
.legal-section li { color: var(--text); margin-bottom: 6px; line-height: 1.6; }
.legal-section a { font-weight: 600; }

.price-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.price-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.price-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.price-table tr:last-child td { border-bottom: none; }
.price-table .plan-name { font-weight: 600; }
.price-table .plan-price { color: var(--primary); font-weight: 700; }

/* Formulario libro de reclamaciones */
.legal-form { display: grid; gap: 16px; }
.legal-form label { display: grid; gap: 6px; font-size: 0.86rem; font-weight: 600; color: var(--text); }
.legal-form input,
.legal-form select,
.legal-form textarea {
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-ctl);
  padding: 10px 12px;
  width: 100%;
}
.legal-form input:focus,
.legal-form select:focus,
.legal-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-glow-accent);
}
.legal-form textarea { min-height: 110px; resize: vertical; }
.legal-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .legal-form .form-row { grid-template-columns: 1fr; } }

@media (max-width: 560px) { .legal-section { padding: 20px; } }

/* ── Reveal on scroll ─────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ── Utilidades de color legacy ───────────────────────────────── */
.green  { color: var(--success); }
.yellow { color: var(--warning); }
.red    { color: var(--error); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid, .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid, .web-pricing-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .nav-label { display: none; }
  .nav-btn, .btn-login { padding: 8px 10px; }
}

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { max-width: 440px; }
  .canales-grid { grid-template-columns: 1fr; }
  .steps, .ref-steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  section { padding: 64px 0; }
}

@media (max-width: 560px) {
  .services-grid, .clients-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .hp-kpis { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .hp-kpi b { font-size: 1.05rem; }
  .web-bundle-card { flex-direction: column; align-items: flex-start; }
  .container { padding: 0 16px; }
}

/* ── Reduced motion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hp-line { stroke-dashoffset: 0; }
  .hp-area { opacity: 0.12; }
  .hp-dot-end { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
}

/* ══ Zym Guided Actions — resalte temporal del destino (2026-07-23) ══ */
.zym-ga-highlight {
  animation: zym-ga-pulse 1600ms ease-out;
  outline: 2px solid var(--accent, #0F766E);
  outline-offset: 4px;
  border-radius: 8px;
}
@keyframes zym-ga-pulse {
  0%   { outline-color: transparent; }
  30%  { outline-color: var(--accent, #0F766E); }
  100% { outline-color: transparent; }
}
.zym-ga-highlight:focus { outline-offset: 4px; }

/* ══ Formulario de captación → Zym Growth (DEC-403) ═══════════════════════
   Convive con los botones directos: no los sustituye. Quien prefiere WhatsApp
   sigue teniéndolo primero; esto recoge a quien no quiere abrir otra app. */
.lead-alt {
  display: flex; align-items: center; gap: .9rem;
  margin: 26px 0 18px; color: var(--dim, var(--muted));
  font-size: .85rem;
}
.lead-alt::before, .lead-alt::after {
  content: ""; flex: 1; height: 1px; background: var(--border); opacity: .5;
}
.lead-form { display: grid; gap: .7rem; max-width: 520px; margin: 0 auto; text-align: left; }
.lead-row  { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.lead-form input, .lead-form textarea {
  width: 100%; padding: .8rem .95rem;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text);
  font: inherit; font-size: .95rem; resize: vertical;
}
.lead-form input::placeholder, .lead-form textarea::placeholder { color: var(--muted); opacity: .8; }
.lead-form input:focus, .lead-form textarea:focus {
  outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary);
}
.lead-submit { justify-self: start; cursor: pointer; }
.lead-submit[disabled] { opacity: .6; cursor: progress; }
.lead-estado { margin: 0; font-size: .88rem; min-height: 1.2em; color: var(--muted); }
.lead-estado--ok    { color: var(--success); font-weight: 600; }
.lead-estado--error { color: var(--error); }
.lead-fallback { justify-self: start; margin-top: .2rem; }

/* Etiquetas para lector de pantalla: los placeholders solos no son etiqueta */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (max-width: 560px) { .lead-row { grid-template-columns: 1fr; } }
