/* Si al Ahorro — v2 · iOS-style blue/white design */

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-sans); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
section { padding: 96px 0; }
section.tight { padding: 64px 0; }
section.hero  { padding: 80px 0 96px; }

/* ─── Header ─────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.header-inner { height: 68px; display: flex; align-items: center; gap: 32px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 17px;
  color: var(--navy-900); letter-spacing: 0.03em; text-decoration: none; border: none;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: var(--r-md);
  background: var(--navy-800); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  box-shadow: var(--shadow-sm);
}
.brand .al { color: var(--navy-700); }
.brand:hover { color: var(--navy-800); border: none; }
.nav-links {
  display: flex; gap: 4px; flex: 1; list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  color: var(--ink-600); border: none; padding: 6px 12px;
  cursor: pointer; transition: all var(--dur-fast);
  border-radius: var(--r-sm);
}
.nav-links a:hover { background: var(--navy-100); color: var(--navy-800); }
.nav-links a.active { background: var(--navy-100); color: var(--navy-800); font-weight: 600; }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  font-family: var(--font-sans); font-weight: 600; font-size: 14px;
  padding: 11px 20px; border-radius: var(--r-pill); border: 1.5px solid transparent;
  cursor: pointer; transition: all var(--dur-fast) var(--ease-out);
  display: inline-flex; align-items: center; gap: 8px; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
}
.btn .arrow { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--navy-800); color: #fff; border-color: var(--navy-800);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { background: var(--navy-700); border-color: var(--navy-700); }

.btn-secondary {
  background: var(--white); color: var(--navy-800);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--navy-100); border-color: var(--navy-600); }

.btn-gold {
  background: var(--navy-800); color: #fff;
  border-color: var(--navy-800); box-shadow: var(--shadow-gold);
}
.btn-gold:hover { background: var(--navy-700); }

.btn-ghost {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,0.30);
}
.btn-ghost:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.60); }

.btn-lg { padding: 14px 26px; font-size: 15px; }

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 18, 38, 0.88) 0%, rgba(8, 31, 61, 0.72) 48%, rgba(8, 31, 61, 0.26) 100%),
    url("assets/poster.png") center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.10));
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 620px) 1fr; gap: 56px; align-items: center; position: relative; }
.hero .eyebrow {
  color: rgba(255,255,255,0.76);
  text-transform: none;
}
.hero .eyebrow::before {
  background: var(--gold-400);
}
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 68px; line-height: 1.04; letter-spacing: -0.025em;
  color: #fff; margin: 16px 0 20px; text-wrap: balance;
}
.hero h1 .accent { color: var(--gold-300); }
.hero .lede {
  font-family: var(--font-sans); font-size: 18px; line-height: 1.65;
  color: rgba(255,255,255,0.82); margin: 0 0 32px; max-width: 500px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; border-top: 1px solid rgba(255,255,255,0.24);
}
.hero-stat { padding: 20px 0; padding-right: 20px; position: relative; }
.hero-stat + .hero-stat { padding-left: 20px; }
.hero-stat + .hero-stat::before {
  content: ""; position: absolute; left: 0; top: 25%; bottom: 25%;
  width: 1px; background: rgba(255,255,255,0.18);
}
.hero-stat .figure {
  font-family: var(--font-display); font-weight: 800; font-size: 32px;
  color: #fff; line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.hero-stat .figure .unit { color: var(--gold-600); font-size: 18px; font-weight: 700; margin-left: 1px; }
.hero-stat .label { font-size: 12px; color: rgba(255,255,255,0.68); margin-top: 6px; font-weight: 500; }

/* Hero card —  preview */
.hero-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-xl);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hero-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--rule-gold); border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.hc-eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.hc-badge {
  font-family: var(--font-sans); font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--navy-100); color: var(--navy-700);
  padding: 4px 10px; border-radius: var(--r-pill);
}
.hc-profile {
  font-size: 13px; color: var(--fg-subtle); font-weight: 500;
}
.hc-coverage { margin-bottom: 20px; }
.hc-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-subtle); margin-bottom: 4px;
}
.hc-sn {
  font-family: var(--font-display); font-size: 40px; font-weight: 800;
  color: var(--navy-800); line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
}
.hc-sub { font-size: 12px; color: var(--fg-faint); margin-top: 4px; }
.hc-divider {
  height: 1px; background: var(--divider);
  margin-bottom: 20px;
}
.hc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.hc-stat {
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px;
}
.hc-stat.hc-stat-accent {
  background: var(--navy-100); border-color: var(--border-strong);
}
.hc-stat-label {
  font-size: 11px; font-weight: 600; color: var(--fg-subtle);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px;
}
.hc-stat-val {
  font-family: var(--font-mono); font-size: 22px; font-weight: 700;
  color: var(--navy-800); font-variant-numeric: lining-nums tabular-nums;
  line-height: 1;
}
.hc-stat.hc-stat-accent .hc-stat-val { color: var(--navy-800); }
.hc-stat-sub { font-size: 11px; color: var(--fg-faint); margin-top: 3px; }
.hc-footer {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--fg-subtle); margin-bottom: 16px;
}
.hc-mult { font-weight: 700; color: var(--gain); }
.hc-cta { width: 100%; justify-content: center; }

