/* =========================================================
   SPX HOST - HOME
   Tokens: copiados del Design System oficial (carpeta 2).
   Acento unico: rojo #E30613. Tema unico: claro.
   Bandas grafito usadas de forma deliberada (patron de marca).
   ========================================================= */
:root {
  /* Brand */
  --spx-red-50: #fff1f2;
  --spx-red-100: #ffe4e6;
  --spx-red-200: #fecdd3;
  --spx-red-400: #fb7185;
  --spx-red-500: #e30613;
  --spx-red-600: #c8000d;
  --spx-red-700: #a8000b;

  /* Neutrals */
  --spx-black: #0d0d0d;
  --spx-graphite: #171a1f;
  --spx-surface-dark: #11151b;
  --spx-surface-dark-2: #1d222b;
  --spx-gray-900: #1b1f26;
  --spx-gray-800: #2d333d;
  --spx-gray-700: #464d59;
  --spx-gray-600: #646d79;
  --spx-gray-500: #828b98;
  --spx-gray-400: #a7adb7;
  --spx-gray-300: #cbd0d7;
  --spx-gray-200: #e1e5ea;
  --spx-gray-100: #f3f5f7;
  --spx-gray-50: #f8f9fb;
  --spx-white: #ffffff;

  /* Functional */
  --spx-blue: #2563eb;
  --spx-green: #22c55e;
  --spx-amber: #f59e0b;
  --spx-error: #dc2626;

  /* Semantic */
  --color-bg: var(--spx-white);
  --color-surface: var(--spx-white);
  --color-surface-alt: var(--spx-gray-50);
  --color-text: var(--spx-gray-900);
  --color-text-muted: var(--spx-gray-600);
  --color-border: var(--spx-gray-200);
  --color-primary: var(--spx-red-500);
  --color-primary-hover: var(--spx-red-600);
  --color-primary-active: var(--spx-red-700);
  --color-focus: rgba(37, 99, 235, .28);
  /* --spx-green (#22c55e) solo alcanza 2.3:1 sobre fondos claros (falla AA);
     usar esta variante oscura cuando el verde sea texto/icono, no fondo. */
  --color-success-text: #166534;

  /* Typography */
  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --lh-heading: 1.2;
  --lh-body: 1.6;

  /* Spacing: base 4px */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(13,13,13,.06);
  --shadow-sm: 0 4px 14px rgba(13,13,13,.08);
  --shadow-md: 0 12px 30px rgba(13,13,13,.12);
  --shadow-lg: 0 24px 60px rgba(13,13,13,.18);
  --shadow-red: 0 12px 32px rgba(227,6,19,.22);

  /* Motion */
  --duration-fast: 140ms;
  --duration-base: 180ms;
  --duration-slow: 260ms;
  --ease-standard: cubic-bezier(.2,.8,.2,1);

  /* Layout */
  --container: 1360px;
  --header-height: 72px;
  --z-header: 200;
  --z-drawer: 900;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: var(--lh-body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: var(--lh-heading); margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius-xs); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-6); }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-head { max-width: 720px; margin-bottom: var(--space-10); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; color: var(--color-primary);
  font-weight: 800; font-size: .75rem; letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: var(--space-4);
}
h2.title { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3.subtitle { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.lead { color: var(--color-text-muted); font-size: clamp(1rem, 1.4vw, 1.125rem); margin-top: var(--space-4); }
.text-red { color: var(--color-primary); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  min-height: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: 1rem; font-weight: 700; line-height: 1;
  white-space: nowrap;
  transition: background-color var(--duration-base) var(--ease-standard),
              border-color var(--duration-base) var(--ease-standard),
              color var(--duration-base) var(--ease-standard),
              transform var(--duration-base) var(--ease-standard),
              box-shadow var(--duration-base) var(--ease-standard);
}
.btn i { font-size: 1.15em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: 0 8px 20px rgba(227,6,19,.18); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--color-primary-hover); color: #fff; box-shadow: var(--shadow-red); }
.btn-primary:active { background: var(--color-primary-active); }
.btn-secondary { background: var(--spx-black); color: #fff; }
.btn-secondary:hover { background: var(--spx-gray-800); box-shadow: var(--shadow-sm); }
.btn-outline { background: transparent; border-color: var(--color-border); color: var(--color-text); }
.btn-outline:hover { background: var(--color-surface-alt); border-color: var(--spx-gray-400); }
.btn-whatsapp { background: #25d366; color: #08130d; }
.btn-whatsapp:hover { background: #1fbe5b; box-shadow: 0 8px 20px rgba(37,211,102,.28); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .875rem; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 1.125rem; }
.btn-block { width: 100%; }

/* Ripple */
.ripple {
  position: absolute; border-radius: 50%; transform: scale(0);
  background: rgba(255,255,255,.45); pointer-events: none;
  animation: ripple .6s var(--ease-standard);
}
.btn-outline .ripple, .btn-whatsapp .ripple { background: rgba(13,13,13,.14); }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 26px; padding: 0 12px; border-radius: var(--radius-pill);
  font-size: .75rem; font-weight: 800; letter-spacing: .02em;
}
.badge-red { background: var(--spx-red-50); color: var(--spx-red-700); }
.badge-dark { background: var(--spx-black); color: #fff; }
.badge-green { background: #dcfce7; color: #166534; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: sticky; top: 0; z-index: var(--z-header);
  height: var(--header-height);
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}
.header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 64px; width: auto; mix-blend-mode: multiply; }
.nav-desktop { display: flex; align-items: center; gap: var(--space-8); }
.nav-desktop a { color: var(--color-text-muted); font-weight: 600; font-size: .95rem; transition: color var(--duration-base) var(--ease-standard); }
.nav-desktop a:hover, .nav-desktop a.active { color: var(--color-primary); }
.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.icon-link {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: var(--radius-md); color: #128c7e; font-size: 1.4rem;
  border: 1px solid var(--color-border); background: var(--color-surface);
  transition: transform var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard);
}
.icon-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.nav-toggle { display: none; width: 44px; height: 44px; place-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); font-size: 1.5rem; color: var(--color-text); }

/* Mobile drawer */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: var(--z-drawer);
  background: rgba(13,13,13,.5); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity var(--duration-slow) var(--ease-standard), visibility var(--duration-slow);
}
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; z-index: calc(var(--z-drawer) + 1);
  width: min(320px, 85vw); height: 100%;
  background: var(--color-surface); box-shadow: var(--shadow-lg);
  padding: var(--space-6);
  transform: translateX(100%); transition: transform var(--duration-slow) var(--ease-standard);
  display: flex; flex-direction: column; gap: var(--space-2);
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-4); }
.drawer-head img { height: 40px; mix-blend-mode: multiply; }
.drawer-close { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: var(--color-surface-alt); border-radius: var(--radius-md); font-size: 1.4rem; }
.drawer a.drawer-link { padding: 14px 12px; border-radius: var(--radius-md); font-weight: 600; color: var(--color-text); transition: background var(--duration-base) var(--ease-standard); }
.drawer a.drawer-link:hover { background: var(--color-surface-alt); color: var(--color-primary); }
.drawer .btn { margin-top: var(--space-4); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3rem, 5vw, 4.5rem); }
.hero::before {
  content: ""; position: absolute; top: -20%; right: -10%; width: 60%; height: 120%;
  background: radial-gradient(circle at 70% 40%, rgba(227,6,19,.10), transparent 60%);
  pointer-events: none; z-index: 0;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero-copy { max-width: 620px; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.25rem); font-weight: 800; line-height: 1.1; }
