/* ======================================================================================================================
   Ruta NL 2.0 — Encargo 099. Sistema visual de la web pública (solo rutanl.com: la aplicación no carga esta hoja).
   Se carga después de estilos.css (compartida con la app) y web.css. Redefine los tokens y da forma editorial a todas las
   plantillas. Sin dependencias, sin fuentes remotas, sin imágenes externas: las ilustraciones son SVG en línea que toman
   sus colores de las variables --i*. Claro y oscuro con el mismo cuidado (data-tema y prefers-color-scheme).

   Paleta, por identidad y accesibilidad:
   - Tinta (azul petróleo muy oscuro) para la marca, títulos y bandas: serio, legible y nada «SaaS».
   - Papel crema en lugar de blanco azulado: lectura cálida y menos fatiga en textos largos.
   - Naranja neerlandés como acento (solo en detalles y números, nunca en texto pequeño claro sobre claro).
   - El verde de la marca (los puntos del logotipo y «NL») para las acciones.
   Contrastes comprobados (texto normal ≥ 4,5:1): texto 14,6:1 · texto suave 6,1:1 · enlace 6,6:1 · naranja-texto 5,0:1 sobre papel;
   en oscuro: texto 14,2:1 · suave 8,1:1 · enlace 9,6:1 · naranja 7,4:1 sobre el fondo.
   ====================================================================================================================== */

:root {
  --tinta-900: #0b1e2c; --tinta-800: #10293b; --tinta-700: #17384f; --petroleo: #1d5b78; --petroleo-claro: #d8e8ee;
  --papel: #f7f2e9; --papel-2: #efe7d8; --papel-3: #e6dcc9; --hueso: #fffcf6;
  --naranja: #e8711f; --naranja-texto: #a9460b; --naranja-suave: #fbe6d4;
  --verde: #17754f; --verde-claro: #7fd6ae;

  --fondo: var(--papel); --superficie: var(--hueso); --suave: var(--papel-2);
  --texto: #1d2430; --texto-suave: #545c69; --titulo: var(--tinta-900);
  --borde: #ded3bf; --borde-fuerte: var(--tinta-800); --borde-acento: var(--petroleo);
  --enlace: #1b5874; --enlace-hover: var(--tinta-900);
  --marca: var(--tinta-900); --marca-2: var(--tinta-700); --sobre-marca: #fffaf0;
  --accion: var(--verde); --accion-texto: #12603f; --accion-borde: var(--verde); --accion-suave: #e3f2e9;
  --acento: var(--naranja); --acento-texto: var(--naranja-texto); --acento-suave: var(--naranja-suave);
  --sombra: 0 1px 2px rgba(11, 30, 44, .05), 0 10px 30px -12px rgba(11, 30, 44, .16);
  --sombra-alta: 0 2px 4px rgba(11, 30, 44, .06), 0 24px 48px -20px rgba(11, 30, 44, .28);
  --radio: 18px; --radio-s: 10px; --ancho: 1180px; --lectura: 42rem;
  --banda-tinta: var(--tinta-900); --sobre-banda: #f4ecdf; --sobre-banda-suave: #c9d3d9;

  /* Ilustraciones (día) */
  --i-cielo: #f3e3cf; --i-sol: #f2a35e; --i-lejos: #e4d6c1; --i-c1: #17384f; --i-c2: #b5532c; --i-c3: #2f6f6a; --i-c4: #c98f3c; --i-c5: #6d4a3a;
  --i-ventana: #f7ecd9; --i-luz: #f6b45f; --i-puerta: #0b1e2c; --i-agua: #1d5b78; --i-ola: #8fc0cf; --i-muelle: #0b1e2c; --i-trazo: #0b1e2c;
  --i-papel: #fffcf6; --i-linea: #9aa6ad; --i-acento: #e8711f; --i-bici: #0b1e2c; --i-aspas: #fffcf6; --i-grua: #0b1e2c;

  --cabecera-fondo: rgba(247, 242, 233, .93); --fila-par: rgba(239, 231, 216, .55);
  --tema-trabajo: #17754f; --tema-vivienda: #9a4a1c; --tema-tramites: #1d5b78; --tema-vida: #a3412a; --tema-empezar: #6b4aa8;
  color-scheme: light;
}
:root[data-tema="oscuro"] {
  --fondo: #0d1821; --superficie: #13212c; --suave: #1a2c39; --texto: #ece5d8; --texto-suave: #b6bec7; --titulo: #fbf5ea;
  --borde: #2a3f4e; --borde-fuerte: #c8d3da; --borde-acento: #7fbcd4; --enlace: #93cfe6; --enlace-hover: #d5eef7;
  --marca: #081620; --marca-2: #17384f; --sobre-marca: #fffaf0;
  --accion: #17754f; --accion-texto: #86dbb4; --accion-borde: #4fbf8d; --accion-suave: #11372b;
  --acento: #ff9a52; --acento-texto: #ffae73; --acento-suave: #3a2416;
  --sombra: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 30px -14px rgba(0, 0, 0, .6); --sombra-alta: 0 24px 48px -20px rgba(0, 0, 0, .7);
  --banda-tinta: #081620; --sobre-banda: #f4ecdf; --sobre-banda-suave: #b9c5cd;
  --i-cielo: #12283a; --i-sol: #f2c27d; --i-lejos: #1b3242; --i-c1: #2a4c63; --i-c2: #7a3a22; --i-c3: #24524f; --i-c4: #7d5b2a; --i-c5: #4a3428;
  --i-ventana: #20384a; --i-luz: #f6b45f; --i-puerta: #081620; --i-agua: #0f3346; --i-ola: #3f7488; --i-muelle: #081620; --i-trazo: #c8d3da;
  --i-papel: #e9e0cf; --i-linea: #6c7c86; --i-acento: #ff9a52; --i-bici: #e9e0cf; --i-aspas: #e9e0cf; --i-grua: #c8d3da;
  --cabecera-fondo: rgba(13, 24, 33, .93); --fila-par: rgba(26, 44, 57, .6);
  --tema-trabajo: #7fd6ae; --tema-vivienda: #f2b37d; --tema-tramites: #8cc9e2; --tema-vida: #f4a28c; --tema-empezar: #c9b3ff;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) {
    --fondo: #0d1821; --superficie: #13212c; --suave: #1a2c39; --texto: #ece5d8; --texto-suave: #b6bec7; --titulo: #fbf5ea;
    --borde: #2a3f4e; --borde-fuerte: #c8d3da; --borde-acento: #7fbcd4; --enlace: #93cfe6; --enlace-hover: #d5eef7;
    --marca: #081620; --marca-2: #17384f; --sobre-marca: #fffaf0;
    --accion: #17754f; --accion-texto: #86dbb4; --accion-borde: #4fbf8d; --accion-suave: #11372b;
    --acento: #ff9a52; --acento-texto: #ffae73; --acento-suave: #3a2416;
    --sombra: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 30px -14px rgba(0, 0, 0, .6); --sombra-alta: 0 24px 48px -20px rgba(0, 0, 0, .7);
    --banda-tinta: #081620; --sobre-banda: #f4ecdf; --sobre-banda-suave: #b9c5cd;
    --i-cielo: #12283a; --i-sol: #f2c27d; --i-lejos: #1b3242; --i-c1: #2a4c63; --i-c2: #7a3a22; --i-c3: #24524f; --i-c4: #7d5b2a; --i-c5: #4a3428;
    --i-ventana: #20384a; --i-luz: #f6b45f; --i-puerta: #081620; --i-agua: #0f3346; --i-ola: #3f7488; --i-muelle: #081620; --i-trazo: #c8d3da;
    --i-papel: #e9e0cf; --i-linea: #6c7c86; --i-acento: #ff9a52; --i-bici: #e9e0cf; --i-aspas: #e9e0cf; --i-grua: #c8d3da;
    --cabecera-fondo: rgba(13, 24, 33, .93); --fila-par: rgba(26, 44, 57, .6);
  --tema-trabajo: #7fd6ae; --tema-vivienda: #f2b37d; --tema-tramites: #8cc9e2; --tema-vida: #f4a28c; --tema-empezar: #c9b3ff;
    color-scheme: dark;
  }
}

