/* Detalle de noticia (noticias.php): hero pinneado con --hero-progress y barra de progreso de
   lectura, ambos calculados por js/noticia-hero.js (un solo scroll listener + rAF). */

.noticia-progreso {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 2000;
  background: rgba(10, 61, 35, 0.08);
}

.noticia-progreso__fill {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: #00713a;
}

/* --- Hero vivo --- */
/* Caja de contención en flujo normal (NUNCA sticky/fixed): sube y desaparece con el scroll como
   cualquier bloque. Solo se anima transform:scale() de la imagen y el border-radius del
   contenedor, vía --hero-progress (js/noticia-hero.js); jamás su position/top. */

.noticia-hero {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 60vh;
  min-height: 320px;
  overflow: hidden;
  margin-top: var(--sv-navbar-clear, var(--sv-navbar-clear-fallback));
  border-radius: calc(32px * var(--hero-progress, 0));
}

.noticia-hero__media {
  position: absolute;
  inset: 0;
}

.noticia-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(calc(1.2 - (0.2 * var(--hero-progress, 0))));
  transform-origin: center;
  transition: transform 0.1s ease-out;
}

.noticia-hero__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(24px, 5vw, 56px) clamp(20px, 6vw, 64px);
  background: linear-gradient(to top, rgba(8, 16, 12, 0.72), transparent);
  opacity: calc(1 - var(--hero-progress, 0));
}

.noticia-hero__categoria {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.noticia-hero__titulo {
  margin: 0;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  max-width: 900px;
}

/* --- Área de lectura --- */

.noticia-lectura {
  position: relative;
  z-index: 10;
  display: block;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px) 20px;
  background: #fff;
  font-size: 1.15rem;
  line-height: 1.75;
  color: #11221a;
}

.noticia-lectura p {
  margin: 0 0 1.2rem;
  text-align: left;
}

/* Capitular editorial en el primer párrafo del cuerpo (no en resumen/callouts, que van fuera de
   .noticia-lectura). Se apaga con el toggle de tamaño de texto: a texto grande ya no aporta.
   Componente documentado en DESIGN.md ("Capitular editorial"): único lugar del sitio con esta
   decoración, a propósito. */
.noticia-lectura > p:first-of-type::first-letter {
  float: left;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 3.4em;
  line-height: 0.82;
  padding: 0.05em 0.08em 0 0;
  color: #00713a;
}

.noticia-lectura--grande > p:first-of-type::first-letter {
  float: none;
  font-size: 1em;
  font-weight: 700;
  padding: 0;
}

.noticia-lectura h2,
.noticia-lectura h4 {
  color: #00713a;
  margin: 1.6rem 0 0.8rem;
  font-weight: 700;
}

/* [DESIGN.md: Regla de Plano-por-Defecto / "Don't usar border-left como acento"] La jerarquía de
   este h3 se resuelve con color+peso+tamaño, no con una barra de color. */
.noticia-lectura h3 {
  color: #0a3d23;
  margin: 2rem 0 1rem;
  font-weight: 700;
  font-size: 1.15em;
  scroll-margin-top: calc(var(--sv-navbar-clear, var(--sv-navbar-clear-fallback)) + 16px);
}

.noticia-lectura blockquote {
  margin: 1.6rem 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid #e4eae3;
  color: #5f6f66;
  font-size: 1.1em;
  font-style: italic;
}

.noticia-lectura ul,
.noticia-lectura ol {
  padding-left: 1.5rem;
  margin: 0 0 1.2rem;
}

.noticia-lectura li {
  margin-bottom: 0.5rem;
}

.noticia-lectura img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.2rem 0;
}

/* [DESIGN.md: enlaces de cuerpo] Subrayado real en vez de color+negrita: dentro de texto
   justificado/corrido, negrita sin subrayado se leía como énfasis aleatorio, no como enlace. */
.noticia-lectura a {
  color: #00713a;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.noticia-lectura a:hover {
  color: #0a3d23;
}

/* --- Bloque de metadata + GEO (entre el hero y el texto) --- */

.noticia-info {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 40px) 20px 0;
}

