/* ==========================================================================
   Bengku — Tema claro (HTML + Tailwind CDN + Chart.js)
   Paleta: fondo #f8fafc (claro), superficie #ffffff, acento azul medio #2563eb,
   texto #0f172a
   ========================================================================== */

:root {
  --bg:        #f8fafc;
  --surface:   #ffffff;
  --surface-2: #eef2f7;
  --border:    #e2e8f0;
  --text:      #0f172a;
  --muted:     #475569;
  --green:     #2563eb;
  --red:       #dc2626;
  --accent:    #2563eb;
  --blue:      #3b82f6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Manrope', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Navbar ---------- */
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: rgba(248,250,252,.92);
  backdrop-filter: blur(8px); z-index: 100;
}
.navbar .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--text); }
.navbar .brand .dot { width: 12px; height: 12px; background: var(--green); border-radius: 3px; }
.nav-links { display: flex; gap: 24px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { background: var(--green); color: #ffffff !important; padding: 9px 18px; border-radius: 8px; font-weight: 700; }
.nav-cta:hover { background: #1d4ed8; color: #ffffff !important; }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 100px 0 40px; text-align: center; position: relative; }
.hero .badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(37,99,235,.10); color: var(--accent); font-size: .8rem; font-weight: 700;
  letter-spacing: .04em; margin-bottom: 18px;
}
.hero .subtitle { color: var(--muted); max-width: 680px; margin: 0 auto 28px; font-size: 1.1rem; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn { display: inline-block; padding: 13px 26px; border-radius: 10px; font-weight: 700; font-size: .98rem; cursor: pointer; border: 1px solid transparent; transition: .18s ease; }
.btn-primary { background: var(--accent); color: #ffffff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
/* ---------- Navbar responsive / hamburguesa ---------- */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.4rem;
  width: 42px; height: 42px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }
  .nav-toggle { display: inline-flex; }
  nav.menu { display: none; width: 100%; }
  nav.menu.open { display: block; }
  .nav-links {
    flex-direction: column;
    gap: 4px;
    padding: 14px 0;
    width: 100%;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
  }
  .nav-links a:hover { background: var(--surface-2); }
  .nav-links .nav-cta { text-align: center; margin-top: 6px; }
}
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.section { padding: 60px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px; transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--green); }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--muted); font-size: .95rem; }

.price-up { color: var(--green); font-weight: 700; }
.price-down { color: var(--red); font-weight: 700; }

/* ---------- Tabla de precios ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
table.markets { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.markets th, table.markets td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
table.markets th { color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: .72rem; letter-spacing: .06em; }
table.markets tr:last-child td { border-bottom: none; }
table.markets tr:hover td { background: var(--surface-2); }
.symbol { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.symbol .ticker { color: var(--muted); font-weight: 500; font-size: .8rem; }

/* ---------- Dashboard ---------- */
.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.stat .label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.stat .value { font-size: 1.8rem; font-weight: 800; margin-top: 4px; }
.chart-box { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.chart-box canvas { width: 100% !important; height: 320px !important; }

.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.pill-green { background: rgba(37,99,235,.15); color: var(--green); }
.pill-red { background: rgba(239,68,68,.15); color: var(--red); }
.pill-blue { background: rgba(59,130,246,.15); color: var(--blue); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 40px; }
.footer .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 700px) { .footer .cols { grid-template-columns: 1fr 1fr; } }
.footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer li a { color: var(--text); font-size: .9rem; }
.footer li a:hover { color: var(--green); }
.legal-note { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: .82rem; }

.muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }

/* ==========================================================================
   UPGRADE VISUAL — ambiental tech + animaciones (SUMA, no reemplaza)
   ========================================================================== */

/* ---------- Fondo ambiental animado ---------- */
body.ambient {
  position: relative;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37,99,235,.14), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(59,130,246,.10), transparent 55%),
    var(--bg);
}
.grid-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}
.particle {
  position: fixed; border-radius: 50%;
  background: var(--green); opacity: .35; z-index: 0; pointer-events: none;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: .35; }
  90% { opacity: .15; }
  100% { transform: translateY(-110vh) translateX(40px); opacity: 0; }
}

