/* ═══════════════════════════════════════════════════════════════════════
   melisaescobar.com — hoja de estilos de los artículos del blog
   Se carga DESPUÉS de estilos.css y reutiliza sus tokens, la barra de
   navegación, las píldoras, las tarjetas de vidrio y el acordeón.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --medida: 43rem;          /* ancho de lectura: 65-75 caracteres */
  --lateral: 236px;         /* columna del índice */
}

body.articulo { background: var(--negro); }

/* ══════════════════ BARRA DE PROGRESO DE LECTURA ══════════════════ */
.progreso {
  position: fixed;
  inset: 60px 0 auto 0;
  z-index: 99;
  height: 3px;
  background: rgba(255, 255, 255, .06);
  pointer-events: none;
}
.progreso span {
  display: block;
  height: 100%;
  width: 0;
  background-image: linear-gradient(90deg, #ff7a3d, #ff5722);
  transform-origin: left;
  transition: width .12s linear;
}

/* ══════════════════ CABECERA DEL ARTÍCULO ══════════════════ */
.art {
  position: relative;
  background: var(--negro);
  isolation: isolate;
}
.art__cabecera { position: relative; padding-top: 112px; }

.miga { margin-bottom: 26px; }
.miga ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--texto-tenue);
}
.miga li { display: flex; align-items: center; gap: 8px; }
.miga li + li::before { content: '/'; color: rgba(255, 255, 255, .28); }
.miga a { display: inline-block; padding-block: 10px; color: var(--texto-suave); transition: color .3s var(--curva); }
.miga a:hover { color: var(--acento-claro); }
.miga [aria-current] { color: var(--acento-claro); }

.art__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 122, 61, .42);
  border-radius: 999px;
  background: rgba(255, 87, 34, .12);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--acento-claro);
}

.art__titulo {
  max-width: 20ch;
  font-size: clamp(32px, 4.06vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: #fff;
  text-wrap: balance;
}
.art__entradilla {
  max-width: var(--medida);
  margin-top: 24px;
  font-size: clamp(17px, 1.72vw, 22px);
  line-height: 1.6;
  color: var(--texto-suave);
  text-wrap: pretty;
}

.art__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .09);
}
.art__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 122, 61, .5);
}
.art__autor { font-size: 15.5px; font-weight: 700; color: #fff; }
.art__autor-rol { font-size: 13.5px; line-height: 1.4; color: var(--texto-tenue); }
.art__fechas { font-size: 13.5px; line-height: 1.6; color: var(--texto-tenue); }
.art__fechas b { color: var(--texto-suave); font-weight: 500; }

.art__portada {
  margin-top: 40px;
  border-radius: var(--radio);
  overflow: hidden;
  border: 1.102px solid var(--borde-calido);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
  aspect-ratio: 16 / 9;
  background: #1a1512;
}
.art__portada img { width: 100%; height: 100%; object-fit: cover; }

/* ══════════════════ REJILLA: ÍNDICE + CUERPO ══════════════════ */
.art__rejilla {
  display: grid;
  grid-template-columns: var(--lateral) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding-top: 56px;
  padding-bottom: 80px;
}
.art__lateral { position: sticky; top: 92px; }

.indice__titulo {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--texto-tenue);
}
.indice ol {
  counter-reset: idx;
  border-left: 1px solid rgba(255, 255, 255, .1);
}
.indice li { counter-increment: idx; }
.indice a {
  display: block;
  padding: 11px 0 11px 16px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 14px;
  line-height: 1.4;
  color: var(--texto-tenue);
  transition: color .3s var(--curva), border-color .3s var(--curva);
}
.indice a:hover { color: #fff; }
.indice a.activo { color: var(--acento-claro); border-left-color: var(--acento); }

.compartir {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .09);
}
.compartir__titulo {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--texto-tenue);
}
.compartir__fila { display: flex; flex-wrap: wrap; gap: 8px; }
.compartir a, .compartir button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  color: var(--texto-suave);
  cursor: pointer;
  transition: color .3s var(--curva), border-color .3s var(--curva), background .3s var(--curva);
}
.compartir a:hover, .compartir button:hover {
  color: #fff;
  border-color: rgba(255, 122, 61, .6);
  background: rgba(255, 87, 34, .14);
}
.compartir svg { width: 17px; height: 17px; }
.compartir__aviso {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--acento-claro);
  opacity: 0;
  transition: opacity .3s var(--curva);
}
.compartir__aviso.visible { opacity: 1; }

