/* =====================================================================
   Memoria y Resistencia — portada (Index) en el estilo del manual (19 nov 2026, Daniel: «se ve muy desajustado»).
   Va después de portada.css, inicio-claro.css y nocturno.css (inicio.php). Quitar su <link> devuelve la portada anterior.
   Reglas del manual (apartado 4): una sola tarjeta de noche lisa (encabezado complejo permitido a la portada),
   esquinas 22 px, sin luces, sin listones, sin animación; el resto son tarjetas blancas de 1 px #e3dded, 18 px, sin sombra.
   Escala de espacio 8 / 16 / 24 / 32 / 48. Botones de 12 px y 44 px mínimo.
   ===================================================================== */

/* ---------- Fondo y ritmo de toda la portada ----------
   La sección ya no se llama «portada» ni «linea-seccion»: así no le llegan el fondo de noche de portada.css/linea.css/vida.css
   ni la regla de hp-contenido.css que pintaba TODA la sección de noche. La noche queda solo en .portada-tarjeta. */
html body.hp-sitio .portada-seccion {
  --l-legal: #a77bf0; --l-agresion: #3fd19a; --l-desaparecido: #f5a524; --l-obituario: #4fb0f5; --l-otro: #c3bccf;
  position: relative; background: transparent; color: #211a2c; padding: 24px 0 0; margin: 0;
}
html body.hp-sitio .portada-seccion .contenedor { max-width: 72rem; margin-inline: auto; padding-inline: 24px; }
html body.hp-sitio .portada-seccion .leaflet-control-zoom { display: none; }
html body.hp-sitio .portada-seccion .leaflet-top.leaflet-right { top: auto; bottom: 4.2rem; }

