/* /siapabot-reportes versions (noindex): charts and maps of the Zapopan and Guadalajara «Falta de agua» lists.
   Motion only on transform and opacity, inside no-preference; with reduced motion everything shows at once. */
.serie .otro { fill: var(--s3) }
.serie .ventana { fill: var(--subtle); opacity: .7 }
.serie .mun-et { font: italic 14px var(--serif); fill: var(--fg) }
.serie .fecha { font-size: 11px }
.claves { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0 0; padding: 0; list-style: none; font-size: .85rem; color: var(--muted) }
.claves .sw { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 2px; vertical-align: -1px; background: var(--sw) }
.claves .sw.uno { --sw: var(--s1) } .claves .sw.otro { --sw: var(--s3) } .claves .sw.ventana { --sw: var(--subtle) }
details.tabla { margin: 8px 0 0; font-size: .85rem }
details.tabla summary { cursor: pointer; color: var(--link) }
.tabla-scroll { max-height: 320px; overflow: auto; margin-top: 8px; border: 1px solid var(--line) }
.tabla-scroll table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums }
.tabla-scroll th, .tabla-scroll td { padding: 4px 8px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; white-space: nowrap }
.tabla-scroll thead th { position: sticky; top: 0; background: var(--surface); font-weight: 600 }

.reloj svg { display: block; width: min(100%, 360px); margin: 0 auto }
.reloj text { font: 12px var(--font); fill: var(--muted) }
.reloj .centro { font: italic 16px var(--serif); fill: var(--fg) }
.reloj .gl { stroke: var(--grid) }
.reloj .uno { fill: var(--s1) } .reloj .otro { fill: var(--s3) }
.relojes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px }
.relojes h3 { margin: 0 0 4px; text-align: center; font: italic 400 1.2rem var(--serif) }

.semana svg { display: block; width: 100%; height: auto }
.semana text { font: 12px var(--font); fill: var(--muted) }
.semana .cero { stroke: var(--line); stroke-width: 1 }

.cuatro svg { display: block; width: 100%; height: auto }
.cuatro text { font: 12px var(--font); fill: var(--muted) }
.cuatro .mun { font: italic 15px var(--serif); fill: var(--fg) }
.cuatro .fecha { font-size: 11px }
.cuatro .cero { stroke: var(--line); stroke-width: 1 }
.cuatro .nulo { fill: url(#sb-raya) } .cuatro .raya { fill: var(--line) }
.cuatro .solo { stroke: var(--muted); stroke-width: 1.5 } .cuatro .solo-et { font-size: 11px }
.cuatro .grupo-et { font-size: 12px; fill: var(--fg) }
.claves.escalas { gap: 8px 28px; align-items: flex-end }
.claves.escalas li { display: grid; grid-template-columns: repeat(5, 30px); column-gap: 2px }
.claves.escalas li > b { grid-column: 1 / -1; font-weight: 600; color: var(--fg); margin-bottom: 2px }
.claves.escalas .rampa-ley, .claves.escalas .ets { display: contents }
.claves.escalas .rampa-ley i { height: 10px }
.claves.escalas .ets span { font-size: .75rem; font-variant-numeric: tabular-nums }
.claves.escalas li:last-child { display: block; align-self: center }
.claves .sw.nulo { background: repeating-linear-gradient(135deg, var(--line) 0 2px, transparent 2px 6px); box-shadow: inset 0 0 0 1px var(--line) }

.top-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px }
.top-col h3 { margin: 0 0 8px; font: italic 400 1.2rem var(--serif); color: var(--fg) }
.top-col ol { margin: 0; padding: 0; list-style: none; font-size: .92rem }
.top-col li { display: grid; grid-template-columns: minmax(0, 11rem) 1fr 3.2rem; align-items: center; gap: 8px; padding: 2px 0 }
.top-col .nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.top-col .barra { height: 12px }
.top-col .barra span { display: block; height: 100%; width: var(--w); background: var(--s1); border-radius: 0 2px 2px 0; transform-origin: left }
.top-col .n { text-align: right; font-variant-numeric: tabular-nums }

.unidades { display: grid; gap: 16px }
.unidades .et { margin: 0 0 4px; font-size: .92rem; color: var(--muted) }
.unidades .et b { font: 400 1.4rem var(--serif); color: var(--fg); font-variant-numeric: tabular-nums }
.cuadros { display: flex; flex-wrap: wrap; gap: 2px }
.cuadros i { width: 7px; height: 7px; border-radius: 1px; background: var(--s1) }
.cuadros.otro i { background: var(--s3) }

.mapa-grande { position: relative; height: min(76vh, 680px); min-height: 360px; border: 1px solid var(--line) }
.mapa-grande .puntos-mapa { position: absolute; inset: 0; height: auto }
.mapa-grande .keys.sobre { position: absolute; left: 8px; bottom: 8px; z-index: 500; margin: 0; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; font-size: .85rem; list-style: none }
.keys .sw { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 2px; vertical-align: -1px; background: var(--sw) }
.control-dia { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin: 12px 0 0 }
.control-dia input[type=range] { width: 100%; accent-color: var(--brand) }
.control-dia output { font: italic 1.1rem var(--serif); min-width: 12ch; text-align: right }
.mini { margin: 4px 0 0 }

.busca { display: flex; flex-direction: column; gap: 4px; max-width: 420px; font-weight: 600 }
.busca input { font: inherit; font-weight: 400; padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--fg) }
.cifras { margin: 16px 0 0 }
.aviso-datos { margin: 24px 0 0; padding: 16px 20px; border: 3px double var(--brand); border-radius: 4px; background: var(--surface) }
.aviso-datos ul { margin: 0; padding-left: 1.2em } .aviso-datos li { margin: 0 0 6px }