.hero .lead { max-width: 480px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero-badge { margin-bottom: var(--space-5); }

/* Performance widget (componente de UI, datos ilustrativos) */
.perf-panel {
  position: relative;
  background: var(--spx-graphite); color: #fff;
  border-radius: var(--radius-xl); padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.06);
}
.perf-panel::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08); pointer-events: none;
}
.perf-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-5); }
.perf-head strong { font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.perf-live { display: inline-flex; align-items: center; gap: 7px; font-size: .75rem; color: var(--spx-gray-400); }
.perf-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--spx-green); box-shadow: 0 0 0 0 rgba(34,197,94,.5); animation: pulse 2.4s var(--ease-standard) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.5);} 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0);} 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0);} }
.perf-hero { background: var(--spx-surface-dark); border-radius: var(--radius-lg); padding: var(--space-5); margin-bottom: var(--space-4); }
.perf-hero small { color: var(--spx-gray-400); font-size: .8rem; }
.perf-value { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; letter-spacing: -.04em; margin: 4px 0 2px; }
.perf-value .u { font-size: 1.25rem; color: var(--spx-gray-400); }
.perf-ok { color: #69db8f; font-size: .85rem; font-weight: 600; }
.spark { height: 54px; margin-top: var(--space-3); border-radius: var(--radius-sm); background: linear-gradient(180deg, rgba(227,6,19,.22), rgba(227,6,19,0)); position: relative; overflow: hidden; }
.spark::after { content: ""; position: absolute; left: 0; right: 0; bottom: 16px; height: 2px; background: linear-gradient(90deg, transparent, #e30613 18%, #e30613 82%, transparent); transform: skewY(-6deg); }
.perf-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.perf-metric { background: var(--spx-surface-dark); border-radius: var(--radius-md); padding: var(--space-4); }
.perf-metric small { color: var(--spx-gray-400); font-size: .72rem; display: block; }
.perf-metric b { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.perf-note { margin-top: var(--space-4); color: var(--spx-gray-500); font-size: .7rem; text-align: right; }
.perf-chip {
  position: absolute; left: -16px; bottom: -18px;
  display: flex; align-items: center; gap: 10px;
  background: #fff; color: var(--spx-gray-900);
  border-radius: var(--radius-md); padding: 10px 14px; box-shadow: var(--shadow-md);
}
.perf-chip img { height: 26px; width: 26px; }
.perf-chip b { font-family: var(--font-display); font-size: .82rem; display: block; line-height: 1.2; }
.perf-chip span { font-size: .7rem; color: var(--color-success-text); font-weight: 700; }

/* ---------- Reassurance bar ---------- */
.reassure { border-block: 1px solid var(--color-border); background: var(--color-surface-alt); }
.reassure .container { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-8); justify-content: center; padding-block: var(--space-5); }
.reassure-item { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; }
.reassure-item i { color: var(--color-primary); font-size: 1.25rem; }

/* =========================================================
   TECH STRIP
   ========================================================= */
.tech-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4); }
.tech-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-3);
  transition: transform var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard);
}
.tech-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--spx-gray-300); }
.tech-logo { height: 40px; display: flex; align-items: center; }
.tech-logo img { height: 34px; width: auto; }
.tech-logo .wa { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #eafaf1; color: #25d366; font-size: 1.5rem; }
.tech-card b { font-family: var(--font-display); font-size: 1rem; }
.tech-card p { color: var(--color-text-muted); font-size: .875rem; }

/* =========================================================
   PRICING
   ========================================================= */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); align-items: start; }
