/* ============================================================
   Tanke Marketing Digital — sitio público (Fase 5)
   ============================================================ */
:root {
  --bg:        #0a0e1a;
  --bg-2:      #0d1424;
  --surface:   #121a2e;
  --surface-2: #172138;
  --line:      #243248;
  --line-2:    #1b2740;
  --ink:       #eaf0fa;
  --ink-2:     #a6b6d0;
  --ink-3:     #6f80a0;
  --brand:     #4f8fff;
  --brand-2:   #22d3ee;
  --brand-ink: #9cc4ff;
  --grow:      #34d399;
  --grad:      linear-gradient(120deg, #22d3ee, #4f8fff);
  --grad-soft: linear-gradient(180deg, rgba(79,143,255,.14), rgba(34,211,238,.05));
  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 24px 60px -28px rgba(0,0,0,.7);
  --maxw:      1160px;
  --pad:       clamp(20px, 5vw, 56px);
  --ff-display: "Sora", "Manrope", system-ui, sans-serif;
  --ff-body:    "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { color: var(--ink); }
img, svg { max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.wrap-narrow { max-width: 760px; }
.muted-line { color: var(--ink-3); font-size: 0.9rem; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #05101f; padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip:focus { left: 0; }

.ic { width: 22px; height: 22px; display: inline-block; vertical-align: middle; flex: none; }
.ic-sm { width: 17px; height: 17px; }
.ic-xl { width: 120px; height: 120px; stroke-width: 1; }

/* ---------- buttons ---------- */
.btn {
  --bg-btn: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 14px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #05101f; }
.btn-primary:hover { background: var(--brand-ink); color: #05101f; box-shadow: 0 12px 30px -10px rgba(79,143,255,.5); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--brand); color: var(--ink); }
.btn-wa { background: rgba(37,211,102,.12); color: #7de9a6; border-color: rgba(37,211,102,.3); }
.btn-wa:hover { background: rgba(37,211,102,.2); color: #a7f2c4; }
.btn-light { background: var(--ink); color: #05101f; }
.btn-light:hover { background: #fff; color: #05101f; }
.btn-outline { border-color: rgba(255,255,255,.35); color: var(--ink); }
.btn-outline:hover { border-color: #fff; }

.eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-2); margin: 0 0 14px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,14,26,.72);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header[data-scrolled] { border-color: var(--line-2); background: rgba(10,14,26,.9); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--ff-display); font-weight: 700; }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--grad); color: #05101f; font-weight: 700;
}
.brand-text { font-size: 1.1rem; letter-spacing: -0.02em; }
.site-nav { display: flex; gap: 26px; margin-left: 12px; flex: 1; }
.site-nav a { color: var(--ink-2); font-weight: 500; font-size: 0.96rem; }
.site-nav a:hover { color: var(--ink); }
.header-cta { display: flex; gap: 10px; align-items: center; }
.header-cta .btn { padding: 9px 16px; font-size: 0.9rem; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: 0.82rem; letter-spacing: .04em;
}
.lang-switch:hover { color: var(--ink); border-color: var(--brand); text-decoration: none; }
.mobile-nav .lang-switch { border: 0; padding: 12px 4px; border-bottom: 1px solid var(--line-2); border-radius: 0; }

.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: transform .2s, opacity .2s; }
.mobile-nav { display: none; }

@media (max-width: 900px) {
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .mobile-nav {
    display: flex; flex-direction: column; gap: 4px; padding: 12px var(--pad) 22px;
    border-bottom: 1px solid var(--line-2); background: var(--bg-2);
    max-height: 0; overflow: hidden; transition: max-height .28s ease, padding .28s ease; padding-block: 0;
  }
  .mobile-nav.open { max-height: 80vh; padding-block: 12px 22px; }
  .mobile-nav a:not(.btn) { padding: 12px 4px; color: var(--ink-2); border-bottom: 1px solid var(--line-2); font-weight: 500; }
  .mobile-nav .btn { margin-top: 10px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(48px, 9vw, 110px) 0 clamp(56px, 9vw, 104px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg span {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
}
.hero-bg span:nth-child(1) { width: 460px; height: 460px; background: #1d4ed8; top: -160px; right: -80px; }
.hero-bg span:nth-child(2) { width: 380px; height: 380px; background: #0e7490; bottom: -180px; left: -120px; opacity: .38; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy .lead { font-size: clamp(1.05rem, 1.7vw, 1.24rem); color: var(--ink-2); max-width: 46ch; margin-block: 18px 26px; }
.hero h1 { background: linear-gradient(180deg, #fff, #b7c8e8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { display: flex; flex-direction: column; gap: 8px; margin-top: 26px; }
.hero-points li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 0.96rem; }
.hero-points .ic { color: var(--grow); }
.hero-visual { position: relative; }
.growth { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 50px rgba(0,0,0,.5)); }
.growth-bars rect { fill: #1b2942; }
.growth-labels text { fill: var(--ink-3); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 440px; }
}

/* ---------- sections ---------- */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line-2); }
.section-head { max-width: 640px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-sub { color: var(--ink-2); font-size: 1.05rem; margin-top: 14px; }

/* ---------- service cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.svc-card {
  display: flex; flex-direction: column; gap: 10px; padding: 26px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  color: var(--ink); transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.svc-card:hover { transform: translateY(-3px); border-color: var(--brand); background: var(--surface-2); color: var(--ink); }
.svc-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--line); color: var(--brand-2);
}
.svc-icon-lg { width: 60px; height: 60px; margin-bottom: 8px; }
.svc-card p { color: var(--ink-2); font-size: 0.95rem; flex: 1; margin: 0; }
.svc-more { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-ink); font-weight: 600; font-size: 0.9rem; }

/* ---------- funnel ---------- */
.funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.funnel li {
  position: relative; padding: 24px; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius); transition: opacity .5s ease, transform .5s ease;
  transition-delay: calc(var(--i, 0) * 90ms);
}
.funnel-n {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad); color: #05101f; font-weight: 700; font-family: var(--ff-display); margin-bottom: 12px;
}
.funnel li h3 { margin-bottom: 6px; }
.funnel li p { color: var(--ink-2); font-size: 0.92rem; margin: 0; }
.funnel-arrow { position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); z-index: 2; }
.funnel-arrow .ic { width: 20px; height: 20px; }
@media (max-width: 900px) {
  .funnel { grid-template-columns: 1fr; }
  .funnel-arrow { right: 50%; top: auto; bottom: -14px; transform: translateX(50%) rotate(90deg); }
}

/* ---------- feature list ---------- */
.feature-list { display: flex; flex-direction: column; gap: clamp(36px, 6vw, 72px); }
.feature { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.feature-rev .feature-body { order: 2; }
.feature-lead { color: var(--ink-2); font-size: 1.02rem; margin-block: 12px 18px; }
.ticks { display: flex; flex-direction: column; gap: 9px; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); font-size: 0.96rem; }
.ticks .ic { color: var(--grow); margin-top: 3px; }
.ticks-lg li { font-size: 1rem; }
.feature-note {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 12px 16px;
  background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.25); border-radius: var(--radius-sm);
  color: #a7e8cc; font-size: 0.9rem;
}
.feature-note .ic { color: var(--grow); margin-top: 2px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-top: 16px; }
.feature-art {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line-2); color: var(--brand-2); overflow: hidden;
}
.art-glow { position: absolute; width: 60%; height: 60%; background: var(--brand); filter: blur(70px); opacity: .3; border-radius: 50%; }
.feature-art .ic { position: relative; }
@media (max-width: 820px) {
  .feature, .feature-rev .feature-body { grid-template-columns: 1fr; order: initial; }
  .feature-art { max-width: 280px; }
}

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; counter-reset: p; }
.process li { padding: 22px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); }
.process-n { font-family: var(--ff-display); font-weight: 700; font-size: 1.4rem; color: var(--brand-2); display: block; margin-bottom: 8px; }
.process li p { color: var(--ink-2); font-size: 0.92rem; margin: 6px 0 0; }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: start; }
.price-card {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 30px 26px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
}
.price-card.is-featured { border-color: var(--brand); background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow); }
.price-tag {
  position: absolute; top: -12px; left: 26px; padding: 4px 12px; border-radius: 999px;
  background: var(--grad); color: #05101f; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.price-tagline { color: var(--ink-2); font-size: 0.94rem; margin: 4px 0 14px; }
.price-amount { display: flex; align-items: baseline; gap: 8px; }
.price-big { font-family: var(--ff-display); font-weight: 700; font-size: 2.2rem; letter-spacing: -0.03em; }
.price-unit { color: var(--ink-3); font-size: 0.88rem; }
.price-break { color: var(--ink-3); font-size: 0.84rem; margin: 2px 0 0; }
.price-rec { color: var(--ink-2); font-size: 0.92rem; margin: 8px 0 16px; }
.price-rec strong { color: var(--ink); }
.price-card .btn { margin-bottom: 18px; }
.price-card .ticks { margin-bottom: 16px; }
.price-card .ticks li { font-size: 0.9rem; }
.price-foot { color: var(--ink-3); font-size: 0.82rem; margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line-2); }
.custom-quote {
  margin-top: 28px; text-align: center; color: var(--ink-2); background: var(--surface);
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px;
}
.custom-quote .link-arrow { margin-top: 8px; }

