:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --navy-3: #071a33;
  --gold: #c9a227;
  --gold-soft: #f6efd6;
  --text: #1f2a3d;
  --muted: #5b6b82;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --border: #e3e9f2;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 37, 69, .08);
  --shadow-lg: 0 20px 50px rgba(11, 37, 69, .15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  font: 600 .95rem 'Inter', sans-serif; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 10px 22px rgba(11, 37, 69, .28); }
.btn-primary:hover { background: var(--navy-2); }
.btn-gold { background: var(--gold); color: var(--navy-3); box-shadow: 0 10px 22px rgba(201, 162, 39, .35); }
.btn-gold:hover { background: #d8b23a; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 6px 24px rgba(11, 37, 69, .08); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 82px; gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; color: var(--navy); }
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy); color: var(--gold); font-weight: 800; font-size: .95rem;
}
.logo-text { font-weight: 500; letter-spacing: -.3px; }
.logo-text strong { font-weight: 800; color: var(--gold); }
.logo-light { color: #fff; }
.logo-light .logo-mark { background: var(--gold); color: var(--navy); }

.nav { display: flex; align-items: center; gap: 34px; }
.nav-list { display: flex; align-items: center; gap: 26px; }
.nav-link {
  position: relative; font-size: .92rem; font-weight: 500; color: var(--navy-3);
  padding: 8px 0; transition: color .2s;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gold); transition: width .25s;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { font-weight: 700; color: var(--navy); }
.btn-nav { padding: 13px 30px; font-size: .9rem; }

.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--navy); transition: .3s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Secciones ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: linear-gradient(135deg, var(--navy-3), var(--navy-2)); color: #fff; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.eyebrow-light { color: var(--gold); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; letter-spacing: -.5px; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; margin-bottom: 14px; }
h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.section-dark h2, .section-dark h3 { color: #fff; }
.gold { color: var(--gold); }

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 96px 0 80px; color: #fff;
  background:
    radial-gradient(800px 500px at 88% 8%, rgba(201, 162, 39, .22), transparent 60%),
    radial-gradient(700px 480px at 8% 95%, rgba(60, 110, 180, .30), transparent 60%),
    linear-gradient(160deg, var(--navy-3) 0%, var(--navy) 60%, var(--navy-2) 100%);
}
.hero::before {
  /* Líneas tipo libro contable */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 100% 44px;
}
.hero > .container { position: relative; z-index: 1; }