.plan {
  position: relative; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: var(--space-6); box-shadow: var(--shadow-sm);
  transition: transform var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard);
  display: flex; flex-direction: column;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan.featured { border: 2px solid var(--color-primary); box-shadow: var(--shadow-red); }
.plan.featured:hover { transform: translateY(-6px); }
.plan-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); }
.plan-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; }
.plan-desc { color: var(--color-text-muted); font-size: .9rem; margin-top: 6px; min-height: 40px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-top: var(--space-5); }
.plan-price .amount { font-family: var(--font-display); font-size: 2.75rem; font-weight: 800; letter-spacing: -.04em; }
.plan-price .per { color: var(--color-text-muted); font-size: .9rem; }
.plan-old { color: var(--color-text-muted); font-size: .85rem; margin-top: 4px; }
.plan-old s { color: var(--spx-gray-500); }
.plan-off { color: var(--color-primary); font-weight: 700; }
.plan .btn { margin-top: var(--space-5); }
.plan-features { margin-top: var(--space-6); display: grid; gap: var(--space-3); }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; }
.plan-features li i { color: var(--color-success-text); font-size: 1.1rem; margin-top: 1px; flex-shrink: 0; }
.plan-foot { margin-top: var(--space-6); color: var(--color-text-muted); font-size: .8rem; text-align: center; }