/* ---------- Texto gradiente animado ---------- */
.gradient-text {
  background: linear-gradient(90deg, #2563eb, #3b82f6, #2563eb);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer {
  to { background-position: 200% center; }
}

/* ---------- Aparición (fade + rise) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .12s; }
.reveal.delay-2 { transition-delay: .24s; }
.reveal.delay-3 { transition-delay: .36s; }

/* ---------- Card glow (tech) ---------- */
.card.glow { position: relative; overflow: hidden; }
.card.glow::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,0%), rgba(37,99,235,.12), transparent 40%);
  opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.card.glow:hover::before { opacity: 1; }
.card.glow:hover { border-color: rgba(37,99,235,.55); box-shadow: 0 12px 40px rgba(37,99,235,.12); }

/* ---------- Pulse del badge ---------- */
.pulse-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 8px; box-shadow: 0 0 0 0 rgba(37,99,235,.6); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,99,235,.6); }
  70% { box-shadow: 0 0 0 10px rgba(37,99,235,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); }
}

/* ---------- Marquee de precios (ticker) ---------- */
.ticker {
  overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.7); padding: 10px 0;
}
.ticker-track { display: flex; gap: 40px; white-space: nowrap; animation: ticker 30s linear infinite; will-change: transform; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--muted); }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Botón con brillo ---------- */
.btn-primary.glow-btn {
  position: relative; overflow: hidden;
  box-shadow: 0 0 24px rgba(37,99,235,.35);
  transition: box-shadow .25s ease, transform .18s ease;
}
.btn-primary.glow-btn:hover { box-shadow: 0 0 40px rgba(37,99,235,.6); transform: translateY(-2px); }

/* ---------- Stat con número animado ---------- */
.stat .value.count { font-variant-numeric: tabular-nums; }

/* ---------- Cursor radar en hero ---------- */
.hero { position: relative; }

/* ==========================================================================
   UPGRADE PRO — iconos profesionales + logo-mark (SUMA)
   ========================================================================== */
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--green), #1d4ed8);
  color: #ffffff; font-size: .95rem;
  box-shadow: 0 0 16px rgba(37,99,235,.4);
}
.card h3 i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: rgba(37,99,235,.12); color: var(--green);
  font-size: .95rem; margin-right: 10px; vertical-align: -7px;
  border: 1px solid rgba(37,99,235,.2);
}
.card h3 { display: flex; align-items: center; gap: 4px; }

/* Tipografía display para títulos */
h1, .hero h1 { font-family: 'Space Grotesk', 'Inter', sans-serif; }
h2 { font-family: 'Space Grotesk', 'Inter', sans-serif; letter-spacing: -.02em; }

/* Imagen de hero */
.hero-visual img, .hero-img img {
  border-radius: 16px; border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.img-card {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
}
.img-card img { display: block; width: 100%; height: auto; }

/* Hero de columna (texto arriba + imagen abajo expandida) */
.hero-split {
  display: flex; flex-direction: column; gap: 36px; align-items: center;
}
.hero-text { width: 100%; max-width: 780px; }
.hero-visual { position: relative; width: 100%; }
.hero-visual .img-card { width: 100%; }
.hero-visual .img-card img {
  width: 100%; height: 100%; object-fit: cover;
  max-height: 62vh; min-height: 320px;
}
.hero-visual .float-chip {
  position: absolute; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 16px; font-size: .8rem; font-weight: 700;
  box-shadow: 0 12px 30px rgba(0,0,0,.45); display: flex; align-items: center; gap: 8px;
}
.hero-visual .float-chip.top { top: 18px; right: -10px; }
.hero-visual .float-chip.bottom { bottom: 18px; left: -10px; }
.float-chip i { color: var(--green); }

/* ==========================================================================
   UPGRADE PRO 2 — social proof, pasos, mercado en vivo (SUMA)
   ========================================================================== */
/* Paso numerado */
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--green), #1d4ed8);
  color: #ffffff; font-weight: 800; font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 12px; box-shadow: 0 0 18px rgba(37,99,235,.35);
}