.hero-center { text-align: center; max-width: 900px; }
.hero-tag {
  margin-bottom: 26px; padding: 8px 18px; border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, .5); background: rgba(201, 162, 39, .08);
}
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.9rem); }
.lead { font-size: 1.15rem; color: #c8d3e4; margin: 22px auto 36px; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.btn-ghost { border: 2px solid rgba(255, 255, 255, .35); color: #fff; background: transparent; }
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.hero-checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 30px; font-size: .92rem; font-weight: 500; color: #e6edf8; }
.hero-checks li::before { content: '✔'; color: var(--gold); margin-right: 8px; font-weight: 700; }

/* Panel tipo libro contable */
.ledger {
  margin-top: 70px; padding: 28px; border-radius: 24px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35); backdrop-filter: blur(6px);
}
.ledger-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi { background: rgba(255, 255, 255, .05); border-radius: 16px; padding: 18px 20px; border-left: 3px solid var(--gold); }
.kpi small { display: block; color: #aebcd4; font-size: .8rem; }
.kpi strong { display: block; font-size: 1.6rem; color: #fff; margin: 4px 0 2px; }
.kpi em { font-style: normal; font-size: .78rem; font-weight: 600; }
.ledger .up { color: #5fd3a0; }
.ledger .down { color: #ff8a7a; }

.lt-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 12px; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: .93rem; color: #e6edf8;
}
.lt-row:last-child { border-bottom: 0; }
.lt-head { color: #aebcd4; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.lt-amount { font-weight: 700; text-align: right; }
.lt-head .lt-amount { text-align: right; }
.lt-amount.up { color: #5fd3a0; }
.tag { justify-self: start; font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.tag-ok { background: rgba(26, 143, 90, .25); color: #7ee2b1; }
.tag-info { background: rgba(120, 160, 230, .22); color: #b8d0ff; }
.tag-gold { background: rgba(201, 162, 39, .22); color: var(--gold); }

.stats {
  margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(201, 162, 39, .25);
  border-radius: 20px; padding: 30px 20px; box-shadow: var(--shadow-lg);
}
.stat { text-align: center; padding: 6px 12px; border-right: 1px solid rgba(255,255,255,.12); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 2.1rem; font-weight: 800; color: var(--gold); }
.stat span { color: #c8d3e4; font-size: .9rem; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 26px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(201,162,39,.5); }
.card p { color: var(--muted); font-size: .96rem; }
.icon {
  width: 56px; height: 56px; display: grid; place-items: center; font-size: 1.6rem;
  background: var(--gold-soft); border-radius: 16px; margin-bottom: 20px;
}

/* ---------- Nosotros ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.about-visual { position: relative; padding: 0 0 40px 40px; }
.about-panel {
  background: linear-gradient(135deg, var(--navy-3), var(--navy-2)); color: #fff;
  border-radius: 24px; padding: 70px 36px 44px; box-shadow: var(--shadow-lg); min-height: 340px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.about-panel h3 { color: var(--gold); }
.about-panel p { color: #d3dded; }
.about-badge {
  position: absolute; z-index: 2; top: 24px; left: 0; background: var(--gold); color: var(--navy-3);
  border-radius: 18px; padding: 18px 22px; max-width: 200px; box-shadow: 0 14px 30px rgba(201,162,39,.4);
}
.about-badge strong { display: block; font-size: 2rem; font-weight: 800; line-height: 1; }
.about-badge span { font-size: .82rem; font-weight: 600; }
.lead-sm { color: var(--muted); font-size: 1.05rem; margin: 6px 0 28px; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.value { display: flex; gap: 14px; }
.value-ico {
  flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--gold);
  display: grid; place-items: center; font-size: .8rem; margin-top: 2px;
}
.value h4 { font-size: 1rem; margin-bottom: 2px; }
.value p { color: var(--muted); font-size: .9rem; }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; position: relative; counter-reset: s; }
.steps::before {
  content: ''; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px);
}
.step { position: relative; text-align: center; padding: 0 8px; }
.step-num {
  position: relative; z-index: 1; width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: var(--gold);
  font-size: 1.5rem; font-weight: 800; border: 5px solid #fff; box-shadow: 0 8px 20px rgba(11,37,69,.25);
}
.step p { color: var(--muted); font-size: .94rem; }

/* ---------- Calculadora ---------- */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.calc-intro p { color: #c8d3e4; margin-bottom: 24px; font-size: 1.05rem; }
.calc-notes li { color: #e6edf8; margin-bottom: 8px; font-weight: 500; }
.calc-notes li::before { content: '✔'; color: var(--gold); margin-right: 10px; }

.calc {
  background: #fff; color: var(--text); border-radius: 22px; padding: 34px; box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.field { margin-bottom: 20px; border: 0; }
.field label, .field legend { display: block; font-size: .88rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.field output { color: var(--gold); font-weight: 800; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: 12px;
  font: 400 .95rem 'Inter', sans-serif; color: var(--text); background: #fff; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,39,.18); }
input[type=range] { width: 100%; accent-color: var(--gold); height: 6px; }
.extras { padding: 0; }
.check { display: flex !important; align-items: center; gap: 10px; font-weight: 500 !important; margin-bottom: 8px !important; cursor: pointer; }
.check input { accent-color: var(--navy); width: 18px; height: 18px; }
.check em { margin-left: auto; font-style: normal; color: var(--muted); font-size: .85rem; }
.calc-result {
  background: var(--bg-alt); border-radius: 16px; padding: 20px; text-align: center; margin: 8px 0 20px;
  border: 1px dashed var(--gold);
}
.calc-result span { display: block; color: var(--muted); font-size: .85rem; font-weight: 600; }
.calc-result strong { display: block; font-size: 2.6rem; font-weight: 800; color: var(--navy); line-height: 1.2; }
.calc-result small { color: var(--muted); }

/* ---------- Planes ---------- */
.plans { align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan-desc { min-height: 48px; }
.price { font-size: 3.2rem; font-weight: 800; color: var(--navy); margin: 18px 0 20px; line-height: 1; }
.price span { font-size: 1.4rem; vertical-align: top; margin-right: 2px; position: relative; top: 6px; }
.price small { font-size: .95rem; color: var(--muted); font-weight: 500; margin-left: 4px; }
.plan ul { margin-bottom: 28px; flex: 1; }
.plan li { padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .94rem; color: var(--text); }
.plan li::before { content: '✔'; color: var(--gold); margin-right: 10px; font-weight: 700; }
.plan.featured { background: var(--navy); border-color: var(--navy); transform: scale(1.04); }
.plan.featured:hover { transform: scale(1.04) translateY(-6px); }
.plan.featured h3, .plan.featured .price { color: #fff; }
.plan.featured .plan-desc, .plan.featured .price small { color: #bfcce0; }
.plan.featured li { color: #e6edf8; border-color: rgba(255,255,255,.12); }
.ribbon {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy-3); font-size: .75rem; font-weight: 800;
  padding: 6px 16px; border-radius: 999px; letter-spacing: .5px; white-space: nowrap;
}

/* ---------- Testimonios ---------- */
.quote { display: flex; flex-direction: column; }
.stars { color: var(--gold); letter-spacing: 3px; font-size: 1.1rem; margin-bottom: 14px; }
.quote blockquote { color: var(--text); font-size: 1rem; flex: 1; margin-bottom: 24px; }
.quote figcaption { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--border); }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold); font-weight: 700; font-size: .9rem; }
.quote figcaption strong { display: block; color: var(--navy); font-size: .95rem; }
.quote figcaption small { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; margin-bottom: 14px; background: #fff; overflow: hidden; transition: box-shadow .2s; }
.faq-item[open] { box-shadow: var(--shadow); border-color: rgba(201,162,39,.6); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 600; color: var(--navy); position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--gold-soft); color: var(--navy);
  display: grid; place-items: center; font-size: 1.2rem; font-weight: 700; transition: .2s;
}
.faq-item[open] summary::after { content: '–'; background: var(--gold); }
.faq-item p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact-grid > div > p { color: #c8d3e4; font-size: 1.05rem; margin-bottom: 30px; }
.contact-list li { display: flex; gap: 16px; margin-bottom: 20px; color: #d3dded; }
.contact-list li > span { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; flex: none; }
.contact-list strong { color: #fff; }
.contact-form { background: #fff; color: var(--text); border-radius: 22px; padding: 34px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-msg { margin-top: 14px; text-align: center; font-weight: 600; min-height: 1.4em; }
.form-msg.ok { color: #1a8f5a; } .form-msg.err { color: #c0392b; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-3); color: #b7c4d9; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer p { margin-top: 16px; max-width: 320px; font-size: .94rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer li { margin-bottom: 10px; font-size: .92rem; }
.footer a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }

.to-top {
  position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--gold); color: var(--navy-3); font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(201,162,39,.45); opacity: 0; pointer-events: none; transform: translateY(10px); transition: .3s; z-index: 90;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- Acceso rápido (portada) ---------- */
.cta-band {
  display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--navy-3), var(--navy-2)); color: #fff;
  border-radius: 24px; padding: 44px 48px; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #c8d3e4; max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-actions .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .4); }
.cta-actions .btn-outline:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- Páginas internas ---------- */
.page-top { padding-top: 80px; }

/* ---------- Animaciones de aparición ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-list { gap: 18px; }
  .nav { gap: 22px; }
}
@media (max-width: 980px) {
  .menu-toggle { display: flex; }
  .nav {
    position: absolute; top: 82px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 20px 4%; gap: 18px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 6px; }
  .nav-link { display: inline-block; padding: 10px 0; }
  .btn-nav { width: 100%; }

  .ledger-kpis { grid-template-columns: 1fr 1fr; }
  .about-grid, .calc-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 26px; }
  .steps::before { display: none; }
  .stats { grid-template-columns: 1fr 1fr; gap: 20px 0; }
  .stat:nth-child(2) { border-right: 0; }
  .plan.featured, .plan.featured:hover { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 70px 0; }
  .cards-3, .steps, .values, .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .ledger { padding: 18px; }
  .ledger-kpis { grid-template-columns: 1fr; }
  .lt-row { grid-template-columns: 1.6fr 1fr 1.1fr; padding: 12px 10px; font-size: .85rem; }
  .lt-col-type { display: none; }
  .lt-row .tag { font-size: .68rem; padding: 3px 8px; }
  .about-visual { padding-left: 0; }
  .about-badge { position: static; max-width: none; margin-bottom: 16px; }
  .calc, .contact-form { padding: 24px 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
