/*
 * Páginas de contenido de la nueva web: recursos, blog, ayuda y las páginas
 * institucionales y legales. Un solo sistema editorial (bloque `nw-ed`):
 *
 *   - índices (recursos, blog): grillas de tarjetas de artículo;
 *   - artículos: columna de lectura de 720 px (`.nw-ed__col`) y cuerpo en
 *     `.nw-prose` (Roboto 17 px, interlineado 1,6);
 *   - institucionales y legales: el mismo encabezado y la misma columna.
 *
 * Teléfono primero; escritorio desde 768 px. Solo variables de tokens.css.
 */

/* ── Página ─────────────────────────────────────────────────────────── */
.nw-ed {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  padding-bottom: 24px;
}

/* Columna de lectura: 720 px de texto más los márgenes de la página. */
.nw-ed__col {
  width: 100%;
  max-width: calc(720px + 32px);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 768px) {
  .nw-ed {
    padding-bottom: 48px;
  }
  .nw-ed__col {
    max-width: calc(720px + 48px);
    padding: 0 24px;
  }
}

/* Columna de lectura alineada a la izquierda del ancho de página (índices y
   pilares). */
.nw-ed__measure {
  max-width: 720px;
}

/* ── Encabezado ─────────────────────────────────────────────────────── */
.nw-ed__head {
  padding: 24px 0 8px;
}
.nw-ed__head--index {
  padding: 32px 0 8px;
}
@media (min-width: 768px) {
  .nw-ed__head {
    padding: 48px 0 16px;
  }
  .nw-ed__head--index {
    padding: 64px 0 16px;
  }
}

.nw-ed__crumbs {
  margin-bottom: 16px;
}
.nw-ed__crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 2px;
  color: var(--v5-text-light);
  font-size: 13px;
  line-height: 1.4;
}
.nw-ed__crumbs li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.nw-ed__crumbs a {
  padding: 4px 0;
  color: var(--v5-text-muted);
  font-weight: 500;
}
.nw-ed__crumbs a:hover {
  color: var(--v5-primary-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nw-ed__crumbs [aria-current] {
  overflow: hidden;
  max-width: 62vw;
  color: var(--v5-ink);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nw-ed__crumb-sep {
  margin: 0 4px;
  color: var(--v5-border-strong);
  font-size: 16px;
}

.nw-ed__eyebrow {
  margin-bottom: 8px;
  color: var(--v5-primary-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.4;
}
.nw-ed__eyebrow--icon {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.nw-ed__eyebrow--icon .nw-i {
  font-size: 18px;
}

.nw-ed__title {
  color: var(--v5-ink);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.8px;
  line-height: 1.12;
  text-wrap: balance;
}
.nw-ed__accent {
  color: var(--v5-primary);
}
@media (min-width: 768px) {
  .nw-ed__title {
    font-size: 42px;
    letter-spacing: -1.2px;
    line-height: 1.08;
  }
  .nw-ed__title--index {
    max-width: 880px;
    font-size: 52px;
    letter-spacing: -1.6px;
    line-height: 1.04;
  }
}

.nw-ed__lead {
  max-width: 680px;
  margin-top: 14px;
  color: var(--v5-text-muted);
  font-size: 18px;
  line-height: 1.5;
}
/* Respuesta directa: contesta la pregunta de la página en sus primeras
   líneas. */
.nw-ed__answer {
  margin-top: 18px;
  padding-left: 16px;
  border-left: 3px solid var(--v5-primary);
  color: var(--v5-ink);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
}
@media (min-width: 768px) {
  .nw-ed__lead,
  .nw-ed__answer {
    font-size: 20px;
  }
}

.nw-ed__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 18px;
  color: var(--v5-text-muted);
  font-size: 14px;
  line-height: 1.4;
}
.nw-ed__meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nw-ed__meta .nw-i {
  color: var(--v5-text-light);
  font-size: 18px;
}

.nw-ed__figure {
  margin-top: 28px;
}
.nw-ed__figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  border-radius: var(--v5-r4);
  background: var(--v5-surface-muted);
  object-fit: cover;
}
.nw-ed__figure figcaption {
  margin-top: 8px;
  color: var(--v5-text-light);
  font-size: 13px;
  line-height: 1.4;
}

/* Portada del blog: más ancha que el texto. */
.nw-ed__cover {
  width: 100%;
  max-width: calc(960px + 32px);
  margin: 28px auto 0;
  padding: 0 16px;
}
.nw-ed__cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  border-radius: var(--v5-r4);
  background: var(--v5-surface-muted);
  object-fit: cover;
}
@media (min-width: 768px) {
  .nw-ed__cover {
    max-width: calc(960px + 48px);
    margin-top: 36px;
    padding: 0 24px;
  }
  .nw-ed__cover img {
    aspect-ratio: 16 / 8;
  }
}

/* Firma del blog. */
.nw-ed__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin-top: 22px;
}
.nw-ed__byline-who {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.nw-ed__byline-name {
  color: var(--v5-ink);
  font-size: 15px;
  font-weight: 700;
}
.nw-ed__byline-role {
  color: var(--v5-text-muted);
  font-size: 13px;
}
.nw-ed__byline .nw-ed__meta {
  flex-basis: 100%;
  margin-top: 0;
}
@media (min-width: 768px) {
  .nw-ed__byline .nw-ed__meta {
    flex-basis: auto;
    padding-left: 16px;
    border-left: 1px solid var(--v5-border);
  }
}
.nw-ed__avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--v5-r2);
  background: var(--v5-primary);
  color: var(--v5-surface);
  font-weight: 900;
  line-height: 1;
  object-fit: cover;
}
.nw-ed__avatar--md {
  width: 44px;
  height: 44px;
  font-size: 20px;
}
.nw-ed__avatar--lg {
  width: 64px;
  height: 64px;
  border-radius: var(--v5-r3);
  font-size: 28px;
}