/* --- Barra de metadata + herramientas de lectura (fecha/tiempo de lectura + tamaño de texto/compartir) --- */

.noticia-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 0.8rem;
}

.noticia-fecha {
  margin: 0;
  color: #5f6f66;
  font-size: 0.9rem;
}

.noticia-fecha i {
  color: #00713a;
}

.noticia-fecha__separador {
  margin: 0 6px;
  color: #5f6f66;
}

.noticia-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.noticia-toolbar__tamano {
  display: flex;
  border: 1px solid #e4eae3;
  border-radius: 6px;
  overflow: hidden;
}

.noticia-toolbar__tamano .noticia-toolbar__btn {
  border: none;
  border-radius: 0;
}

.noticia-toolbar__tamano .noticia-toolbar__btn:first-child {
  border-right: 1px solid #e4eae3;
}

.noticia-toolbar__plus {
  font-size: 0.7em;
  vertical-align: super;
}

.noticia-toolbar__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #e4eae3;
  border-radius: 6px;
  color: #5f6f66;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.noticia-toolbar__btn:hover {
  background: #f6f8f5;
  border-color: #00713a;
  color: #00713a;
}

.noticia-toolbar__btn--activo {
  background: #f6f8f5;
  border-color: #00713a;
  color: #00713a;
}

.noticia-toolbar__compartir {
  font-weight: 500;
}

/* Tamaño de texto ampliado (persistido en localStorage, ver js/noticia-toolbar.js) */
.noticia-lectura--grande {
  font-size: 1.32rem;
  line-height: 1.85;
}

.noticia-desc-breve {
  margin: 0 0 1.2rem;
  color: #11221a;
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 500;
}

/* [DESIGN.md: card-info / Regla de Plano-por-Defecto] Fondo neutro en vez de borde de color:
   se distingue por ser un bloque aparte, no por un acento verde en el canto. */
.noticia-resumen {
  background: #f6f8f5;
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0 0 1.2rem;
  color: #0a3d23;
  line-height: 1.6;
}

/* --- Tabla comparativa GEO (noticias.tabla_comparativa, entre el resumen y el texto) --- */

.noticia-tabla {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 1.2rem;
  padding: 0 20px;
  overflow-x: auto;
}

.noticia-tabla table {
  margin: 0;
}

.noticia-tabla thead th {
  background: #00713a;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.noticia-tabla td strong {
  color: #00713a;
}

/* --- Índice de contenidos (sv_extraer_indice() en lib/helpers.php; solo si hay >=3 secciones) --- */

.noticia-indice {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 1.6rem;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid #e4eae3;
  border-radius: 10px;
}

.noticia-indice__titulo {
  margin: 0 0 10px;
  color: #00713a;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.noticia-indice ol {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2;
  column-gap: 24px;
}

.noticia-indice li {
  margin-bottom: 6px;
  break-inside: avoid;
}

.noticia-indice a {
  color: #5f6f66;
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.noticia-indice a:hover {
  color: #00713a;
  text-decoration: underline;
}

.noticia-indice a.noticia-indice__link--activo {
  color: #00713a;
  font-weight: 700;
}

@media (max-width: 599.98px) {
  .noticia-indice ol {
    columns: 1;
  }
}

/* --- Autor / fuentes (después del texto, ver noticias.php) --- */

.noticia-autor-bar,
.noticia-fuentes {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 1.2rem;
  font-size: 0.95rem;
  color: #5f6f66;
}

.noticia-autor-bar strong,
.noticia-fuentes strong {
  color: #00713a;
}

/* --- FAQ (JSON-LD FAQPage, ver noticias.php) --- */

.noticia-faq {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(16px, 4vw, 32px) 20px;
}

.noticia-faq h2 {
  color: #00713a;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  margin: 0 0 1rem;
}

.noticia-faq details {
  border: 1px solid #e4eae3;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 10px;
}

.noticia-faq summary {
  cursor: pointer;
  color: #00713a;
}

.noticia-faq p {
  margin: 0.6rem 0 0;
  color: #11221a;
}

/* --- CTA de conversión (WhatsApp + sedes) --- */

.noticia-cta {
  width: 100%;
  max-width: 800px;
  margin: clamp(24px, 5vw, 40px) auto 0;
  padding: 24px 20px;
  background: #f6f8f5;
  border: 1px solid #e4eae3;
  border-radius: 10px;
  text-align: center;
}

.noticia-cta h3 {
  margin: 0 0 8px;
  color: #00713a;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
}

.noticia-cta p {
  margin: 0 0 16px;
  color: #11221a;
}

/* [DESIGN.md: button-whatsapp] Verde de WhatsApp real, nunca el esmeralda de marca — ver
   "Regla del Verde Separado". */
.noticia-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  min-height: 48px;
  background-color: #25d366;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  transition: background-color 0.14s cubic-bezier(.2,.7,.3,1), transform 0.14s cubic-bezier(.2,.7,.3,1);
}