/* Testimonios */
.quote-card { display: flex; flex-direction: column; gap: 14px; }
.quote-card .quote { font-style: italic; color: var(--text); line-height: 1.6; }
.quote-card .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff;
  font-weight: 700; font-family: 'Space Grotesk', sans-serif;
}
.quote-card .author { display: flex; align-items: center; gap: 12px; }
.quote-card .author-name { font-weight: 700; font-size: .9rem; }
.quote-card .author-role { font-size: .78rem; color: var(--muted); }
.quote-card .stars { color: #fbbf24; letter-spacing: 2px; font-size: .85rem; }

/* Indicador mercado en vivo */
.live-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .78rem; font-weight: 700; color: var(--green);
  background: rgba(37,99,235,.1); border: 1px solid rgba(37,99,235,.25);
  padding: 5px 12px; border-radius: 999px;
}
.live-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: blink 1.2s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* Parpadeo de precio (up/down) */
.price-flash-up { animation: flashUp 1s ease; }
.price-flash-down { animation: flashDown 1s ease; }
@keyframes flashUp { 0% { background: rgba(37,99,235,.25); } 100% { background: transparent; } }
@keyframes flashDown { 0% { background: rgba(239,68,68,.25); } 100% { background: transparent; } }

/* Stat-track grid */
.mini-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.stat-pill { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px; text-align: center; }
.stat-pill .k { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stat-pill .v { font-size: 1.5rem; font-weight: 800; font-family: 'Space Grotesk', sans-serif; margin-top: 4px; }

/* Imagen con overlay de gradiente */
.img-card .grad-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15,23,42,.45));
  pointer-events: none;
}
.img-card { position: relative; }

/* ==========================================================================
   Botones flotantes: WhatsApp + Subir (lado derecho)
   ========================================================================== */
