/* Agenda País: plano de urbanista. Papel frío, tinta pizarra, un color por línea de sector. */
:root {
  --papel: #f1f4f3; --papel2: #e6ebea; --tinta: #1d2b3a; --tinta2: #44546a; --gris: #8a97a6; --regla: #cfd8d8;
  --enlace: #1f5fbf; --foco: #f5b400;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif; --texto: "Source Serif 4", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --papel: #142029; --papel2: #1b2a35; --tinta: #e4ebef; --tinta2: #b2c0cb; --gris: #6f8191; --regla: #2c3d4a; --enlace: #8ab4ff; color-scheme: dark; }
}
:root[data-theme="dark"] { --papel: #142029; --papel2: #1b2a35; --tinta: #e4ebef; --tinta2: #b2c0cb; --gris: #6f8191; --regla: #2c3d4a; --enlace: #8ab4ff; color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papel); color: var(--tinta); font: 18px/1.6 var(--texto); }
a { color: var(--enlace); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 2px; }
.saltar { position: absolute; left: -999px; } .saltar:focus { left: 8px; top: 8px; background: var(--tinta); color: var(--papel); padding: 6px 10px; z-index: 9; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1, h2, h3, summary, nav, .marca, .chip, button, table, .leyenda, .cuenta, .sectores, .indicadores, .s-n, .nota, .migas, label { font-family: var(--display); }
h2 { font-size: 30px; line-height: 1.15; font-weight: 750; font-stretch: 85%; margin: 0 0 14px; letter-spacing: -.01em; }
h3 { font-size: 20px; font-weight: 700; margin: 26px 0 8px; }

/* cabecera */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; max-width: 1240px; margin: 0 auto; flex-wrap: wrap; }
.marca { display: flex; align-items: center; gap: 8px; font-weight: 800; font-stretch: 80%; font-size: 22px; color: var(--tinta); text-decoration: none; }
.marca svg { width: 30px; height: 30px; }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; } .top nav a { color: var(--tinta2); text-decoration: none; font-weight: 600; font-size: 16px; }
.top nav a:hover { color: var(--tinta); text-decoration: underline; }
main { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* portada */
.hero { padding: 40px 0 8px; }
.hero h1 { margin: 0; font-weight: 800; font-stretch: 62%; font-size: clamp(60px, 13vw, 168px); line-height: .92; letter-spacing: -.02em; }
.hero h1 span { display: block; font-stretch: 125%; font-weight: 400; font-size: .34em; letter-spacing: .02em; color: var(--tinta2); margin-top: .45em; }
.bajada { font-size: 21px; max-width: 40em; color: var(--tinta2); margin: 18px 0 0; }
.bloque { padding: 34px 0; border-top: 1px solid var(--regla); }
.hero + .bloque { border-top: 0; }
.intro { max-width: 42em; font-size: 19px; }
.nota { color: var(--tinta2); font-size: 15px; }

/* mapa de metro */
.mapa-scroll { overflow-x: auto; margin: 6px -16px 0; padding: 0 16px; -webkit-overflow-scrolling: touch; }
.mapa { display: block; max-width: none; height: auto; font-family: var(--display); }
.m-etapa0 { fill: transparent; } .m-etapa1 { fill: var(--papel2); }
.m-anio { font-size: 15px; font-weight: 700; fill: var(--tinta2); }
.m-sec { font-size: 14px; font-weight: 700; fill: #fff; font-stretch: 85%; }
.m-con { fill: none; stroke: var(--gris); stroke-width: 1.6; stroke-dasharray: 3 3; opacity: .8; }
.m-est circle { transition: r .12s; } .m-est:hover circle, .m-est:focus circle { r: 10; }
.m-est:focus { outline: none; } .m-est:focus-visible circle { stroke: var(--foco); }
.tip { position: fixed; z-index: 20; max-width: 300px; background: var(--tinta); color: var(--papel); font: 600 14px/1.35 var(--display); padding: 8px 10px; border-radius: 6px; pointer-events: none; }
.leyenda { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 0; margin: 0 0 6px; font-size: 15px; color: var(--tinta2); }
.leyenda li { display: flex; align-items: center; gap: 6px; } .leyenda svg { width: 20px; height: 20px; } .leyenda li:last-child svg { width: 30px; }

/* balance: un punto por acción */
.puntos { display: flex; flex-wrap: wrap; gap: 5px; margin: 18px 0 10px; max-width: 900px; }
.pt { width: 15px; height: 15px; border-radius: 50%; background: var(--c); }
.pt.t-ley, .pt.t-reforma_constitucional { background: transparent; box-shadow: inset 0 0 0 3.5px var(--c); }
.pt.t-derogacion { background: linear-gradient(135deg, transparent 44%, var(--c) 44% 58%, transparent 58%); box-shadow: inset 0 0 0 3px var(--c); }
.cuenta { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 17px; color: var(--tinta2); }
.cuenta b { color: var(--tinta); font-size: 24px; font-stretch: 80%; }

/* lista de sectores */
.sectores { list-style: none; padding: 0; margin: 0; }
.sectores a { display: grid; grid-template-columns: 54px minmax(140px, 260px) 1fr auto; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--regla); color: var(--tinta); text-decoration: none; }
.sectores a:hover .sn { text-decoration: underline; }
.linea { display: block; height: 7px; border-radius: 4px; background: var(--c); position: relative; }
.linea::after { content: ""; position: absolute; right: -2px; top: -5px; width: 17px; height: 17px; border-radius: 50%; background: var(--papel); box-shadow: inset 0 0 0 4px var(--c); }
.sn { font-size: 24px; font-weight: 750; font-stretch: 80%; } .sl { color: var(--tinta2); font-family: var(--texto); font-size: 17px; } .sc { color: var(--tinta2); font-size: 15px; white-space: nowrap; }

/* página de sector */
.s-head { padding: 30px 0 22px; border-bottom: 7px solid var(--c); }
.s-head h1 { margin: 0; font-weight: 800; font-stretch: 62%; font-size: clamp(52px, 10vw, 112px); line-height: .9; }
.migas { margin: 0 0 6px; font-size: 15px; } .s-n { color: var(--tinta2); font-size: 16px; margin: 10px 0 0; }
.s-nav { position: sticky; top: 0; z-index: 5; background: var(--papel); display: flex; gap: 18px; padding: 10px 0; overflow-x: auto; border-bottom: 1px solid var(--regla); }
.s-nav a { color: var(--tinta2); font-weight: 600; white-space: nowrap; text-decoration: none; font-size: 16px; } .s-nav a:hover { color: var(--tinta); }
.prosa { max-width: 40em; } .prosa li { margin-bottom: 6px; }
.indicadores { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px 28px; }
.indicadores li { display: flex; flex-direction: column; border-top: 3px solid var(--tinta); padding-top: 8px; }
.iv { font-size: 34px; font-weight: 800; font-stretch: 75%; line-height: 1.05; } .iv small { font-size: 15px; font-weight: 600; margin-left: 4px; color: var(--tinta2); }
.ivn { font-size: 13px; color: var(--tinta2); font-family: var(--display); }
.in { font-size: 16px; line-height: 1.3; margin: 4px 0; } .if { font-size: 13px; color: var(--tinta2); }
.vision { margin: 0 0 22px; font-size: clamp(22px, 3vw, 30px); line-height: 1.35; max-width: 34em; padding-left: 18px; border-left: 4px solid var(--tinta); }
.tabla-scroll { overflow-x: auto; }
.metas { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; }
.metas caption { text-align: left; color: var(--tinta2); padding-bottom: 6px; }
.metas th, .metas td { padding: 9px 10px; border-bottom: 1px solid var(--regla); text-align: left; vertical-align: top; }
.metas thead th { border-bottom: 2px solid var(--tinta); }
.metas tbody th { font-weight: 650; max-width: 280px; } .metas tbody th small { display: block; font-weight: 400; color: var(--tinta2); font-size: 13px; }
.metas td:last-child { font-weight: 700; }

/* acciones */
.filtros { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 4px; }
.chip { border: 1.5px solid var(--tinta); background: transparent; color: var(--tinta); border-radius: 999px; padding: 5px 14px; font-size: 15px; font-weight: 600; cursor: pointer; }
.chip.on { background: var(--tinta); color: var(--papel); }
.etapa { font-size: 18px; color: var(--tinta2); margin: 28px 0 4px; font-stretch: 90%; }
.acc { border-bottom: 1px solid var(--regla); }
.acc summary { display: grid; grid-template-columns: 22px 66px 1fr auto; gap: 10px; align-items: center; padding: 12px 0; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc .g { width: 20px; height: 20px; } .aid { font-weight: 700; color: var(--tinta2); font-size: 15px; } .at { font-size: 18px; font-weight: 650; line-height: 1.3; }
.atipo { font-size: 14px; color: var(--tinta2); white-space: nowrap; }
.acc[open] summary .at { color: var(--c); }
.acc-in { padding: 0 0 18px 98px; max-width: 900px; }
.acc-in > p { margin-top: 0; }
.acc dl { display: grid; grid-template-columns: 170px 1fr; gap: 6px 16px; margin: 0; font-size: 16px; }
.acc dt { font-family: var(--display); font-weight: 700; color: var(--tinta2); } .acc dd { margin: 0; } .acc dd ul { margin: 0; padding-left: 18px; }
.acc:target summary { background: linear-gradient(90deg, var(--papel2), transparent); }
.fuentes ol { font-size: 15px; columns: 2 360px; } .fuentes li { break-inside: avoid; margin-bottom: 6px; }

/* entidades */
.buscar { display: flex; flex-direction: column; gap: 6px; font-weight: 700; max-width: 520px; }
.buscar input { font: 18px var(--display); padding: 10px 12px; border: 2px solid var(--tinta); border-radius: 8px; background: var(--papel); color: var(--tinta); }
.ent { border-bottom: 1px solid var(--regla); } .ent summary { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; cursor: pointer; font-size: 19px; }
.ent summary span { color: var(--tinta2); font-size: 15px; } .ent ul { list-style: none; padding: 0 0 14px; margin: 0; font-size: 16px; }
.ent li { padding: 4px 0; } .ent li a { font-family: var(--display); font-weight: 700; text-decoration: none; color: var(--tinta); margin-right: 6px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: 5px; }
.rol { font-family: var(--display); font-size: 13px; color: var(--tinta2); border: 1px solid var(--regla); border-radius: 999px; padding: 0 8px; margin-left: 4px; }

/* pie */
.pie { border-top: 7px solid var(--tinta); margin-top: 40px; background: var(--papel2); }
.pie-in { max-width: 1240px; margin: 0 auto; padding: 22px 16px 34px; font-size: 16px; color: var(--tinta2); }
.pie-in p { max-width: 52em; }
.apoyo { display: flex; gap: 10px; flex-wrap: wrap; }
.apoyo a, .apoyo button { font: 700 15px var(--display); border-radius: 999px; padding: 7px 16px; text-decoration: none; cursor: pointer; border: 0; }
.b-cafe { background: #ffdd00; color: #1d1d1d; } .b-yape { background: #742284; color: #fff; } .b-paypal { background: #0b3e8f; color: #fff; }
.yape { margin: 8px 0; } .yape img { display: block; margin-top: 6px; border-radius: 8px; background: #fff; }

/* consentimiento */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; max-width: 640px; margin: 0 auto; background: var(--tinta); color: var(--papel); font: 15px/1.4 var(--display); padding: 12px 14px; border-radius: 10px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.consent a { color: inherit; } .consent span { display: flex; gap: 8px; margin-left: auto; }
.consent .btn { font: 700 14px var(--display); border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer; background: var(--papel); color: var(--tinta); }
.consent .btn.ghost { background: transparent; color: var(--papel); box-shadow: inset 0 0 0 1.5px var(--papel); }

@media (max-width: 720px) {
  body { font-size: 17px; }
  .sectores a { grid-template-columns: 34px 1fr; gap: 4px 12px; } .sl, .sc { grid-column: 2; } .sc { font-size: 14px; }
  .acc summary { grid-template-columns: 20px 1fr; gap: 4px 10px; } .aid, .atipo { grid-column: 2; font-size: 13px; } .at { grid-column: 2; grid-row: 1; }
  .acc-in { padding-left: 0; } .acc dl { grid-template-columns: 1fr; } .acc dt { margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Perú 2050 */
.oe { border-bottom: 1px solid var(--regla); }
.oe summary { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; padding: 12px 0; cursor: pointer; list-style: none; align-items: baseline; }
.oe summary::-webkit-details-marker { display: none; }
.aec { font-family: var(--display); font-weight: 700; color: var(--tinta2); font-size: 15px; }
.oet { font-size: 17px; line-height: 1.35; } .oen { font-family: var(--display); font-size: 14px; color: var(--tinta2); white-space: nowrap; }
.aes { list-style: none; padding: 0 0 14px; margin: 0; }
.aes li { display: grid; grid-template-columns: 70px 1fr; gap: 2px 12px; padding: 8px 0; border-top: 1px dashed var(--regla); font-size: 15px; }
.aet { line-height: 1.4; } .aea { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px 10px; font-family: var(--display); font-size: 14px; color: var(--tinta2); }
.aes li.vacio .aet { color: var(--tinta2); } .aes li.vacio .aea { font-style: italic; }
.mini { text-decoration: none; color: var(--tinta); font-weight: 700; }
.aes li:target { background: var(--papel2); }
/* Limpieza */
.paq { border-bottom: 1px solid var(--regla); } .paq summary { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; cursor: pointer; font-family: var(--display); font-size: 19px; }
.paq summary span { color: var(--tinta2); font-size: 15px; white-space: nowrap; } .paq > p { max-width: 46em; margin: 0 0 8px; }
.normas { list-style: none; padding: 0 0 14px; margin: 0; } .normas li { padding: 10px 0; border-top: 1px dashed var(--regla); font-size: 16px; } .normas p { margin: 4px 0; max-width: 46em; }
@media (max-width: 720px) { .oe summary, .aes li { grid-template-columns: 1fr; } .aea { grid-column: 1; } }

.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; } .dos h2 { margin-bottom: 8px; }
@media (max-width: 720px) { .dos { grid-template-columns: 1fr; } }
