/* ===== JUVENAI BLOG ===== reusa las :root vars de /style.css ===== */
:root { --glow: #4A9EF5; }

/* ---- Hero del blog (banda oscura, coherente con "claro + hero oscuro") ---- */
.blog-hero {
  position: relative;
  padding: 140px 24px 72px;
  text-align: center;
  color: var(--white);
  background: linear-gradient(135deg, #020B2D 0%, #03154A 40%, #053C83 75%, #1A3A7A 100%);
  overflow: hidden;
}
.blog-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url("/images/hero-bg.png") center/cover no-repeat;
  opacity: 0.22;
  mix-blend-mode: screen;
  pointer-events: none;
}
.blog-hero > * { position: relative; z-index: 1; }
.blog-hero-eyebrow {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: 3px;
  color: var(--glow); margin: 0 0 16px;
}
.blog-hero-title {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 600; line-height: 1.08; letter-spacing: -0.5px;
  font-size: clamp(34px, 5vw, 60px); margin: 0 auto 18px; max-width: 14ch;
}
.blog-hero-title .soft { color: rgba(255,255,255,0.55); font-weight: 300; }
.blog-hero-sub {
  font-family: 'Roboto', sans-serif; font-weight: 300;
  font-size: clamp(15px, 1.8vw, 18px); line-height: 1.6;
  color: rgba(255,255,255,0.78); max-width: 56ch; margin: 0 auto;
}
.blog-hero-trust {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  font-family: 'Roboto', sans-serif; font-size: 13px;
  color: rgba(255,255,255,0.62);
}
.blog-hero-trust::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--glow); box-shadow: 0 0 10px 2px rgba(74,158,245,0.6);
}

/* ---- Chips de pilar (taxonomía real del contenido) ---- */
.blog-pillars {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  padding: 28px 24px 4px; max-width: 900px; margin: 0 auto;
}
.blog-pillar-chip {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: 0.3px;
  color: var(--blue-mid); background: var(--white);
  border: 1px solid var(--gray-border); border-radius: 100px;
  padding: 8px 16px;
}

/* ---- Grilla de artículos ---- */
.blog-section { background: var(--gray-light); padding: 36px 24px 96px; }
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px; max-width: 1200px; margin: 0 auto;
}
.blog-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--white); border: 1px solid var(--gray-border);
  border-radius: 16px; overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.blog-card:hover {
  transform: translateY(-4px); border-color: var(--glow);
  box-shadow: 0 10px 34px rgba(74,158,245,0.16);
}
.blog-card-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--blue-dark); }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-thumb::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue-mid), var(--glow));
  opacity: 0; transition: opacity .22s ease;
}
.blog-card:hover .blog-card-thumb::after { opacity: 1; }
.blog-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card-tag {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--blue-mid); margin: 0;
}
.blog-card-title {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--text-dark); margin: 0;
}
.blog-card-excerpt {
  font-family: 'Roboto', sans-serif; font-size: 14.5px; line-height: 1.6;
  color: var(--gray-text); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-meta {
  margin-top: auto; padding-top: 6px; display: flex; align-items: center; gap: 8px;
  font-family: 'Roboto', sans-serif; font-size: 12.5px; color: #9aa3ad;
}
.blog-card-meta .src {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
  color: var(--blue-mid); font-weight: 500;
}

/* ---- Estado vacío (invitación a la lista de espera) ---- */
.blog-empty {
  max-width: 560px; margin: 28px auto; text-align: center;
  padding: 56px 24px;
}
.blog-empty-mark {
  width: 72px; height: 72px; margin: 0 auto 28px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(74,158,245,0.28), rgba(5,60,131,0.05) 70%);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gray-border);
}
.blog-empty-mark::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  background: var(--glow); box-shadow: 0 0 16px 3px rgba(74,158,245,0.65);
}
.blog-empty-title {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(24px, 3.5vw, 32px); font-weight: 600; line-height: 1.2;
  color: var(--text-dark); margin: 0 0 14px;
}
.blog-empty-body {
  font-family: 'Roboto', sans-serif; font-size: 16px; line-height: 1.6;
  color: var(--gray-text); margin: 0 0 28px;
}
.blog-empty-cta {
  display: inline-block; text-decoration: none;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 600; font-size: 15px;
  color: var(--white); background: var(--blue-mid);
  padding: 14px 28px; border-radius: 100px;
  transition: box-shadow .22s ease, transform .22s ease;
}
.blog-empty-cta:hover { box-shadow: 0 8px 26px rgba(74,158,245,0.4); transform: translateY(-2px); }