@media (prefers-reduced-motion: no-preference) {
  .espejo.crece .dia { transform: scaleY(0); opacity: 0; transition: transform .5s cubic-bezier(.2, .7, .2, 1), opacity .3s; transition-delay: calc(var(--i) * 18ms) }
  .espejo.crece .dia.si { transform: scaleY(1); opacity: 1 }
  .reloj.gira .hora { opacity: 0; transition: opacity .35s; transition-delay: calc(var(--i) * 30ms) }
  .reloj.gira .hora.si { opacity: 1 }
  .semana .celda { opacity: 0; transition: opacity .4s; transition-delay: calc(var(--i) * 14ms) }
  .semana .celda.si { opacity: 1 }
  .cuatro .celda { opacity: 0; transition: opacity .4s; transition-delay: calc(var(--i) * 18ms) }
  .cuatro .celda.si { opacity: 1 }
  .top-col .barra span { transform: scaleX(0); transition: transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i) * 40ms) }
  .top-col.si .barra span { transform: scaleX(1) }
  .cuadros i { opacity: .12; transition: opacity .25s }
  .cuadros i.si { opacity: 1 }
}
/* The day slider (version 2): days after the chosen one stay faint. */
.espejo.corte .dia:not(.si) { opacity: .2 }
@media (prefers-reduced-motion: no-preference) { .espejo.corte .dia { transition: opacity .2s } }
/* Inside the sticky scene (version 1) everything fits 84vh. */
.capa .cuadros { gap: 1px }
.capa .cuadros i { width: 5px; height: 5px }
.capa .unidades { gap: 8px }
.capa .unidades .et b { font-size: 1.1rem }
.capa .top-col { grid-template-columns: 1fr 1fr; gap: 16px }
.capa .top-col li { grid-template-columns: minmax(0, 1fr) 4rem 2.6rem; font-size: .85rem }
@media (max-width: 860px) { .capa .top-col { grid-template-columns: 1fr } .capa .top-col ol li:nth-child(n+6) { display: none } }
.capa .relojes { grid-template-columns: 1fr 1fr; gap: 8px }
/* A layer taller than the scene overflows downward, so its first label never hides under the bar; on phones the squares shrink so the four groups fit. */
.relato.vivo .capa { justify-content: safe center }
@media (max-width: 860px) { .capa .cuadros i { width: 4px; height: 4px } }
.capa .reloj svg { width: min(100%, 300px) }
/* Longest run of consecutive days with reports, one row per colonia. */
.rachas { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none }
.rachas .et { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: .92rem }
.rachas .et .m { color: var(--muted); font-size: .85rem }
.rachas .et .n { margin-left: auto; font-variant-numeric: tabular-nums }
.pista { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 1px; height: 14px; margin-top: 2px; border-bottom: 1px solid var(--line) }
.pista > * { grid-row: 1; border-radius: 1px }
.pista .dia { background: var(--s1); opacity: .3 }
.pista .tramo { z-index: 1; background: var(--s1); border-radius: 3px; transform-origin: left }
.pista .hueco { background: var(--subtle) }
.pista .fuera { background: repeating-linear-gradient(135deg, var(--line) 0 2px, transparent 2px 6px) }
.rachas .eje { display: grid; grid-template-columns: repeat(var(--n), 1fr); font-size: .75rem; color: var(--muted) }
.rachas .eje span { grid-row: 1; white-space: nowrap }
.claves .sw.hueco { --sw: var(--subtle) } .claves .sw.fuera { background: repeating-linear-gradient(135deg, var(--line) 0 2px, transparent 2px 6px) }
.claves .sw.dia { --sw: var(--s1); opacity: .3 }
@media (prefers-reduced-motion: no-preference) {
  .rachas .tramo { transform: scaleX(0); transition: transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i) * 50ms) }
  .rachas.si .tramo { transform: scaleX(1) }
}
/* Version 5: map forms. */
.chip { padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg); font: inherit; font-size: .92rem; font-weight: 500; cursor: pointer }
.chip[aria-pressed="true"] { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, var(--surface)); color: var(--link); font-weight: 600 }
.modos { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 }
.nota-modo { min-height: 3em; margin: 8px 0 0 }
.sin-calles.leaflet-container { background: var(--bg) }
.picos-mapa { pointer-events: none }
.pico { fill: var(--s1); fill-opacity: .55; stroke: var(--s1); stroke-width: 1; stroke-linejoin: round }
.pico.z { fill: var(--s3); stroke: var(--s3) }
.pico.foco { fill-opacity: 1; stroke: var(--fg); stroke-width: 1.5 }
.et-mapa { font: 600 11px var(--font); fill: var(--fg); text-anchor: middle; paint-order: stroke; stroke: var(--bg); stroke-width: 3px; stroke-linejoin: round }
.keys.sobre.limpia { background: var(--surface); z-index: 500; list-style: none; margin: 0; display: grid; gap: 8px; left: 12px; bottom: 12px; padding: 12px; border: 0; border-radius: 8px; box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 4px 16px rgb(0 0 0 / .08); font-size: .75rem; color: var(--muted) }
.keys.limpia li { display: grid; gap: 4px }
.keys.limpia .sin { display: flex; align-items: center; gap: 6px }
.keys.limpia .sin .sw { width: 12px; height: 12px; margin: 0; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--line) }
.keys.limpia b { font-weight: 600; color: var(--fg) }
.keys.limpia .rampa-ley, .keys.limpia .ets { display: grid; grid-template-columns: repeat(5, 28px); gap: 2px }
.keys.limpia .rampa-ley i { height: 10px }
.keys.limpia .rampa-ley i:first-child { border-radius: 2px 0 0 2px }
.keys.limpia .rampa-ley i:last-child { border-radius: 0 2px 2px 0 }
.keys.limpia .ets { font-variant-numeric: tabular-nums }
.keys.limpia .pico-ley { display: flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; line-height: 1.6 }
.keys.limpia .biv-c { display: flex; gap: 12px; align-items: center }
.keys.limpia .rej { display: grid; grid-template-columns: repeat(3, 14px); gap: 2px }
.keys.limpia .rej i { width: 14px; height: 14px }
.keys.limpia .ejes { display: grid; gap: 4px; line-height: 1.3 }
.mapa-grande:has(.sin-calles), .capa.mapa:has(.sin-calles) { border: 0 }
.puntos-mapa.sin-calles { border-color: var(--line); background: var(--bg) }