.note-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 28px; }
.note-card { padding: 20px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); }
.note-card p { color: var(--ink-2); font-size: 0.92rem; margin: 8px 0 0; }

/* ---------- comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--line-2); }
.compare thead th { font-family: var(--ff-display); font-size: 0.92rem; color: var(--ink); background: var(--surface-2); }
.compare tbody th { text-align: left; color: var(--ink-2); font-weight: 500; font-family: var(--ff-body); }
.compare tbody tr:last-child td, .compare tbody tr:last-child th { border-bottom: 0; }
.compare .yes { color: var(--grow); }
.compare .no { color: var(--ink-3); }
.compare .val { color: var(--brand-ink); font-weight: 600; font-size: 0.88rem; }

/* ---------- faq ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; font-family: var(--ff-display);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chev { color: var(--ink-3); transition: transform .2s ease; }
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-a { padding: 0 20px 18px; color: var(--ink-2); }
.faq-a p { margin: 0; }

/* ---------- cta band ---------- */
.cta-band { background: var(--grad); color: #05101f; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(36px, 6vw, 60px); flex-wrap: wrap; }
.cta-inner h2 { color: #05101f; }
.cta-inner p { color: #0a2540; margin: 8px 0 0; max-width: 44ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-light { background: #05101f; color: #fff; }
.cta-band .btn-light:hover { background: #0a1a30; }
.cta-band .btn-outline { border-color: rgba(5,16,31,.4); color: #05101f; }
.cta-band .btn-outline:hover { border-color: #05101f; }
.contact-teaser { text-align: center; }
.contact-teaser .hero-actions { justify-content: center; margin-top: 22px; }

/* ---------- page hero (interior pages) ---------- */
.page-hero { padding: clamp(48px, 8vw, 88px) 0 clamp(30px, 5vw, 44px); background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-bottom: 1px solid var(--line-2); }
.page-hero-sm { padding-bottom: clamp(20px, 3vw, 28px); }
.page-hero .lead { color: var(--ink-2); font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 52ch; margin-top: 14px; }
.crumbs { font-size: 0.85rem; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--ink-2); }
.crumbs span { margin: 0 6px; }

/* ---------- contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1.4fr .9fr; gap: 32px; align-items: start; }
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-form { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 0.85rem; color: var(--ink-2); margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,143,255,.16); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { margin-top: 4px; }
.form-legal { font-size: 0.82rem; color: var(--ink-3); margin: 14px 0 0; }
.form-note { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 0.92rem; display: flex; gap: 8px; align-items: center; }
.form-ok { background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3); color: #a7e8cc; }
.form-err { background: rgba(251,113,133,.1); border: 1px solid rgba(251,113,133,.35); color: #ffc9d1; }
.contact-aside { display: flex; flex-direction: column; gap: 16px; }
.aside-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 22px; }
.aside-card h3 { display: flex; align-items: center; gap: 8px; }
.aside-card p { color: var(--ink-2); font-size: 0.92rem; margin: 8px 0 14px; }
.mini-steps { counter-reset: m; display: flex; flex-direction: column; gap: 10px; }
.mini-steps li { position: relative; padding-left: 30px; color: var(--ink-2); font-size: 0.92rem; }
.mini-steps li::before {
  counter-increment: m; content: counter(m); position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line);
  color: var(--brand-2); font-size: 0.75rem; font-weight: 700; display: grid; place-items: center;
}

/* ---------- legal ---------- */
.legal-doc h2 { font-size: 1.2rem; margin-top: 28px; }
.legal-doc p { color: var(--ink-2); }
.legal-doc hr { border: 0; border-top: 1px solid var(--line-2); margin: 28px 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line-2); padding-top: clamp(40px, 6vw, 64px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); margin-bottom: 12px; }
.footer-grid > div > a { display: block; color: var(--ink-2); font-size: 0.92rem; padding: 4px 0; }
.footer-grid > div > a:hover { color: var(--ink); }
.footer-tag { color: var(--ink-2); font-size: 0.92rem; max-width: 34ch; margin: 14px 0 12px; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { color: var(--brand-ink); font-size: 0.9rem; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--line-2); margin-top: clamp(32px, 5vw, 48px); padding-block: 22px 30px;
  color: var(--ink-3); font-size: 0.85rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- scroll reveal (solo si hay JS; sin JS todo es visible) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .funnel li { transition: none; }
  .growth-line, .growth-area, .growth-bars rect, .growth-dots circle { animation: none !important; }
}

/* ---------- growth svg animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .growth-line { stroke-dasharray: 620; stroke-dashoffset: 620; animation: draw 1.6s ease .3s forwards; }
  .growth-area { opacity: 0; animation: fade 1s ease 1.2s forwards; }
  .growth-bars rect { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); animation: grow .5s ease forwards; }
  .growth-bars rect:nth-child(1) { animation-delay: .3s; }
  .growth-bars rect:nth-child(2) { animation-delay: .45s; }
  .growth-bars rect:nth-child(3) { animation-delay: .6s; }
  .growth-bars rect:nth-child(4) { animation-delay: .75s; }
  .growth-bars rect:nth-child(5) { animation-delay: .9s; }
  .growth-dots circle { opacity: 0; animation: fade .3s ease forwards; }
  .growth-dots circle:nth-child(1) { animation-delay: .7s; }
  .growth-dots circle:nth-child(2) { animation-delay: .95s; }
  .growth-dots circle:nth-child(3) { animation-delay: 1.2s; }
  .growth-dots circle:nth-child(4) { animation-delay: 1.45s; }
  .growth-dots circle:nth-child(5) { animation-delay: 1.7s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes grow { to { transform: scaleY(1); } }

/* ============================================================
   Fase 7B — Blog
   ============================================================ */
.empty-note {
  text-align: center; color: var(--ink-3); padding: 48px 20px;
  border: 1px dashed var(--line); border-radius: var(--radius);
}

.post-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px;
}
.post-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s ease, border-color .2s ease;
}
.post-card:hover { transform: translateY(-3px); border-color: var(--brand); }
.post-cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-date { font-size: 0.8rem; color: var(--ink-3); font-family: var(--ff-body); }
.post-card h2 { font-size: 1.15rem; }
.post-card h2 a { color: var(--ink); }
.post-card h2 a:hover { color: var(--brand-ink); }
.post-card p { color: var(--ink-2); font-size: 0.92rem; margin: 0; flex: 1; }

.blog-pager {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: 40px; color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.blog-pager .btn { padding: 8px 16px; }

/* --- artículo --- */
.post-hero { padding: clamp(44px, 7vw, 76px) 0 clamp(20px, 3vw, 28px); background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-bottom: 1px solid var(--line-2); }
.post-hero h1 { margin-top: 12px; }
.post-meta { color: var(--ink-3); font-size: 0.9rem; margin-top: 14px; }
.post-cover-full {
  width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius);
  margin: 28px 0 8px; border: 1px solid var(--line-2);
}
.post-foot { margin: 12px auto 0; padding-bottom: 12px; }

/* --- prose (markdown renderizado) --- */
.prose { padding-top: 28px; padding-bottom: 28px; color: var(--ink); font-size: 1.05rem; line-height: 1.75; }
.prose > * { margin: 0 0 1.1em; }
.prose h2 { font-family: var(--ff-display); font-size: 1.5rem; margin: 1.8em 0 .6em; letter-spacing: -0.01em; }
.prose h3 { font-family: var(--ff-display); font-size: 1.2rem; margin: 1.6em 0 .5em; }
.prose h4 { font-size: 1.05rem; margin: 1.4em 0 .4em; }
.prose p { color: var(--ink-2); }
.prose a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; color: var(--ink-2); }
.prose li { margin: .4em 0; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose blockquote {
  border-left: 3px solid var(--brand); padding: 4px 0 4px 20px; margin-left: 0;
  color: var(--ink-2); font-style: italic;
}
.prose code {
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 5px;
  padding: .12em .4em; font-size: .88em; font-family: ui-monospace, Menlo, Consolas, monospace;
}
.prose pre {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 16px 18px; overflow-x: auto;
}
.prose pre code { background: none; border: 0; padding: 0; }
.prose img { border-radius: var(--radius-sm); border: 1px solid var(--line-2); }
.prose hr { border: 0; border-top: 1px solid var(--line-2); }
.prose strong { color: var(--ink); font-weight: 700; }