/* ── Secciones ──────────────────────────────────────────────────────── */
.nw-ed__section {
  padding: 24px 0;
}
.nw-ed__section--tight {
  padding: 8px 0;
}
.nw-ed__section--divided {
  margin-top: 16px;
  border-top: 1px solid var(--v5-border);
}
.nw-ed__section--first {
  padding-top: 20px;
}
@media (min-width: 768px) {
  .nw-ed__section {
    padding: 32px 0;
  }
  .nw-ed__section--tight {
    padding: 12px 0;
  }
  .nw-ed__section--divided {
    margin-top: 24px;
  }
  .nw-ed__section--first {
    padding-top: 24px;
  }
}

.nw-ed__h2 {
  margin-bottom: 16px;
  color: var(--v5-ink);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.2;
  text-wrap: balance;
}
.nw-ed__section-lead {
  max-width: 680px;
  margin: -6px 0 20px;
  color: var(--v5-text-muted);
  font-size: 16px;
  line-height: 1.5;
}
@media (min-width: 768px) {
  .nw-ed__h2 {
    font-size: 26px;
  }
}

/* ── Cuerpo de un artículo ──────────────────────────────────────────── */
.nw-prose {
  padding-top: 28px;
  color: var(--v5-text);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}
.nw-prose > * + * {
  margin-top: 18px;
}
.nw-prose > h2 {
  margin-top: 40px;
  color: var(--v5-ink);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.2;
  text-wrap: balance;
}
.nw-prose > h3 {
  margin-top: 28px;
  color: var(--v5-ink);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.3;
}
.nw-prose > h2:first-child,
.nw-prose > h3:first-child {
  margin-top: 0;
}
.nw-prose > h2 + *,
.nw-prose > h3 + * {
  margin-top: 10px;
}
@media (min-width: 768px) {
  .nw-prose > h2 {
    margin-top: 48px;
    font-size: 28px;
    letter-spacing: -0.6px;
  }
}
.nw-prose--intro {
  padding-top: 18px;
  color: var(--v5-text-muted);
}
/* Dentro de una sección el texto sigue al título, sin el aire de entrada
   del cuerpo de un artículo. */
.nw-ed__section .nw-prose {
  padding-top: 0;
}