@media (max-width: 520px) {
  .blog-hero { padding-top: 110px; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* ===== Página de artículo ===== */
.article { background: var(--white); }
.article-head { max-width: 760px; margin: 0 auto; padding: 128px 24px 0; }
.article-bc { font-family: 'Roboto', sans-serif; font-size: 13px; color: #9aa3ad; margin: 0 0 22px; }
.article-bc a { color: var(--gray-text); text-decoration: none; }
.article-bc a:hover { color: var(--blue-mid); }
.article-eyebrow {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--blue-mid); margin: 0 0 14px;
}
.article-title {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(30px, 4.2vw, 46px); font-weight: 600; line-height: 1.12; letter-spacing: -0.5px;
  color: var(--text-dark); margin: 0 0 20px;
}
.article-meta {
  font-family: 'Roboto', sans-serif; font-size: 14px; color: var(--gray-text);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.article-meta .dot { color: #cdd2d8; }
.article-hero { max-width: 980px; margin: 34px auto 0; padding: 0 24px; }
.article-hero img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 16px; display: block; }
.article-body { max-width: 720px; margin: 0 auto; padding: 40px 24px 8px; }
.article-body p, .article-body li { font-family: 'Roboto', sans-serif; font-size: 18px; line-height: 1.75; color: #2a2f37; }
.article-body p { margin: 0 0 22px; }
.article-body .lead { font-size: 20px; color: var(--text-dark); }
.article-body h2 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 26px; font-weight: 600; line-height: 1.25; letter-spacing: -0.3px;
  color: var(--text-dark); margin: 40px 0 16px;
}
.article-body h3 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 20px; font-weight: 600; color: var(--text-dark); margin: 28px 0 12px;
}
.article-body a { color: var(--blue-mid); text-decoration: underline; text-underline-offset: 2px; }
.article-body ul { margin: 0 0 22px; padding-left: 22px; }
.article-body li { margin: 0 0 10px; }
.article-body sup a { font-size: 12px; color: var(--blue-mid); text-decoration: none; padding: 0 1px; }
.article-body blockquote { margin: 30px 0; padding: 6px 0 6px 24px; border-left: 3px solid var(--blue-mid); }
.article-body blockquote p {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 22px; font-weight: 300; line-height: 1.4; color: var(--blue-dark); margin: 0;
}
/* Imágenes inline dentro del artículo */
.article-body figure { margin: 32px 0; }
.article-body figure img { width: 100%; height: auto; border-radius: 12px; display: block; }
.article-body figure.wide { width: min(980px, calc(100vw - 48px)); margin-left: 50%; transform: translateX(-50%); }
.article-body figcaption {
  font-family: 'Roboto', sans-serif; font-size: 13px; color: #9aa3ad;
  margin-top: 10px; text-align: center; line-height: 1.5;
}
.article-cta { max-width: 720px; margin: 44px auto; padding: 0 24px; }
.article-cta-inner {
  background: linear-gradient(135deg, #03154A, #053C83);
  border-radius: 20px; padding: 36px 32px; text-align: center; color: var(--white);
}
.article-cta-inner h3 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 24px; font-weight: 600; margin: 0 0 10px; color: var(--white);
}
.article-cta-inner p { font-family: 'Roboto', sans-serif; font-size: 16px; color: rgba(255,255,255,0.8); margin: 0 0 22px; }
.article-cta-inner a {
  display: inline-block; text-decoration: none;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 600; font-size: 15px;
  color: var(--blue-dark); background: var(--white); padding: 13px 28px; border-radius: 100px;
  transition: box-shadow .22s ease;
}
.article-cta-inner a:hover { box-shadow: 0 8px 26px rgba(74,158,245,0.5); }
.article-sources { max-width: 720px; margin: 8px auto 0; padding: 28px 24px; border-top: 1px solid var(--gray-border); }
.article-sources h2 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--gray-text); margin: 0 0 16px;
}
.article-sources ol { margin: 0; padding-left: 20px; }
.article-sources li { font-family: 'Roboto', sans-serif; font-size: 14px; line-height: 1.55; color: var(--gray-text); margin: 0 0 10px; }
.article-sources a { color: var(--blue-mid); }
.article-back { max-width: 720px; margin: 0 auto; padding: 8px 24px 80px; }
.article-back a { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 600; color: var(--blue-mid); text-decoration: none; }