/* =========================================================
   MONITORING BENTO
   ========================================================= */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); grid-auto-rows: 1fr; }
.bento-cell {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-6);
  transition: transform var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard);
}
.bento-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.bento-cell.wide { grid-column: span 2; }
.bento-cell.dark { background: var(--spx-graphite); color: #fff; border-color: rgba(255,255,255,.06); }
.bento-cell.dark p, .bento-cell.dark li { color: var(--spx-gray-300); }
.bento-cell.accent { background: linear-gradient(135deg, var(--spx-red-500), var(--spx-red-700)); color: #fff; border: 0; }
.bento-cell.accent p { color: rgba(255,255,255,.85); }
.b-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--spx-red-50); color: var(--color-primary); font-size: 1.5rem; margin-bottom: var(--space-4); }
.bento-cell.dark .b-icon { background: rgba(227,6,19,.18); color: #ff7b83; }
.bento-cell.accent .b-icon { background: rgba(255,255,255,.16); color: #fff; }
.bento-cell h4 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: var(--space-2); }
.bento-cell p { color: var(--color-text-muted); font-size: .9rem; }
.b-list { margin-top: var(--space-4); display: grid; gap: 8px; }
.b-list li { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--color-text-muted); }
.b-list li i { color: var(--color-primary); font-size: 1rem; }
.bento-cell.accent .b-stat { font-family: var(--font-display); font-size: 3rem; font-weight: 800; letter-spacing: -.04em; }