/* ─── Eyebrows + section headings ───────────────────────────── */
.eyebrow {
  font-family: var(--font-sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy-700);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 20px; height: 2px;
  background: var(--navy-700); border-radius: 2px;
}
.section-title {
  font-family: var(--font-display); font-weight: 800; font-size: 44px;
  line-height: 1.08; letter-spacing: -0.025em; color: var(--navy-900);
  margin: 12px 0 0; text-wrap: balance;
}
.section-title .accent { color: var(--navy-800); }
.section-lede {
  font-family: var(--font-sans); font-size: 18px; line-height: 1.65;
  color: var(--ink-600); max-width: 660px; margin: 16px 0 0;
}
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .section-lede { margin-left: auto; margin-right: auto; }
.section-header.center .eyebrow { justify-content: center; }

/* ─── Pillars ────────────────────────────────────────────────── */
.pillars-block {
  background: var(--paper-tint);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.pillar-cell {
  padding: 0 28px; position: relative;
  display: grid; grid-template-columns: 60px 1fr; gap: 18px; align-items: center;
}
.pillar-cell + .pillar-cell::before {
  content: ""; position: absolute; left: 0; top: 10%; bottom: 10%;
  width: 1px; background: var(--border);
}
.pillar-ico {
  width: 60px; height: 60px; border-radius: var(--r-lg);
  background: var(--navy-800); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}
.pillar-ico svg { width: 28px; height: 28px; }
.pillar-text .label {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: var(--navy-900); line-height: 1.3;
}
.pillar-text .desc {
  font-size: 14px; color: var(--ink-600); margin-top: 5px; line-height: 1.55;
}

/* ─── About section ──────────────────────────────────────────── */
.about-section {
  background: var(--white);
  padding-bottom: 48px;
}
.about-section .section-header {
  margin-bottom: 36px;
}
.about-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-bottom: 0;
}
.about-card {
  background: var(--bg-tint);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl); padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow var(--dur-base), transform var(--dur-base);
}
.about-card:hover {
  box-shadow: var(--shadow-lg); transform: translateY(-2px);
  border-color: var(--border-strong);
}
.about-ico {
  width: 52px; height: 52px; border-radius: var(--r-lg);
  background: var(--navy-100); color: var(--navy-700);
  display: flex; align-items: center; justify-content: center;
}
.about-card h4 {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  color: var(--navy-900); margin: 0;
}
.about-card p { font-size: 15px; color: var(--ink-600); margin: 0; line-height: 1.6; }

/* ─── Dollar Education ────────────────────────────────────────── */
#educacion { padding-top: 48px; }
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.edu-chart {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-xl); padding: 24px; box-shadow: var(--shadow-md);
}
.edu-chart .title { font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--navy-800); margin-bottom: 4px; }
.edu-chart .sub   { font-size: 12px; color: var(--fg-muted); margin-bottom: 18px; }
.edu-chart .legend { display: flex; gap: 18px; margin-top: 14px; }
.edu-chart .legend-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-700); }
.edu-chart .legend-item .swatch { width: 14px; height: 2px; }
.edu-points { display: grid; gap: 16px; margin-top: 24px; }
.edu-point { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.edu-point .check {
  width: 28px; height: 28px; border-radius: var(--r-pill);
  background: var(--navy-100); color: var(--navy-700);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.edu-point .check svg { width: 14px; height: 14px; stroke-width: 2.5; }
.edu-point .body { font-size: 15px; line-height: 1.55; color: var(--ink-600); padding-top: 4px; }
.edu-point .body strong { color: var(--navy-900); font-weight: 700; }

/* ─── Products grid ───────────────────────────────────────────── */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-xl); padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--dur-base) var(--ease-out);
  display: flex; flex-direction: column; gap: 16px;
  position: relative; cursor: pointer;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--border-strong); }