/* ══════════════════ CUERPO DEL ARTÍCULO ══════════════════ */
.art__cuerpo {
  max-width: var(--medida);
  font-size: clamp(17px, 1.33vw, 19px);
  line-height: 1.8;
  color: var(--texto-cuerpo);
}
.art__cuerpo > p { margin-top: 1.15em; text-wrap: pretty; }
.art__cuerpo > p:first-child { margin-top: 0; }
.art__cuerpo b, .art__cuerpo strong { font-weight: 700; color: #fff; }

.art__cuerpo h2 {
  margin-top: 2.6em;
  margin-bottom: .55em;
  font-size: clamp(24px, 2.19vw, 30px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.022em;
  color: #fff;
  scroll-margin-top: 92px;
  text-wrap: balance;
}
.art__cuerpo h2::before {
  content: '';
  display: block;
  width: 46px;
  height: 3px;
  margin-bottom: 20px;
  border-radius: 3px;
  background-image: linear-gradient(90deg, #ff7a3d, #ff5722);
}
.art__cuerpo h3 {
  margin-top: 1.9em;
  margin-bottom: .4em;
  font-size: clamp(19px, 1.56vw, 21px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--acento-claro);
  scroll-margin-top: 92px;
}

.art__cuerpo ul, .art__cuerpo ol { margin-top: 1.1em; display: flex; flex-direction: column; gap: 12px; }
.art__cuerpo ul li { position: relative; padding-left: 30px; }
.art__cuerpo ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: .68em;
  width: 15px;
  height: 15px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--acento);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11.6591 11.6591'><path d='M1.25559 11.6591L0 10.4035L8.60979 1.79371H0.896853V0H11.6591V10.7622H9.86538V3.0493L1.25559 11.6591Z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11.6591 11.6591'><path d='M1.25559 11.6591L0 10.4035L8.60979 1.79371H0.896853V0H11.6591V10.7622H9.86538V3.0493L1.25559 11.6591Z'/></svg>") center / contain no-repeat;
}
.art__cuerpo ol { counter-reset: paso; list-style: none; }
.art__cuerpo ol li { position: relative; counter-increment: paso; padding-left: 42px; }
.art__cuerpo ol li::before {
  content: counter(paso);
  position: absolute;
  left: 0;
  top: .1em;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 87, 34, .16);
  border: 1px solid rgba(255, 122, 61, .45);
  font-size: 14px;
  font-weight: 700;
  color: var(--acento-claro);
}

.art__cuerpo a:not(.pastilla):not(.btn) {
  color: var(--acento-claro);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 122, 61, .45);
  transition: color .25s var(--curva), text-decoration-color .25s var(--curva);
}
.art__cuerpo a:not(.pastilla):not(.btn):hover {
  color: #ffa06e;
  text-decoration-color: currentColor;
}

/* ── Caja «lo esencial» ── */
.clave {
  padding: 26px 28px;
  border: 1px solid rgba(255, 122, 61, .42);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 87, 34, .16) 0%, rgba(255, 122, 61, .07) 50%, rgba(255, 255, 255, .03) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.clave__titulo {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--acento-claro);
}
.clave ul { margin-top: 0; gap: 9px; font-size: .95em; }
.clave ul li::before { background: var(--acento-claro); }

/* ── Caja de aviso / transparencia ── */
.caja {
  margin-top: 2em;
  padding: 24px 26px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-left: 3px solid var(--acento);
  border-radius: 4px 16px 16px 4px;
  background: rgba(255, 255, 255, .035);
}
.caja__titulo {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--acento-claro);
}
.caja p { font-size: .95em; line-height: 1.7; }
.caja p + p { margin-top: .8em; }

/* ── Ficha de datos ── */
.ficha {
  margin-top: 1.6em;
  border: 1.102px solid var(--borde-calido);
  border-radius: var(--radio);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 87, 34, .05));
}
.ficha__fila {
  display: grid;
  grid-template-columns: minmax(0, 34%) minmax(0, 1fr);
  gap: 16px;
  padding: 15px 22px;
  font-size: .92em;
  line-height: 1.55;
}
.ficha__fila + .ficha__fila { border-top: 1px solid rgba(255, 255, 255, .08); }
.ficha__fila dt { font-weight: 700; color: var(--texto-suave); }
.ficha__fila dd { margin: 0; color: #fff; }

/* ── Tablas ── */
.tabla-nota { display: none; }
.tabla-scroll { margin-top: 1.6em; overflow-x: auto; border-radius: var(--radio); border: 1.102px solid var(--borde-calido); }
.tabla-scroll table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .9em; }
.tabla-scroll th, .tabla-scroll td { padding: 14px 18px; text-align: left; vertical-align: top; line-height: 1.5; }
.tabla-scroll thead th { background: rgba(255, 87, 34, .16); font-weight: 700; color: #fff; white-space: nowrap; }
.tabla-scroll tbody tr + tr th, .tabla-scroll tbody tr + tr td { border-top: 1px solid rgba(255, 255, 255, .08); }
.tabla-scroll tbody th { font-weight: 700; color: var(--acento-claro); white-space: nowrap; }
.tabla-scroll tbody td { color: var(--texto-cuerpo); }

/* ── Línea de tiempo ── */
.linea-tiempo { margin-top: 1.6em; display: flex; flex-direction: column; gap: 0; }
.hito { position: relative; padding: 0 0 26px 34px; border-left: 1px solid rgba(255, 122, 61, .3); }
.hito:last-child { border-left-color: transparent; padding-bottom: 0; }
.hito::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--acento);
  box-shadow: 0 0 0 4px rgba(255, 87, 34, .18);
}
.hito__ano { font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--acento-claro); }
.hito__texto { margin-top: 5px; font-size: .95em; line-height: 1.65; }