.nw-prose__ul li,
.nw-prose__ol li {
  position: relative;
}
.nw-prose__ul li + li,
.nw-prose__ol li + li {
  margin-top: 10px;
}
.nw-prose__ul li {
  padding-left: 24px;
}
.nw-prose__ul li::before {
  content: '';
  position: absolute;
  top: 0.68em;
  left: 6px;
  width: 7px;
  height: 7px;
  border-radius: var(--nw-r-round);
  background: var(--v5-primary);
}
.nw-prose__ul--no li::before {
  background: var(--v5-error);
}
.nw-prose__ol {
  counter-reset: nw-prose-ol;
}
.nw-prose__ol li {
  padding-left: 36px;
  counter-increment: nw-prose-ol;
}
.nw-prose__ol li::before {
  content: counter(nw-prose-ol);
  position: absolute;
  top: 1px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: var(--nw-r-round);
  background: var(--v5-primary-soft);
  color: var(--v5-primary-deep);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1;
}

.nw-prose > .nw-prose__quote {
  margin-top: 32px;
  margin-bottom: 14px;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--v5-primary);
}
.nw-prose__quote p {
  color: var(--v5-ink);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.3px;
  line-height: 1.4;
}
.nw-prose__quote footer {
  margin-top: 10px;
  color: var(--v5-text-muted);
  font-size: 14px;
  font-weight: 500;
}

.nw-prose > .nw-prose__callout {
  margin-top: 28px;
  margin-bottom: 10px;
  padding: 18px 20px;
  border: 1px solid var(--v5-border);
  border-radius: var(--v5-r3);
  background: var(--v5-primary-softer);
}
.nw-prose__callout p {
  font-size: 16px;
  line-height: 1.55;
}
.nw-prose__callout p + p {
  margin-top: 6px;
}
.nw-prose__callout .nw-prose__callout-title {
  color: var(--v5-primary-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.nw-prose__source {
  display: inline-block;
  padding: 10px 0;
  color: var(--v5-primary-deep);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nw-prose__cta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--nw-touch);
  border-bottom: 2px solid var(--nw-primary-line);
  color: var(--v5-primary-deep);
  font-size: 16px;
  font-weight: 700;
}
.nw-prose__cta a:hover {
  border-bottom-color: var(--v5-primary-deep);
}
.nw-prose__cta .nw-i {
  font-size: 18px;
}

.nw-prose > .nw-prose__box {
  margin-top: 24px;
}
.nw-prose__box a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 14px 18px;
  border: 1px solid var(--v5-border);
  border-radius: var(--v5-r3);
  background: var(--v5-primary-softer);
  color: var(--v5-primary-deep);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}
.nw-prose__box a:hover {
  border-color: var(--nw-primary-line);
  background: var(--v5-primary-soft);
}
.nw-prose__box .nw-i {
  flex: none;
  font-size: 20px;
}

/* ── Tarjetas de artículo ───────────────────────────────────────────── */
.nw-ed-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.nw-ed-grid > li {
  display: flex;
}
@media (min-width: 768px) {
  .nw-ed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}
@media (min-width: 1080px) {
  .nw-ed-grid--4 .nw-ed-card__title {
    font-size: 18px;
  }
  .nw-ed-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
  .nw-ed-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.nw-ed-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  overflow: hidden;
  border: 1px solid var(--v5-border);
  border-radius: var(--v5-r4);
  background: var(--v5-surface);
  box-shadow: var(--v5-shadow-card);
  color: var(--v5-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.nw-ed-card:hover {
  border-color: var(--v5-border-strong);
  box-shadow: var(--v5-shadow-raised);
  color: var(--v5-ink);
}
.nw-ed-card:hover .nw-ed-card__title {
  color: var(--v5-primary-deep);
}
.nw-ed-card__media {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--v5-surface-muted);
}
.nw-ed-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nw-ed-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
}
.nw-ed-card__kicker {
  color: var(--v5-primary-deep);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.nw-ed-card__title {
  color: var(--v5-ink);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.3px;
  line-height: 1.25;
  text-wrap: balance;
  transition: color 0.15s ease;
}
.nw-ed-card__summary {
  display: -webkit-box;
  overflow: hidden;
  color: var(--v5-text-muted);
  font-size: 15px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.nw-ed-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: auto;
  padding-top: 6px;
  color: var(--v5-text-light);
  font-size: 13px;
  line-height: 1.4;
}
.nw-ed-card__meta {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
}
.nw-ed-card__meta .nw-i {
  flex: none;
  font-size: 16px;
}
/* Una línea de datos larga (las guías de un pilar) no estira la tarjeta. */
.nw-ed-card__meta > span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}
.nw-ed-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: var(--v5-primary-deep);
  font-size: 14px;
  font-weight: 700;
}
.nw-ed-card__cta .nw-i {
  font-size: 18px;
}