/* ---------- Base y tipografía ---------- */
body.ruta2 { background: var(--fondo); color: var(--texto); font-size: 1.0625rem; line-height: 1.68; }
.ruta2 h1, .ruta2 h2, .ruta2 h3 { color: var(--titulo); text-wrap: balance; }
.ruta2 h1 { font-size: clamp(2.05rem, 6.2vw, 3.5rem); line-height: 1.06; letter-spacing: -.025em; font-weight: 700; }
.ruta2 h2 { font-size: clamp(1.45rem, 3.6vw, 2.05rem); line-height: 1.15; letter-spacing: -.015em; }
.ruta2 h3 { font-size: 1.16rem; line-height: 1.3; }
.ruta2 p, .ruta2 li { text-wrap: pretty; }
.ruta2 a { color: var(--enlace); text-decoration-thickness: 1px; text-underline-offset: .2em; }
.ruta2 a:hover { color: var(--enlace-hover); text-decoration-thickness: 2px; }
.ruta2 :focus-visible { outline: 3px solid var(--acento); outline-offset: 3px; }
.ruta2 .contenedor { max-width: var(--ancho); padding-inline: clamp(1rem, 4vw, 2rem); }
.ruta2 main { padding-bottom: 0; }
.ruta2 .suave { color: var(--texto-suave); }
.ruta2 .migas { font-size: .84rem; letter-spacing: .01em; }
.ruta2 .migas a { color: var(--texto-suave); text-decoration: none; display: inline-block; padding-block: .2rem; min-height: 24px; }
.ruta2 .migas a:hover { color: var(--enlace); text-decoration: underline; }
.ruta2 ::selection { background: var(--acento-suave); color: var(--titulo); }

/* ---------- Botones ---------- */
.ruta2 .boton { border-radius: 999px; font-weight: 650; min-height: 46px; padding: .6rem 1.25rem; letter-spacing: .005em; }
.ruta2 .boton--primario { background: var(--accion); border-color: var(--accion); color: #fff; box-shadow: 0 6px 18px -8px rgba(23, 117, 79, .7); }
.ruta2 .boton--primario:hover { background: #0f5c3c; border-color: #0f5c3c; color: #fff; transform: translateY(-1px); }
.ruta2 .boton--secundario { background: transparent; border: 1.5px solid var(--borde-fuerte); color: var(--titulo); }
.ruta2 .boton--secundario:hover { background: var(--titulo); color: var(--fondo); }
.ruta2 .boton--grande { min-height: 54px; padding: .8rem 1.6rem; font-size: 1.06rem; }
.ruta2 .boton--mini { min-height: 40px; padding: .4rem 1rem; }
.ruta2 .botones { gap: .7rem; }

/* ---------- Cabecera ---------- */
.ruta2 .cabecera--web { background: var(--cabecera-fondo); backdrop-filter: saturate(1.4) blur(10px); box-shadow: 0 1px 0 var(--borde); }
.ruta2 .cabecera--web .marca { font-size: 1.32rem; letter-spacing: -.01em; }
.ruta2 .cabecera--web .menu a { font-weight: 560; color: var(--titulo); border-radius: 999px; }
.ruta2 .cabecera--web .menu a:hover { background: var(--suave); }
@media (min-width: 1081px) {
  .ruta2 .cabecera--web .menu a { padding: .5rem .85rem; }
  .ruta2 .cabecera--web .menu a[aria-current="page"] { background: var(--suave); box-shadow: inset 0 -2px 0 var(--acento); border-radius: 999px 999px 6px 6px; }
  .ruta2 .cabecera--web .menu a.menu__espacio { border-radius: 999px; }
}
@media (max-width: 1080px) {
  .ruta2 .cabecera--web .menu-boton { border-radius: 999px; }
  .ruta2 .cabecera--web .menu a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--acento); background: var(--suave); }
}

