/* Capa estática compartida. No requiere React ni ningún framework en ejecución. */
:root {
  --static-ink: #0f172a;
  --static-muted: #64748b;
  --static-border: #e2e8f0;
  --static-surface: #ffffff;
  --static-soft: #f8fafc;
  --static-brand: #2563eb;
  --static-brand-dark: #1d4ed8;
  --static-whatsapp: #25d366;
  --static-max: 1120px;
}

html { scroll-behavior: smooth; }
body { margin: 0; }

/* Cabeceras heredadas de la versión prerenderizada. */
header[data-testid="header"][data-static-scrolled="true"] {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid var(--static-border) !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08) !important;
  backdrop-filter: blur(12px);
}

header[data-testid="header"][data-static-scrolled="true"] [data-testid="link-logo"] > span:last-child,
header[data-testid="header"][data-static-scrolled="true"] [data-testid="nav-desktop"] a,
header[data-testid="header"][data-static-scrolled="true"] [data-testid="button-mobile-menu"] {
  color: var(--static-ink) !important;
}

.static-mobile-nav {
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px 16px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--static-border);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.static-mobile-nav[data-open="true"] { display: flex; }
.static-mobile-nav a {
  color: var(--static-ink) !important;
  text-decoration: none;
  font: 600 0.95rem/1.3 Inter, system-ui, sans-serif;
  padding: 10px 12px;
  border-radius: 8px;
}
.static-mobile-nav a:hover { background: var(--static-soft); }

@media (min-width: 768px) {
  .static-mobile-nav { display: none !important; }
}