/* Tarjeta grande (la historia destacada del blog). */
.nw-ed-card--large .nw-ed-card__title {
  font-size: 22px;
  letter-spacing: -0.5px;
}
.nw-ed-card--large .nw-ed-card__summary {
  font-size: 16px;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}
@media (min-width: 768px) {
  .nw-ed-card--large {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }
  .nw-ed-card--large .nw-ed-card__media {
    aspect-ratio: auto;
    min-height: 380px;
  }
  .nw-ed-card--large .nw-ed-card__body {
    justify-content: center;
    gap: 12px;
    padding: 36px 32px;
  }
  .nw-ed-card--large .nw-ed-card__title {
    font-size: 32px;
    letter-spacing: -0.8px;
    line-height: 1.12;
  }
  .nw-ed-card--large .nw-ed-card__foot {
    margin-top: 8px;
  }
}

/* ── Índice de recursos ─────────────────────────────────────────────── */
.nw-ed__feature,
.nw-ed__feature:hover {
  color: var(--v5-surface);
}
.nw-ed__feature {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: var(--v5-r4);
  background: var(--v5-primary);
  box-shadow: var(--nw-glow-cta);
  transition: background-color 0.15s ease;
}
.nw-ed__feature:hover {
  background: var(--v5-primary-deep);
}
.nw-ed__feature:focus-visible {
  outline-color: var(--v5-primary-deep);
}
.nw-ed__feature-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--v5-r3);
  background: var(--nw-on-dark-tint);
  font-size: 24px;
}
.nw-ed__feature-text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
}
.nw-ed__feature-kicker {
  font-size: 13px;
  font-weight: 700;
}
.nw-ed__feature-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.4px;
  line-height: 1.2;
}
.nw-ed__feature-body {
  font-size: 15px;
  line-height: 1.45;
}
.nw-ed__feature-cta {
  display: inline-flex;
  flex: none;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  min-height: var(--nw-touch);
  padding: 0 18px;
  border-radius: var(--v5-r-pill);
  background: var(--v5-surface);
  color: var(--v5-primary-deep);
  font-weight: 700;
  white-space: nowrap;
}
.nw-ed__feature-cta .nw-i {
  font-size: 18px;
}
@media (min-width: 768px) {
  .nw-ed__feature {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
  }
  .nw-ed__feature-title {
    font-size: 22px;
  }
  .nw-ed__feature-cta {
    align-self: center;
  }
}
.nw-ed__aside-link {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.nw-ed__entity p {
  max-width: 720px;
  color: var(--v5-text-muted);
  font-size: 17px;
  line-height: 1.6;
}
.nw-ed__entity .nw-btn {
  margin-top: 20px;
}

/* ── Bloques de cierre ──────────────────────────────────────────────── */
.nw-ed__steps li {
  position: relative;
  padding: 16px 0 16px 52px;
  border-top: 1px solid var(--v5-border);
}
.nw-ed__steps li:last-child {
  border-bottom: 1px solid var(--v5-border);
}
.nw-ed__step-n {
  position: absolute;
  top: 14px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--nw-r-round);
  background: var(--v5-primary);
  color: var(--v5-surface);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}