.noticia-cta__btn:hover {
  background-color: #20ba5a;
  color: #fff;
  transform: translateY(-1px);
}

/* --- Layout de 2 columnas (columna principal + sidebar) --- */

.noticia-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px clamp(48px, 8vw, 80px);
}

.noticia-layout__main {
  flex: 1 1 600px;
  min-width: 0;
}

/* La columna principal ya trae su propio max-width:800px/margin:0 auto por bloque (.noticia-info,
   .noticia-lectura, etc.) — al vivir ahora dentro de .noticia-layout__main, esos 800px pasan a ser
   el tope dentro de esta columna en vez de tope de toda la página. */

.noticia-layout__sidebar {
  flex: 0 1 320px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: calc(var(--sv-navbar-clear, var(--sv-navbar-clear-fallback, 112px)) + 16px);
}

.noticia-sidebar-card {
  background: #fff;
  border: 1px solid #e4eae3;
  border-radius: 14px;
  padding: 20px;
}

.noticia-sidebar-card__titulo {
  margin: 0 0 12px;
  color: #00713a;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.noticia-sidebar-categoria {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f6f8f5;
  color: #00713a;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
}

.noticia-sidebar-tienda {
  display: block;
  margin-top: 12px;
  color: #00713a;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.noticia-sidebar-blog {
  display: block;
  text-align: center;
  font-weight: 700;
  color: #00713a;
  text-decoration: none;
}

/* --- "También te puede interesar" (sección aparte, después del CTA — ver noticias.php) --- */
/* [Impeccable critique 2026-10-01, P1] Antes vivía en el sidebar fijo y competía con la lectura
   durante todo el artículo; ahora es de ancho completo y solo aparece al terminar el contenido. */

.noticia-relacionadas {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 56px) 20px clamp(48px, 8vw, 80px);
}

.noticia-relacionadas__titulo {
  margin: 0 0 20px;
  color: #11221a;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
}

@media (max-width: 899.98px) {
  .noticia-layout__sidebar {
    flex-basis: 100%;
    position: static;
  }
}

/* --- Botón flotante "volver arriba" (ver js/noticia-toolbar.js) --- */