/* ── Tarjetas de medios dentro del artículo ── */
.medios-lista { margin-top: 1.6em; display: grid; gap: 14px; }
.medio-fila {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1.102px solid var(--borde-calido);
  border-radius: var(--radio);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 87, 34, .05));
  transition: transform .35s var(--curva), border-color .35s var(--curva);
}
.medio-fila:hover { transform: translateY(-3px); border-color: #c3562a; }
.medio-fila img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.medio-fila__nombre { font-size: 16px; font-weight: 700; color: #fff; }
.medio-fila__texto { margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: var(--texto-suave); }
.medio-fila__enlaces { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; }
.medio-fila__enlaces a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--acento-claro);
  text-decoration: none;
  transition: gap .3s var(--curva);
}
.medio-fila__enlaces a:hover { gap: 11px; }
.medio-fila__enlaces .flecha-diag { width: 10px; height: 10px; }

/* ── FAQ dentro del artículo (variante oscura) ── */
.art__cuerpo .faq__lista { max-width: none; margin: 1.6em 0 0; }
.art__cuerpo .faq__boton { color: #fff; font-size: clamp(17px, 1.5vw, 20px); min-height: 0; padding: 20px 22px; letter-spacing: -.01em; }
.art__cuerpo .faq__boton:hover { color: var(--acento-claro); }
.art__cuerpo .faq__cuerpo { padding: 0 22px 20px; margin-top: -4px; font-size: .93em; line-height: 1.7; color: var(--texto-cuerpo); letter-spacing: 0; }
.art__cuerpo .faq__cuerpo a { color: var(--acento-claro); }
.art__cuerpo .mas { width: 24px; height: 24px; }
.art__cuerpo .mas::before { width: 18px; height: 2.4px; }
.art__cuerpo .mas::after { width: 2.4px; height: 18px; }

/* ── Llamada a la acción final ── */
.art__cta {
  margin-top: 3em;
  padding: 32px;
  border: 1px solid rgba(255, 122, 61, .45);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 87, 34, .2) 0%, rgba(255, 122, 61, .08) 55%, rgba(255, 255, 255, .03) 100%);
}
.art__cta h2 { margin: 0 0 10px; font-size: clamp(21px, 1.87vw, 26px); font-weight: 700; color: #fff; line-height: 1.25; }
.art__cta h2::before { display: none; }
.art__cta p { font-size: .95em; line-height: 1.65; color: var(--texto-suave); }
.art__cta .pastilla { margin-top: 22px; width: auto; }

/* ── Caja de autoría ── */
.autor-caja {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 3em;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.autor-caja img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; flex: none; border: 1.5px solid rgba(255, 122, 61, .5); }
.autor-caja__nombre { font-size: 17px; font-weight: 700; color: #fff; }
.autor-caja__rol { margin-top: 3px; font-size: 14px; color: var(--acento-claro); }
.autor-caja__bio { margin-top: 9px; font-size: 14.5px; line-height: 1.65; color: var(--texto-suave); }

/* ══════════════════ SIGUE LEYENDO ══════════════════ */
.art__pie {
  position: relative;
  padding: 70px 0 84px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.art__pie h2 {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: #fff;
}
.art__pie .rejilla-3 { margin-top: 34px; gap: 24px; }
.art__pie .tarjeta { min-height: 0; }

/* ══════════════════ PIE COMPACTO ══════════════════ */
.pie {
  position: relative;
  padding: 44px 0 40px;
  background: #0b0a0a;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.pie__fila {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.pie__marca { display: inline-block; padding-block: 8px; font-size: 19px; font-weight: 900; letter-spacing: -.42px; color: #fff; }
.pie__enlaces { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-inline: -6px; }
.pie__enlaces a {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--texto-suave);
  padding: 11px 6px;
  transition: color .3s var(--curva);
}
.pie__enlaces a:hover { color: var(--acento-claro); }
.pie__redes { display: flex; gap: 26px; }
.pie__redes a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -12px;
  color: var(--acento);
  transition: color .3s var(--curva), transform .3s var(--curva);
}
.pie__redes a:hover { color: var(--acento-claro); transform: translateY(-2px); }
.pie__redes svg { width: 20px; height: 20px; display: block; }
.pie__legal {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: 13.5px;
  color: var(--texto-tenue);
}

/* ══════════════════ PORTADA DEL BLOG ══════════════════ */
.blog-cabecera { padding-top: 128px; }
.blog-cabecera .subtitulo { margin-top: 18px; max-width: 58ch; }
.blog-cabecera h1 {
  max-width: 16ch;
  font-size: clamp(36px, 4.53vw, 58px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.03em;
  color: #fff;
}
.blog-lista { display: grid; gap: 20px; margin-top: 46px; }
.entrada {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  padding: 18px;
  transition: transform .4s var(--curva), border-color .4s var(--curva), box-shadow .4s var(--curva);
}
.entrada:hover { transform: translateY(-4px); border-color: #c3562a; box-shadow: 6px 10px 26px rgba(0, 0, 0, .38); }
.entrada__medio { border-radius: var(--radio-foto); overflow: hidden; aspect-ratio: 16 / 9; background: #1a1512; }
.entrada__medio img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--curva); }
.entrada:hover .entrada__medio img { transform: scale(1.05); }
.entrada__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--acento-claro);
}
.entrada { position: relative; }
.entrada__titulo a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.entrada__titulo a { color: inherit; }
.entrada__titulo {
  margin-top: 10px;
  font-size: clamp(20px, 1.87vw, 25px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.015em;
  color: #fff;
  text-wrap: balance;
}
.entrada__resumen { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--texto-suave); }
.entrada__leer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--acento-claro);
  transition: gap .3s var(--curva);
}
.entrada:hover .entrada__leer { gap: 12px; }
.entrada__leer .flecha-diag { width: 11px; height: 11px; }