.nw-ed__step-name {
  color: var(--v5-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}
.nw-ed__step-text {
  margin-top: 4px;
  color: var(--v5-text-muted);
  font-size: 16px;
  line-height: 1.55;
}

.nw-ed__faq-item {
  padding: 18px 0;
  border-top: 1px solid var(--v5-border);
}
.nw-ed__faq-item:last-child {
  border-bottom: 1px solid var(--v5-border);
}
.nw-ed__faq-item h3 {
  color: var(--v5-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}
.nw-ed__faq-item p {
  margin-top: 6px;
  color: var(--v5-text-muted);
  font-size: 16px;
  line-height: 1.6;
}

.nw-ed__sources li + li {
  margin-top: 2px;
}

/* Puente de conversión: tarjeta de color con un botón blanco. */
.nw-ed__bridge {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 20px;
  border-radius: var(--v5-r4);
  background: var(--v5-primary);
  box-shadow: var(--nw-glow-cta);
  color: var(--v5-surface);
}
.nw-ed__bridge :focus-visible {
  outline-color: var(--v5-surface);
}
.nw-ed__bridge-kicker,
.nw-ed__bridge-note {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.nw-ed__bridge-note {
  font-weight: 500;
}
.nw-ed__bridge-title {
  color: var(--v5-surface);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.4px;
  line-height: 1.2;
  text-wrap: balance;
}
.nw-ed__bridge-body {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.5;
}
.nw-ed__bridge-btn,
.nw-ed__bridge-btn:hover {
  color: var(--v5-primary-deep);
}
.nw-ed__bridge-btn {
  flex: none;
  align-self: flex-start;
  border-radius: var(--v5-r-pill);
  background: var(--v5-surface);
}
.nw-ed__bridge-btn:hover {
  background: var(--v5-primary-softer);
}
@media (min-width: 768px) {
  .nw-ed__bridge {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 28px 32px;
  }
  .nw-ed__bridge-title {
    font-size: 24px;
  }
  .nw-ed__bridge-btn {
    align-self: center;
  }
}

/* Enlace de texto con flecha. */
.nw-ed__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--nw-touch);
  color: var(--v5-primary-deep);
  font-size: 15px;
  font-weight: 700;
}
.nw-ed__link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nw-ed__link .nw-i {
  font-size: 18px;
}
.nw-ed__back {
  margin-top: 20px;
}

/* ── Blog ───────────────────────────────────────────────────────────── */
.nw-ed__rail {
  margin-top: 16px;
  border-top: 1px solid var(--v5-border);
  border-bottom: 1px solid var(--v5-border);
}
.nw-ed__rail-in {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding-top: 10px;
  padding-bottom: 10px;
  scrollbar-width: none;
}
.nw-ed__rail-in::-webkit-scrollbar {
  display: none;
}
.nw-ed__rail-label {
  flex: none;
  color: var(--v5-text-muted);
  font-size: 13px;
  font-weight: 700;
}
.nw-ed__chips {
  display: flex;
  flex: none;
  gap: 8px;
}
.nw-ed__band {
  scroll-margin-top: calc(var(--nw-header-h) + 8px);
}
.nw-ed__band .nw-ed__h2 {
  max-width: 720px;
  margin-bottom: 20px;
}

.nw-ed__author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 18px 20px;
  border: 1px solid var(--v5-border);
  border-radius: var(--v5-r4);
}
.nw-ed__author-kicker {
  color: var(--v5-primary-deep);
  font-size: 13px;
  font-weight: 700;
}
.nw-ed__author-name {
  color: var(--v5-ink);
  font-size: 17px;
  font-weight: 900;
}
.nw-ed__author-role {
  color: var(--v5-text-muted);
  font-size: 14px;
}

/* Fila patrocinada: `--nw-brand` es el color de la marca, oscurecido para
   el texto blanco del botón (`blogBrandInk`). */
.nw-ed__sponsor {
  --nw-brand: var(--v5-primary-deep);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 16px;
  margin: 8px 0 24px;
  padding: 16px 18px;
  border: 1px dashed var(--v5-border-strong);
  border-radius: var(--v5-r3);
  background: var(--v5-surface);
}
.nw-ed__sponsor-logo {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: var(--v5-r2);
  object-fit: contain;
}
.nw-ed__sponsor-text {
  flex: 1 1 220px;
  min-width: 0;
}
.nw-ed__sponsor-tag {
  color: var(--v5-text-light);
  font-size: 12px;
  font-weight: 700;
}
.nw-ed__sponsor-title {
  margin-top: 2px;
  color: var(--v5-ink);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.3;
}
.nw-ed__sponsor-body {
  margin-top: 2px;
  color: var(--v5-text-muted);
  font-size: 14px;
  line-height: 1.45;
}
.nw-ed__sponsor-cta,
.nw-ed__sponsor-cta:hover {
  color: var(--v5-surface);
}
.nw-ed__sponsor-cta {
  display: inline-flex;
  align-items: center;
  min-height: var(--nw-touch);
  padding: 0 18px;
  border-radius: var(--v5-r-pill);
  background: var(--nw-brand);
  font-weight: 700;
  white-space: nowrap;
}

