/* ============================================================
   Artículos del blog. Lo usan todas las notas (hoy: Drips).
   No define colores ni tipografías propias: hereda los de la página
   (--ink, --text, --white, --page, --panel, --teal, --teal-ink,
   --brand-navy, --brand-cyan, --radius-lg, --font-head/body/mono),
   que son los mismos de la portada.
   Escala de texto, la de la portada:
     títulos Sora 400 · cuerpo DM Sans 16px · etiquetas IBM Plex Mono
   ============================================================ */

/* ---------- cabecera de la nota (sobre .blog-hero, ya definido en la página) ---------- */
.blog-hero.art h1 { font-size: clamp(34px, 3.1vw, 46px); line-height: 1.12; margin-bottom: 26px; }
.blog-hero.art .lead { max-width: 400px; }
.art-meta { display: flex; margin: 38px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.2); }
.art-meta li { padding: 18px 28px 0; border-right: 1px solid rgba(255,255,255,.2); }
.art-meta li:first-child { padding-left: 0; }
.art-meta li:last-child { border-right: 0; }
.art-meta small { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #8fb6cf; }
.art-meta b { display: block; margin-top: 8px; font-family: var(--font-head); font-weight: 400; font-size: 17px; line-height: 1.2; letter-spacing: -.01em; color: var(--white); }

/* ---------- tarjeta de lectura ---------- */
.post { padding: 22px 0 0; }
.post .container { max-width: 960px; }
.post-card { --pc: clamp(26px, 5.5vw, 72px); background: var(--white); border-radius: var(--radius-lg); padding: var(--pc); overflow: hidden; }
.post-body { max-width: 40rem; margin-inline: auto; }

.post-body p { font-size: 16px; line-height: 1.85; color: var(--text); margin: 22px 0 0; }
.post-body p:first-child { margin-top: 0; }
.post-body strong { color: var(--ink); font-weight: 600; }
.post-body em { font-style: italic; }
.post-body .lead { font-size: 18px; line-height: 1.7; color: var(--ink); }

.post-body h2 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.18; margin-top: 52px; }
.post-body .num { font-family: var(--font-mono); font-size: 11px; line-height: 1.5; letter-spacing: .22em; text-transform: uppercase; color: var(--teal-ink); margin-top: 60px; }
.post-body .num + h2 { margin-top: 12px; }

/* la pregunta que sostiene cada tramo */
.post-body .ask-q { font-family: var(--font-head); font-size: clamp(21px, 2.1vw, 24px); line-height: 1.4; letter-spacing: -.02em;
  color: var(--ink); border-left: 2px solid var(--brand-cyan); padding-left: 24px; margin-top: 34px; }
.rule { border: 0; border-top: 1px solid rgba(18,32,51,.1); margin: 56px 0 0; }

/* ---------- imágenes ---------- */
.fig { margin: 52px 0 44px; }
.fig-out { margin-inline: calc(var(--pc) * -1); }          /* salen del ancho de lectura hasta el borde de la tarjeta */
.fig .shot { position: relative; overflow: hidden; background: var(--panel); }
.fig .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fig .shot.r43 { aspect-ratio: 4 / 3; }
.fig figcaption { max-width: 40rem; margin: 14px auto 0; font-family: var(--font-mono); font-size: 10.5px; line-height: 1.5;
  letter-spacing: .14em; text-transform: uppercase; color: #5b6775; }
.fig-out figcaption { padding-inline: var(--pc); }
.fig-info { max-width: 40rem; margin-inline: auto; }       /* la infografía se muestra entera, sin recortar */
.fig-info .shot { border-radius: 20px; aspect-ratio: 1 / 1; }

/* foto vertical: estrecha y centrada en la columna, para no recortarla a lo ancho */
.fig-port .shot { aspect-ratio: 3 / 4; max-width: 24rem; margin-inline: auto; }
.fig-port figcaption { text-align: center; }

/* ---------- el muro de suscripción ----------
   Lo que hay detrás NO se envía al navegador: las líneas borrosas son
   decoración, no texto recortado. */
.gate { position: relative; margin-top: 26px; }
.gate-blur { position: relative; height: 230px; overflow: hidden; filter: blur(5px); opacity: .5; user-select: none; }
.gate-blur span { display: block; height: 11px; border-radius: 6px; background: var(--text); margin-bottom: 17px; }
.gate-blur span:nth-child(3n)   { width: 96%; }
.gate-blur span:nth-child(3n+1) { width: 88%; }
.gate-blur span:nth-child(3n+2) { width: 79%; }
.gate-blur::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.72) 52%, var(--white) 100%); }

.gate-card { position: relative; z-index: 2; margin-top: -56px; overflow: hidden; text-align: center; color: var(--white);
  border-radius: var(--radius-lg); padding: clamp(30px, 4.4vw, 52px);
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(66,167,196,.28) 0%, rgba(17,38,60,0) 70%), linear-gradient(160deg, #1c3a5a 0%, #11263c 100%); }
.post-body .gate-card .eyebrow { color: #7fd0e6; font-size: 11px; line-height: 1.5; margin: 0; }
.post-body .gate-card h3 { color: var(--white); font-size: clamp(24px, 2.5vw, 32px); line-height: 1.18; margin-top: 16px; }
.post-body .gate-card p:not(.eyebrow):not(.fine) { color: #b7c7d6; font-size: 15px; line-height: 1.7; max-width: 42ch; margin: 16px auto 0; }
.post-body .gate-card .btn { margin-top: 28px; }
.post-body .gate-card .fine { font-family: var(--font-mono); font-size: 10.5px; line-height: 1.5; letter-spacing: .15em; text-transform: uppercase; color: #8fa6ba; margin-top: 20px; }

/* lista de tratamientos: nombre en título, descripción debajo, separados por líneas finas */
.post-body .trat { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid rgba(18,32,51,.1); }
.post-body .trat li { padding: 20px 0; border-bottom: 1px solid rgba(18,32,51,.1); }
.post-body .trat b { display: block; margin-bottom: 6px; font-family: var(--font-head); font-weight: 400; font-size: 20px; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); }
.post-body .trat span { display: block; font-size: 16px; line-height: 1.8; color: var(--text); }

/* aviso legal bajo el muro: pequeño, centrado y legible (5.9:1) */
.post-body .aviso { max-width: 40rem; margin: 26px auto 0; font-size: 13px; line-height: 1.6; text-align: center; color: #5b6775; }

/* ---------- firma ---------- */
.by { max-width: 960px; margin: 22px auto 0; padding: clamp(26px, 3.6vw, 40px); background: var(--panel); border-radius: var(--radius-lg);
  display: flex; align-items: center; gap: clamp(20px, 3vw, 30px); }
.by-img { flex: 0 0 78px; width: 78px; height: 78px; border-radius: 50%; overflow: hidden; }
.by-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.by .k { margin: 0; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-ink); }
.by b { display: block; margin-top: 8px; font-family: var(--font-head); font-weight: 400; font-size: 20px; letter-spacing: -.02em; color: var(--ink); }
.by p:not(.k) { margin: 8px 0 0; font-size: 15px; line-height: 1.65; color: var(--text); }

/* ---------- pantallas pequeñas ---------- */
@media (max-width: 820px) {
  .blog-hero.art .container { gap: 32px; }
  .by { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
  .art-meta { flex-wrap: wrap; }
  .art-meta li { flex: 0 0 50%; border-right: 0; padding: 16px 0 0; }
  .post-body p { font-size: 16px; }
  .gate-blur { height: 190px; }
}