/* Blog estático y páginas de artículo. */
.static-page {
  min-height: 100vh;
  color: var(--static-ink);
  background: var(--static-surface);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
.static-page *, .static-page *::before, .static-page *::after { box-sizing: border-box; }
.static-page a { color: var(--static-brand); }
.static-page a:hover { color: var(--static-brand-dark); }
.static-container { width: min(calc(100% - 32px), var(--static-max)); margin-inline: auto; }
.static-container-narrow { width: min(calc(100% - 32px), 800px); margin-inline: auto; }

.static-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--static-border);
  backdrop-filter: blur(12px);
}
.static-header-row { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.static-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--static-ink) !important; text-decoration: none; font-weight: 800; }
.static-logo-mark { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: #fff; background: var(--static-brand); font-size: 0.78rem; }
.static-nav { display: flex; align-items: center; gap: 20px; }
.static-nav a { color: #475569; text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.static-nav a[aria-current="page"] { color: var(--static-brand); }
.static-header-cta { display: inline-flex; align-items: center; justify-content: center; padding: 9px 14px; border-radius: 8px; color: #fff !important; background: var(--static-whatsapp); text-decoration: none; font-size: 0.88rem; font-weight: 750; }
.static-nav-toggle { display: none; border: 1px solid var(--static-border); background: #fff; color: var(--static-ink); width: 40px; height: 40px; border-radius: 8px; cursor: pointer; font-size: 1.25rem; }
.static-nav-mobile { display: none; padding: 0 0 14px; }
.static-nav-mobile[data-open="true"] { display: grid; gap: 6px; }
.static-nav-mobile a { color: var(--static-ink); text-decoration: none; padding: 10px 12px; border-radius: 8px; font-weight: 650; }
.static-nav-mobile a:hover { background: var(--static-soft); }

.static-hero { padding: 78px 0 66px; background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 55%, #ecfdf5 100%); border-bottom: 1px solid var(--static-border); }
.static-eyebrow { display: inline-block; margin-bottom: 12px; color: var(--static-brand); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.static-hero h1 { max-width: 820px; margin: 0 0 16px; font: 800 clamp(2.25rem, 6vw, 4rem)/1.08 "Plus Jakarta Sans", Inter, sans-serif; letter-spacing: -0.04em; }
.static-hero p { max-width: 720px; margin: 0; color: #475569; font-size: clamp(1rem, 2vw, 1.18rem); }

.static-blog-main { padding: 56px 0 80px; }
.static-section-title { margin: 0 0 28px; font: 780 clamp(1.65rem, 3vw, 2.25rem)/1.2 "Plus Jakarta Sans", Inter, sans-serif; letter-spacing: -0.025em; }
.static-category { display: inline-flex; width: fit-content; margin-bottom: 7px; padding: 5px 9px; border-radius: 999px; color: #1d4ed8; background: #dbeafe; font-size: 0.75rem; font-weight: 800; line-height: 1.2; }
.static-article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.static-card { display: flex; flex-direction: column; min-height: 100%; border: 1px solid var(--static-border); border-radius: 16px; background: #fff; box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06); overflow: hidden; }
.static-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1); transition: 160ms ease; }
.static-card-body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.static-card time { color: var(--static-muted); font-size: 0.82rem; }
.static-card h2 { margin: 9px 0 10px; font: 750 1.18rem/1.3 "Plus Jakarta Sans", Inter, sans-serif; }
.static-card h2 a { color: var(--static-ink); text-decoration: none; }
.static-card p { margin: 0 0 18px; color: #526176; font-size: 0.94rem; }
.static-card-link { margin-top: auto; text-decoration: none; font-weight: 750; }

.static-breadcrumbs { padding-top: 30px; color: var(--static-muted); font-size: 0.9rem; }
.static-breadcrumbs a { text-decoration: none; }
.static-article-header { padding: 42px 0 32px; border-bottom: 1px solid var(--static-border); }
.static-article-header h1 { margin: 8px 0 16px; font: 800 clamp(2rem, 5vw, 3.35rem)/1.1 "Plus Jakarta Sans", Inter, sans-serif; letter-spacing: -0.035em; }
.static-article-header .lead { margin: 0; color: #475569; font-size: 1.12rem; }
.static-article-meta { color: var(--static-muted); font-size: 0.88rem; }
.static-article { padding: 44px 0 68px; }
.static-article-content { font-size: 1.02rem; }
.static-article-content h2 { margin: 2.4em 0 0.65em; font: 760 1.65rem/1.25 "Plus Jakarta Sans", Inter, sans-serif; letter-spacing: -0.02em; }
.static-article-content h3 { margin: 2em 0 0.55em; font: 740 1.25rem/1.3 "Plus Jakarta Sans", Inter, sans-serif; }
.static-article-content p { margin: 0 0 1.15em; }
.static-article-content ul, .static-article-content ol { margin: 0 0 1.3em; padding-left: 1.45em; }
.static-article-content li { margin: 0.35em 0; }
.static-article-content blockquote { margin: 1.6em 0; padding: 16px 20px; border-left: 4px solid var(--static-brand); border-radius: 0 10px 10px 0; background: #eff6ff; color: #334155; }
.static-article-content strong { color: #020617; }
.static-article-content a { overflow-wrap: anywhere; }
.static-sources { padding: 18px 20px 18px 38px !important; border: 1px solid var(--static-border); border-radius: 12px; background: var(--static-soft); font-size: 0.92rem; }
.static-sources a { font-weight: 650; }
.static-disclaimer { margin-top: 42px; padding: 16px 18px; border: 1px solid #fde68a; border-radius: 12px; background: #fffbeb; color: #713f12; font-size: 0.9rem; }
.static-cta { margin-top: 44px; padding: 28px; border-radius: 16px; background: #0f172a; color: #fff; }
.static-cta h2 { margin: 0 0 8px; font: 760 1.5rem/1.25 "Plus Jakarta Sans", Inter, sans-serif; }
.static-cta p { margin: 0 0 18px; color: #cbd5e1; }
.static-cta a { display: inline-flex; padding: 11px 17px; border-radius: 9px; background: var(--static-whatsapp); color: #fff !important; text-decoration: none; font-weight: 800; }

.static-footer { padding: 30px 0; border-top: 1px solid var(--static-border); background: var(--static-soft); color: var(--static-muted); font-size: 0.85rem; }
.static-footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.static-footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.static-footer a { color: #475569; text-decoration: none; }

@media (max-width: 900px) {
  .static-article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .static-nav { display: none; }
  .static-header-cta { display: none; }
  .static-nav-toggle { display: inline-grid; place-items: center; }
  .static-article-grid { grid-template-columns: 1fr; }
  .static-hero { padding: 58px 0 50px; }
  .static-footer-row { align-items: flex-start; flex-direction: column; }
}

@media print {
  .static-site-header, .static-footer, .static-cta { display: none !important; }
  .static-article { padding-top: 0; }
  .static-page { color: #000; }
}