.nw-ed__newsletter {
  padding: 28px 20px;
  border: 1px solid var(--v5-border);
  border-radius: var(--v5-r5);
  background: var(--v5-primary-softer);
  text-align: center;
}
.nw-ed__newsletter .nw-ed__h2 {
  max-width: 560px;
  margin: 0 auto 8px;
}
.nw-ed__newsletter-text {
  max-width: 480px;
  margin: 0 auto;
  color: var(--v5-text-muted);
  font-size: 16px;
  line-height: 1.5;
}
.nw-ed__newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 460px;
  margin: 20px auto 0;
}
.nw-ed__newsletter-form[hidden] {
  display: none;
}
.nw-ed__newsletter-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--v5-border-strong);
  border-radius: var(--v5-r3);
  background: var(--v5-surface);
  font-size: 16px;
}
.nw-ed__newsletter-input:focus {
  border-color: var(--v5-primary);
  outline: none;
  box-shadow: var(--nw-focus-ring);
}
.nw-ed__newsletter-msg {
  max-width: 460px;
  margin: 16px auto 0;
  color: var(--v5-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}
.nw-ed__newsletter-msg[data-nw-tone='error'] {
  color: var(--v5-tint-law-ink);
}
.nw-ed__newsletter-note {
  margin-top: 12px;
  color: var(--v5-text-light);
  font-size: 13px;
  line-height: 1.4;
}
@media (min-width: 480px) {
  .nw-ed__newsletter-form {
    flex-direction: row;
  }
}
@media (min-width: 768px) {
  .nw-ed__newsletter {
    padding: 48px 40px;
  }
}

/* ── Páginas institucionales ────────────────────────────────────────── */
.nw-ed__badge {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--v5-r2);
  background: var(--v5-primary-soft);
  color: var(--v5-primary-deep);
  font-size: 20px;
}

