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

:root {
  --primary: #4F46E5;
  --primary-dark: #3730A3;
  --primary-light: #EEF2FF;
  --accent: #06B6D4;
  --success: #10B981;
  --text: #111827;
  --muted: #6B7280;
  --border: #E5E7EB;
  --bg: #F9FAFB;
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(79,70,229,0.08);
  --radius: 16px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }

/* ── TYPOGRAPHY ── */
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.125rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
h5 { font-size: 0.875rem; font-weight: 600; }
h6 { font-size: 0.75rem; font-weight: 500; }
p { color: var(--muted); }
.lead { font-size: 1.125rem; }

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.grid-7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.75rem; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.75rem; border-radius: 50px; font-weight: 600; font-size: 1rem; text-decoration: none; transition: all .2s; cursor: pointer; border: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(79,70,229,0.3); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.125rem; }

/* ── BADGE ── */
.badge { display: inline-block; padding: 0.3rem 0.85rem; border-radius: 50px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: #D1FAE5; color: #065F46; }
.badge-accent { background: #CFFAFE; color: #164E63; }

/* ── NAV ── */
nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 40px; width: auto; display: block; }
.nav-logo span { font-size: 1.25rem; font-weight: 800; color: var(--text); margin-left: 0.5rem; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--primary); }
.nav-cta { display: flex; gap: 0.75rem; align-items: center; }

/* ── HERO ── */
#hero { padding: 6rem 0 4rem; background: linear-gradient(135deg, #F5F3FF 0%, #EFF6FF 100%); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-kicker { margin-bottom: 1rem; }
.hero-title { margin-bottom: 1.25rem; }
.hero-title span { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 1.125rem; margin-bottom: 2rem; max-width: 480px; }
.hero-proof { display: flex; align-items: center; gap: 1rem; margin-top: 1.75rem; flex-wrap: wrap; }
.hero-proof span { font-size: 0.875rem; color: var(--muted); display: flex; align-items: center; gap: 0.35rem; }
.hero-proof span::before { content: '✓'; color: var(--success); font-weight: 700; }
.hero-visual { background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.hero-stat-row { display: flex; gap: 1.5rem; margin-top: 1.5rem; }
.hero-stat { flex: 1; background: var(--primary-light); border-radius: 12px; padding: 1rem; text-align: center; }
.hero-stat strong { display: block; font-size: 1.75rem; font-weight: 800; color: var(--primary); }
.hero-stat small { font-size: 0.78rem; color: var(--muted); }
.token-demo { display: flex; flex-direction: column; gap: 0.75rem; }
.token-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem; background: var(--bg); border-radius: 10px; }
.token-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.token-icon.blue { background: var(--primary-light); }
.token-icon.green { background: #D1FAE5; }
.token-info { flex: 1; }
.token-info strong { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text); }
.token-info small { font-size: 0.78rem; color: var(--muted); }
.token-badge { font-size: 0.75rem; font-weight: 700; color: var(--success); background: #D1FAE5; padding: 0.2rem 0.6rem; border-radius: 50px; }

/* ── VALUE PROPS ── */
#valor { background: var(--white); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.value-card { padding: 1.75rem; border-radius: var(--radius); border: 1px solid var(--border); transition: all .2s; }
.value-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-4px); }
.value-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin: 0 auto 1rem; }
.value-card h3 { margin-bottom: 0.5rem; }

/* ── HOW IT WORKS ── */
#como { background: var(--bg); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; position: relative; }
.steps::before { content: ''; position: absolute; top: 28px; left: 16%; right: 16%; height: 2px; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 2px; }
.step { text-align: center; padding: 1.5rem; }
.step-num { width: 56px; height: 56px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.25rem; margin: 0 auto 1rem; box-shadow: 0 4px 12px rgba(79,70,229,0.4); position: relative; z-index: 1; }
.step h3 { margin-bottom: 0.5rem; }