.product-card.featured {
  background: var(--navy-800); border-color: var(--navy-700);
  box-shadow: var(--shadow-xl);
}
.product-card.featured::before {
  content: "Más popular"; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  background: var(--gold-500); color: var(--navy-900); font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 14px;
  border-radius: 0 0 var(--r-md) var(--r-md);
}
.product-card .tier {
  font-size: 11px; font-weight: 700; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--navy-600); margin-top: 12px;
}
.product-card.featured .tier { color: rgba(255,255,255,0.60); }
.product-card h3 {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  color: var(--navy-900); line-height: 1.2; margin: 0;
}
.product-card.featured h3 { color: #fff; }
.product-card .desc { font-size: 14px; line-height: 1.55; color: var(--ink-600); }
.product-card.featured .desc { color: rgba(255,255,255,0.75); }
.product-card .features { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.product-card .features li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 13.5px; color: var(--ink-600); align-items: start; }
.product-card.featured .features li { color: rgba(255,255,255,0.80); }
.product-card .features li svg { width: 16px; height: 16px; color: var(--navy-600); margin-top: 2px; }
.product-card.featured .features li svg { color: var(--gold-400); }
.product-card .price {
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid var(--divider);
  display: flex; align-items: baseline; gap: 6px;
}
.product-card.featured .price { border-color: rgba(255,255,255,0.12); }
.product-card .price .fig {
  font-family: var(--font-display); font-weight: 800; font-size: 30px;
  color: var(--navy-900); font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.product-card.featured .price .fig { color: #fff; }
.product-card .price .per { font-size: 13px; color: var(--fg-muted); }
.product-card.featured .price .per { color: rgba(255,255,255,0.55); }
.product-card .link {
  font-weight: 600; font-size: 13px; color: var(--navy-700);
  display: inline-flex; align-items: center; gap: 6px; border: none;
}
.product-card.featured .link { color: rgba(255,255,255,0.80); }
.product-card .link .arrow { transition: transform var(--dur-fast); }
.product-card:hover .link .arrow { transform: translateX(3px); }

/* ─── Calculator section ─────────────────────────────────────── */
.calc-section {
  background: var(--paper-tint);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.calc-section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 75% 20%, rgba(0,87,255,0.06) 0%, transparent 60%);
}
.calc-section .section-title { color: var(--navy-900); }
.calc-section .section-lede { color: var(--ink-600); }
.calc-section .eyebrow { color: var(--navy-700); }
.calc-section .eyebrow::before { background: var(--navy-700); }

/* ─── CTA strip ──────────────────────────────────────────────── */
.cta-strip {
  background: var(--navy-800);
  color: #fff; position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 80% 50%, rgba(14,165,233,0.18) 0%, transparent 55%);
}
.cta-strip .container { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; position: relative; }
.cta-strip h2 {
  font-family: var(--font-display); font-weight: 800; font-size: 40px;
  line-height: 1.12; color: #fff; letter-spacing: -0.025em; margin: 0;
}
.cta-strip h2 .accent { color: var(--gold-300); }
.cta-strip p { font-size: 17px; color: rgba(255,255,255,0.75); margin: 14px 0 0; line-height: 1.6; }
.cta-strip .actions { display: flex; flex-direction: column; gap: 12px; }
.cta-strip .actions .btn { justify-content: center; }
.cta-strip .actions .meta { font-size: 12px; color: rgba(255,255,255,0.50); text-align: center; margin-top: 4px; }

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--navy-900); color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer .container {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-mark {
  width: 38px; height: 38px; border-radius: var(--r-md);
  background: var(--navy-800); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  flex-shrink: 0;
}
.footer .brand-col h4 {
  font-family: var(--font-display); font-size: 20px; color: #fff;
  margin: 0; font-weight: 800; letter-spacing: 0.02em;
}
.footer .brand-col h4 .al { color: var(--gold-400); }
.footer .brand-col .tag { font-size: 11px; color: rgba(255,255,255,0.45); letter-spacing: 0.10em; text-transform: uppercase; margin-top: 2px; }
.footer .brand-col p { font-size: 14px; color: rgba(255,255,255,0.60); margin: 14px 0 0; max-width: 300px; line-height: 1.6; }
.footer h6 {
  font-size: 11px; color: rgba(255,255,255,0.40); letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 700; margin: 0 0 14px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { color: rgba(255,255,255,0.70); font-size: 14px; border: none; transition: color var(--dur-fast); }
.footer ul a:hover { color: #fff; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0;
}
.footer-legal-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 11px; color: rgba(255,255,255,0.35); line-height: 1.5;
}
.footer-links { display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.footer-links a { color: rgba(255,255,255,0.40); border: none; }
.footer-links a:hover { color: rgba(255,255,255,0.70); }

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #25d366;
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 18px 36px rgba(10, 25, 41, 0.22);
  transition: transform var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
}
.floating-whatsapp svg {
  width: 40px;
  height: 40px;
  display: block;
  fill: currentColor;
}
.floating-whatsapp:hover {
  transform: translateY(-2px);
  background: #1ebe5d;
  box-shadow: 0 22px 42px rgba(10, 25, 41, 0.28);
}

/* ─── Bio / About fallback styles (kept for compatibility) ───── */
.bio-grid { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: center; }
.bio-creds { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-top: 28px; }
.bio-cred { padding-left: 14px; border-left: 3px solid var(--navy-800); }
.bio-cred .num {
  font-family: var(--font-display); font-weight: 800; font-size: 28px;
  color: var(--navy-900); line-height: 1;
}
.bio-cred .lbl { font-size: 13px; color: var(--fg-muted); margin-top: 4px; }

/* ─── Reveal animation ────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