/* Ayuda: preguntas en acordeón (`<details>`, sin JavaScript). */
.nw-ed__accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nw-ed__qa {
  overflow: hidden;
  border: 1px solid var(--v5-border);
  border-radius: var(--v5-r3);
  background: var(--v5-surface);
  box-shadow: var(--v5-shadow-card);
}
.nw-ed__qa[open] {
  border-color: var(--v5-border-strong);
}
.nw-ed__qa summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}
.nw-ed__qa summary::-webkit-details-marker {
  display: none;
}
.nw-ed__qa summary:hover .nw-ed__qa-q {
  color: var(--v5-primary-deep);
}
.nw-ed__qa-q {
  flex: 1 1 auto;
  color: var(--v5-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}
.nw-ed__qa-chevron {
  flex: none;
  color: var(--v5-text-light);
  font-size: 22px;
  transition: transform 0.18s ease;
}
.nw-ed__qa[open] .nw-ed__qa-chevron {
  transform: rotate(180deg);
}
.nw-ed__qa-a {
  padding: 0 18px 18px 16px;
  color: var(--v5-text-muted);
  font-size: 16px;
  line-height: 1.6;
}
@media (min-width: 768px) {
  .nw-ed__qa summary {
    padding: 14px 20px;
  }
  .nw-ed__qa-a {
    padding: 0 24px 20px 74px;
  }
}

/* Contacto y prensa: el correo en una tarjeta de color. */
.nw-ed__mail {
  padding: 24px 20px;
  border-radius: var(--v5-r4);
  background: var(--v5-primary);
  box-shadow: var(--nw-glow-cta);
  color: var(--v5-surface);
}
.nw-ed__mail :focus-visible {
  outline-color: var(--v5-surface);
}
.nw-ed__mail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}
.nw-ed__mail-kicker .nw-i {
  font-size: 18px;
}
.nw-ed__mail-address,
.nw-ed__mail-address:hover {
  color: var(--v5-surface);
}
.nw-ed__mail-address {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.nw-ed__mail-address:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.nw-ed__mail-text {
  max-width: 560px;
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.5;
}
.nw-ed__mail-btn,
.nw-ed__mail-btn:hover {
  color: var(--v5-primary-deep);
}
.nw-ed__mail-btn {
  margin-top: 20px;
  border-radius: var(--v5-r-pill);
  background: var(--v5-surface);
}
.nw-ed__mail-btn:hover {
  background: var(--v5-primary-softer);
}
@media (min-width: 768px) {
  .nw-ed__mail {
    padding: 32px;
  }
  .nw-ed__mail-address {
    font-size: 32px;
    letter-spacing: -0.8px;
  }
}

.nw-ed__topics {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.nw-ed__topics > li {
  display: flex;
}
.nw-ed__topic {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--v5-border);
  border-radius: var(--v5-r3);
  background: var(--v5-surface);
  box-shadow: var(--v5-shadow-card);
  color: var(--v5-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.nw-ed__topic:hover {
  border-color: var(--v5-border-strong);
  box-shadow: var(--v5-shadow-raised);
  color: var(--v5-ink);
}
.nw-ed__topic-title {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.2px;
  line-height: 1.25;
}
.nw-ed__topic-text {
  flex: 1 1 auto;
  color: var(--v5-text-muted);
  font-size: 15px;
  line-height: 1.5;
}
.nw-ed__topic-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--v5-primary-deep);
  font-size: 14px;
  font-weight: 700;
}
.nw-ed__topic-cta .nw-i {
  font-size: 18px;
}
@media (min-width: 768px) {
  .nw-ed__topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

/* Recuadro de nota. */
.nw-ed__note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--v5-border);
  border-radius: var(--v5-r3);
  background: var(--v5-primary-softer);
}
.nw-ed__note-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--v5-r2);
  background: var(--v5-primary-soft);
  color: var(--v5-primary-deep);
  font-size: 20px;
}
.nw-ed__note-text {
  flex: 1 1 auto;
  min-width: 0;
}
.nw-ed__note-title {
  margin-bottom: 4px;
  color: var(--v5-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}
.nw-ed__note-text p:not(.nw-ed__note-title) {
  color: var(--v5-text-muted);
  font-size: 15px;
  line-height: 1.55;
}
.nw-ed__note-action {
  margin-top: 4px;
}
.nw-ed__note--alert {
  border-color: transparent;
  background: var(--v5-dupla-soft);
}
.nw-ed__note--alert .nw-ed__note-icon {
  background: var(--v5-surface);
  color: var(--v5-tint-law-ink);
}
.nw-ed__note--alert .nw-ed__note-title,
.nw-ed__note--alert .nw-ed__note-text p:not(.nw-ed__note-title) {
  color: var(--v5-tint-law-ink);
}

/* Cifras en recuadros. */
.nw-ed__tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.nw-ed__tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--v5-border);
  border-radius: var(--v5-r3);
  background: var(--v5-surface);
}
.nw-ed__tile-value {
  color: var(--v5-primary-deep);
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: -0.8px;
  line-height: 1;
}
.nw-ed__tile-label {
  color: var(--v5-text-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
@media (min-width: 768px) {
  .nw-ed__tiles--3,
  .nw-ed__tiles--5,
  .nw-ed__tiles--6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .nw-ed__tiles--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .nw-ed__tile-value {
    font-size: 32px;
  }
}

/* Tarjetas con ícono (cómo lo hacemos). */
.nw-ed__cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.nw-ed__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--v5-border);
  border-radius: var(--v5-r3);
  background: var(--v5-surface);
  box-shadow: var(--v5-shadow-card);
}
.nw-ed__item-title {
  color: var(--v5-ink);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.2px;
  line-height: 1.3;
}
.nw-ed__item-text {
  color: var(--v5-text-muted);
  font-size: 15px;
  line-height: 1.5;
}
@media (min-width: 768px) {
  .nw-ed__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.nw-ed__principles {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nw-ed__principles li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--v5-border);
  border-radius: var(--v5-r3);
}
.nw-ed__principles .nw-ed__item-text {
  margin-top: 2px;
}

.nw-ed__press {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nw-ed__press li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--v5-border);
  border-radius: var(--v5-r3);
  background: var(--v5-surface);
}
.nw-ed__press-meta {
  color: var(--v5-primary-deep);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.nw-ed__press-title {
  color: var(--v5-ink);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.2px;
  line-height: 1.35;
}
.nw-ed__press-title:hover {
  color: var(--v5-primary-deep);
}
.nw-ed__press-summary {
  color: var(--v5-text-muted);
  font-size: 15px;
  line-height: 1.55;
}
.nw-ed__press .nw-ed__link {
  align-self: flex-start;
}

.nw-ed__quotes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nw-ed__quotes li {
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--v5-primary);
  color: var(--v5-ink);
  font-size: 17px;
  line-height: 1.55;
}

