:root {
  --navy: #1B2A4E;
  --navy-900: #121D38;
  --navy-soft: #2C3D66;
  --lavender: #8B7CF6;
  --lavender-dark: #6C5CE0;
  --lavender-50: #F4F2FE;
  --lavender-100: #E6E2FD;
  --rose: #F1B5C0;
  --text: #1B2A4E;
  --muted: #5B6680;
  --line: #E4E7EE;
  --bg: #FFFFFF;
  --bg-soft: #F7F8FB;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(27,42,78,.06), 0 12px 32px -12px rgba(27,42,78,.18);
  --shadow-lg: 0 30px 70px -24px rgba(27,42,78,.45);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--lavender-dark); }
strong { font-weight: 700; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.accent { color: var(--lavender); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--navy); color: #fff; text-decoration: none;
  font: inherit; font-weight: 700; padding: 13px 24px; border: 0; border-radius: 999px;
  cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--navy-soft); }
.btn:active { transform: scale(.98); }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-small { padding: 9px 18px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--lavender-100); }
.btn-outline { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-outline:hover { background: var(--bg-soft); }

/* Cabecera */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(228,231,238,.8);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; }
.brand-icon { width: 38px; height: 38px; }
.brand-word { width: 58px; height: 38px; }
.main-nav { display: flex; gap: 26px; margin-left: 12px; }
.main-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.main-nav a:hover { color: var(--navy); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.header-login { color: var(--navy); font-weight: 700; text-decoration: none; font-size: .95rem; }

/* Hero */
.hero {
  position: relative; padding: 72px 0 96px; overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(139,124,246,.18), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(139,124,246,.10), transparent 60%),
    linear-gradient(180deg, var(--lavender-50), #fff 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 700; color: var(--lavender-dark);
  background: #fff; box-shadow: inset 0 0 0 1px var(--lavender-100);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--lavender); box-shadow: 0 0 0 4px var(--lavender-100); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 560px; }
.lead strong { color: var(--navy); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 28px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .95rem; font-weight: 600; }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points svg, .price-card svg { width: 18px; height: 18px; color: var(--lavender-dark); flex-shrink: 0; }

/* Mockup del móvil */
.hero-visual { position: relative; justify-self: center; }
.phone { width: 300px; padding: 11px; background: var(--navy-900); border-radius: 44px; box-shadow: var(--shadow-lg); }
.phone-screen { background: #fff; border-radius: 34px; padding: 22px 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.ph-top { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: .95rem; }
.ph-pill { font-size: .7rem; font-weight: 700; color: var(--lavender-dark); background: var(--lavender-50); padding: 4px 9px; border-radius: 999px; }
.ph-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-kpis div { background: var(--bg-soft); border-radius: 14px; padding: 10px 12px; }
.ph-kpis strong { display: block; font-size: 1.3rem; font-weight: 800; }
.ph-kpis span { font-size: .7rem; color: var(--muted); }
.ph-chart { width: 100%; height: auto; }
.ph-line { fill: none; stroke: var(--lavender); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.ph-dot { fill: var(--lavender-dark); stroke: #fff; stroke-width: 2; }
.ph-goal { stroke: var(--navy); stroke-width: 1.5; stroke-dasharray: 5 4; }
.ph-goal-label { fill: var(--navy); font-size: 9px; font-weight: 700; font-family: var(--font); }
.ph-card { border-radius: 16px; padding: 12px 14px; }
.ph-code { background: var(--navy); color: #fff; display: grid; grid-template-columns: 1fr auto; align-items: center; row-gap: 2px; }
.ph-label { font-size: .68rem; opacity: .7; text-transform: uppercase; letter-spacing: .08em; grid-column: 1 / -1; }
.ph-codigo { font-size: 1.5rem; font-weight: 800; letter-spacing: .18em; }
.ph-ok { font-size: .72rem; font-weight: 700; background: var(--lavender); padding: 4px 10px; border-radius: 999px; }
.ph-cuota { background: var(--lavender-50); display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--muted); }
.ph-cuota strong { font-size: 1.1rem; color: var(--navy); }
.float-card {
  position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow);
  padding: 12px 16px; display: flex; flex-direction: column; gap: 2px;
}
.float-reto { left: -96px; top: 37%; }
.fc-label { font-size: .72rem; color: var(--muted); font-weight: 600; }
.fc-score { font-size: .95rem; color: var(--muted); }
.fc-score strong { color: var(--lavender-dark); font-size: 1.1rem; }

/* Secciones */
.section { padding: 104px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy); color: #fff; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-lead { font-size: 1.12rem; color: var(--muted); }
.section-dark .section-lead { color: #C9CEDC; }
.kicker { font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--lavender-dark); margin-bottom: 14px; }
.kicker-light { color: var(--lavender); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); }
.pillar-num { display: inline-block; font-weight: 800; font-size: .9rem; color: var(--lavender-dark); background: var(--lavender-50); border-radius: 10px; padding: 6px 10px; margin-bottom: 18px; }
.pillar p { color: var(--muted); margin: 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: paso; position: relative; }
.step { background: #fff; border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--line); }
.step p { color: var(--muted); margin: 0; font-size: .97rem; }
.step-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 18px;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-reverse .split-copy { order: 2; }
.split-copy .section-lead { margin-bottom: 26px; }
.feature-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.feature-list li { position: relative; padding-left: 30px; color: var(--muted); }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 6px;
  background: var(--lavender-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%236C5CE0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.feature-list strong { color: var(--navy); }
.feature-list-light li { color: #C9CEDC; }
.feature-list-light strong { color: #fff; }

.split-visual { display: flex; flex-direction: column; gap: 18px; }
.dash-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.dash-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 10px; }
.dash-badge { font-size: .75rem; font-weight: 700; color: var(--lavender-dark); background: var(--lavender-50); padding: 4px 10px; border-radius: 999px; }
.dash-big { font-size: 1.35rem; font-weight: 800; margin: 0 0 4px; letter-spacing: -0.02em; }
.dash-small { font-size: .88rem; color: var(--muted); margin: 0; }
.dash-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.dash-cal span { aspect-ratio: 1; border-radius: 8px; background: var(--line); }
.dash-cal .ok { background: var(--lavender); }
.dash-cal .ko { background: var(--rose); }

.reto-card { background: #fff; color: var(--navy); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-lg); }
.reto-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; margin-bottom: 18px; }
.reto-pill { font-size: .75rem; color: var(--lavender-dark); background: var(--lavender-50); padding: 4px 10px; border-radius: 999px; }
.reto-score { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.reto-side { background: var(--bg-soft); border-radius: 16px; padding: 18px 12px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.reto-side.lider { background: var(--lavender-50); box-shadow: inset 0 0 0 2px var(--lavender); }
.reto-side span { font-weight: 700; font-size: .92rem; }
.reto-side strong { font-size: 2rem; font-weight: 800; }
.reto-side small { color: var(--muted); font-size: .78rem; }
.reto-vs { font-weight: 800; color: var(--muted); }

/* Precio */
.pricing { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.pricing .split-copy .section-lead { margin-bottom: 22px; }
.ladder { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: end; }
.ladder li {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  background: var(--lavender-50); border-radius: 16px; padding: 18px 10px; text-align: center;
}
.ladder li:nth-child(1) { min-height: 240px; }
.ladder li:nth-child(2) { min-height: 205px; }
.ladder li:nth-child(3) { min-height: 170px; }
.ladder li:nth-child(4) { min-height: 135px; }
.ladder li:nth-child(5) { min-height: 100px; }
.ladder-price { font-size: 1.25rem; font-weight: 800; }
.ladder-label { font-size: .75rem; color: var(--muted); font-weight: 600; }
.ladder-top { background: var(--navy) !important; color: #fff; }
.ladder-top .ladder-label { color: var(--lavender-100); }
.price-card { position: relative; background: #fff; border: 2px solid var(--lavender); border-radius: 24px; padding: 34px 30px 28px; box-shadow: var(--shadow); }
.price-tag { position: absolute; top: -14px; left: 30px; margin: 0; background: var(--lavender); color: #fff; font-size: .8rem; font-weight: 800; padding: 5px 14px; border-radius: 999px; }
.price-main { font-size: 1.05rem; color: var(--muted); margin-bottom: 18px; }
.price-main strong { font-size: 2.6rem; color: var(--navy); font-weight: 800; letter-spacing: -0.03em; }
.price-main span { font-size: 1rem; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; }
.price-note { text-align: center; color: var(--muted); font-size: .85rem; margin: 12px 0 0; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.principle { border-top: 3px solid var(--lavender); padding-top: 20px; }
.principle p { color: var(--muted); margin: 0; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { font-weight: 700; font-size: 1.05rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--lavender-dark); font-size: 1.5rem; line-height: 1; font-weight: 600; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* CTA final */
.cta-band { padding: 0 0 104px; }
.cta-inner {
  background: radial-gradient(600px 300px at 90% 0%, rgba(139,124,246,.45), transparent 60%), var(--navy);
  color: #fff; border-radius: 32px; padding: 72px 40px; text-align: center;
}
.cta-inner h2 { max-width: 720px; margin: 0 auto .4em; }
.cta-inner p { color: #C9CEDC; font-size: 1.1rem; margin-bottom: 30px; }

/* Pie */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--muted); margin: 14px 0 0; max-width: 280px; font-size: .95rem; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 4px; }
.footer-col a { color: var(--navy); text-decoration: none; font-size: .95rem; }
.footer-col a:hover { color: var(--lavender-dark); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; }
.footer-bottom p { margin: 0; color: var(--muted); font-size: .88rem; }

/* Anuncios */
.ad-slot { margin: 0 auto; max-width: 970px; padding: 8px 0 32px; text-align: center; }
.ad-slot[hidden] { display: none; }
.ad-label { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

/* Páginas legales */
.legal { padding: 48px 20px 88px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.4rem); }
.legal h2 { font-size: 1.2rem; margin-top: 2em; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2em; }
.legal-fecha { font-size: .9rem; }
.back-link, .legal .link.back { display: inline-block; margin-bottom: 28px; color: var(--navy); font-weight: 700; text-decoration: none; }

/* Banner de cookies */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40;
  max-width: 560px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 16px 40px -12px rgba(27,42,78,.35);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 12px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: .92rem; color: var(--muted); }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* Responsive */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .hero-grid, .split, .pricing { grid-template-columns: 1fr; }
  .split-reverse .split-copy { order: 0; }
  .hero-visual { margin-top: 12px; }
  .float-card { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .header-login { display: none; }
  .hero { padding: 44px 0 64px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; text-align: left; }
  .pillars, .steps, .principles { grid-template-columns: 1fr; }
  .principles { gap: 28px; }
  .phone { width: 270px; }
  .ladder { gap: 6px; }
  .ladder li { padding: 12px 4px; border-radius: 12px; }
  .ladder li:nth-child(1) { min-height: 180px; }
  .ladder li:nth-child(2) { min-height: 155px; }
  .ladder li:nth-child(3) { min-height: 130px; }
  .ladder li:nth-child(4) { min-height: 105px; }
  .ladder li:nth-child(5) { min-height: 80px; }
  .ladder-price { font-size: .95rem; }
  .ladder-label { font-size: .62rem; }
  .cta-inner { padding: 52px 22px; border-radius: 24px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* Blog */
.brand-logo { display: block; height: 38px; width: auto; }
.blog-hero { padding: 64px 0 24px; background: linear-gradient(180deg, var(--lavender-50), #fff); }
.blog-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.post-list { display: flex; flex-direction: column; gap: 16px; padding-top: 16px; padding-bottom: 72px; }
.post-card {
  display: block; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.post-card:hover { border-color: var(--lavender-100); box-shadow: var(--shadow); }
.post-card h2 { font-size: 1.35rem; margin-bottom: .35em; }
.post-card p { color: var(--muted); margin-bottom: .6em; }
.post-meta, .article-meta { font-size: .88rem; color: var(--muted); }
.article { padding: 40px 20px 32px; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--navy); font-weight: 600; text-decoration: none; }
.article-head { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.article-head h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); }
.article-lead { font-size: 1.15rem; color: var(--muted); }
.article-meta { margin: 0; }
.article-body { font-size: 1.08rem; line-height: 1.75; }
.article-body h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); margin-top: 1.8em; }
.article-body h3 { margin-top: 1.4em; }
.article-body ul, .article-body ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article-body li { margin-bottom: .45em; }
.article-body .ad-slot { padding: 16px 0; margin: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.callout { background: var(--lavender-50); border: 1px solid var(--lavender-100); border-radius: 16px; padding: 18px 22px; margin: 1.6em 0; }
.callout p:last-child { margin-bottom: 0; }
.tabla-wrap { overflow-x: auto; margin: 0 0 1.4em; }
.article-body table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.article-body th, .article-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-body th { font-weight: 700; background: var(--bg-soft); }
.article-cta {
  margin: 48px 0 20px; padding: 36px 28px; border-radius: 24px; color: #fff; text-align: center;
  background: radial-gradient(500px 240px at 90% 0%, rgba(139,124,246,.45), transparent 60%), var(--navy);
}
.article-cta h2 { font-size: 1.6rem; }
.article-cta p { color: #C9CEDC; }
.article-aviso { font-size: .85rem; color: var(--muted); }
.article-related { padding: 8px 0 72px; }
.article-related h2 { font-size: 1.3rem; }
.article-related ul { padding-left: 1.2em; }
.article-related li { margin-bottom: .5em; }
@media (max-width: 640px) {
  .article { padding-top: 28px; }
  .post-card { padding: 22px 20px; }
  .article-body { font-size: 1.03rem; }
}

/* Comunidad (cifras agregadas) */
.comunidad { padding: 56px 0; background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.comunidad[hidden] { display: none; }
.comunidad-cifras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 8px; }
@media (max-width: 900px) { .comunidad-cifras { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; } }
.comunidad-cifras div { display: flex; flex-direction: column; gap: 4px; }
.comunidad-cifras strong { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; color: var(--navy); line-height: 1.1; }
.comunidad-cifras span { color: var(--muted); font-size: .95rem; }
.comunidad-nota { margin: 28px auto 0; max-width: 620px; font-weight: 600; color: var(--navy); }
.comunidad-nota:empty { display: none; }