/* ═══════════════════════════════════════════════════════════════
   ADAPTACIÓN
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1099px) {
  .art__rejilla { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .art__lateral { position: static; max-width: var(--medida); }
  .indice ol { columns: 2; column-gap: 30px; }
  .compartir__fila { justify-content: flex-start; }
  .art__cuerpo { max-width: none; }
}

@media (max-width: 899px) {
  .entrada { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

@media (max-width: 759px) {
  .art__cabecera { padding-top: 96px; }
  .blog-cabecera { padding-top: 104px; }
  .progreso { inset: 60px 0 auto 0; height: 2.5px; }
  .art__rejilla { padding-top: 38px; padding-bottom: 56px; }
  .indice ol { columns: 1; }
  .art__portada { margin-top: 28px; }
  .art__meta { gap: 12px 16px; }
  .clave, .art__cta { padding: 22px 20px; }
  .caja { padding: 20px 18px; }
  .ficha__fila { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 18px; }
  .medio-fila { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .medio-fila img { max-width: 220px; }
  .tabla-nota {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: var(--texto-tenue);
  }
  .art__pie { padding: 52px 0 60px; }
  .pie__fila { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* ══════════════════ IMPRESIÓN ══════════════════ */
@media print {
  .progreso, .art__lateral, .compartir, .art__cta, .art__pie, .pie, .miga { display: none !important; }
  .art, body.articulo { background: #fff !important; }
  .art__rejilla { display: block; padding: 0; }
  .art__cuerpo, .art__cuerpo p, .art__cuerpo li { color: #111 !important; max-width: none; font-size: 11pt; line-height: 1.55; }
  .art__cuerpo h2, .art__cuerpo h3, .art__titulo, .art__autor { color: #000 !important; }
  .art__entradilla, .art__autor-rol, .art__fechas { color: #333 !important; }
  .art__cuerpo a { color: #000 !important; text-decoration: underline; }
  .art__cuerpo a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: 9pt; word-break: break-all; }
  .clave, .caja, .ficha, .tabla-scroll { border-color: #999 !important; background: #f6f6f6 !important; }
  .clave__titulo, .caja__titulo, .hito__ano { color: #a3350f !important; }
  .art__cuerpo h2::before { background: #a3350f !important; }
  .faq__panel, .faq__panel[hidden] { display: block !important; height: auto !important; }
  .mas { display: none; }
  .art__portada { break-inside: avoid; }
}