.nw-ed__assets {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.nw-ed__asset {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--v5-border);
  border-radius: var(--v5-r3);
}
.nw-ed__asset img {
  flex: none;
  width: 64px;
  height: 64px;
  border: 1px solid var(--v5-border);
  border-radius: var(--v5-r2);
  background: var(--v5-surface);
  object-fit: contain;
}
.nw-ed__asset-detail {
  margin-top: 2px;
  color: var(--v5-text-muted);
  font-size: 13px;
  line-height: 1.45;
}
.nw-ed__asset .nw-ed__link {
  font-size: 14px;
}
@media (min-width: 768px) {
  .nw-ed__assets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.nw-ed__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.nw-ed__pills .nw-btn {
  border-radius: var(--v5-r-pill);
  color: var(--v5-primary-deep);
}
.nw-ed__pills .nw-i {
  font-size: 18px;
}

.nw-ed__fineprint {
  margin-top: 14px;
  color: var(--v5-text-muted);
  font-size: 14px;
  line-height: 1.5;
}
.nw-ed__fineprint a {
  font-weight: 700;
}
.nw-ed__after {
  margin-top: 8px;
}

/* Banda de la app. */
.nw-ed__app {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 20px;
  border: 1px solid var(--v5-border);
  border-radius: var(--v5-r5);
  background: var(--v5-primary-softer);
}
.nw-ed__app-text .nw-ed__h2 {
  margin-bottom: 8px;
}
.nw-ed__app-text p:last-child {
  max-width: 520px;
  color: var(--v5-text-muted);
  font-size: 16px;
  line-height: 1.5;
}
.nw-ed__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.nw-ed__store,
.nw-ed__store:hover {
  color: var(--v5-surface);
}
.nw-ed__store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 18px;
  border-radius: var(--v5-r3);
  background: var(--v5-ink);
}
.nw-ed__store:hover {
  background: var(--v5-primary-deep);
}
.nw-ed__store .nw-i {
  font-size: 24px;
}
.nw-ed__store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.nw-ed__store-caption {
  font-size: 11px;
  font-weight: 500;
}
.nw-ed__store-name {
  font-size: 16px;
  font-weight: 700;
}
@media (min-width: 768px) {
  .nw-ed__app {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 36px 40px;
  }
  .nw-ed__stores {
    flex: none;
  }
}

/* ── Páginas legales ────────────────────────────────────────────────── */
.nw-ed__chips--meta {
  flex-wrap: wrap;
  margin-top: 18px;
}
.nw-ed__chips--meta .nw-chip {
  padding: 6px 12px;
  color: var(--v5-text-muted);
  font-size: 13px;
}
.nw-ed__chips--meta .nw-i {
  color: var(--v5-primary-deep);
  font-size: 16px;
}

.nw-prose--legal {
  padding-top: 0;
}
.nw-prose > .nw-ed__legal + .nw-ed__legal {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--v5-border);
}
.nw-ed__legal > * + * {
  margin-top: 14px;
}
.nw-ed__legal > h2 {
  color: var(--v5-ink);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.4px;
  line-height: 1.25;
  text-wrap: balance;
}
.nw-ed__legal > h3 {
  margin-top: 22px;
  color: var(--v5-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}
.nw-ed__strong {
  color: var(--v5-ink);
  font-weight: 700;
}
@media (min-width: 768px) {
  .nw-ed__legal > h2 {
    font-size: 24px;
  }
}

.nw-ed__contact-card {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--v5-border);
  border-radius: var(--v5-r3);
}
.nw-ed__contact-card .nw-ed__item-text {
  margin-top: 6px;
}
.nw-ed__contact-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.4;
}
.nw-ed__contact-rows li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  overflow-wrap: anywhere;
}
.nw-ed__contact-rows .nw-i {
  flex: none;
  color: var(--v5-primary-deep);
  font-size: 18px;
}
.nw-ed__contact-rows a {
  font-weight: 700;
}

/* ── 404 ────────────────────────────────────────────────────────────── */
.nw-ed__empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding-top: 56px;
  padding-bottom: 56px;
}
.nw-ed__empty .nw-ed__lead {
  margin-top: 0;
}
.nw-ed__empty .nw-btn {
  margin-top: 8px;
}
.nw-ed__empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--v5-r3);
  background: var(--v5-primary-soft);
  color: var(--v5-primary-deep);
  font-size: 28px;
}