.float-stack {
  position: fixed; right: 22px; bottom: 22px; z-index: 999;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.fab-whatsapp, .fab-top {
  display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%;
  border: none; cursor: pointer; text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  transition: transform .2s ease, box-shadow .2s ease;
}
.fab-whatsapp { background: #25D366; color: #fff; font-size: 1.7rem; }
.fab-whatsapp:hover { background: #1ebc5b; transform: translateY(-3px); box-shadow: 0 12px 30px rgba(37,211,102,.45); }
.fab-top {
  background: var(--surface); color: var(--text); font-size: 1.2rem;
  border: 1px solid var(--border); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s ease, transform .2s ease, visibility .3s;
}
.fab-top.show { opacity: 1; visibility: visible; pointer-events: auto; }
.fab-top:hover { background: var(--surface-2); transform: translateY(-3px); }
.fab-whatsapp .tooltip, .fab-top .tooltip {
  position: absolute; right: 66px; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: .78rem; font-weight: 600;
  padding: 6px 12px; border-radius: 8px; opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.fab-whatsapp:hover .tooltip, .fab-top:hover .tooltip { opacity: 1; }
.fab-whatsapp, .fab-top { position: relative; }

/* ==========================================================================
   HERO FULL-SCREEN — imagen de fondo + overlay + caption (SUMA incremental)
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg .hero-bg-img {
  position: absolute;
  inset: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
}
.hero-bg .hero-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(248,250,252,0.88) 0%, rgba(248,250,252,0.55) 45%, rgba(248,250,252,0.85) 100%);
}
.hero-caption {
  position: absolute;
  left: 50%;
  bottom: 86px;
  transform: translateX(-50%);
  z-index: 2;
  background: rgba(255,255,255,0.9);
  color: #0f172a;
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.hero-caption i { color: var(--accent); margin-right: 6px; }
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 120px 20px 90px;
}
.hero-inner .hero-split { position: relative; z-index: 1; }

/* Chips flotantes reposicionados sobre el hero full-screen */
.hero-inner .hero-visual { position: absolute; inset: 0; z-index: 2; pointer-events: none; width: 100vw; left: 50%; transform: translateX(-50%); }
.hero-inner .hero-visual .float-chip {
  position: absolute;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 26px rgba(0,0,0,.14);
}
.hero-inner .hero-visual .float-chip.top { top: 3%; right: 6%; }
.hero-inner .hero-visual .float-chip.bottom { bottom: 6%; left: 6%; }

/* ==========================================================================
   RE-DISEÑO ARQUITECTURA (SUMA incremental, no reemplaza)
   ========================================================================== */

/* --- Secciones alternadas con ritmo de fondo --- */
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-tint { background: linear-gradient(180deg, #eef4ff 0%, #f8fafc 100%); }

/* --- Beneficios: bandas horizontales en vez de grid repetido --- */
.grid-features { display: flex; flex-direction: column; gap: 14px; }
.grid-features .card { display: flex; align-items: flex-start; gap: 18px; text-align: left; transition: background .2s ease, border-color .2s ease; }
.grid-features .card:hover { border-color: var(--accent); background: #f0f6ff; }
.grid-features .card h3 { margin: 0 0 4px; }
.grid-features .card p { margin: 0; }
.grid-features .card h3 i {
  width: 46px; height: 46px; font-size: 1.15rem; flex-shrink: 0;
  background: rgba(37,99,235,.10); color: var(--accent);
  border: 1px solid rgba(37,99,235,.22);
}

/* --- Cómo funciona: pasos en línea conectados --- */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.steps-row .card { text-align: center; background: transparent; border: none; box-shadow: none; }
.steps-row .card:hover { transform: none; }
.steps-row .step-num {
  width: 52px; height: 52px; font-size: 1.2rem;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff; margin: 0 auto 14px;
  box-shadow: 0 8px 20px rgba(37,99,235,.35);
}
.steps-row .card p { color: var(--text); max-width: 220px; margin: 0 auto; }
@media (max-width: 760px) { .steps-row { grid-template-columns: 1fr; gap: 20px; } }

/* --- Testimonios: tarjeta con borde de acento + avatar grande --- */
.quote-card { border-left: 4px solid var(--accent); }
.quote-card .avatar { width: 52px; height: 52px; font-size: 1rem; }

/* --- CTA final: tarjeta destacada azul --- */
.cta-band {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  border-radius: 24px; padding: 56px 32px; text-align: center;
  color: #fff; box-shadow: 0 20px 50px rgba(37,99,235,.30);
}
.cta-band h2 { color: #fff; }
.cta-band .subtitle { color: rgba(255,255,255,.9); }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band .btn-ghost:hover { border-color: #fff; color: #fff; }

/* ==========================================================================
   RESPONSIVE / ANTI-ENCIMAMIENTO (SUMA incremental)
   ========================================================================== */

@media (max-width: 620px) {
  /* Hero: reducir padding, permitir wrap en caption */
  .hero-inner { padding: 96px 16px 70px; }
  .hero-caption {
    white-space: normal;
    left: 16px;
    right: 16px;
    transform: none;
    bottom: 118px;
    width: auto;
    text-align: center;
    font-size: .74rem;
    padding: 7px 12px;
  }
  /* Chips flotantes: se manejan en el media query de ≤900px más abajo */
  /* Navbar: evitar encimamiento brand/hamburguesa */
  .navbar .container { gap: 6px; }
  .navbar .brand { font-size: 1.15rem; }
  /* CTA band: reducir padding en móvil */
  .cta-band { padding: 36px 20px; border-radius: 18px; }
  /* stats y mini-grid: asegurar que no desborde */
  .mini-grid { gap: 10px; }
  .stat-pill .v { font-size: 1.25rem; }
  /* footer a 1 columna para no apretar */
  .footer .cols { grid-template-columns: 1fr; gap: 20px; }
  /* botones del hero apilados */
  .hero-cta { flex-direction: column; align-items: center; }
}

@media (max-width: 900px) {
  /* tabs/table: scroll horizontal ya lo tiene .table-wrap; reforzamos hero */
  .hero-split { gap: 24px; }
}

/* ==========================================================================
   FIX HERO MÓVIL — chips no tapen texto, caption anclado, ticker no rompa
   ========================================================================== */

/* El ticker vive dentro del hero pero no debe estirarlo: lo anclamos al fondo */
.hero .ticker {
  position: relative;
  z-index: 2;
  margin-top: auto;
}

/* En móvil/tablet: los chips flotantes se convierten en fila inferior, sin tapar texto */
@media (max-width: 900px) {
  .hero-inner .hero-visual {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    pointer-events: auto;
    width: auto;
    left: auto;
    transform: none;
  }
  .hero-inner .hero-visual .float-chip,
  .hero-inner .hero-visual .float-chip.top,
  .hero-inner .hero-visual .float-chip.bottom {
    position: static;
    top: auto; right: auto; bottom: auto; left: auto;
    font-size: .78rem;
    padding: 9px 16px;
    white-space: normal;
    text-align: center;
  }
}

/* ==========================================================================
   HERO CLARO + CAPTION AZUL + TEXTOS BLANCOS (SUMA incremental)
   ========================================================================== */

/* Overlay más oscuro para que el texto blanco contraste sobre imagen clara */
.hero-overlay {
  background: linear-gradient(180deg, rgba(15,23,42,0.55) 0%, rgba(15,23,42,0.35) 50%, rgba(15,23,42,0.62) 100%);
}

/* Caption azul medio con texto blanco */
.hero-caption {
  background: var(--accent);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 10px 28px rgba(37,99,235,0.45);
}
.hero-caption i { color: #ffffff; }

/* Textos del hero en blanco para legibilidad sobre la imagen */
.hero-text h1 { color: #ffffff; text-shadow: 0 2px 16px rgba(0,0,0,0.35); }
.hero-text .subtitle { color: rgba(255,255,255,0.94); }
.hero-text .badge { background: rgba(255,255,255,0.16); color: #ffffff; border: 1px solid rgba(255,255,255,0.28); }
.hero-text .badge .pulse-dot { background: #ffffff; }

/* Chips flotantes: fondo blanco sólido con texto oscuro (legibles) */
.hero-inner .hero-visual .float-chip {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(37,99,235,0.25);
}

/* ==========================================================================
   LINK CARD OVERLAY (para hacer tarjetas completas cliqueables)
   ========================================================================== */
.card { position: relative; }
.link-card-overlay {
  position: absolute; inset: 0; z-index: 1; /* Cubre toda la tarjeta */
}

/* Botón pequeño para CTAs dentro de tarjetas (bandas de "Qué incluye") */
.btn-sm {
  padding: 7px 14px;
  font-size: .82rem;
  border-radius: 8px;
  display: inline-block;
  align-self: flex-start;
  margin-top: 6px;
}
.grid-features .card { flex-wrap: wrap; }
.grid-features .card p { flex: 1 1 100%; }

/* ==========================================================================
   PRECIOS — tarjetas de planes (SUMA incremental)
   ========================================================================== */
.pricing-wrap { align-items: stretch; }
.pricing { display: flex; flex-direction: column; }
.pricing .price { font-size: 2.4rem; font-weight: 800; color: var(--text); margin: 8px 0 4px; line-height: 1; }
.pricing .price .per { font-size: .85rem; font-weight: 600; color: var(--muted); }
.pricing .pill { display: inline-block; align-self: flex-start; margin: 4px 0 14px; }
.feat-list { list-style: none; margin: 0 0 20px; padding: 0; text-align: left; flex: 1; }
.feat-list li { font-size: .88rem; padding: 5px 0; color: var(--text); display: flex; align-items: flex-start; gap: 8px; }
.feat-list li i { color: var(--accent); margin-top: 3px; font-size: .8rem; }
.btn-block { display: block; width: 100%; text-align: center; margin-top: auto; }
.pricing.featured { border: 2px solid var(--accent); position: relative; }
.badge-pop {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(37,99,235,.35);
}
@media (max-width: 900px) {
  .pricing-wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .pricing-wrap { grid-template-columns: 1fr; }
}
