/* ==========================================================================
   EscudoNorte — Blog (HTML estático)
   Estilos compartidos por el índice del blog y los artículos.
   Replica la identidad visual del sitio sin depender del runtime dc.
   ========================================================================== */

:root {
  --bg: #f7f7f4;
  --ink: #1a222b;
  --ink-strong: #101820;
  --muted: #4c5560;
  --soft: #8a877e;
  --line: #e6e4dd;
  --dark: #0d141b;
  --dark-2: #101820;
  --dark-3: #0a0f15;
  --teal: oklch(0.72 0.13 200);
  --teal-deep: oklch(0.52 0.12 200);
  --wa: #25D366;
  --wa-hover: #3be07a;
  --wrap: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: oklch(0.55 0.11 200) #eceae3; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #eceae3; }
::-webkit-scrollbar-thumb { background: oklch(0.55 0.11 200); border-radius: 20px; border: 3px solid #eceae3; }
::-webkit-scrollbar-thumb:hover { background: oklch(0.45 0.12 200); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Archivo, system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ===== Navbar ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 20, 27, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 28px;
  height: 68px; display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand span {
  font-family: Sora, sans-serif; font-size: 17px; font-weight: 700; color: #fff;
}
.brand span i { color: var(--teal); font-style: normal; }
.nav__links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav__links a {
  font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.75);
  text-decoration: none; transition: color .2s ease, transform .2s ease;
}
.nav__links a:hover { color: #fff; transform: translateY(-1px); }

/* ===== Botón WhatsApp ===== */
.btn-wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--wa); color: #08331a;
  font-family: Sora, sans-serif; font-weight: 700; text-decoration: none;
  padding: 9px 18px; border-radius: 8px; font-size: 14px;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn-wa:hover { background: var(--wa-hover); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35); }
.btn-wa:active { transform: translateY(0); }
.btn-wa--lg { font-size: 16px; padding: 15px 26px; border-radius: 10px; }

/* ===== Layout de contenido ===== */
.container { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.reading { max-width: 720px; margin: 0 auto; padding: 0 28px; }

/* ===== Encabezado de página / breadcrumb ===== */
.crumbs { font-size: 13px; color: var(--soft); margin: 0 0 18px; }
.crumbs a { color: var(--teal-deep); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.page-head { background: linear-gradient(180deg, #0d141b 0%, #101c26 100%); color: #fff; }
.page-head .reading { padding-top: 64px; padding-bottom: 56px; }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 2.4px;
  color: var(--teal); text-transform: uppercase; margin: 0 0 14px;
}

h1.title {
  font-family: Sora, sans-serif; font-weight: 800; letter-spacing: -0.8px;
  font-size: clamp(28px, 5vw, 42px); line-height: 1.14; margin: 0 0 16px;
  text-wrap: pretty;
}
.lead { font-size: 18px; line-height: 1.65; color: rgba(255, 255, 255, 0.72); margin: 0; text-wrap: pretty; }

.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 13.5px; color: rgba(255, 255, 255, 0.55); }
.meta strong { color: rgba(255, 255, 255, 0.8); font-weight: 600; }

/* ===== Cuerpo del artículo ===== */
.article { padding: 56px 0 72px; }
.article h2 {
  font-family: Sora, sans-serif; font-weight: 700; letter-spacing: -0.4px;
  font-size: 26px; line-height: 1.25; color: var(--ink-strong);
  margin: 44px 0 14px; scroll-margin-top: 84px;
}
.article h3 {
  font-family: Sora, sans-serif; font-weight: 700; font-size: 19px;
  color: var(--ink-strong); margin: 28px 0 10px;
}
.article p { font-size: 17px; line-height: 1.75; color: #333c46; margin: 0 0 18px; text-wrap: pretty; }
.article ul, .article ol { font-size: 17px; line-height: 1.7; color: #333c46; padding-left: 22px; margin: 0 0 18px; }
.article li { margin: 8px 0; }
.article strong { color: var(--ink-strong); }
.article a { color: var(--teal-deep); font-weight: 600; }

.article hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }

/* ===== Índice de contenidos ===== */
.toc {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 24px; margin: 0 0 32px;
}
.toc p { font-family: Sora, sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--soft); margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 20px; font-size: 15px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--teal-deep); }

/* ===== Callouts ===== */
.callout {
  border-radius: 12px; padding: 20px 24px; margin: 26px 0;
  font-size: 15.5px; line-height: 1.65;
}
.callout--info { background: #eef3f6; border: 1px solid #d7e2e8; color: #33566b; }
.callout--warn { background: #fdeeec; border: 1px solid #f3d5cf; color: #8a2f22; }
.callout--note { background: #fafaf7; border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.callout strong { color: inherit; }

.checklist { list-style: none; padding: 0; margin: 0 0 18px; }
.checklist li { position: relative; padding-left: 30px; margin: 12px 0; font-size: 16.5px; line-height: 1.6; color: #333c46; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  color: var(--teal-deep); font-weight: 800;
}

/* ===== Caja CTA ===== */
.cta {
  background: var(--dark-2); border-radius: 16px; padding: 34px 32px;
  margin: 44px 0 8px; text-align: center;
}
.cta h2 { color: #fff; margin: 0 0 10px; }
.cta p { color: rgba(255, 255, 255, 0.7); font-size: 16px; margin: 0 auto 22px; max-width: 46ch; }

/* ===== Índice del blog (tarjetas) ===== */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; padding: 56px 0 72px; }
.card {
  display: flex; flex-direction: column; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 28px 26px; text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(16, 24, 32, 0.10); border-color: #d4d1c7; }
.card__tag { font-family: Sora, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--teal-deep); }
.card h3 { font-family: Sora, sans-serif; font-weight: 700; font-size: 20px; line-height: 1.25; color: var(--ink-strong); margin: 0; }
.card p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }
.card__meta { margin-top: auto; font-size: 13px; color: var(--soft); }
.card__more { color: var(--teal-deep); font-weight: 600; font-size: 14px; }
.card--soon { opacity: 0.62; pointer-events: none; background: #fafaf7; }
.card--soon .card__tag { color: var(--soft); }

/* ===== Footer ===== */
.footer { background: var(--dark-3); padding: 44px 28px; color: rgba(255, 255, 255, 0.55); }
.footer__inner { max-width: var(--wrap); margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer a { color: rgba(255, 255, 255, 0.55); text-decoration: none; font-size: 13px; transition: color .2s ease; }
.footer a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255, 255, 255, 0.4); }

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .nav__inner { gap: 14px; padding: 0 18px; }
  .nav__links { gap: 14px; }
  .nav__links a:not(.btn-wa) { display: none; }
  .reading, .container { padding-left: 20px; padding-right: 20px; }
  .article p, .article ul, .article ol { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
