/* ============================================================
   Blog IsePlus — estilos de artículos (extiende styles.css)
   ============================================================ */

/* ---------- Hub del blog ---------- */

.blog-hero {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(ellipse 700px 420px at 90% -10%, rgba(73, 94, 171, 0.08), transparent 65%),
    var(--canvas);
}
.blog-hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 22ch;
  margin-bottom: 1rem;
}
.blog-hero h1 em { color: var(--blue); }
.blog-hero p { font-size: 1.15rem; max-width: 58ch; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.9rem 1.9rem 1.7rem;
  text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.blog-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red-soft), var(--blue) 50%, var(--green-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 45px -28px var(--shadow-far);
}
.blog-card:hover::before { transform: scaleX(1); }
.blog-card--featured { grid-column: 1 / -1; }

.blog-card__tag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 0.8rem;
}
.blog-card h2 {
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
}
.blog-card--featured h2 { font-size: clamp(1.5rem, 3vw, 2rem); max-width: 30ch; }
.blog-card p { color: var(--body); font-size: 0.97rem; margin-bottom: 1.2rem; max-width: 62ch; }
.blog-card__meta {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.blog-card__meta strong { color: var(--navy); font-weight: 600; }

/* ---------- Artículo ---------- */

.article-head {
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 600px 380px at 85% -20%, rgba(73, 94, 171, 0.07), transparent 65%),
    var(--canvas);
}
.article-head .eyebrow { margin-bottom: 0.9rem; }
.article-head h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
  max-width: 26ch;
  margin-bottom: 1rem;
}
.article-head .lead {
  font-size: 1.18rem;
  color: var(--body);
  max-width: 56ch;
}
.article-meta {
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.article-banner {
  max-width: 880px;
  margin: 2.4rem auto 0;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.article-hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 34px 55px -34px var(--shadow-far);
}

.article {
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 2.5rem) clamp(3rem, 6vw, 4.5rem);
}
.article > * + * { margin-top: 1.15rem; }
.article h2 {
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 2.6rem;
}
.article h3 {
  font-size: 1.15rem;
  letter-spacing: -0.012em;
  margin-top: 2rem;
}
.article p { line-height: 1.75; }
.article ul, .article ol { padding-left: 1.4rem; line-height: 1.75; }
.article li + li { margin-top: 0.45rem; }
.article strong { color: var(--ink); }
.article a { color: var(--blue); }

.article .callout {
  background: var(--warm);
  border: 1px solid var(--border-warm);
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  padding: 1.2rem 1.4rem;
  font-size: 0.98rem;
}
.article .callout--red { border-left-color: var(--red-soft); }
.article .callout--green { border-left-color: var(--green-soft); }
.article .callout strong { display: block; margin-bottom: 0.3rem; }

.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}
.article th, .article td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border);
}
.article th {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* CTA dentro del artículo */
.article-cta {
  margin-top: 3rem;
  background: var(--navy);
  border-radius: 14px;
  padding: 2.2rem 2.2rem 2.4rem;
  color: #fff;
}
.article-cta h2 { color: #fff; margin-top: 0; font-size: 1.45rem; }
.article-cta p { color: rgba(255, 255, 255, 0.78); margin-top: 0.6rem; }
.article-cta .btn { margin-top: 1.3rem; }

/* Botón dentro del CTA navy: blanco con texto navy e ícono verde WhatsApp
   (verde pleno sobre navy quedaba apagado) */
.article-cta .btn--whatsapp {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 14px 28px -14px rgba(0, 0, 0, 0.45);
}
.article-cta .btn--whatsapp svg { color: #1faa53; }
.article-cta .btn--whatsapp::after { display: none; }
.article-cta .btn--whatsapp:hover {
  background: #eef1fa;
  transform: translateY(-2px);
}

/* Navegación entre artículos */
.article-nav {
  max-width: 720px;
  margin-inline: auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem) 3.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.article-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  text-decoration: none;
}
.article-nav a:hover { color: var(--blue); }

@media (max-width: 700px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* Banner Lottie de artículos */
.article-hero-lottie {
  width: 100%;
  aspect-ratio: 1200 / 440;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 34px 55px -34px var(--shadow-far);
  overflow: hidden;
}
.article-hero-lottie svg { display: block; width: 100% !important; height: 100% !important; }

/* Foto de contenido dentro del artículo (imagen open-source CC0) */
.article-figure { margin: 2.6rem 0; }
.article-figure img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 26px 44px -30px var(--shadow-far);
}
.article-figure figcaption {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}