/* ---------- Superficies: tarjetas con propósito ---------- */
.ruta2 .tarjeta { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: none; padding: clamp(1.1rem, 3vw, 1.6rem); }
.ruta2 .tarjeta--enlace { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.ruta2 .tarjeta--enlace:hover { transform: translateY(-2px); box-shadow: var(--sombra); border-color: var(--borde-acento); }
.ruta2 .tarjeta--enlace h3, .ruta2 .tarjeta--enlace h2 { font-size: 1.12rem; }
/* Tarjeta-enlace: una flecha de acento abajo a la derecha dice «esto se abre» sin subrayar todo */
.ruta2 a.tarjeta--enlace { position: relative; padding-bottom: 2.6rem; }
.ruta2 a.tarjeta--enlace::after { content: "→"; position: absolute; right: 1.2rem; bottom: .9rem; color: var(--acento-texto); font-size: 1.15rem; transition: transform .18s ease; }
.ruta2 a.tarjeta--enlace:hover::after { transform: translateX(4px); }
.ruta2 a.tarjeta--herramienta { padding-bottom: 1.5rem; }
.ruta2 a.tarjeta--herramienta::after { content: none; }
.ruta2 .rejilla { gap: clamp(.8rem, 2vw, 1.25rem); }
.ruta2 .etiqueta { border-radius: 999px; }
.ruta2 .aviso { border-radius: var(--radio-s); }
.ruta2 .aviso--info { background: var(--petroleo-claro); color: var(--tinta-900); border-color: transparent; }
:root[data-tema="oscuro"] .ruta2 .aviso--info { background: #15303e; color: var(--texto); }
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) .ruta2 .aviso--info { background: #15303e; color: var(--texto); } }
.ruta2 .aviso--info a { color: inherit; font-weight: 650; }

/* ---------- Ilustraciones (SVG en línea, decorativas) ---------- */
.ilus { display: block; width: 100%; height: 100%; }
.ilus-sol { fill: var(--i-sol); } .ilus-lejos { fill: var(--i-lejos); }
.ilus-c1 { fill: var(--i-c1); } .ilus-c2 { fill: var(--i-c2); } .ilus-c3 { fill: var(--i-c3); } .ilus-c4 { fill: var(--i-c4); } .ilus-c5 { fill: var(--i-c5); }
.ilus-ventana { fill: var(--i-ventana); } .ilus-luz { fill: var(--i-luz); } .ilus-puerta { fill: var(--i-puerta); }
.ilus-agua { fill: var(--i-agua); } .ilus-muelle { fill: var(--i-muelle); } .ilus-ola { fill: none; stroke: var(--i-ola); stroke-width: 3; stroke-linecap: round; }
.ilus-trazo { fill: none; stroke: var(--i-trazo); stroke-width: 3; stroke-linecap: round; }
.ilus-papel { fill: var(--i-papel); } .ilus-linea { fill: none; stroke: var(--i-linea); stroke-width: 5; stroke-linecap: round; }
.ilus-linea-clara { fill: none; stroke: var(--i-papel); stroke-width: 5; stroke-linecap: round; opacity: .85; }
.ilus-acento, .ilus-acento-relleno, .ilus-sello { fill: var(--i-acento); } .ilus-sello-trazo { fill: none; stroke: var(--i-papel); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ilus-bici { fill: none; stroke: var(--i-bici); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.ilus-aspas { fill: var(--i-aspas); stroke: var(--i-c1); stroke-width: 2; }
.ilus-grua { fill: none; stroke: var(--i-grua); stroke-width: 4; stroke-linecap: round; }
.ilus-puente { fill: none; stroke: var(--i-c1); stroke-width: 10; } .ilus-puente-trazo { stroke: var(--i-c1); stroke-width: 4; }

/* ======================================================================================================================
   PORTADA
   ====================================================================================================================== */
.portada-heroe { position: relative; overflow: hidden; background: var(--banda-tinta); color: var(--sobre-banda); padding-top: clamp(2.5rem, 7vw, 5rem);
  --i-cielo: #0b1e2c; --i-sol: #f2a35e; --i-lejos: #14324a; --i-c1: #1f4560; --i-c2: #8f3f20; --i-c3: #22585a; --i-c4: #9c6c2c; --i-c5: #57382c;
  --i-ventana: #10293b; --i-luz: #ffb867; --i-puerta: #081620; --i-agua: #0e3a50; --i-ola: #3f7f95; --i-muelle: #081620; --i-trazo: #c9d3d9; --i-bici: #f4ecdf; --i-aspas: #f4ecdf; }
.portada-heroe__rejilla { position: relative; z-index: 1; display: grid; gap: 1.5rem 3rem; grid-template-columns: minmax(0, 1fr); padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }
@media (min-width: 1000px) { .portada-heroe__rejilla { grid-template-columns: minmax(0, 1fr) 19rem; align-items: center; } }
.portada-heroe__antetitulo { margin: 0 0 1rem; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--verde-claro); }
.ruta2 .portada-heroe h1 { color: #fffaf0; max-width: 18ch; margin-bottom: 1.1rem; font-size: clamp(2.2rem, 5.4vw, 3.7rem); }
.portada-heroe__sub { font-size: clamp(1.05rem, 2.4vw, 1.25rem); max-width: 38rem; color: var(--sobre-banda-suave); margin-bottom: 1.5rem; }
.ruta2 .buscador-rapido--portada { position: relative; display: flex; flex-wrap: nowrap; align-items: center; margin-top: 0; gap: .4rem; max-width: 40rem; padding: .4rem; background: #fffaf0; border-radius: 999px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6); }
.buscador-rapido--portada .buscador-rapido__lupa { display: flex; align-items: center; padding-left: .85rem; color: #4d5866; }
.ruta2 .buscador-rapido--portada input { flex: 1 1 auto; width: auto; min-width: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; font-size: 1.05rem; color: #1d2430; padding: .55rem .25rem; min-height: 48px; }
.buscador-rapido--portada input::placeholder { color: #66707c; }
.ruta2 .buscador-rapido--portada input:focus, .ruta2 .buscador-rapido--portada input:focus-visible { outline: none; }
.buscador-rapido--portada:focus-within { box-shadow: 0 0 0 3px var(--acento), 0 18px 40px -18px rgba(0, 0, 0, .6); }
.ruta2 .buscador-rapido--portada .boton { flex: none; border-radius: 999px; background: var(--tinta-900); color: #fffaf0; border-color: var(--tinta-900); min-height: 48px; }
.buscador-rapido--portada .boton:hover { background: var(--naranja-texto); border-color: var(--naranja-texto); }
.atajos { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin: .9rem 0 1.6rem; font-size: .92rem; }
.atajos__titulo { color: var(--sobre-banda-suave); }
.atajos ul { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.ruta2 .atajos a { display: inline-flex; align-items: center; min-height: 36px; padding: .2rem .8rem; border-radius: 999px; border: 1px solid rgba(255, 250, 240, .28); color: #fffaf0; text-decoration: none; }
.atajos a:hover { background: rgba(255, 250, 240, .12); border-color: rgba(255, 250, 240, .6); color: #fff; }
.portada-heroe .botones { align-items: center; gap: .8rem 1.4rem; }
.ruta2 .portada-heroe__enlace { display: inline-flex; align-items: center; min-height: 44px; color: #fffaf0; font-weight: 650; }
.portada-heroe a:focus-visible, .portada-heroe button:focus-visible { outline-color: var(--naranja); }
.portada-heroe__garantias { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .95rem; color: var(--sobre-banda); }
.portada-heroe__garantias li { display: flex; gap: .6rem; align-items: flex-start; padding: .7rem .9rem; border-radius: 14px; background: rgba(255, 250, 240, .06); border: 1px solid rgba(255, 250, 240, .12); }
.portada-heroe__garantias li::before { content: ""; flex: none; width: .55rem; height: .55rem; margin-top: .5rem; border-radius: 50%; background: var(--verde-claro); }
.portada-heroe__escena { position: relative; height: clamp(140px, 26vw, 330px); margin-top: -1rem; }
@media (max-width: 999px) { .portada-heroe__garantias { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); } }

.pagina-inicio main { padding-top: 0; }
.ruta2 .portada-heroe .atajos a:hover { color: #fff; }
/* Bandas de la portada: ritmo alterno papel / hueso / tinta */
.ruta2 .banda { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.ruta2 .banda__cab { max-width: 44rem; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.ruta2 .banda__cab h2 { margin-bottom: .5rem; }
.ruta2 .banda__cab p { color: var(--texto-suave); font-size: 1.08rem; margin: 0; }
.banda__antetitulo { font: 700 .82rem/1 var(--fuente-texto); letter-spacing: .14em; color: var(--acento-texto) !important; margin-bottom: .8rem !important; }
.banda--momento { background: var(--superficie); }
.banda--respuestas, .banda--ejemplos { background: var(--superficie); }
.banda--herramientas { background: var(--suave); }
.banda--final { background: var(--banda-tinta); color: var(--sobre-banda); text-align: center; }
.banda--final h2 { color: #fffaf0; }
.banda--final p { color: var(--sobre-banda-suave); font-size: 1.1rem; }
.banda--final .botones { justify-content: center; margin-top: 1.5rem; }
.banda--final .boton--secundario { color: #fffaf0; border-color: rgba(255, 250, 240, .55); }
.banda--final .boton--secundario:hover { background: #fffaf0; color: var(--tinta-900); }
.banda--final a:focus-visible { outline-color: var(--naranja); }

/* ¿En qué punto estás? */
.momentos { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.ruta2 .momento { position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; min-height: 12rem; border-radius: var(--radio); background: var(--fondo); border: 1px solid var(--borde);
  color: var(--texto); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.momento:hover { transform: translateY(-3px); box-shadow: var(--sombra-alta); border-color: var(--acento); color: var(--texto); }
.momento__icono { display: inline-flex; width: 3.1rem; height: 3.1rem; align-items: center; justify-content: center; border-radius: 14px; background: var(--acento-suave); color: var(--acento-texto); }
.momento__texto { display: grid; gap: .35rem; }
.momento__texto strong { font-family: var(--fuente-titulo); font-size: 1.45rem; line-height: 1.15; color: var(--titulo); }
.momento__texto span { color: var(--texto-suave); }
.momento__flecha { position: absolute; right: 1.4rem; top: 1.5rem; font-size: 1.4rem; color: var(--acento-texto); transition: transform .18s ease; }
.momento:hover .momento__flecha { transform: translateX(4px); }
.fuera-ue { margin: 1.4rem 0 0; padding: 1rem 1.2rem; border-radius: var(--radio-s); background: var(--suave); }
.fuera-ue a { font-weight: 650; }

/* Ruta en cinco etapas: línea de viaje con puntos (el motivo del logotipo) */
.ruta2 .ruta--099 { opacity: 1; fill: initial; stroke: initial; }
.ruta--099 { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; counter-reset: none; position: relative; }
@media (min-width: 1000px) {
  .ruta--099 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
  .ruta--099::before { content: ""; position: absolute; left: 2.5rem; right: 2.5rem; top: 1.65rem; border-top: 3px dotted var(--acento); opacity: .7; }
}
.ruta2 .ruta--099 li a { position: relative; display: grid; gap: .9rem; height: 100%; padding: 0 0 1rem; color: var(--texto); text-decoration: none; border: 0 !important; border-radius: 0; background: none; flex-direction: initial; }
.ruta2 .ruta--099 .ruta__num { border: 0; position: relative; z-index: 1; display: inline-flex; width: 3.3rem; height: 3.3rem; align-items: center; justify-content: center; border-radius: 50%;
  font: 700 1.3rem/1 var(--fuente-titulo); background: var(--titulo); color: var(--fondo); box-shadow: 0 0 0 6px var(--fondo); transition: background-color .18s ease; }
.ruta--099 li a:hover .ruta__num { background: var(--acento); color: #1d1206; }
.ruta--099 .ruta__texto { display: grid; gap: .25rem; }
.ruta--099 .ruta__texto strong { font-family: var(--fuente-titulo); font-size: 1.2rem; color: var(--titulo); }
.ruta--099 .ruta__texto span { color: var(--texto-suave); font-size: .96rem; }
.ruta--099 li a:hover strong { text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 999px) {
  .ruta2 .ruta--099 li a { grid-template-columns: 3.3rem minmax(0, 1fr); align-items: start; gap: 1rem; padding: 0; }
  .ruta--099 li:not(:last-child) a::after { content: ""; position: absolute; left: 1.6rem; top: 3.5rem; bottom: -1rem; border-left: 3px dotted var(--acento); opacity: .7; }
  .ruta--099 li { padding-bottom: .4rem; }
}

/* Respuestas rápidas */
.respuestas { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.respuesta { display: flex; flex-direction: column; gap: .6rem; padding: 1.4rem 1.4rem 1.2rem; border-radius: var(--radio); background: var(--fondo); border: 1px solid var(--borde); }
.respuesta h3 { display: grid; grid-template-columns: 1.7rem minmax(0, 1fr); gap: .6rem; align-items: start; margin: 0; font-size: 1.15rem; }
.respuesta h3::before { content: "?"; display: inline-flex; width: 1.7rem; height: 1.7rem; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--acento-suave); color: var(--acento-texto); font: 700 .95rem/1 var(--fuente-texto); }
.respuesta p { margin: 0; color: var(--texto); }
.ruta2 .respuesta__enlace { margin-top: auto; padding-top: .3rem; font-weight: 650; text-decoration: none; }
.respuesta__enlace:hover { text-decoration: underline; }

/* Herramientas */
.ruta2 .tarjeta--herramienta { border-top: 0; border-radius: var(--radio); padding: 1.5rem; gap: .6rem; background: var(--superficie); }
.ruta2 .tarjeta--herramienta .herramienta__icono { width: 3rem; height: 3rem; padding: .6rem; border-radius: 14px; background: var(--accion-suave); color: var(--accion-texto); }
.ruta2 .tarjeta__accion { color: var(--accion-texto); }
.ruta2 .sellos li { border-radius: 999px; }

/* Temas en mosaico con ilustración */
.temas-mosaico { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.tema-mosaico { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radio); background: var(--superficie); border: 1px solid var(--borde); }
.tema-mosaico__ilus { height: 150px; background: var(--i-cielo); border-bottom: 1px solid var(--borde); }
.tema-mosaico__cuerpo { padding: 1.3rem 1.4rem 1.4rem; display: grid; gap: .5rem; }
.tema-mosaico h3 { margin: 0; font-size: 1.35rem; }
.ruta2 .tema-mosaico h3 a { color: var(--titulo); text-decoration: none; }
.tema-mosaico h3 a:hover { text-decoration: underline; }
.tema-mosaico p { margin: 0; color: var(--texto-suave); }
.tema-mosaico .tema__lista { list-style: none; margin: .3rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.ruta2 .tema-mosaico .tema__lista a { display: inline-flex; min-height: 36px; align-items: center; padding: .2rem .75rem; border-radius: 999px; background: var(--suave); color: var(--titulo); text-decoration: none; font-size: .93rem; }
.ruta2 .tema-mosaico .tema__lista a:hover { background: var(--titulo); color: var(--fondo); }
.tema-mosaico .tema__todo { margin: 0; font-weight: 650; }

/* Recorridos de ejemplo */
.ejemplos { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.ejemplo { padding: 1.4rem; border-radius: var(--radio); background: var(--fondo); border: 1px dashed var(--borde-acento); }
.ejemplo__etiqueta { display: inline-block; margin: 0 0 .7rem; padding: .1rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--petroleo-claro); color: var(--tinta-900); }
:root[data-tema="oscuro"] .ejemplo__etiqueta { background: #15303e; color: var(--texto); }
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) .ejemplo__etiqueta { background: #15303e; color: var(--texto); } }
.ejemplo h3 { margin: 0 0 .3rem; font-size: 1.4rem; }
.ejemplo > p:not(.ejemplo__etiqueta) { color: var(--texto-suave); margin-bottom: .9rem; }
.ejemplo__pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; counter-reset: paso; }
.ejemplo__pasos li { counter-increment: paso; display: flex; gap: .6rem; align-items: center; }
.ejemplo__pasos li::before { content: counter(paso); flex: none; display: inline-flex; width: 1.7rem; height: 1.7rem; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--titulo); color: var(--fondo); font-size: .82rem; font-weight: 700; }
.ejemplo__pasos a { font-weight: 600; }

/* Comunidad */
.comunidad-portada { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); margin-bottom: 1.2rem; }
.comunidad-pieza { padding: 1.5rem; border-radius: var(--radio); background: var(--superficie); border: 1px solid var(--borde); }
.comunidad-pieza h3 { margin-top: 0; }
.comunidad-pieza h3 + p + h3 { margin-top: 1.2rem; }
.comunidad-pieza--mapa { background: var(--banda-tinta); color: var(--sobre-banda); border-color: transparent;
  background-image: radial-gradient(circle at 85% 25%, rgba(232, 113, 31, .35) 0 6px, transparent 7px), radial-gradient(circle at 70% 60%, rgba(127, 214, 174, .5) 0 5px, transparent 6px),
                    radial-gradient(circle at 92% 70%, rgba(127, 214, 174, .45) 0 4px, transparent 5px), radial-gradient(circle at 78% 40%, rgba(255, 250, 240, .4) 0 3px, transparent 4px); }
.comunidad-pieza--mapa h3 { color: #fffaf0; }
.comunidad-pieza--mapa p { color: var(--sobre-banda-suave); max-width: 30rem; }
.comunidad-pieza--mapa .boton--secundario { color: #fffaf0; border-color: rgba(255, 250, 240, .6); }
.comunidad-pieza--mapa .boton--secundario:hover { background: #fffaf0; color: var(--tinta-900); }
.comunidad-pieza--mapa a:focus-visible { outline-color: var(--naranja); }
.ruta2 .cuenta-portada { margin-top: 2rem; }
.ruta2 .cuenta-portada h3 { font-size: 1.3rem; }

/* Confianza */
.banda--confianza { background: var(--suave); }
.pilares { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.pilares li { display: grid; gap: .3rem; padding: 1.2rem 1.3rem; border-left: 4px solid var(--acento); background: var(--superficie); border-radius: 0 var(--radio-s) var(--radio-s) 0; }
.pilares strong { font-family: var(--fuente-titulo); font-size: 1.2rem; color: var(--titulo); }
.pilares span { color: var(--texto-suave); }
.confianza__enlaces { margin: 0; }

/* En el móvil, respuestas y ejemplos se deslizan en horizontal (con la siguiente tarjeta asomando): menos scroll, todo a mano. */
@media (max-width: 699px) {
  .respuestas, .ejemplos { position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; gap: .8rem; margin-inline: calc(-1 * clamp(1rem, 4vw, 2rem));
    padding: .2rem clamp(1rem, 4vw, 2rem) 1rem; scroll-padding-inline: clamp(1rem, 4vw, 2rem); scrollbar-width: thin; }
  .respuesta, .ejemplo { flex: 0 0 84%; scroll-snap-align: start; }
}
/* ======================================================================================================================
   CABECERAS DE SECCIÓN (Trabajo, Vivienda, Trámites, Guías…) Y DE HERRAMIENTA
   ====================================================================================================================== */
.cabecera-seccion { position: relative; display: grid; gap: 1rem; overflow: hidden; margin: .5rem 0 .5rem; border-radius: calc(var(--radio) + 6px); background: var(--superficie);
  border: 1px solid var(--borde); grid-template-columns: minmax(0, 1fr); }
.cabecera-seccion__texto { position: relative; z-index: 1; padding: clamp(1.5rem, 5vw, 2.75rem) clamp(1.25rem, 5vw, 2.75rem) 0; }
.cabecera-seccion h1 { margin-bottom: .7rem; }
.cabecera-seccion h1::after { content: ""; display: block; width: 3.5rem; height: 4px; margin-top: .9rem; border-radius: 2px; background: var(--acento); }
.cabecera-seccion p { font-size: 1.1rem; color: var(--texto-suave); max-width: 38rem; }
.cabecera-seccion__ilus { height: clamp(120px, 22vw, 200px); background: linear-gradient(var(--superficie), var(--i-cielo)); }
@media (min-width: 900px) {
  .cabecera-seccion { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: stretch; }
  .cabecera-seccion__texto { padding-bottom: clamp(1.5rem, 4vw, 2.5rem); align-self: center; }
  .cabecera-seccion__ilus { height: auto; min-height: 240px; }
}
.cabecera-herramienta { position: relative; padding-top: .5rem; }
.cabecera-herramienta__ilus { height: 120px; margin: 0 0 1.2rem; border-radius: var(--radio); overflow: hidden; background: var(--i-cielo); border: 1px solid var(--borde); }

/* Páginas sencillas (Sobre, Contacto, Recursos…): título con su filete de acento */
.pagina-pagina main > .contenedor > h1::after, .pagina-pagina main > .contenedor > .fila-titulo > h1::after { content: ""; display: block; width: 3.5rem; height: 4px; margin-top: .9rem; border-radius: 2px; background: var(--acento); }

/* ======================================================================================================================
   GUÍAS: portada editorial, respuesta inmediata, índice, secciones numeradas, pasos, preguntas, fuentes y siguiente paso
   ====================================================================================================================== */
.progreso-lectura { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 60; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--acento), var(--accion)); }
@supports (animation-timeline: scroll()) {
  .progreso-lectura { animation: progreso-lectura linear both; animation-timeline: scroll(root block); }
  @keyframes progreso-lectura { to { transform: scaleX(1); } }
}
@supports not (animation-timeline: scroll()) { .progreso-lectura { display: none; } }
@media (prefers-reduced-motion: reduce) { .progreso-lectura { display: none; } }

.ruta2 .guia { gap: 1.4rem; }
/* Con índice lateral (098) la rejilla tiene 90 filas implícitas: el espacio va en márgenes, no en row-gap (si no, queda un hueco al final). */
@media (min-width: 1100px) { .ruta2 .guia.guia--lateral { row-gap: 0; } .ruta2 .guia--lateral > * { margin-bottom: 1.4rem; } }
.cabecera-editorial { position: relative; overflow: hidden; display: grid; gap: .6rem; padding: clamp(1.4rem, 5vw, 2.6rem) clamp(1.2rem, 5vw, 2.6rem) 0; border-radius: calc(var(--radio) + 6px);
  background: var(--superficie); border: 1px solid var(--borde); }
.cabecera-editorial h1 { position: relative; z-index: 1; margin: .2rem 0 0; font-size: clamp(1.95rem, 5.4vw, 3rem); max-width: 22ch; }
.cabecera-editorial > p { position: relative; z-index: 1; margin: 0; color: var(--texto-suave) !important; }
.cabecera-editorial .icono-guia { position: relative; z-index: 1; }
.cabecera-editorial__ilus { order: 10; height: clamp(110px, 20vw, 170px); margin: 1rem calc(-1 * clamp(1.2rem, 5vw, 2.6rem)) 0; background: linear-gradient(var(--superficie), var(--i-cielo)); }
.ruta2 .icono-guia { border-radius: 14px; }

/* «La respuesta corta»: entradilla y «En 30 segundos» como una sola pieza de respuesta inmediata */
.ruta2 .guia > .resumen { font-size: clamp(1.12rem, 2.6vw, 1.28rem); line-height: 1.55; color: var(--titulo); max-width: var(--lectura); margin: .3rem 0 0; }
.ruta2 .claves-guia { position: relative; border: 1px solid var(--borde); border-radius: var(--radio); background: var(--banda-tinta); color: var(--sobre-banda); padding: clamp(1.3rem, 4vw, 1.9rem); box-shadow: var(--sombra); }
.ruta2 .claves-guia h2 { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1rem; padding: .25rem .8rem; border-radius: 999px; background: var(--naranja); color: #1d1206;
  font: 700 .82rem/1.4 var(--fuente-texto); letter-spacing: .08em; text-transform: uppercase; }
.ruta2 .claves-guia ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.ruta2 .claves-guia li { position: relative; padding-left: 2rem; color: #f4ecdf; font-size: 1.04rem; }
.ruta2 .claves-guia li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--verde-claro);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-1.7 17.3-5-5 1.8-1.8 3.2 3.2 7-7 1.8 1.8z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-1.7 17.3-5-5 1.8-1.8 3.2 3.2 7-7 1.8 1.8z'/%3E%3C/svg%3E") center / contain no-repeat; }
.ruta2 .claves-guia a { color: #bfe6f5; }
.ruta2 .claves-guia a:focus-visible { outline-color: var(--naranja); }

/* Índice: en el móvil, una fila de capítulos que se desliza; en escritorio, el índice lateral fijo del 098 con número */
.ruta2 .indice-guia { border: 0; background: transparent; padding: 0; box-shadow: none; }
.ruta2 .indice-guia h2 { font: 700 .78rem/1.3 var(--fuente-texto); letter-spacing: .12em; text-transform: uppercase; color: var(--texto-suave); margin: 0 0 .6rem; }
.ruta2 .indice-guia ol { counter-reset: cap; list-style: none; padding: 0; margin: 0; columns: auto; }
.ruta2 .indice-guia li { counter-increment: cap; margin: 0; }
.ruta2 .indice-guia a { display: flex; gap: .6rem; align-items: baseline; text-decoration: none; color: var(--texto); }
.ruta2 .indice-guia a::before { content: counter(cap, decimal-leading-zero); font: 700 .78rem/1 var(--fuente-texto); color: var(--acento-texto); font-variant-numeric: tabular-nums; }
.ruta2 .indice-guia a:hover, .ruta2 .indice-guia a[aria-current] { color: var(--titulo); text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 1099px) {
  .ruta2 .indice-guia { margin: 0 calc(-1 * clamp(1rem, 4vw, 2rem)); padding: 0 clamp(1rem, 4vw, 2rem); }
  .ruta2 .indice-guia ol { position: relative; display: flex; gap: .5rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: .2rem 0 .7rem; scrollbar-width: thin; }
  .ruta2 .indice-guia li { flex: none; scroll-snap-align: start; max-width: 15rem; }
  .ruta2 .indice-guia a { min-height: 44px; padding: .45rem .9rem; border-radius: 999px; background: var(--superficie); border: 1px solid var(--borde); font-size: .92rem; line-height: 1.25; }
  .ruta2 .indice-guia a:hover { border-color: var(--borde-acento); text-decoration: none; }
}
@media (min-width: 1100px) {
  .ruta2 .indice-guia ol { display: grid; gap: .1rem; border-left: 2px solid var(--borde); }
  .ruta2 .indice-guia a { padding: .4rem .8rem; margin-left: -2px; border-left: 2px solid transparent; font-size: .92rem; line-height: 1.35; }
  .ruta2 .indice-guia a[aria-current] { border-left-color: var(--acento); text-decoration: none; background: var(--superficie); border-radius: 0 8px 8px 0; }
}

/* Secciones de la guía: numeradas, con aire y una columna de lectura cómoda */
.ruta2 .guia { counter-reset: seccion; }
.ruta2 .guia .seccion-guia { counter-increment: seccion; position: relative; border: 0; background: transparent; padding: clamp(1.6rem, 5vw, 2.4rem) 0 .5rem; border-top: 1px solid var(--borde); border-radius: 0; }
.ruta2 .guia .seccion-guia > h2 { display: grid; gap: .45rem; margin-bottom: 1rem; font-size: clamp(1.5rem, 4vw, 2rem); scroll-margin-top: 5.5rem; }
.ruta2 .guia .seccion-guia > h2::before { content: counter(seccion, decimal-leading-zero); font: 700 .9rem/1 var(--fuente-texto); letter-spacing: .1em; color: var(--acento-texto); }
.ruta2 .guia .seccion-guia > p, .ruta2 .guia .seccion-guia > ul, .ruta2 .guia .seccion-guia > ol { max-width: var(--lectura); }
.ruta2 .guia .seccion-guia > h2 + p { font-size: 1.12rem; color: var(--titulo); }
.ruta2 .guia .seccion-guia h3 { margin-top: 1.6rem; font-size: 1.22rem; }
.ruta2 .guia .seccion-guia > ul:not([class]) { list-style: none; padding: 0; display: grid; gap: .55rem; }
.ruta2 .guia .seccion-guia > ul:not([class]) > li { position: relative; padding-left: 1.6rem; }
.ruta2 .guia .seccion-guia > ul:not([class]) > li::before { content: ""; position: absolute; left: .2rem; top: .62em; width: .55rem; height: .55rem; border-radius: 2px; background: var(--acento); transform: rotate(45deg); }
.ruta2 .guia section[id] { scroll-margin-top: 5.5rem; }
/* Fichas, tablas y bloques destacados dentro de las secciones */
.ruta2 .fichas { gap: 1rem; }
.ruta2 .ficha { background: var(--superficie); border-radius: var(--radio); border: 1px solid var(--borde); }
.ruta2 .ficha h3 { color: var(--enlace); }
@media (max-width: 699px) {
  .ruta2 .fichas { position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; gap: .8rem; margin-inline: calc(-1 * clamp(1rem, 4vw, 2rem));
    padding: .2rem clamp(1rem, 4vw, 2rem) 1rem; scroll-padding-inline: clamp(1rem, 4vw, 2rem); scrollbar-width: thin; }
  .ruta2 .fichas > .ficha { flex: 0 0 84%; scroll-snap-align: start; }
}
.ruta2 .tabla-caja { border-radius: var(--radio-s); border: 1px solid var(--borde); background: var(--superficie); }
.ruta2 .tabla-caja table { margin: 0; }
.ruta2 .tabla-caja th { background: var(--suave); color: var(--titulo); }
.ruta2 .tabla-caja tbody tr:nth-child(even) { background: var(--fila-par); }

/* «Para quién es» y «Qué necesitas»: dos fichas compactas lado a lado */
.ruta2 .guia > section.tarjeta:not(.seccion-guia):not(.tarjeta--cuidado):not([id]) { border-radius: var(--radio); background: var(--superficie); }
.ruta2 .guia > section.tarjeta:not(.seccion-guia) > h2 { font: 700 .8rem/1.3 var(--fuente-texto); letter-spacing: .1em; text-transform: uppercase; color: var(--acento-texto); margin-bottom: .6rem; }

/* Pasos: cronología vertical */
.ruta2 .pasos-articulo { position: relative; display: grid; gap: .9rem; }
.ruta2 .pasos-articulo li { padding-left: 3.1rem; min-height: 2.3rem; margin: 0; }
.ruta2 .pasos-articulo li::before { width: 2.3rem; height: 2.3rem; top: -.2rem; background: var(--titulo); color: var(--fondo); font: 700 1rem/2.3rem var(--fuente-titulo); text-align: center; border: 0; }
.ruta2 .pasos-articulo li:not(:last-child)::after { content: ""; position: absolute; left: 1.1rem; top: 2.3rem; bottom: -1rem; border-left: 2px dotted var(--borde-acento); }

/* Errores frecuentes y avisos */
.ruta2 .tarjeta--cuidado { border: 0; border-left: 5px solid var(--acento); background: var(--acento-suave); border-radius: 0 var(--radio) var(--radio) 0; }
.ruta2 .tarjeta--cuidado h2 { font-size: 1.25rem; }

/* Preguntas frecuentes como acordeón */
.ruta2 details { border-radius: var(--radio-s); }
.ruta2 .guia details, .ruta2 .faq details, .ruta2 main details:not([class]) { border: 1px solid var(--borde); background: var(--superficie); margin: 0 0 .6rem; padding: 0; }
.ruta2 main details:not([class]) > summary { position: relative; display: block; list-style: none; cursor: pointer; min-height: 48px; padding: .85rem 3rem .85rem 1.1rem; font-weight: 650; color: var(--titulo); }
.ruta2 main details:not([class]) > summary::-webkit-details-marker { display: none; }
.ruta2 main details:not([class]) > summary::after { content: ""; position: absolute; right: 1.1rem; top: 50%; width: .7rem; height: .7rem; margin-top: -.5rem;
  border-right: 2.5px solid var(--acento-texto); border-bottom: 2.5px solid var(--acento-texto); transform: rotate(45deg); transition: transform .18s ease; }
.ruta2 main details:not([class])[open] > summary::after { transform: rotate(225deg); margin-top: -.15rem; }
.ruta2 main details:not([class])[open] > summary { border-bottom: 1px solid var(--borde); }
.ruta2 main details:not([class]) > :not(summary) { padding-inline: 1.1rem; }
.ruta2 main details:not([class]) > :not(summary):first-of-type { padding-top: .8rem; }
.ruta2 main details:not([class]) > :last-child { padding-bottom: .9rem; margin-bottom: 0; }
.ruta2 main details:not([class]) > summary:hover { background: var(--suave); border-radius: var(--radio-s); }

/* Fuentes oficiales: lista ordenada y compacta */
.ruta2 #fuentes ul { list-style: none; padding: 0; margin: 0 0 .5rem; display: grid; gap: .45rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.ruta2 #fuentes li { padding: .7rem .9rem .7rem 2.3rem; border-radius: var(--radio-s); background: var(--superficie); border: 1px solid var(--borde); position: relative; font-size: .95rem; line-height: 1.4; }
.ruta2 #fuentes li::before { content: ""; position: absolute; left: .85rem; top: .95rem; width: .85rem; height: .85rem; border-radius: 3px; border: 2px solid var(--accion-borde); }

/* Siguiente paso: la invitación al final de cada guía */
.ruta2 .siguiente-guia { border: 0; border-radius: calc(var(--radio) + 4px); background: var(--banda-tinta); color: var(--sobre-banda); padding: clamp(1.4rem, 4vw, 2rem); }
.ruta2 .siguiente-guia h2 { color: #fffaf0; font-size: clamp(1.3rem, 3vw, 1.6rem); margin: 0 0 1rem; }
.ruta2 .siguiente-guia ul { list-style: none; padding: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.ruta2 .siguiente-guia a { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 56px; height: 100%; padding: .8rem 1rem; border-radius: 14px;
  background: rgba(255, 250, 240, .07); border: 1px solid rgba(255, 250, 240, .18); color: #fffaf0; text-decoration: none; }
.ruta2 .siguiente-guia a::after { content: "→"; color: var(--naranja); font-size: 1.2rem; transition: transform .18s ease; }
.ruta2 .siguiente-guia a:hover { background: rgba(255, 250, 240, .14); border-color: rgba(255, 250, 240, .4); }
.ruta2 .siguiente-guia a:hover::after { transform: translateX(3px); }
.ruta2 .siguiente-guia a:focus-visible { outline-color: var(--naranja); }

/* Relacionado */
.ruta2 .guia > section:not([class]) > h2 { font-size: 1.35rem; }
.ruta2 .metodo-enlace { font-size: .86rem; }

/* Carril de herramientas (098) a juego */
.ruta2 .carril-guia { border-radius: var(--radio); }

/* ======================================================================================================================
   PIE
   ====================================================================================================================== */
.ruta2 .pie--web { background: var(--banda-tinta); box-shadow: none; padding-top: clamp(2.5rem, 6vw, 4rem); position: relative; }
.ruta2 .pie--web::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--naranja) 0 33%, #fffaf0 33% 66%, var(--verde-claro) 66%); opacity: .9; }
.ruta2 .pie--web h2.pie__titulo { margin: 0 0 .7rem; font: 700 .76rem/1.3 var(--fuente-texto); letter-spacing: .12em; text-transform: uppercase; color: #ffae73; }
.ruta2 .pie--web a { color: #e8e1d4; }
.ruta2 .pie--web a:hover { color: #fff; }
.ruta2 .pie--web .marca { color: #fffaf0; }
.ruta2 .pie__marca p, .ruta2 .pie__legal { color: #c3ccd3; }
.ruta2 .pie__canales a { color: #fffaf0; }
.ruta2 .pie__canales a { border-radius: 999px; }

/* ---------- Movimiento: solo donde ayuda, y nunca con movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .ruta2 *, .ruta2 *::before, .ruta2 *::after { transition: none !important; animation: none !important; }
  .ruta2 .tarjeta--enlace:hover, .momento:hover, .ruta2 .boton--primario:hover { transform: none; }
}
@media print {
  .portada-heroe__escena, .cabecera-editorial__ilus, .cabecera-seccion__ilus, .cabecera-herramienta__ilus, .tema-mosaico__ilus, .progreso-lectura { display: none !important; }
  .ruta2 .claves-guia, .ruta2 .siguiente-guia { background: none; color: inherit; border: 1px solid #999; }
}

/* ---------- Tablas de las guías en el móvil: una ficha por fila, con la cabecera de cada columna encima del dato ---------- */
@media (max-width: 640px) {
  .ruta2 .tabla-apilable { overflow: visible; border: 0; background: none; border-radius: 0; }
  .ruta2 .tabla-apilable table, .ruta2 .tabla-apilable tbody, .ruta2 .tabla-apilable tr, .ruta2 .tabla-apilable td, .ruta2 .tabla-apilable tbody th { display: block; width: auto; }
  .ruta2 .tabla-apilable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ruta2 .tabla-apilable tr { margin: 0 0 .7rem; padding: .7rem 1rem; border: 1px solid var(--borde); border-radius: var(--radio-s); background: var(--superficie) !important; }
  .ruta2 .tabla-apilable td, .ruta2 .tabla-apilable tbody th { min-width: 0; padding: .3rem 0; border: 0; text-align: left; hyphens: manual; }
  .ruta2 .tabla-apilable td::before, .ruta2 .tabla-apilable tbody th::before { content: attr(data-label); display: block; font: 700 .72rem/1.3 var(--fuente-texto); letter-spacing: .06em;
    text-transform: uppercase; color: var(--texto-suave); }
  .ruta2 .tabla-apilable tr > :first-child { padding-top: 0; font-family: var(--fuente-titulo); font-weight: 700; font-size: 1.06rem; color: var(--titulo); }
  .ruta2 .tabla-apilable tr > :first-child::before { content: none; }
}

/* ---------- Grupos de enlaces en las secciones (099): la pared de tarjetas pasa a tres bloques con título ---------- */
.grupo-enlaces { padding-top: clamp(1.2rem, 3vw, 2rem); }
.grupo-enlaces > h2 { margin-bottom: .3rem; }
.grupo-enlaces > p { margin: 0 0 1rem; max-width: 40rem; }
.grupo-enlaces .rejilla--3:has(> :nth-child(4):last-child) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
/* Índices de guías: descripciones a tres líneas para escanear (el texto completo sigue en el HTML) y rejillas sin huérfanas */
.ruta2 .rejilla a.tarjeta--enlace > p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ruta2 .rejilla:has(> :nth-child(5):last-child) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr)); }

/* Bandas oscuras heredadas (.heroe: mapa, «Cerca de ti», Plus): títulos y botones claros sobre la tinta */
.ruta2 .heroe { background-color: var(--banda-tinta); color: var(--sobre-banda-suave); }
.ruta2 .heroe h1, .ruta2 .heroe h2, .ruta2 .heroe h3 { color: #fffaf0; }
.ruta2 .heroe .boton--secundario { color: #fffaf0; border-color: rgba(255, 250, 240, .6); background: transparent; }
.ruta2 .heroe .boton--secundario:hover { background: #fffaf0; color: var(--tinta-900); }
.ruta2 .heroe a:not(.boton) { color: #fffaf0; }
.ruta2 .heroe :focus-visible { outline-color: var(--naranja); }
.ruta2 .rejilla:has(> :nth-child(4):last-child) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
/* Etiqueta «Próximamente» en bandas oscuras y enlaces sueltos al final de un aviso: legibles y con objetivo de 24 px */
.ruta2 .heroe .etiqueta { background: #fffaf0; color: var(--tinta-900); }
.ruta2 section > .etiqueta + a, .ruta2 .aviso > a:last-child { display: inline-block; min-height: 24px; padding-block: .15rem; }

/* ---------- Encargo 103: checklist de 30 días, Radar Ruta NL, novedades y cierre de las guías ---------- */
.ruta2 .checklist__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ruta2 .checklist__lista li { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .35rem .75rem; padding: .6rem 0; border-top: 1px solid var(--borde); }
.ruta2 .checklist__lista li:first-child { border-top: 0; }
.ruta2 .checklist__lista label { display: flex; gap: .7rem; align-items: flex-start; flex: 1 1 22rem; min-width: 0; cursor: pointer; }
.ruta2 .checklist__lista input[type=checkbox] { flex: none; width: 1.35rem; height: 1.35rem; margin: .15rem 0 0; accent-color: var(--accion); }
.ruta2 .checklist__lista input:checked + span { color: var(--texto-suave); text-decoration: line-through; text-decoration-thickness: 1px; }
.ruta2 .checklist__guia { flex: none; margin-left: 2.05rem; font-weight: 650; min-height: 24px; display: inline-flex; align-items: center; }
.ruta2 .etiqueta-situacion { display: inline-block; padding: .05rem .5rem; border-radius: 999px; background: var(--acento-suave); color: var(--acento-texto); font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.ruta2 .checklist__alarma { border-left: 4px solid var(--acento); }
.ruta2 .radar__estado { border-left: 4px solid var(--borde-acento); }
.ruta2 .radar-muestra { border: 2px dashed var(--borde-fuerte); border-radius: var(--radio); padding: 1.1rem 1.2rem; background: var(--superficie); display: grid; gap: .9rem; }
.ruta2 .radar-muestra__aviso { margin: 0; font-weight: 750; color: var(--acento-texto); letter-spacing: .02em; }
.ruta2 .radar-muestra__cab { margin: 0; font-family: var(--fuente-titulos, inherit); font-size: 1.15rem; color: var(--titulo); }
.ruta2 .radar-muestra__item { border-top: 1px solid var(--borde); padding-top: .7rem; }
.ruta2 .radar-muestra__item h3 { margin: 0 0 .3rem; font-size: 1.02rem; }
.ruta2 .radar-muestra__item p { margin: .2rem 0; }
.ruta2 .novedades { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.ruta2 .novedades time { display: block; font-size: .78rem; font-weight: 700; color: var(--texto-suave); letter-spacing: .03em; }
.ruta2 .cierre-guia .botones { margin: .2rem 0; }
.ruta2 .solo-imprimir { display: none; }
@media print {
  .ruta2 .cabecera, .ruta2 .pie, .ruta2 .migas, .ruta2 .no-imprimir, .ruta2 .cierre-guia, .ruta2 .saltar { display: none !important; }
  .ruta2 .solo-imprimir { display: block; }
  .ruta2 .checklist .tarjeta { box-shadow: none; border: 1px solid #999; break-inside: avoid; }
  .ruta2 .checklist__guia { display: none; }
  .ruta2 .checklist__lista input[type=checkbox] { accent-color: #000; }
}
.ruta2 .novedades + p { margin-top: .9rem; }