.noticia-arriba {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #00713a;
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(10, 61, 35, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
  cursor: pointer;
}

.noticia-arriba--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.noticia-arriba:hover {
  background: #0a3d23;
}

@media (max-width: 759.98px) {
  .noticia-hero {
    height: 45vh;
    min-height: 260px;
  }

  .noticia-meta-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .noticia-toolbar__compartir span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .noticia-arriba {
    transition: opacity 0.15s ease, visibility 0.15s ease;
    transform: none;
  }

  /* Sin JS de scroll (el listener no se engancha): --hero-progress nunca se actualiza, así que se
     fuerza directamente el estado "asentado" en vez de quedar pegado al tamaño inicial (scale 1.2). */
  .noticia-hero {
    border-radius: 32px;
  }

  .noticia-hero__img {
    transform: none;
    transition: none;
  }

  .noticia-hero__caption {
    opacity: 1;
  }

  .noticia-progreso__fill {
    transition: none;
  }
}

/* ================================================================
   Estética del blog de Transportes, adaptada a Surtivel (colores verdes de la marca).
   Se conserva el hero con el título dentro de la imagen; desde el resumen hacia abajo
   sigue la misma organización que blog-post de Transportes.
   ================================================================ */
.noticia-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2.6rem;
  align-items: start;
}
.noticia-layout__sidebar {
  position: sticky;
  top: calc(var(--header-h, 90px) + 1rem);
  display: grid;
  gap: 1.1rem;
}
.noticia-lectura {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #1f3a2c;
}
.noticia-lectura h2 {
  margin: 2.2rem 0 0.7rem;
  font-size: 1.55rem;
  line-height: 1.25;
  color: var(--sv-profundo, #0a3d23);
  scroll-margin-top: 1rem;
}
.noticia-lectura h3 {
  margin: 1.6rem 0 0.5rem;
  font-size: 1.2rem;
  color: var(--sv-esmeralda, #00713a);
  scroll-margin-top: 1rem;
}
.noticia-lectura a {
  color: var(--sv-esmeralda, #00713a);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.noticia-lectura blockquote {
  margin: 1.4rem 0;
  padding: 0.9rem 1.2rem;
  background: #eef7f1;
  border-radius: 12px;
  color: var(--sv-profundo, #0a3d23);
}
.noticia-lectura img { max-width: 100%; height: auto; border-radius: 12px; }
.noticia-lectura table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.4rem 0; font-size: 0.95rem; }
.noticia-lectura th,
.noticia-lectura td { padding: 0.6rem 0.8rem; border: 1px solid rgba(17, 34, 26, 0.10); text-align: left; vertical-align: top; }
.noticia-lectura th { background: #eef7f1; color: var(--sv-profundo, #0a3d23); }

.noticia-resumen {
  margin: 0 0 1.6rem;
  padding: 1.1rem 1.3rem;
  background: #eef7f1;
  border: 1px solid #d3eadb;
  border-radius: 16px;
}
.noticia-indice {
  padding: 1.1rem 1.2rem;
  background: #fff;
  border: 1px solid rgba(17, 34, 26, 0.08);
  border-radius: 16px;
  box-shadow: 0 2px 6px -2px rgba(10, 61, 35, 0.12);
}
.noticia-indice a {
  display: block;
  padding: 0.35rem 0.6rem;
  border-left: 2px solid rgba(17, 34, 26, 0.10);
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--sv-profundo, #0a3d23);
  text-decoration: none;
}
.noticia-indice a:hover { color: var(--sv-esmeralda, #00713a); }

.noticia-faq { margin: 2.2rem 0 0; }
.noticia-faq h2 { margin: 0 0 0.8rem; font-size: 1.4rem; }
.noticia-faq details {
  margin: 0 0 0.6rem;
  border: 1px solid rgba(17, 34, 26, 0.10);
  border-radius: 12px;
  background: #fff;
}
.noticia-faq summary {
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--sv-profundo, #0a3d23);
  list-style: none;
}
.noticia-faq summary::-webkit-details-marker { display: none; }
.noticia-faq summary::after { content: "+"; float: right; font-size: 1.3rem; line-height: 1; color: var(--sv-verde, #009546); }
.noticia-faq details[open] summary::after { content: "–"; }
.noticia-faq details p { margin: 0; padding: 0 1.1rem 1rem; color: #1f3a2c; }

.noticia-cta {
  padding: 1.3rem;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--sv-profundo, #0a3d23), var(--sv-esmeralda, #00713a));
  color: #fff;
}
.noticia-cta__btn { width: 100%; text-align: center; background: #fff; color: var(--sv-profundo, #0a3d23); }

.noticia-relacionadas { margin-top: 2.6rem; }
.noticia-relacionadas__titulo { font-size: 1.4rem; margin: 0 0 1rem; color: var(--sv-profundo, #0a3d23); }

@media (max-width: 900px) {
  .noticia-layout { grid-template-columns: minmax(0, 1fr); }
  .noticia-layout__sidebar { position: static; }
}

/* Barra lateral fija: recuadro con alto máximo; si hay más contenido, la flecha baja dentro de él. */
.noticia-layout__sidebar { max-height: calc(100vh - var(--header-h, 90px) - 2rem); position: sticky; }
.noticia-aside__scroll {
  display: grid;
  gap: 1.1rem;
  overflow-y: auto;
  max-height: inherit;
  scrollbar-width: none;
  padding-bottom: 2.4rem;
}
.noticia-aside__scroll::-webkit-scrollbar { display: none; }
.noticia-aside__bajar {
  position: sticky;
  bottom: 0;
  align-self: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid #d3eadb;
  background: #fff;
  color: var(--sv-esmeralda, #00713a);
  box-shadow: 0 4px 10px -4px rgba(10, 61, 35, 0.3);
  cursor: pointer;
}
.noticia-aside__bajar[hidden] { display: none; }

/* Compartir y pie, con el estilo de Transportes */
.noticia-compartir { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 2rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(17, 34, 26, 0.10); }
.noticia-compartir__label { font-size: 0.85rem; font-weight: 700; color: #5f6f66; margin-right: 0.3rem; }
.noticia-compartir__btn { font: inherit; font-size: 0.85rem; padding: 0.4rem 0.8rem; border-radius: 999px; border: 1px solid #d3eadb; background: #fff; color: var(--sv-profundo, #0a3d23); text-decoration: none; cursor: pointer; }
.noticia-compartir__btn:hover { background: #eef7f1; text-decoration: none; }
.noticia-pie { margin-top: 1.4rem; font-size: 0.92rem; color: #5f6f66; }
.noticia-pie p { margin: 0 0 0.4rem; }

/* Productos relacionados: tarjetas discretas al final */
.noticia-productos { margin-top: 2.2rem; }
.noticia-productos__titulo { font-size: 1.3rem; margin: 0 0 0.9rem; color: var(--sv-profundo, #0a3d23); }
.noticia-productos__lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.9rem; list-style: none; margin: 0; padding: 0; }
.noticia-productos__item { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.7rem; background: #fff; border: 1px solid rgba(17, 34, 26, 0.08); border-radius: 16px; box-shadow: 0 2px 6px -2px rgba(10, 61, 35, 0.12); color: var(--sv-profundo, #0a3d23); text-decoration: none; height: 100%; }
.noticia-productos__item:hover { border-color: #d3eadb; text-decoration: none; }
.noticia-productos__item img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 10px; }
.noticia-productos__item span { font-size: 0.9rem; font-weight: 600; line-height: 1.3; }

/* Ajustes de contraste y visibilidad (barra lateral, compartir y pie). */
.noticia-layout__sidebar {
  display: flex;
  flex-direction: column;
  position: sticky;
  overflow: hidden;
}
.noticia-layout__sidebar .noticia-aside__scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding-bottom: 2.8rem;
}
.noticia-layout__sidebar .noticia-cta {
  margin: 0;
  max-width: none;
  text-align: left;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--sv-profundo, #0a3d23), var(--sv-esmeralda, #00713a));
}
.noticia-layout__sidebar .noticia-cta h3 { color: #fff; font-size: 1.1rem; }
.noticia-layout__sidebar .noticia-cta p { color: rgba(255, 255, 255, 0.95); font-size: 0.92rem; }
.noticia-layout__sidebar .noticia-cta__btn { background: #fff; color: var(--sv-profundo, #0a3d23); font-weight: 700; }
.noticia-layout__sidebar .noticia-aside__bajar {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.noticia-compartir__label { font-size: 0.95rem; }
.noticia-compartir__btn {
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border: 2px solid var(--sv-verde, #009546);
  color: var(--sv-profundo, #0a3d23);
}
.noticia-compartir__btn:hover { background: var(--sv-verde, #009546); color: #fff; }
.noticia-pie {
  margin-top: 1.6rem;
  padding: 1.1rem 1.3rem;
  background: #eef7f1;
  border: 1px solid #d3eadb;
  border-radius: 16px;
  font-size: 1rem;
  color: var(--sv-profundo, #0a3d23);
}
.noticia-pie a { color: var(--sv-esmeralda, #00713a); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.noticia-pie p + p { margin-top: 0.5rem; }

@media (max-width: 900px) {
  .noticia-layout__sidebar { max-height: none; overflow: visible; position: static; }
  .noticia-layout__sidebar .noticia-aside__scroll { overflow: visible; padding-bottom: 0; }
  .noticia-layout__sidebar .noticia-aside__bajar { display: none; }
}

/* Índice en vertical: una sección por renglón. Si hay muchas, la lista tiene su propia flechita para bajar. */
.noticia-layout__sidebar .noticia-indice { position: relative; }
.noticia-layout__sidebar .noticia-indice ol {
  columns: 1;
  padding-left: 0;
  list-style: none;
  max-height: 16rem;
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 0.3rem;
}
.noticia-layout__sidebar .noticia-indice li { margin-bottom: 2px; }
.noticia-layout__sidebar .noticia-indice a { display: block; }
.noticia-indice__bajar {
  display: block;
  margin: 0.4rem auto 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid #d3eadb;
  background: #fff;
  color: var(--sv-esmeralda, #00713a);
  cursor: pointer;
}
.noticia-indice__bajar[hidden] { display: none; }

/* Negritas sin cambiar el tamaño de la letra: mismo cuerpo, solo el grosor, sin negrita sintética. */
.noticia-lectura strong,
.noticia-faq summary strong,
.noticia-autor-bar strong,
.noticia-fuentes strong,
.noticia-tabla td strong,
.noticia-resumen strong,
.noticia-cta strong {
  font-weight: 700;
  font-size: 1em;
  font-family: inherit;
  letter-spacing: normal;
  font-synthesis: none;
}

@media (max-width: 900px) {
  .noticia-layout__sidebar .noticia-indice ol { max-height: none; overflow: visible; }
  .noticia-indice__bajar { display: none; }
}

/* Flechas del índice: arriba y abajo, dentro de la lista. */
.noticia-indice__flechas { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.4rem; }
.noticia-indice__flecha {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid #d3eadb;
  background: #fff;
  color: var(--sv-esmeralda, #00713a);
  cursor: pointer;
}
.noticia-indice__flecha[hidden] { display: none; }
.noticia-indice__bajar { display: none; }
@media (max-width: 900px) { .noticia-indice__flechas { display: none; } }

/* Sigue leyendo: al ancho completo debajo del artículo, con tarjetas del blog. */
.noticia-sigue-leyendo { margin-top: 2.8rem; padding-top: 1.6rem; border-top: 1px solid rgba(17, 34, 26, 0.10); }
.noticia-sigue-leyendo h2 { margin: 0 0 1.1rem; font-size: 1.5rem; color: var(--sv-profundo, #0a3d23); }

/* Sigue leyendo: mismo diseño que las tarjetas de Transportes (cuadrícula, imagen 16:10, badge, título, extracto y fecha). */
.noticia-sigue-leyendo { margin-top: 2.4rem; padding-top: 0; border-top: 0; }
.noticia-sigue-leyendo h2 { margin: 0; font-size: 1.4rem; color: var(--sv-profundo, #0a3d23); }
.noticia-sigue-leyendo .blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.3rem; margin-top: 1.4rem; }
.nsl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(17, 34, 26, 0.06);
  border-radius: 16px;
  box-shadow: 0 2px 6px -2px rgba(10, 61, 35, 0.12);
  overflow: hidden;
  transition: transform 200ms, box-shadow 200ms;
}
.nsl-card:hover { transform: translateY(-6px); box-shadow: 0 12px 24px -12px rgba(10, 61, 35, 0.28), 0 2px 6px -2px rgba(10, 61, 35, 0.12); }
.nsl-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sv-profundo, #0a3d23); }
.nsl-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 300ms; }
.nsl-card:hover .nsl-card__media img { transform: scale(1.04); }
.nsl-card__body { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; padding: 1.2rem 1.3rem 1.3rem; }
.nsl-card__badge {
  align-self: flex-start;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: #eef7f1;
  color: var(--sv-profundo, #0a3d23);
  font-size: 0.8rem;
  font-weight: 700;
}
.nsl-card__title { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.nsl-card__title a { color: var(--sv-profundo, #0a3d23); text-decoration: none; }
.nsl-card__title a:hover { color: var(--sv-esmeralda, #00713a); text-decoration: none; }
.nsl-card__title a::after { content: ""; position: absolute; inset: 0; }
.nsl-card__extracto {
  margin: 0;
  color: #5f6f66;
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nsl-card__meta { margin: auto 0 0; padding-top: 0.4rem; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.8rem; color: #5f6f66; }

/* Índice "En este artículo": tarjeta como en Transportes, lista completa (sin scroll) y botones anterior/siguiente. */
.noticia-layout__sidebar .noticia-indice {
  padding: 1.1rem 1.2rem;
  background: #fff;
  border: 1px solid rgba(17, 34, 26, 0.08);
  border-radius: 16px;
  box-shadow: 0 2px 6px -2px rgba(10, 61, 35, 0.12);
}
.noticia-layout__sidebar .noticia-indice__titulo {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sv-esmeralda, #00713a);
}
.noticia-layout__sidebar .noticia-indice ol {
  columns: 1;
  max-height: none;
  overflow: visible;
  list-style: none;
  padding: 0;
  margin: 0;
}
.noticia-layout__sidebar .noticia-indice li { margin: 0; }
.noticia-layout__sidebar .noticia-indice a {
  display: block;
  padding: 0.35rem 0.6rem;
  border-left: 2px solid rgba(17, 34, 26, 0.10);
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--sv-profundo, #0a3d23);
  text-decoration: none;
}
.noticia-layout__sidebar .noticia-indice a:hover { color: var(--sv-esmeralda, #00713a); }
.noticia-layout__sidebar .noticia-indice a.is-active {
  border-left-color: var(--sv-verde, #009546);
  color: var(--sv-esmeralda, #00713a);
  font-weight: 600;
}
.noticia-indice__flechas { display: none; }
.noticia-indice__nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.noticia-indice__boton {
  flex: 1 1 auto;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #d3eadb;
  background: #fff;
  color: var(--sv-profundo, #0a3d23);
  cursor: pointer;
}
.noticia-indice__boton:hover { background: #eef7f1; }
.noticia-indice__boton[hidden] { display: none; }

/* Sigue leyendo: mismo ancho y márgenes que el artículo. */
.noticia-sigue-leyendo { max-width: 1120px; margin: 2.4rem auto 0; padding: 0 20px 2rem; }

/* Tarjetas de "Sigue leyendo": sin líneas verdes al pasar el mouse.
   Causa: el recuadro de la imagen tenía fondo verde oscuro y, al agrandarse la foto, sus bordes
   dejaban rendijas de subpíxel. Ahora el fondo es claro, la capa tiene su propia composición y el
   agrandado es más suave. */
.nsl-card { transform: translateZ(0); backface-visibility: hidden; }
.nsl-card__media { background: #eef7f1; transform: translateZ(0); border-radius: 16px 16px 0 0; }
.nsl-card__media img { transform: translateZ(0); backface-visibility: hidden; }
.nsl-card:hover .nsl-card__media img { transform: scale(1.03) translateZ(0); }
.nsl-card { transition: transform 200ms ease, box-shadow 200ms ease; }

/* Columna fija: scroll vertical natural sin barra visible; flechitas solo cuando hay más contenido. */
.noticia-layout__sidebar { position: sticky; }
.noticia-layout__sidebar .noticia-aside__scroll {
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  padding: 2.2rem 0 2.8rem;
}
.noticia-layout__sidebar .noticia-aside__scroll::-webkit-scrollbar { display: none; }
.noticia-layout__sidebar .noticia-aside__subir,
.noticia-layout__sidebar .noticia-aside__bajar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid #d3eadb;
  background: #fff;
  color: var(--sv-esmeralda, #00713a);
  box-shadow: 0 4px 10px -4px rgba(10, 61, 35, 0.3);
  cursor: pointer;
}
.noticia-layout__sidebar .noticia-aside__subir { top: 0.2rem; }
.noticia-layout__sidebar .noticia-aside__bajar { bottom: 0.2rem; }
.noticia-layout__sidebar .noticia-aside__subir[hidden],
.noticia-layout__sidebar .noticia-aside__bajar[hidden] { display: none; }
.noticia-layout__sidebar .noticia-indice ol { max-height: none; overflow: visible; }

/* Columna fija: la tarjeta de "En este artículo" se encoge y scrollea solo dentro de sí misma;
   la tarjeta de asesoría queda siempre visible debajo, sin scroll. */
.noticia-layout__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: sticky;
  top: calc(var(--header-h, 90px) + 1rem);
  overflow: visible;
  max-height: none;
}
.noticia-layout__sidebar .noticia-indice {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  padding: 1.1rem 1.2rem;
}
.noticia-layout__sidebar .noticia-indice__cuerpo {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.noticia-layout__sidebar .noticia-indice__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.2rem 0;
}
.noticia-layout__sidebar .noticia-indice__scroll::-webkit-scrollbar { display: none; }
.noticia-layout__sidebar .noticia-indice ol { columns: 1; max-height: none; overflow: visible; list-style: none; padding: 0; margin: 0; }
.noticia-layout__sidebar .noticia-indice__flecha {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid #d3eadb;
  background: #fff;
  color: var(--sv-esmeralda, #00713a);
  box-shadow: 0 4px 10px -4px rgba(10, 61, 35, 0.3);
  cursor: pointer;
}
.noticia-layout__sidebar .noticia-indice__flecha--subir { top: 0; }
.noticia-layout__sidebar .noticia-indice__flecha--bajar { bottom: 0; }
.noticia-layout__sidebar .noticia-indice__flecha[hidden] { display: none; }
.noticia-layout__sidebar .noticia-cta { flex: 0 0 auto; margin: 0; max-width: none; }
@media (max-width: 900px) {
  .noticia-layout__sidebar { position: static; max-height: none; }
  .noticia-layout__sidebar .noticia-indice { overflow: visible; }
  .noticia-layout__sidebar .noticia-indice__scroll { overflow: visible; }
  .noticia-layout__sidebar .noticia-indice__flecha { display: none; }
}
.noticia-layout__sidebar .noticia-indice { min-height: 200px; }

/* "En este artículo" toma su altura natural (se ve su borde inferior completo).
   Solo se encoge, con scroll interno, si la columna no alcanza para todas las secciones. */
.noticia-layout__sidebar .noticia-indice { flex: 0 1 auto; min-height: 120px; }
.noticia-layout__sidebar .noticia-indice__scroll { flex: 0 1 auto; }

/* "En este artículo": el scroll llega hasta el borde inferior de la tarjeta.
   El título queda arriba fijo; el relleno de la lista va dentro del área que scrollea, no fuera. */
.noticia-layout__sidebar .noticia-indice {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  min-height: 120px;
  position: relative;
}
.noticia-layout__sidebar .noticia-indice__titulo { margin: 0; padding: 1.1rem 1.2rem 0.5rem; flex: 0 0 auto; }
.noticia-layout__sidebar .noticia-indice__cuerpo { flex: 1 1 auto; min-height: 0; position: relative; display: flex; flex-direction: column; }
.noticia-layout__sidebar .noticia-indice__scroll {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  padding: 0.3rem 1.2rem 1.1rem;
}

/* Flechas de "En este artículo": centradas en el borde de la tarjeta, con el ícono exactamente al centro. */
.noticia-layout__sidebar .noticia-indice__flecha {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  width: 2.1rem;
  height: 2.1rem;
  left: 50%;
  transform: translateX(-50%);
}
.noticia-layout__sidebar .noticia-indice__flecha i { margin: 0; line-height: 1; }
.noticia-layout__sidebar .noticia-indice__flecha--subir { top: 0.35rem; bottom: auto; }
.noticia-layout__sidebar .noticia-indice__flecha--bajar { bottom: 0.35rem; top: auto; }