/* =========================================================
   SECURITY / SPLIT sections
   ========================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.split.reverse .split-visual { order: -1; }
.feature-list { display: grid; gap: var(--space-4); margin-top: var(--space-6); }
.feature-row { display: flex; gap: var(--space-4); align-items: flex-start; }
.feature-row .fi { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--spx-red-50); color: var(--color-primary); font-size: 1.35rem; }
.feature-row b { font-family: var(--font-display); font-size: 1.05rem; display: block; margin-bottom: 2px; }
.feature-row p { color: var(--color-text-muted); font-size: .9rem; }

/* Layered security visual */
.shield-visual {
  position: relative; border-radius: var(--radius-xl); padding: clamp(2rem,4vw,3rem);
  background: radial-gradient(circle at 50% 35%, rgba(227,6,19,.12), transparent 65%), var(--color-surface-alt);
  border: 1px solid var(--color-border); display: grid; place-items: center; min-height: 340px;
}
.shield-core { width: 130px; height: 130px; border-radius: 30px; display: grid; place-items: center; background: linear-gradient(135deg, var(--spx-red-500), var(--spx-red-700)); color: #fff; font-size: 3.4rem; box-shadow: var(--shadow-red); }
.shield-ring { position: absolute; border: 1.5px dashed var(--spx-gray-300); border-radius: 50%; }
.shield-ring.r1 { width: 220px; height: 220px; animation: spin 26s linear infinite; }
.shield-ring.r2 { width: 300px; height: 300px; animation: spin 40s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.shield-tag { position: absolute; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-pill); padding: 7px 14px; font-size: .78rem; font-weight: 700; box-shadow: var(--shadow-sm); display: inline-flex; align-items: center; gap: 7px; }
.shield-tag i { color: var(--color-primary); }
.shield-tag.t1 { top: 14%; left: 4%; }
.shield-tag.t2 { top: 8%; right: 6%; }
.shield-tag.t3 { bottom: 16%; left: 8%; }
.shield-tag.t4 { bottom: 10%; right: 4%; }

/* =========================================================
   IA BAND (grafito, patron de marca deliberado)
   ========================================================= */
.band-dark { background: var(--spx-graphite); color: #fff; }
.band-dark .eyebrow { color: #ff7b83; }
.band-dark .lead { color: var(--spx-gray-300); }
.ia-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,4vw,4rem); align-items: center; }
.ia-features { display: grid; gap: var(--space-4); margin-top: var(--space-8); }
.ia-item { display: flex; gap: var(--space-4); align-items: flex-start; }
.ia-item .fi { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: rgba(227,6,19,.18); color: #ff7b83; font-size: 1.3rem; }
.ia-item b { font-family: var(--font-display); display: block; margin-bottom: 2px; }
.ia-item p { color: var(--spx-gray-400); font-size: .9rem; }
/* Chat mock */
.chat {
  background: var(--spx-surface-dark); border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-xl); padding: var(--space-6); box-shadow: var(--shadow-lg);
}
.chat-top { display: flex; align-items: center; gap: 12px; padding-bottom: var(--space-4); border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: var(--space-5); }
.chat-avatar { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--spx-red-500), var(--spx-red-700)); color: #fff; font-size: 1.4rem; }
.chat-top b { font-family: var(--font-display); font-size: .95rem; }
.chat-top small { color: var(--spx-gray-400); font-size: .75rem; display: flex; align-items: center; gap: 6px; }
.bubble { max-width: 80%; padding: 12px 16px; border-radius: 16px; font-size: .9rem; margin-bottom: var(--space-3); line-height: 1.5; }
.bubble.user { margin-left: auto; background: var(--spx-red-600); color: #fff; border-bottom-right-radius: 4px; }
.bubble.bot { background: var(--spx-surface-dark-2); color: var(--spx-gray-100); border-bottom-left-radius: 4px; }
.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--spx-gray-500); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,60%,100% { opacity:.3; transform: translateY(0);} 30% { opacity:1; transform: translateY(-2px);} }

/* =========================================================
   MANAGEMENT GRID (2x2)
   ========================================================= */
.manage-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.manage-card { display: flex; gap: var(--space-4); padding: var(--space-6); border-radius: var(--radius-lg); background: var(--color-surface-alt); transition: transform var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard); }
.manage-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.manage-card .fi { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--color-primary); font-size: 1.5rem; box-shadow: var(--shadow-xs); }
.manage-card b { font-family: var(--font-display); font-size: 1.1rem; display: block; margin-bottom: 4px; }
.manage-card p { color: var(--color-text-muted); font-size: .9rem; }

/* =========================================================
   SUPPORT STEPS
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4); counter-reset: step; }
.step { position: relative; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); }
.step .n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--spx-red-50); color: var(--color-primary); font-family: var(--font-display); font-weight: 800; margin-bottom: var(--space-3); }
.step b { font-family: var(--font-display); font-size: .98rem; display: block; margin-bottom: 4px; }
.step p { color: var(--color-text-muted); font-size: .84rem; }

/* =========================================================
   FAQ ACCORDION
   ========================================================= */
