/* Zalkess Noticias: diseño de periódico. Paleta y tipografía de la web (naranja señal, carbón cálido, Overpass),
   con titulares en serif del sistema para dar carácter de prensa. Tema claro, sin imágenes externas.
   Hecho para leer con comodidad: letra grande, contraste alto, foco visible y sin scroll horizontal. */
:root {
  color-scheme: light;
  --np-tinta: var(--tinta, #2a211c);
  --np-tinta-2: var(--tinta-2, #5e4b40);
  --np-papel: var(--papel, #fff8f1);
  --np-tinte: var(--seccion-tinte, #fff1e3);
  --np-linea: #d9c5b2;
  --np-regla: var(--carbon, #2a211c);
  --np-naranja: var(--naranja, #c2410c);
  --np-naranja-oscuro: var(--naranja-oscuro, #9a3412);
  --np-ambar: var(--ambar, #f5a524);
  --np-azul: var(--azul, #1f4f94);
  --np-sobre-oscuro: var(--sobre-oscuro, #f7e3cf);
  --np-campo: var(--borde-campo, #94796a);
  --np-verde: #1e6b34;
  --np-verde-fondo: #e4f4e7;
  --np-rojo: #a32424;
  --np-rojo-fondo: #fdecec;
  --np-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --np-ancho-texto: 46rem;
}

/* ---------- Base de la página ---------- */
.np {
  background: var(--np-papel);
  color: var(--np-tinta);
  padding: 0 var(--margen) clamp(3rem, 6vw, 5rem);
  font-size: 1.1875rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
.np h2 { max-width: none; }
.np .sw-migas { padding: 1rem 0 0; font-size: 1rem; }
.np :focus-visible { outline: 3px solid var(--np-naranja-oscuro); outline-offset: 3px; }
.np a { color: var(--np-naranja-oscuro); }
@media (prefers-reduced-motion: no-preference) {
  .np a { transition: color .15s, background-color .15s, text-decoration-color .15s; }
}

/* ---------- Categorías: color y fondo suave de cada una (contraste AA con blanco y con su tinta) ---------- */
.np-cat-dgt { --cat: #1f4f94; --cat-fondo: #e4edfb; --cat-tinta: #173c72; }
.np-cat-boe { --cat: #8c1d40; --cat-fondo: #fbe6ed; --cat-tinta: #6b1230; }
.np-cat-examenes { --cat: #9a3412; --cat-fondo: #fde8da; --cat-tinta: #7c2d12; }
.np-cat-ayudas { --cat: #1e6b34; --cat-fondo: #e1f3e5; --cat-tinta: #14532d; }
.np-cat-vehiculos { --cat: #0b6b78; --cat-fondo: #dcf2f4; --cat-tinta: #0a4f59; }
.np-cat-sector { --cat: #5b3d99; --cat-fondo: #ece6f8; --cat-tinta: #43297a; }
.np-cat-agenda { --cat: #8a5a05; --cat-fondo: #fdf0cf; --cat-tinta: #6b4504; }

/* ---------- Cabecera ilustrada de la portada (carretera, señales y periódico sobre carbón cálido) ---------- */
.np-diario {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 1rem;
  padding: clamp(1rem, 2.4vw, 1.6rem) clamp(1.15rem, 4vw, 3rem) clamp(1.7rem, 3.4vw, 2.5rem);
  display: grid;
  gap: .4rem;
  text-align: left;
  color: var(--np-sobre-oscuro);
  border-radius: 26px;
  background:
    radial-gradient(34rem 20rem at 92% 0%, rgb(234 88 12 / .5), transparent 62%),
    radial-gradient(24rem 16rem at 0% 100%, rgb(245 165 36 / .16), transparent 60%),
    linear-gradient(135deg, #1d1612 0%, #38221a 55%, #55291a 100%);
  box-shadow: 0 36px 60px -40px rgb(42 33 28 / .85);
}
.np-diario::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--np-ambar) 0 26px, transparent 26px 44px);
}
.np-arte {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: min(78%, 640px);
  height: 100%;
  opacity: .5;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40%);
  mask-image: linear-gradient(90deg, transparent 0, #000 40%);
}
@media (min-width: 760px) { .np-arte { opacity: 1; width: min(62%, 640px); } }
.np-diario :focus-visible { outline-color: #ffd9a8; }
.np-diario .np-redes { border-top-color: rgb(255 255 255 / .22); justify-content: flex-start; }
.np-diario .np-redes-titulo { color: #ffe0bd; }
.np-franja {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem 1.5rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid rgb(255 255 255 / .22);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: #ffe0bd;
  text-align: left;
}
.np-franja p { margin: 0; }
.np-fecha::first-letter { text-transform: uppercase; }
.np-nombre {
  margin-top: .6rem;
  font-family: var(--np-serif);
  font-size: clamp(2.4rem, 1rem + 6vw, 5.25rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.02em;
  color: #fff;
  max-width: none;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgb(0 0 0 / .4);
}
.np-lema {
  font-family: var(--np-serif);
  font-style: italic;
  font-size: clamp(1.1875rem, .6vw + 1.05rem, 1.55rem);
  color: var(--np-sobre-oscuro);
  padding-bottom: .6rem;
}
.np-diario--mini { padding-block: .9rem 1.7rem; }
.np-nombre-mini {
  font-family: var(--np-serif);
  font-size: clamp(1.9rem, 1rem + 3vw, 2.75rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: #fff !important;
  text-decoration: none;
  justify-self: start;
  text-shadow: 0 2px 24px rgb(0 0 0 / .4);
}
.np-nombre-mini:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Navegación por segmentos: pastillas con el color y el icono de cada categoría ---------- */
.np-secciones { margin-top: 1.25rem; scroll-margin-top: 5rem; }
.np-secciones ul {
  list-style: none;
  margin: 0;
  padding: .25rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem;
}
.np-secciones a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 46px;
  padding: .3rem 1rem .3rem .8rem;
  border: 2px solid var(--cat, var(--np-regla));
  border-radius: 999px;
  background: #fff;
  color: var(--np-tinta);
  font-weight: 780;
  font-size: 1.0625rem;
  letter-spacing: .02em;
  text-decoration: none;
  transition: background-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.np-secciones a .sd-i { width: 1.35rem; height: 1.35rem; color: var(--cat, var(--np-regla)); transition: color .2s; }
.np-secciones a:hover { background: var(--cat, var(--np-regla)); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 22px -16px var(--cat, var(--np-regla)); }
.np-secciones a:hover .sd-i, .np-secciones a[aria-current="page"] .sd-i { color: #fff; }
.np-portada, .np-seccion, .np-lateral, .np-boletin, .np-vacio { scroll-margin-top: 5rem; }

/* ---------- Portada: la noticia principal y las destacadas, en tarjetas ---------- */
.np-portada { display: grid; gap: 1.25rem; padding-block: 1.75rem .5rem; }
.np-kicker {
  margin: 0 0 .5rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--np-naranja-oscuro);
}
.np-kicker a { color: inherit; text-decoration-thickness: 2px; }
.np-principal h3,
.np-destacada h3 {
  font-family: var(--np-serif);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.08;
}
.np-principal h3 { font-size: clamp(2rem, 1rem + 3.2vw, 3.6rem); }
.np-destacada h3 { font-size: clamp(1.55rem, 1.1rem + 1.2vw, 2.05rem); }
.np-principal h3 a,
.np-destacada h3 a,
.np-nota h3 a { color: var(--np-tinta); text-decoration: none; }
.np-principal h3 a:hover,
.np-destacada h3 a:hover,
.np-nota h3 a:hover { color: var(--cat-tinta, var(--np-naranja-oscuro)); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.np-principal, .np-destacada, .np-nota { display: grid; gap: .65rem; align-content: start; }
.np-principal .np-bajada { font-size: clamp(1.25rem, .5vw + 1.1rem, 1.5rem); line-height: 1.5; }
.np-destacadas { display: grid; gap: 1.25rem; align-content: start; }
@media (min-width: 760px) {
  .np-destacadas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.np-principal > :not(.np-marca) { max-width: 62rem; }


/* ---------- Piezas comunes de una noticia ---------- */
.np-meta { margin: 0; font-size: 1rem; font-weight: 600; color: var(--np-tinta-2); }
.np-bajada { margin: 0; }
.np-evento {
  margin: 0;
  display: inline-block;
  justify-self: start;
  padding: .3rem .7rem;
  background: var(--np-azul);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 760;
  border-radius: 4px;
}
.np-que {
  margin: 0;
  padding: .7rem 1rem;
  background: var(--np-tinte);
  border-left: 5px solid var(--np-ambar);
  font-size: 1.125rem;
  line-height: 1.5;
}
.np-leer {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  justify-self: start;
  min-height: 44px;
  font-weight: 780;
  font-size: 1.125rem;
  color: var(--np-naranja-oscuro);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}
.np-leer::after { content: "\2192"; content: "\2192" / ""; }
.np-leer:hover { color: var(--np-regla); }
.np-principal .np-leer { margin-top: .25rem; }

/* ---------- Cuerpo: secciones por categoría (tarjetas) y columna lateral ---------- */
.np-cuerpo {
  display: grid;
  gap: 2.5rem;
  padding-top: 2.25rem;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "lateral" "columnas";
}
.np-columnas { grid-area: columnas; display: grid; gap: 2.5rem 1.75rem; min-width: 0; align-items: start; }
.np-lateral { grid-area: lateral; min-width: 0; align-self: start; display: grid; gap: 1rem; }
.np-cuerpo--solo-lateral { grid-template-areas: "lateral"; }
.np-seccion { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.np-rotulo {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0;
  padding: .7rem 1rem;
  background: var(--cat, var(--np-regla));
  color: #fff;
  font-family: var(--fuente, "Overpass", system-ui, sans-serif);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 16px;
  border-bottom: 4px solid var(--np-ambar);
  box-shadow: 0 16px 24px -20px var(--cat, var(--np-regla));
}
.np-rotulo .sd-i { width: 1.6rem; height: 1.6rem; }
.np-rotulo--agenda { background: var(--cat, var(--np-azul)); }
.np-nota h3 { font-family: var(--np-serif); font-size: 1.55rem; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
.np-nota .np-leer { font-size: 1.0625rem; }
.np-mas-titulo { margin: 1rem 0 .25rem; font-size: 1rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--np-tinta-2); }
.np-mas { list-style: none; margin: 0; padding: 0; display: grid; }
.np-mas li { display: flex; flex-wrap: wrap; gap: .1rem .75rem; align-items: baseline; padding: .55rem 0; border-top: 1px solid var(--np-linea); font-size: 1.0625rem; line-height: 1.4; }
.np-mas time { font-size: .9375rem; font-weight: 700; color: var(--np-tinta-2); white-space: nowrap; }
.np-mas a { font-weight: 700; color: var(--np-tinta); text-underline-offset: 3px; }
.np-mas a:hover { color: var(--np-naranja-oscuro); }
@media (min-width: 760px) {
  .np-columnas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  .np-cuerpo:not(.np-cuerpo--solo-lateral) { grid-template-columns: minmax(0, 1fr) 22rem; grid-template-areas: "columnas lateral"; gap: 2.25rem; }
}


/* ---------- Fechas a tener en cuenta ---------- */
.np-fechas { list-style: none; margin: 0; padding: 0; display: grid; }
.np-fechas li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem; padding-block: 1.1rem; border-bottom: 1px solid var(--np-linea); }
.np-dia {
  display: grid;
  place-content: center;
  align-self: start;
  min-height: 4.5rem;
  padding: .3rem;
  text-align: center;
  background: #fff;
  border: 2px solid var(--np-regla);
  border-radius: 6px;
  line-height: 1;
}
.np-dia-num { font-family: var(--np-serif); font-size: 2rem; font-weight: 900; }
.np-dia-mes { margin-top: .25rem; font-size: 1rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--np-naranja-oscuro); }
.np-fecha-texto { display: grid; gap: .2rem; align-content: start; }
.np-fecha-texto a { font-weight: 760; font-size: 1.125rem; line-height: 1.3; color: var(--np-tinta); text-underline-offset: 3px; }
.np-fecha-texto a:hover { color: var(--np-naranja-oscuro); }
.np-sin-fechas { margin: 0; padding: 1.25rem 0; font-size: 1.125rem; color: var(--np-tinta-2); }

/* ---------- Estado vacío ---------- */
.np-vacio {
  display: grid;
  gap: .9rem;
  max-width: 46rem;
  margin: 2.5rem auto;
  padding: 2rem clamp(1.1rem, 3vw, 2rem);
  background: #fff;
  border: 2px solid var(--np-regla);
  border-top: 8px solid var(--np-ambar);
  text-align: left;
}
.np-vacio h2 { font-family: var(--np-serif); font-size: clamp(1.7rem, 1rem + 2vw, 2.4rem); line-height: 1.1; font-weight: 900; letter-spacing: -.01em; }
.np-vacio p { margin: 0; }

/* ---------- Página de una noticia ---------- */
.np-articulo { max-width: var(--np-ancho-texto); margin: 2.25rem auto 0; display: grid; gap: 1.1rem; }
.np-articulo header { display: grid; gap: .8rem; padding-bottom: 1.25rem; border-bottom: 3px double var(--np-regla); }
.np-articulo h1 {
  font-family: var(--np-serif);
  font-size: clamp(2rem, 1rem + 3vw, 3.25rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -.02em;
  max-width: none;
  text-wrap: balance;
  color: var(--np-tinta);
}
.np-articulo .np-bajada { font-size: clamp(1.25rem, .5vw + 1.1rem, 1.45rem); line-height: 1.5; color: var(--np-tinta-2); }
.np-texto { display: grid; gap: 1.3rem; font-size: 1.25rem; line-height: 1.7; margin-top: .5rem; }
.np-texto p { margin: 0; max-width: 62ch; }
.np-caja { margin-top: .75rem; padding: 1.25rem 1.4rem; background: #fff; border: 2px solid var(--np-regla); display: grid; gap: .6rem; }
.np-caja h2 { font-family: var(--fuente, "Overpass", system-ui, sans-serif); font-size: 1.0625rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.25; color: var(--np-naranja-oscuro); }
.np-caja p { margin: 0; }
.np-caja--que { background: var(--np-tinte); border-left: 8px solid var(--np-ambar); }
.np-caja--que p { font-size: 1.25rem; }
.np-aviso { font-size: 1rem; color: var(--np-tinta-2); }
.np-relacionadas { max-width: var(--np-ancho-texto); margin: 2.5rem auto 0; display: grid; gap: .5rem; }
.np-relacionadas .np-mas li { padding-block: .75rem; }
.np-volver { max-width: var(--np-ancho-texto); margin: 2rem auto 0; }

/* ---------- Suscripción por correo ---------- */
.np-boletin {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--np-regla);
  color: var(--np-sobre-oscuro);
  border-top: 6px solid var(--np-ambar);
  border-radius: 4px;
}
.np-boletin h2 { font-family: var(--np-serif); font-size: clamp(1.75rem, 1rem + 1.6vw, 2.5rem); line-height: 1.1; font-weight: 900; letter-spacing: -.01em; color: #fff; }
.np-boletin p { margin: 0; }
.np-boletin-texto { display: grid; gap: .9rem; align-content: start; }
.np-boletin-accion { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.np-boletin a { color: #ffd9a8; }
.np-boletin a:hover { color: #fff; }
.np-boletin :focus-visible { outline-color: #ffd9a8; }
.np-form { display: grid; gap: 1.1rem; position: relative; }
.np-campo { display: grid; gap: .4rem; }
.np-campo label { font-size: 1.1875rem; font-weight: 720; color: #fff; }
.np-campo input {
  width: 100%;
  min-height: 56px;
  padding: .55rem .9rem;
  font: inherit;
  font-size: 1.25rem;
  color: var(--np-tinta);
  background: #fff;
  border: 2px solid var(--np-campo);
  border-radius: 8px;
}
.np-campo input[aria-invalid="true"] { border-color: #ff8a8a; box-shadow: 0 0 0 3px #ff8a8a; }
.np-casilla { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: .8rem; align-items: start; }
.np-casilla input { width: 1.75rem; height: 1.75rem; margin: .1rem 0 0; accent-color: var(--np-naranja); }
.np-casilla label { font-size: 1.125rem; line-height: 1.45; color: #fff; }
.np-form .boton { width: 100%; }
.np-form .boton[disabled] { opacity: .65; cursor: progress; }
.np-trampa { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.np-mensaje {
  padding: .8rem 1rem;
  background: #fff;
  color: var(--np-tinta);
  border-left: 6px solid var(--np-azul);
  border-radius: 4px;
  font-size: 1.125rem;
  font-weight: 650;
  line-height: 1.45;
}
.np-mensaje:empty { padding: 0; border-width: 0; }
.np-mensaje[data-tipo="ok"] { background: var(--np-verde-fondo); border-left-color: var(--np-verde); }
.np-mensaje[data-tipo="error"] { background: var(--np-rojo-fondo); border-left-color: var(--np-rojo); }
.np-mensaje a { color: var(--np-naranja-oscuro); }
.np-mensaje a:hover { color: var(--np-regla); }
@media (min-width: 900px) {
  .np-boletin { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; align-items: start; }
  .np-form .boton { width: auto; justify-self: start; }
}

/* ---------- Pantallas pequeñas ---------- */
@media (max-width: 420px) {
  .np { font-size: 1.125rem; }
  .np-franja { flex-direction: column; }
  .np-secciones a { padding-inline: .7rem; font-size: 1rem; }
  .np-fechas li { grid-template-columns: 4rem minmax(0, 1fr); gap: .8rem; }
  .np-dia { min-height: 4rem; }
  .np-caja { padding: 1rem; }
}
.np-casilla input[aria-invalid="true"] { outline: 3px solid #ff8a8a; outline-offset: 2px; }
.np-sep { display: inline-block; margin-inline: .5rem; }

/* =====================================================================
   Ampliación 10-nov-2026: categorías, lupa de búsqueda y redes sociales
   ===================================================================== */

/* ---------- Barra de secciones: contador y sección activa ---------- */
.np-secciones a { gap: .1rem; padding-inline: .7rem; letter-spacing: .03em; }
.np-cuenta {
  display: inline-grid;
  place-items: center;
  min-width: 1.65rem;
  height: 1.65rem;
  margin-left: .4rem;
  padding: 0 .4rem;
  border-radius: 999px;
  background: var(--np-ambar);
  color: var(--np-tinta);
  font-size: .9375rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}
.np-secciones a[aria-current="page"] { background: var(--np-regla); color: #fff; box-shadow: inset 0 -4px 0 var(--np-ambar); }

/* ---------- Redes sociales (franja de la cabecera y caja de suscripción) ---------- */
.np-redes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .4rem .9rem;
  margin-top: .45rem;
  padding-top: .85rem;
  border-top: 1px solid var(--np-linea);
}
.np-redes-titulo { margin: 0; font-size: 1.0625rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--np-tinta-2); }
.np-redes-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem .6rem; }
.np-redes-lista li { display: flex; }
.np .np-red {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .3rem .95rem .3rem .75rem;
  background: #fff;
  border: 2px solid var(--np-regla);
  border-radius: 999px;
  color: var(--np-tinta);
  font-size: 1.0625rem;
  font-weight: 760;
  line-height: 1.2;
  text-decoration: none;
}
.np .np-red:hover { background: var(--np-regla); color: #fff; }
.np-red-ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.np-redes--oscuro { justify-content: flex-start; margin-top: .25rem; border-top-color: rgb(255 255 255 / .25); }
.np-redes--oscuro .np-redes-titulo { color: #fff; }
.np-redes--oscuro .np-redes-lista { justify-content: flex-start; }
.np .np-redes--oscuro .np-red { background: transparent; border-color: rgb(255 255 255 / .6); color: #fff; }
.np .np-redes--oscuro .np-red:hover { background: #fff; color: var(--np-regla); }

/* ---------- Lupa de búsqueda ---------- */
.np-buscar { padding-top: 1.5rem; }
.np-buscador { display: grid; gap: .5rem; max-width: 52rem; margin-inline: auto; }
.np-buscador-etiqueta { font-size: 1.1875rem; font-weight: 800; color: var(--np-tinta); }
.np-buscador-fila { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; }
.np-buscador-campo {
  width: 100%;
  min-height: 56px;
  padding: .55rem .9rem;
  font: inherit;
  font-size: 1.25rem;
  color: var(--np-tinta);
  background: #fff;
  border: 2px solid var(--np-campo);
  border-radius: 8px;
}
.np-buscador-campo::placeholder { color: var(--np-tinta-2); opacity: 1; }
.np-buscador-boton { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 56px; padding-inline: 1.4rem; font-size: 1.1875rem; }
.np-lupa { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.np-resultados {
  display: grid;
  gap: .6rem;
  max-width: 52rem;
  margin: 1.25rem auto 0;
  padding: 1.25rem clamp(1rem, 3vw, 1.5rem) 1.4rem;
  background: #fff;
  border: 2px solid var(--np-regla);
  border-top: 6px solid var(--np-ambar);
}
.np-resultados[hidden] { display: none; }
.np-resultados-recuento { margin: 0; font-size: 1.3rem; font-weight: 800; line-height: 1.3; }
.np-resultados-ayuda { margin: 0; font-size: 1.1875rem; color: var(--np-tinta-2); }
.np-resultados-lista { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; }
.np-resultado { display: grid; gap: .45rem; padding: 1rem 0; border-top: 1px solid var(--np-linea); }
.np-resultado .np-kicker { margin: 0; font-size: .9375rem; }
.np-resultado-titular { margin: 0; font-family: var(--np-serif); font-size: 1.45rem; font-weight: 800; line-height: 1.2; }
.np .np-resultado-titular a { color: var(--np-tinta); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.np .np-resultado-titular a:hover { color: var(--np-naranja-oscuro); }
.np-resultado-bajada { margin: 0; font-size: 1.125rem; line-height: 1.5; }
.np-resultados-borrar {
  justify-self: start;
  min-height: 48px;
  margin-top: .4rem;
  padding: .4rem 1.1rem;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 760;
  color: var(--np-tinta);
  background: #fff;
  border: 2px solid var(--np-regla);
  border-radius: 8px;
  cursor: pointer;
}
.np-resultados-borrar:hover { background: var(--np-regla); color: #fff; }

/* ---------- Enlace grande a una categoría ---------- */
.np-ver-todas { margin: 1.25rem 0 0; }
.np .np-categoria-enlace {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 56px;
  padding: .7rem 1.1rem;
  background: #fff;
  border: 3px solid var(--np-regla);
  border-radius: 8px;
  color: var(--np-tinta);
  font-size: 1.1875rem;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}
.np-categoria-enlace::after { content: "\2192"; content: "\2192" / ""; flex: none; font-size: 1.4rem; }
.np .np-categoria-enlace:hover { background: var(--np-regla); color: #fff; }

/* ---------- Página de categoría ---------- */
.np-categoria { max-width: 68rem; margin: 2.25rem auto 0; }
.np-categoria-cab { display: grid; gap: .7rem; padding-bottom: 1.25rem; border-bottom: 3px double var(--np-regla); }
.np-categoria-cab .np-kicker { margin: 0; }
.np-categoria-cab h1 {
  font-family: var(--np-serif);
  font-size: clamp(2rem, 1rem + 3vw, 3.25rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -.02em;
  max-width: none;
  text-wrap: balance;
  color: var(--np-tinta);
}
.np-categoria-intro { margin: 0; max-width: 48rem; font-size: clamp(1.25rem, .5vw + 1.1rem, 1.45rem); line-height: 1.5; color: var(--np-tinta-2); }
.np-categoria-lista { display: grid; gap: 0 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); padding-top: .5rem; }
.np-volver--cat { max-width: none; margin: 1.5rem 0 0; }
.np-volver + .np-volver { margin-top: .5rem; }

@media (max-width: 480px) {
  .np-buscador-fila { grid-template-columns: minmax(0, 1fr); }
  .np-buscador-boton { width: 100%; }
  .np-secciones a { padding-inline: .6rem; }
  .np-cuenta { margin-left: .3rem; }
}
@media (forced-colors: active) {
  .np .np-red, .np .np-categoria-enlace, .np-resultados-borrar { border-color: CanvasText; }
}

/* =====================================================================
   Rediseño 12-nov-2026: tarjetas con icono y color por categoría, cabecera ilustrada, páginas de noticia y
   categoría más vivas. Los iconos salen del sprite de cada página (clase .sd-i, definida en seo-paginas.css).
   ===================================================================== */
@media (max-width: 759px) { .np-arte { opacity: .3; } }
.np-sep { display: inline-block; margin-inline: .5rem; }

/* ---------- Iconos y pastillas de categoría ---------- */
.np .sd-i { width: 1.4rem; height: 1.4rem; }
.np-pastilla {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  justify-self: start;
  width: fit-content;
  margin: 0;
  padding: .3rem .85rem .3rem .6rem;
  border-radius: 999px;
  background: var(--cat-fondo, var(--np-tinte));
  color: var(--cat-tinta, var(--np-naranja-oscuro));
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1.2;
  text-transform: uppercase;
}
.np-pastilla .sd-i { width: 1.2rem; height: 1.2rem; color: var(--cat, var(--np-naranja)); }
.np .np-pastilla a { color: inherit; text-decoration: none; }
.np .np-pastilla a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }

/* ---------- Tarjetas ---------- */
.np-tarjeta {
  position: relative;
  padding: 1.25rem 1.35rem 1.4rem;
  background: #fff;
  border: 1px solid var(--np-linea);
  border-top: 5px solid var(--cat, var(--np-regla));
  border-radius: 18px;
  box-shadow: 0 1px 0 rgb(42 33 28 / .04), 0 16px 30px -24px rgb(42 33 28 / .6);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.np-tarjeta:hover { transform: translateY(-3px); box-shadow: 0 26px 40px -28px var(--cat, rgb(42 33 28)); }
.np-principal.np-tarjeta {
  overflow: hidden;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  border-top-width: 8px;
  background: linear-gradient(180deg, var(--cat-fondo, #fff) 0%, #fff 58%);
}
.np-principal .np-pastilla { background: #fff; }
.np-marca { position: absolute; right: 1.1rem; top: 1.1rem; width: clamp(4.5rem, 10vw, 8rem); height: clamp(4.5rem, 10vw, 8rem); color: var(--cat); opacity: .14; pointer-events: none; }
.np .np-marca .sd-i { width: 100%; height: 100%; stroke-width: 1.1; }
.np-nota.np-tarjeta { border-top: 1px solid var(--np-linea); border-left: 6px solid var(--cat, var(--np-regla)); }
.np-que {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .75rem;
  align-items: start;
  padding: .85rem 1rem;
  background: var(--cat-fondo, var(--np-tinte));
  border-left: 5px solid var(--cat, var(--np-ambar));
  border-radius: 12px;
}
.np-que .sd-i { margin-top: .12rem; color: var(--cat, var(--np-naranja-oscuro)); }
.np-leer { color: var(--cat-tinta, var(--np-naranja-oscuro)); }
.np-leer:hover { color: var(--np-regla); }

/* ---------- Columna lateral: fechas ---------- */
.np-lateral { --cat: #8a5a05; --cat-fondo: #fdf0cf; --cat-tinta: #6b4504; padding: 1rem 1.15rem 1.25rem; background: #fff; border: 1px solid var(--np-linea); border-radius: 22px; box-shadow: 0 16px 30px -26px rgb(42 33 28 / .6); }
.np-fechas li:last-child { border-bottom: 0; }
.np-dia { background: var(--cat-fondo, #fff); border-color: var(--cat, var(--np-regla)); border-radius: 12px; }
.np-dia-num { color: var(--cat-tinta, var(--np-tinta)); }
.np-dia-mes { color: var(--cat, var(--np-naranja-oscuro)); }

/* ---------- Enlace grande a la categoría ---------- */
.np .np-categoria-enlace { justify-content: flex-start; gap: .75rem; border-color: var(--cat, var(--np-regla)); border-radius: 14px; }
.np .np-categoria-enlace .sd-i { color: var(--cat, var(--np-regla)); }
.np-categoria-enlace::after { margin-left: auto; }
.np .np-categoria-enlace:hover { background: var(--cat, var(--np-regla)); color: #fff; }
.np .np-categoria-enlace:hover .sd-i { color: #fff; }

/* ---------- Lupa de búsqueda en tarjeta ---------- */
.np-buscar { margin-top: 1.25rem; padding: 1.1rem clamp(1rem, 3vw, 1.75rem) 1.35rem; background: #fff; border: 1px solid var(--np-linea); border-radius: 20px; box-shadow: 0 16px 30px -26px rgb(42 33 28 / .6); }
.np-buscador-campo { border-radius: 12px; }
.np-buscador-campo:focus-visible { outline: none; border-color: var(--np-naranja-oscuro); box-shadow: 0 0 0 4px rgb(194 65 12 / .22); }
.np-resultados { border-radius: 16px; }

/* ---------- Página de una noticia ---------- */
.np-articulo header {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(180deg, var(--cat-fondo, var(--np-tinte)) 0%, #fff 70%);
  border: 1px solid var(--np-linea);
  border-top: 8px solid var(--cat, var(--np-regla));
  border-radius: 20px;
}
.np-articulo .np-evento { background: var(--cat, var(--np-azul)); }
@media (min-width: 640px) {
  .np-texto > p:first-child::first-letter {
    float: left;
    padding: .06em .12em 0 0;
    font-family: var(--np-serif);
    font-size: 3.7em;
    font-weight: 900;
    line-height: .85;
    color: var(--cat, var(--np-naranja-oscuro));
  }
}
.np-caja { border-radius: 18px; border: 1px solid var(--np-linea); border-left: 8px solid var(--np-regla); box-shadow: 0 16px 30px -26px rgb(42 33 28 / .6); }
.np-caja h2 { display: flex; align-items: center; gap: .6rem; color: var(--cat-tinta, var(--np-naranja-oscuro)); }
.np-caja h2 .sd-i { width: 1.6rem; height: 1.6rem; color: var(--cat, var(--np-naranja)); }
.np-caja--que { background: var(--cat-fondo, var(--np-tinte)); border-left-color: var(--cat, var(--np-ambar)); }
.np-caja--fuente { border-left-color: var(--np-regla); }
.np-mas li { align-items: center; }
.np-mini-icono { display: inline-grid; place-items: center; width: 2rem; height: 2rem; flex: none; border-radius: 50%; background: var(--cat-fondo, var(--np-tinte)); color: var(--cat, var(--np-naranja)); }
.np .np-mini-icono .sd-i { width: 1.15rem; height: 1.15rem; }

/* ---------- Página de una categoría ---------- */
.np-categoria-cab {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(135deg, var(--cat-fondo, var(--np-tinte)) 0%, #fff 78%);
  border: 1px solid var(--np-linea);
  border-left: 10px solid var(--cat, var(--np-regla));
  border-radius: 20px;
}
.np-categoria-cab > * { position: relative; }
.np-categoria-cab .np-kicker { color: var(--cat-tinta, var(--np-naranja-oscuro)); }
.np-icono-grande { position: absolute !important; right: 1.25rem; top: 1rem; width: clamp(5rem, 12vw, 9rem); height: clamp(5rem, 12vw, 9rem); color: var(--cat); opacity: .16; pointer-events: none; }
.np .np-icono-grande .sd-i { width: 100%; height: 100%; stroke-width: 1.1; }
.np-categoria-lista { gap: 1.25rem 1.5rem; padding-top: 1.5rem; }

/* ---------- Suscripción por correo ---------- */
.np-boletin {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-top: 0;
  border-radius: 26px;
  background:
    radial-gradient(30rem 18rem at 100% 0%, rgb(234 88 12 / .45), transparent 62%),
    linear-gradient(135deg, #1d1612 0%, #38221a 60%, #55291a 100%);
}
.np-boletin::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--np-ambar) 0 26px, transparent 26px 44px); }
.np-campo input, .np-casilla input { border-radius: 10px; }

/* ---------- Preferencias de movimiento y contraste forzado ---------- */
@media (prefers-reduced-motion: reduce) {
  .np-tarjeta, .np-secciones a { transition: none; }
  .np-tarjeta:hover, .np-secciones a:hover { transform: none; }
}
@media (forced-colors: active) {
  .np-tarjeta, .np-buscar, .np-lateral, .np-caja, .np-articulo header, .np-categoria-cab, .np-secciones a, .np-pastilla { border-color: CanvasText; }
}
@media (max-width: 480px) { .np-buscador-campo { font-size: 1.125rem; } }
@media (max-width: 480px) {
  .np-secciones ul { gap: .4rem; }
  .np-secciones a { min-height: 44px; padding: .2rem .7rem .2rem .55rem; gap: .35rem; font-size: 1rem; }
  .np-secciones a .sd-i { width: 1.2rem; height: 1.2rem; }
  .np-cuenta { min-width: 1.5rem; height: 1.5rem; }
}