/* ---------- La tarjeta de noche: texto + mapa ---------- */
html body.hp-sitio .portada-tarjeta {
  display: grid; gap: 32px; align-items: stretch; min-height: 0; max-width: none;
  padding: 32px; border-radius: 22px; overflow: hidden; box-shadow: none;
  background: linear-gradient(100deg, #15122b, #2a1d56 55%, #4a2d80); color: #f4f1f8;
}
@media (min-width: 1100px) {
  html body.hp-sitio .portada-tarjeta { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; padding: 40px; }
}
html body.hp-sitio .portada-texto { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
html body.hp-sitio .portada-sello {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 24px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #f4f1f8; font-size: .85rem; font-weight: 700;
}
html body.hp-sitio .portada-tarjeta h1 {
  margin: 0; max-width: 14ch; color: #fff; font-family: "Source Serif 4", Georgia, serif; font-weight: 600;
  font-size: clamp(2.1rem, 3.6vw, 3.1rem); line-height: 1.08; letter-spacing: -.02em;
}
html body.hp-sitio .portada-tarjeta h1 em { font-style: italic; font-weight: 500; color: #d9c8f5; }
html body.hp-sitio .portada-lead { margin: 24px 0 0; max-width: 34rem; color: #e4def0; font-size: 1.0625rem; line-height: 1.6; }
html body.hp-sitio .portada-acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
html body.hp-sitio .portada-acciones .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px;
  border-radius: 12px; font-size: 1rem; font-weight: 700; line-height: 1.25; text-decoration: none; box-shadow: none;
}
html body.hp-sitio .portada-acciones .portada-btn-principal { background: #fff; border: 2px solid #fff; color: #15122b; }
html body.hp-sitio .portada-acciones .portada-btn-principal:hover { background: #efe6fb; border-color: #efe6fb; color: #15122b; }
html body.hp-sitio .portada-acciones .portada-btn-contorno { background: transparent; border: 2px solid rgba(255, 255, 255, .55); color: #fff; }
html body.hp-sitio .portada-acciones .portada-btn-contorno:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
html body.hp-sitio .portada-acciones .btn:focus-visible { outline: 3px solid #9db6ff; outline-offset: 2px; }

/* Cifras dentro de la tarjeta: una fila lisa, sin cajas */
html body.hp-sitio .portada-cifras,
html body.hp-sitio .portada-cifras:has(> div:nth-child(4)) {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; max-width: none; width: 100%;
  margin: 32px 0 0; padding: 24px 0 0; border-top: 1px solid rgba(255, 255, 255, .18);
}
html body.hp-sitio .portada-cifras > div,
html body.hp-sitio .portada-cifras:has(> div:nth-child(4)) > div {
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding: 0; border: 0; background: none; border-radius: 0;
}
html body.hp-sitio .portada-cifras dd,
html body.hp-sitio .portada-cifras:has(> div:nth-child(4)) dd {
  margin: 0; color: #fff; font-family: "Source Serif 4", Georgia, serif; font-size: 1.75rem; font-weight: 600; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums;
}
html body.hp-sitio .portada-cifras dt,
html body.hp-sitio .portada-cifras:has(> div:nth-child(4)) dt { margin: 0; color: #d6cde8; font-size: .875rem; font-weight: 500; line-height: 1.3; }
@media (max-width: 1099.98px) and (min-width: 640px) { html body.hp-sitio .portada-cifras, html body.hp-sitio .portada-cifras:has(> div:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- El mapa dentro de la tarjeta ---------- */
html body.hp-sitio .portada-mapa { min-width: 0; display: flex; flex-direction: column; }
html body.hp-sitio .portada-seccion .linea-mapa-marco {
  position: relative; border-radius: 16px; box-shadow: none; background: rgba(9, 6, 22, .45); border: 1px solid rgba(255, 255, 255, .14); overflow: hidden;
}
html body.hp-sitio .portada-seccion .linea-mapa-marco::after { content: none; display: none; }
html body.hp-sitio .portada-seccion .linea-mapa { height: clamp(340px, 46vw, 460px); background: transparent; }
html body.hp-sitio .portada-seccion .portada-anio { right: 16px; top: 12px; }
html body.hp-sitio .portada-seccion .portada-anio > span { font-size: clamp(2.2rem, 4vw, 3.2rem); }
html body.hp-sitio .portada-seccion .portada-anio > span.decada { font-size: clamp(1.7rem, 3vw, 2.3rem); }
html body.hp-sitio .portada-seccion .linea-leyenda { left: 12px; right: 12px; bottom: 12px; border-radius: 12px; }
html body.hp-sitio .portada-seccion .linea-control { margin-top: 16px; }
html body.hp-sitio .portada-seccion .linea-nota { margin: 12px 0 0; max-width: none; font-size: .8125rem; line-height: 1.5; color: #cfc6dd; }
html body.hp-sitio .portada-seccion .linea-nota a { color: #e4d6fb; }
@media (max-width: 575.98px) {
  html body.hp-sitio .portada-seccion .contenedor { padding-inline: 16px; }
  html body.hp-sitio .portada-tarjeta { padding: 24px 16px; border-radius: 18px; }
  html body.hp-sitio .portada-seccion .linea-mapa { height: 360px; }
  html body.hp-sitio .portada-acciones .btn { flex: 1 1 100%; }
}

/* ---------- «¿Qué estás buscando?»: tarjetas blancas, fuera de la noche ---------- */
html body.hp-sitio .portada-debajo { margin-top: 32px; }
html body.hp-sitio .portada-opciones { margin: 0; }
html body.hp-sitio .portada-opciones-titulo {
  margin: 0 0 16px; color: #211a2c; font-family: "Source Serif 4", Georgia, serif; font-size: 1.5rem; font-weight: 600; letter-spacing: 0;
}
html body.hp-sitio .portada-opciones ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 640px) { html body.hp-sitio .portada-opciones ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { html body.hp-sitio .portada-opciones ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
html body.hp-sitio .portada-opciones a {
  display: flex; align-items: center; gap: 12px; min-height: 64px; height: 100%; padding: 12px 16px;
  border: 1px solid #e3dded; border-radius: 18px; background: #fff; color: #211a2c; font-size: 1rem; font-weight: 700; line-height: 1.3; text-decoration: none; box-shadow: none;
}
html body.hp-sitio .portada-opciones a:hover { border-color: #b9a3e0; background: #faf7fe; color: #211a2c; }
html body.hp-sitio .portada-opciones a:focus-visible { outline: 3px solid #2150d0; outline-offset: 2px; }
html body.hp-sitio .portada-opciones a > i {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #efe6fb; color: #6b3fa6; font-size: 1.05rem;
}
html body.hp-sitio .portada-opciones .portada-opcion-turing { grid-column: auto; }
html body.hp-sitio .portada-opciones .portada-opcion-turing a { background: #fff; border-color: #c9d6f7; }
html body.hp-sitio .portada-opciones .portada-opcion-turing a > img,
html body.hp-sitio .portada-opciones .portada-opcion-turing a > svg,
html body.hp-sitio .portada-opciones .portada-opcion-turing a > .turing-logo { flex: none; width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: #e0e8ff; box-sizing: border-box; }

/* ---------- Bloques de abajo: fondo de página y tarjetas ---------- */
html body.hp-sitio .nc-pt-bloque,
html body.hp-sitio .nc-pt-puertas { background: transparent; padding: 48px 0 0 !important; }
html body.hp-sitio .nc-pt-bloque + .nc-pt-bloque { padding-top: 48px !important; }
html body.hp-sitio .nc-pt-aniv + .nc-pt-bloque { padding-top: 48px !important; }
html body.hp-sitio .nc-pt-bloque:last-of-type { padding-bottom: 48px; }
html body.hp-sitio .nc-pt-bloque > .contenedor,
html body.hp-sitio .aniv-seccion > .contenedor { max-width: 72rem; padding-inline: 24px; }
@media (max-width: 575.98px) { html body.hp-sitio .nc-pt-bloque > .contenedor, html body.hp-sitio .aniv-seccion > .contenedor { padding-inline: 16px; } }
html body.hp-sitio .nc-pt-bloque .nc-eyebrow { color: #5f5870; font-size: .75rem; letter-spacing: .12em; }
html body.hp-sitio .nc-pt-bloque .nc-h2 {
  margin: 8px 0 0; color: #211a2c; font-family: "Source Serif 4", Georgia, serif; font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: 0;
}
html body.hp-sitio .nc-pt-lead { margin: 12px 0 0; max-width: 44rem; color: #5f5870; font-size: 1rem; line-height: 1.6; }
html body.hp-sitio .nc-pt-lead a { color: #6b3fa6; }

/* Turing, el corazón del sitio: tarjeta blanca con acento azul de 4 px */
html body.hp-sitio .pt-turing-caja {
  border: 1px solid #e3dded; border-radius: 18px; background: #fff; box-shadow: inset 4px 0 0 #2150d0; padding: 32px 32px 32px 36px;
}
html body.hp-sitio .pt-turing-caja .nc-eyebrow { color: #2150d0; }
html body.hp-sitio .pt-turing-lista { gap: 16px; margin: 24px 0; max-width: 46rem; }
html body.hp-sitio .pt-turing-lista li { padding-left: 0; border-left: 0; line-height: 1.6; color: #211a2c; }
html body.hp-sitio .pt-turing-lista li strong { color: #2150d0; }
html body.hp-sitio .nc-pt-acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
html body.hp-sitio .pt-turing-lista + .nc-pt-acciones { margin-top: 0; }
html body.hp-sitio .nc-pt-bloque .nc-btn-perla,
html body.hp-sitio .nc-pt-bloque .nc-btn-contorno {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 12px;
  font-size: 1rem; font-weight: 700; line-height: 1.25; text-decoration: none; box-shadow: none;
}
html body.hp-sitio .nc-pt-bloque .nc-btn-perla { background: #7b4bb7; color: #fff; border: 2px solid #7b4bb7; }
html body.hp-sitio .nc-pt-bloque .nc-btn-perla:hover { background: #643a9a; border-color: #643a9a; color: #fff; }
html body.hp-sitio .nc-pt-bloque .nc-btn-contorno { background: #fff; color: #6b3fa6; border: 2px solid #7b4bb7; }
html body.hp-sitio .nc-pt-bloque .nc-btn-contorno:hover { background: #efe6fb; color: #43307d; }
html body.hp-sitio .pt-turing-caja .nc-btn-perla { background: #2150d0; border-color: #2150d0; color: #fff; }
html body.hp-sitio .pt-turing-caja .nc-btn-perla:hover { background: #1a40a8; border-color: #1a40a8; color: #fff; }
html body.hp-sitio .pt-turing-caja .nc-btn-contorno { color: #2150d0; border-color: #2150d0; }
html body.hp-sitio .pt-turing-caja .nc-btn-contorno:hover { background: #e0e8ff; color: #1a40a8; }

/* Cinco secciones: tarjetas blancas, color de la sección solo en el acento de 4 px, el chip y la cifra */
html body.hp-sitio .nc-puertas { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 24px; }
@media (min-width: 640px) { html body.hp-sitio .nc-puertas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { html body.hp-sitio .nc-puertas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
html body.hp-sitio .nc-puerta {
  --pc: #6b3fa6; --pt: #efe6fb;
  display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #fff; color: #211a2c;
  border: 1px solid #e3dded; box-shadow: inset 0 4px 0 var(--pc); transform: none; transition: border-color .15s;
}
html body.hp-sitio .nc-puerta:nth-child(1) { --pc: #12806a; --pt: #dcf4ed; }
html body.hp-sitio .nc-puerta:nth-child(2) { --pc: #1a74c4; --pt: #def0fb; }
html body.hp-sitio .nc-puerta:nth-child(3) { --pc: #c2410c; --pt: #fde8da; }
html body.hp-sitio .nc-puerta:nth-child(4) { --pc: #0b7f78; --pt: #d9f3f0; }
html body.hp-sitio .nc-puerta:nth-child(5) { --pc: #7a3fb8; --pt: #efe3fb; }
html body.hp-sitio .nc-puerta:hover { color: #211a2c; transform: none; border-color: var(--pc); box-shadow: inset 0 4px 0 var(--pc); }
html body.hp-sitio .nc-puerta:focus-visible { outline: 3px solid #2150d0; outline-offset: 2px; }
html body.hp-sitio .nc-puerta .nc-franja { display: none; }
@media (min-width: 1100px) { html body.hp-sitio .nc-puerta:nth-child(5):last-child { grid-column: span 2; } }
html body.hp-sitio .nc-puerta-cuerpo { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px; flex: 1; }
html body.hp-sitio .nc-puerta .nc-chip {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 4px 10px; border-radius: 999px; background: var(--pt); color: var(--pc);
  font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
html body.hp-sitio .nc-puerta-pregunta { margin: 8px 0 0; color: #211a2c; font-family: "Source Serif 4", Georgia, serif; font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
html body.hp-sitio .nc-puerta .nc-num { margin: 0; color: var(--pc); font-family: "Source Serif 4", Georgia, serif; font-size: 2rem; font-weight: 600; line-height: 1.1; }
html body.hp-sitio .nc-puerta-texto { color: #5f5870; font-size: .9375rem; line-height: 1.5; }
html body.hp-sitio .nc-puerta-ir { margin-top: auto; padding-top: 12px; color: var(--pc); font-size: .9375rem; font-weight: 800; }

/* Reportar un caso: tarjeta blanca, sin ondas */
html body.hp-sitio .nc-pt-reportar {
  display: block; border: 1px solid #e3dded; border-radius: 18px; background: #fff; color: #211a2c; box-shadow: inset 4px 0 0 #7b4bb7; overflow: hidden;
}
html body.hp-sitio .nc-pt-reportar-texto { padding: 32px 32px 32px 36px; }
html body.hp-sitio .nc-pt-ondas { display: none; }
html body.hp-sitio .nc-pt-reportar .nc-chip {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 4px 10px; border-radius: 999px; background: #efe6fb; color: #6b3fa6;
  font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
html body.hp-sitio .nc-pt-reportar h2 { margin: 16px 0 0; color: #211a2c; font-family: "Source Serif 4", Georgia, serif; font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; }
html body.hp-sitio .nc-pt-reportar p { margin: 12px 0 0; max-width: 40rem; color: #5f5870; font-size: 1rem; line-height: 1.6; }
html body.hp-sitio .nc-pt-reportar p.nc-chip { color: #6b3fa6; margin: 0; }
html body.hp-sitio .nc-pt-reportar .nc-pt-acciones { margin-top: 24px; }

@media (max-width: 575.98px) {
  html body.hp-sitio .pt-turing-caja { padding: 24px 16px 24px 20px; }
  html body.hp-sitio .nc-pt-reportar-texto { padding: 24px 16px 24px 20px; }
  html body.hp-sitio .nc-puerta-cuerpo { padding: 16px; }
  html body.hp-sitio .nc-pt-bloque .nc-btn-perla, html body.hp-sitio .nc-pt-bloque .nc-btn-contorno { flex: 1 1 100%; }
}

/* Calma: nada se mueve solo */
html body.hp-sitio .portada-seccion *, html body.hp-sitio .nc-pt-bloque * { animation: none; }