/* ── PRUEBAS ── */
#pruebas { background: var(--white); }
.pruebas-intro { max-width: 600px; margin: 0 auto 3rem; }
.pruebas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.prueba-card { background: var(--bg); border: 1.5px solid var(--border); border-radius: 12px; padding: 1.25rem 1rem; text-align: center; transition: all .2s; cursor: default; }
.prueba-card:hover { border-color: var(--primary); background: var(--primary-light); transform: translateY(-3px); box-shadow: 0 8px 16px rgba(79,70,229,0.12); }
.prueba-emoji { font-size: 1.75rem; margin-bottom: 0.5rem; display: block; }
.prueba-card strong { display: block; font-size: 0.875rem; font-weight: 700; color: var(--text); }
.prueba-card small { font-size: 0.72rem; color: var(--muted); }
.pruebas-note { margin-top: 2rem; text-align: center; padding: 1rem 1.5rem; background: #D1FAE5; border-radius: 12px; color: #065F46; font-weight: 600; font-size: 0.9rem; }
.pruebas-note strong { color: #047857; }

/* ── PRECIOS NUEVOS ── */
#precios { background: var(--bg); }
.pricing-wrapper { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; margin-top: 3rem; align-items: start; }
.pricing-table-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 2rem; }
.pricing-table-card h3 { margin-bottom: 0.5rem; }
.pricing-table-card p { margin-bottom: 2rem; }

.table-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.table-row.header { font-weight: 600; color: var(--muted); border-bottom: 2px solid var(--bg); padding-top: 0; }
.table-row:last-child { border-bottom: none; }
.qty-col { font-weight: 700; font-size: 1.125rem; }
.cost-badge { background: var(--primary-light); color: var(--primary); padding: 0.25rem 0.5rem; border-radius: 8px; font-weight: 700; display: inline-block; margin-right: 0.5rem; }
.unit-col { color: var(--muted); font-size: 0.875rem; }

.pricing-disclaimer { text-align: center; margin-top: 2rem; font-weight: 600; font-size: 0.95rem; color: var(--text); }

.pricing-calc-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 2.5rem 2rem; box-shadow: 0 12px 32px rgba(0,0,0,0.05); text-align: center; position: sticky; top: 100px; }
.pricing-calc-card p.small { font-size: 0.75rem; color: var(--muted); font-weight: 600; letter-spacing: 0.05em; margin-bottom: 1.5rem; }
.price-display { font-size: 4rem; font-weight: 800; color: var(--text); line-height: 1; margin: 1.5rem 0; display: flex; align-items: flex-start; justify-content: center; }
.price-display sup { font-size: 1.5rem; margin-top: 0.5rem; }
.price-display span { font-size: 1rem; color: var(--muted); font-weight: 500; align-self: flex-end; margin-bottom: 0.5rem; margin-left: 0.25rem; }

.features-list { list-style: none; text-align: left; margin-bottom: 2rem; font-size: 0.875rem; }
.features-list li { margin-bottom: 0.75rem; display: flex; align-items: flex-start; gap: 0.5rem; }
.features-list li::before { content: '✓'; color: var(--primary); font-weight: 700; }

.counter-wrap { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 1.5rem; }
.counter-btn { background: var(--bg); border: none; padding: 0.75rem 1rem; cursor: pointer; font-size: 1.25rem; color: var(--muted); font-weight: 600; width: 48px; }
.counter-btn:hover { background: #E5E7EB; color: var(--text); }
.counter-input { width: 100%; border: none; text-align: center; font-weight: 700; font-size: 1rem; font-family: inherit; -moz-appearance: textfield; appearance: textfield; }
.counter-input::-webkit-outer-spin-button, .counter-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.plan-cta-default { background: var(--primary); color: #fff; display: block; padding: 1rem; border-radius: 8px; font-weight: 600; text-decoration: none; width: 100%; transition: all .2s; }
.plan-cta-default:hover { background: var(--primary-dark); }

@media (max-width: 900px) { .pricing-wrapper { grid-template-columns: 1fr; } .pricing-calc-card { position: static; } }
/* ── FAQ ── */
#faq { background: var(--white); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; align-items: start; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 1.25rem 1.5rem; font-size: 0.9rem; font-weight: 600; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: inherit; }
.faq-q:hover { background: var(--bg); }
.faq-icon { font-size: 1.25rem; color: var(--primary); flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 200px; }
.faq-a p { padding: 0 1.5rem 1.25rem; font-size: 0.875rem; }

/* ── CTA FINAL ── */
#cta-final { background: linear-gradient(135deg, var(--primary) 0%, #3B82F6 100%); color: #fff; padding: 5rem 0; text-align: center; }
#cta-final h2, #cta-final p { color: #fff; }
#cta-final p { opacity: 0.85; margin: 1rem 0 2rem; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #EEF2FF; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

/* ── FOOTER ── */
footer { background: #0F172A; color: rgba(255,255,255,0.6); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 3rem; padding-bottom: 3.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); }

.footer-logo { display: block; margin-bottom: 1.25rem; }
.footer-logo img { height: 36px; width: auto; opacity: 0.92; filter: brightness(0) invert(1); }
.footer-tagline { font-size: 0.875rem; line-height: 1.7; color: rgba(255,255,255,0.5); margin-bottom: 1.5rem; }
.footer-cta { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--primary); color: #fff; padding: 0.6rem 1.25rem; border-radius: 50px; font-size: 0.875rem; font-weight: 600; text-decoration: none; transition: all .2s; }
.footer-cta:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(79,70,229,0.4); }

.footer-col h5 { color: #fff; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col ul li a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.875rem; transition: color .2s; }
.footer-col ul li a:hover { color: #fff; padding-left: 4px; }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 0; flex-wrap: wrap; gap: 1rem; }
.footer-bottom h6 { font-size: 0.78rem; font-weight: 400; color: rgba(255,255,255,0.3); margin: 0; }
.footer-badge { font-size: 0.75rem; color: rgba(255,255,255,0.35); display: flex; align-items: center; gap: 0.4rem; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  .hero-inner, .grid-2 { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 1rem; }
  .value-grid, .steps, .pricing-grid { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .faq-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-cta .btn-outline { display: none; }
  .hero-desc { max-width: 100%; }
  h1 { font-size: 2rem; }
  .pruebas-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .section { padding: 3rem 0; }
  .pricing-grid { gap: 1rem; }
}