.faq { max-width: 860px; margin-inline: auto; }
.faq-item { margin-bottom: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); overflow: hidden; transition: border-color var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard); }
.faq-item:hover, .faq-item.open { border-color: var(--spx-red-200); box-shadow: var(--shadow-xs); }
.faq-q { width: 100%; background: transparent; border: 0; text-align: left; padding: var(--space-5); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--color-text); transition: background-color var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard); }
.faq-q:hover, .faq-item.open .faq-q { background: var(--spx-red-50); color: var(--spx-red-700); }
.faq-q i { color: var(--color-primary); font-size: 1.3rem; transition: transform var(--duration-slow) var(--ease-standard); flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { overflow: hidden; height: 0; transition: height var(--duration-slow) var(--ease-standard); }
.faq-a-inner { padding: 0 var(--space-5) var(--space-5); color: var(--color-text-muted); font-size: .95rem; max-width: 70ch; }
.faq-a-inner a { color: var(--color-primary); text-decoration: underline; }

/* =========================================================
   FINAL CTA
   ========================================================= */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: clamp(2.5rem, 5vw, 4.5rem); text-align: center; background: linear-gradient(135deg, var(--spx-graphite), var(--spx-black)); color: #fff; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(227,6,19,.28), transparent 60%); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta-band .lead { color: var(--spx-gray-300); margin-inline: auto; max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; margin-top: var(--space-8); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--spx-black); color: var(--spx-gray-300); padding-block: var(--space-16) var(--space-8); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-8); }
.footer-brand .chip { display: inline-flex; background: #fff; padding: 10px 14px; border-radius: var(--radius-md); margin-bottom: var(--space-4); }
.footer-brand .chip img { height: 40px; }
.footer-brand p { font-size: .9rem; max-width: 300px; }
.footer-social { display: flex; gap: 10px; margin-top: var(--space-5); }
.footer-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-md); background: var(--spx-surface-dark-2); color: var(--spx-gray-300); font-size: 1.2rem; transition: background var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-standard); }
.footer-social a:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); }
.footer-col h5 { font-family: var(--font-display); color: #fff; font-size: 1rem; margin-bottom: var(--space-4); }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { color: var(--spx-gray-400); font-size: .9rem; transition: color var(--duration-base) var(--ease-standard); }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: center; gap: 10px; font-size: .9rem; margin-bottom: 12px; }
.footer-contact li i { color: var(--color-primary); font-size: 1.15rem; }
.footer-contact-link { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: color var(--duration-base) var(--ease-standard); }
.footer-contact-link:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: space-between; margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--spx-surface-dark-2); font-size: .84rem; }
.footer-bottom .status { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom .status .d { width: 8px; height: 8px; border-radius: 50%; background: var(--spx-green); }

/* =========================================================
   SCROLL REVEAL MOTION
   ========================================================= */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease-standard), transform .6s var(--ease-standard); transition-delay: var(--reveal-delay, 0ms); }
[data-reveal].in-view { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .header-actions .btn-header { display: none; }
  .nav-toggle { display: grid; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: 2; }
  .split, .ia-split { grid-template-columns: 1fr; }
  .split.reverse .split-visual { order: 0; }
  .plans-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan.featured { transform: none; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento-cell.wide { grid-column: span 1; }
  .manage-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { padding-inline: var(--space-4); }
  .header .container { gap: var(--space-3); }
  .brand img { height: 52px; }
  .hero { padding-block: 2.5rem 3rem; }
  .hero h1 { font-size: clamp(2rem, 10vw, 2.7rem); }
  .perf-panel { padding: var(--space-4); }
  .perf-metrics { gap: var(--space-2); }
  .perf-metric { padding: var(--space-3); }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-cta, .cta-actions { flex-direction: column; }
  .hero-cta .btn, .cta-actions .btn { width: 100%; }
  /* .btn fuerza white-space:nowrap + overflow:hidden (para el ripple); en
     mobile, con botones a 100% de ancho, un texto largo sin icono (ej.
     "Recibir recomendacion por WhatsApp") se recortaba en vez de bajar de
     linea. Permitir wrap en todos los botones de forma sistematica. */
  .btn { white-space: normal; text-align: center; row-gap: 2px; }
  .btn-lg { font-size: 1rem; padding: 12px 22px; }
  .btn-sm { font-size: .82rem; padding: 0 14px; }
  .plan-desc { min-height: auto; }
  .reassure .container { gap: var(--space-3) var(--space-5); }
  .faq-q { padding: var(--space-4); font-size: .98rem; gap: var(--space-3); }
  .faq-a-inner { padding-inline: var(--space-4); font-size: .93rem; }
  .footer-social { flex-wrap: wrap; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .shield-ring, .perf-dot, .typing span { animation: none !important; }
}
