/* Incendios.net · estilos públicos */
:root {
  --bg: #0d1117; --bg2: #151b24; --panel: rgba(16, 21, 29, .9); --panel-solid: #12171f; --text: #e8edf3; --muted: #93a0b2;
  --line: rgba(255, 255, 255, .09); --accent: #ff5a1f; --accent2: #ffb02e; --ok: #22c55e; --warn: #f59e0b; --bad: #ef4444;
  --shadow: 0 8px 30px rgba(0, 0, 0, .45); --r: 14px; --top: 0px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
[data-theme="light"] {
  --bg: #f4f5f7; --bg2: #fff; --panel: rgba(255, 255, 255, .93); --panel-solid: #fff; --text: #141922; --muted: #596577;
  --line: rgba(0, 0, 0, .1); --shadow: 0 8px 28px rgba(20, 30, 50, .18);
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
[data-theme="light"] { color-scheme: light; }
body { margin: 0; font: 16px/1.5 var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
/* iconos: solo los del interfaz (no el SVG de overlays de Leaflet) */
.btn-i svg, .btn svg, .search > svg { width: 20px; height: 20px; flex: none; }
.brand-ico, .brand-lg svg { flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); font-size: 13px; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }

/* ===== Página de mapa ===== */
body.map-page { height: 100vh; height: 100dvh; overflow: hidden; --top: 0px; }
body.map-page.has-banner { --top: 34px; }
.banner { position: fixed; z-index: 1100; top: 0; left: 0; right: 0; height: 34px; display: flex; align-items: center; justify-content: center; background: linear-gradient(90deg, #b91c1c, var(--accent)); color: #fff; font-weight: 600; font-size: 13px; padding: 0 12px; text-align: center; }
.banner a { color: #fff; text-decoration: underline; }
#map { position: fixed; top: var(--top); left: 0; right: 0; bottom: 0; background: var(--bg); }
.leaflet-container { font-family: var(--font); background: var(--bg); }
.map-page .leaflet-bottom { bottom: 38px; }
.map-page .leaflet-top { top: 70px; }
.leaflet-control-zoom a, .leaflet-bar a { background: var(--panel-solid) !important; color: var(--text) !important; border-color: var(--line) !important; }
.leaflet-control-attribution { background: var(--panel) !important; color: var(--muted) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-control-scale-line { background: var(--panel); color: var(--text); border-color: var(--muted); }
.sel-ring { animation: ringpulse 1.6s ease-out infinite; }
@keyframes ringpulse { 0% { stroke-opacity: .95; } 100% { stroke-opacity: .15; } }

.topbar { position: fixed; z-index: 1000; top: calc(var(--top) + 10px); left: 10px; right: 10px; min-height: 54px; display: flex; align-items: center; gap: 14px; padding: 7px 10px 7px 14px;
  background: var(--panel); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); flex: none; } .brand:hover { text-decoration: none; }
.brand-ico { width: 30px; height: 30px; color: var(--accent); filter: drop-shadow(0 0 8px rgba(255, 90, 31, .55)); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt strong { font-size: 16px; letter-spacing: -.01em; }
.brand-txt h1 { margin: 0; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.live { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 99px; background: rgba(34, 197, 94, .12); color: var(--ok); white-space: nowrap; flex: none; }
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: live 1.8s infinite; }
.live.warn { background: rgba(245, 158, 11, .14); color: var(--warn); } .live.bad { background: rgba(239, 68, 68, .14); color: var(--bad); }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); } 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.search { position: relative; flex: 1 1 280px; max-width: 420px; display: flex; align-items: center; }
.search > svg { position: absolute; left: 11px; color: var(--muted); width: 18px; height: 18px; pointer-events: none; }
.search input { width: 100%; height: 38px; padding: 0 12px 0 36px; border-radius: 10px; border: 1px solid var(--line); background: rgba(127, 127, 127, .1); color: var(--text); font: inherit; font-size: 14px; }
.search input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.q-res { position: absolute; top: 44px; left: 0; right: 0; margin: 0; padding: 6px; list-style: none; background: var(--panel-solid); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); max-height: 60vh; overflow: auto; }
.q-res li { padding: 8px 10px; border-radius: 8px; cursor: pointer; display: flex; flex-direction: column; } .q-res li:hover { background: rgba(255, 90, 31, .12); }
.q-res li.empty { color: var(--muted); cursor: default; } .q-res small { color: var(--muted); font-size: 12px; }
.chips { display: flex; gap: 8px; margin-left: auto; }
.chip { display: flex; flex-direction: column; align-items: flex-start; padding: 3px 12px; border-left: 1px solid var(--line); line-height: 1.15; }
.chip b { font-size: 18px; font-variant-numeric: tabular-nums; } .chip span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.actions { display: flex; gap: 4px; margin-left: 4px; }
.btn-i { width: 38px; height: 38px; display: grid; place-items: center; background: transparent; border: 0; border-radius: 10px; color: var(--text); }
.btn-i:hover { background: rgba(127, 127, 127, .16); }

.panel { position: fixed; z-index: 900; top: calc(var(--top) + 76px); bottom: 132px; width: 330px; display: flex; flex-direction: column; background: var(--panel);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.panel[hidden] { display: none; }
.panel.left { left: 10px; } .panel.right { right: 10px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 8px; }
.panel-h h2 { margin: 0; font-size: 15px; } .panel-h small { color: var(--muted); font-weight: 500; }
.x { background: transparent; border: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); } .x:hover { background: rgba(127, 127, 127, .18); color: var(--text); }
.x svg { width: 16px; height: 16px; }
.panel-b { overflow: auto; padding: 4px 14px 16px; }
.panel-b section { padding: 12px 0; border-top: 1px solid var(--line); } .panel-b section:first-child { border-top: 0; }
.panel-b h3 { margin: 0 0 9px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: flex; justify-content: space-between; }
.panel-b output { color: var(--accent2); font-weight: 700; text-transform: none; letter-spacing: 0; }
.seg { display: flex; gap: 4px; flex-wrap: wrap; }
.seg button { flex: 1 1 auto; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: transparent; font-size: 13px; }
.seg button:hover { background: rgba(127, 127, 127, .14); }
.seg button.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.check { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); }
.link { background: none; border: 0; color: var(--accent); padding: 8px 0 0; font-size: 13px; text-align: left; }
.panel-sub { display: flex; gap: 6px; padding: 0 14px 10px; } .panel-sub select { flex: 1; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-solid); color: var(--text); font-size: 13px; padding: 0 8px; }
.list { list-style: none; margin: 0; padding: 0 8px 8px; overflow: auto; flex: 1; }
.list li { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; }
.list li:hover { background: rgba(127, 127, 127, .12); } .list li.sel { background: rgba(255, 90, 31, .14); border-color: rgba(255, 90, 31, .45); }
.list li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.list b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .list small { color: var(--muted); font-size: 12px; }
.list .dot2 { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 8px currentColor; }
.list .empty { color: var(--muted); cursor: default; justify-content: center; }
.tag { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: rgba(127, 127, 127, .18); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tag.s-active { background: rgba(239, 68, 68, .18); color: #f87171; } .tag.s-detected { background: rgba(245, 158, 11, .18); color: #fbbf24; } .tag.s-controlled { background: rgba(56, 189, 248, .18); color: #38bdf8; }

.detail { position: fixed; z-index: 950; left: 10px; bottom: 46px; width: 380px; max-height: calc(100dvh - var(--top) - 170px); overflow: auto; padding: 16px 18px 16px;
  background: var(--panel); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.detail[hidden] { display: none; }
body.p-panel-layers .detail { left: 350px; }
.detail .x { position: absolute; top: 8px; right: 8px; }
.detail h3 { margin: 4px 0 2px; font-size: 18px; line-height: 1.25; padding-right: 26px; }
.d-kicker { display: flex; flex-wrap: wrap; gap: 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.d-sub { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.d-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.d-kpis div { background: rgba(127, 127, 127, .1); border-radius: 10px; padding: 8px 10px; } .d-kpis b { display: block; font-size: 21px; line-height: 1.1; font-variant-numeric: tabular-nums; } .d-kpis span { font-size: 10.5px; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; }
.detail dl { margin: 10px 0; display: grid; gap: 6px; } .detail dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; border-bottom: 1px dashed var(--line); padding-bottom: 5px; }
.detail dt { color: var(--muted); } .detail dd { margin: 0; text-align: right; } .detail dd small { color: var(--muted); }
.d-note { font-size: 13.5px; background: rgba(255, 176, 46, .1); border-left: 3px solid var(--accent2); padding: 4px 12px; border-radius: 6px; margin: 10px 0; } .d-note p { margin: 6px 0; }
.d-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: .03em; background: rgba(127, 127, 127, .2); color: var(--text); }
.badge.s-active { background: rgba(239, 68, 68, .2); color: #f87171; } .badge.s-detected { background: rgba(245, 158, 11, .2); color: #fbbf24; } .badge.s-controlled { background: rgba(56, 189, 248, .2); color: #38bdf8; } .badge.s-extinguished { background: rgba(148, 163, 184, .2); color: #94a3b8; } .badge.s-discarded { background: rgba(148, 163, 184, .2); color: #94a3b8; }
.badge.ok { background: rgba(34, 197, 94, .18); color: #4ade80; } .badge.feat { background: rgba(255, 176, 46, .2); color: var(--accent2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); text-decoration: none; } .btn.ghost { background: transparent; color: var(--text); border-color: var(--line); } .btn.ghost:hover { background: rgba(127, 127, 127, .14); }

.legend { position: fixed; z-index: 800; left: 10px; bottom: 68px; display: flex; align-items: center; gap: 12px; padding: 7px 12px; font-size: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; backdrop-filter: blur(10px); }
.legend span { display: flex; align-items: center; gap: 5px; } .legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; border: 1px solid rgba(255, 255, 255, .7); } .legend em { color: var(--muted); font-style: normal; }
body.has-detail .legend { display: none; }
.strip { position: fixed; z-index: 1000; left: 0; right: 0; bottom: 0; height: 34px; display: flex; align-items: center; gap: 16px; padding: 0 12px; font-size: 11.5px; color: var(--muted); background: var(--panel); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
.strip span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .strip strong { color: var(--accent2); } .strip a { color: var(--muted); white-space: nowrap; } .strip a:hover { color: var(--text); }

/* marcadores */
.im-wrap { background: none; border: 0; }
.leaflet-container .minimap svg, .minimap .leaflet-overlay-pane svg { max-width: none; }
.im { position: relative; display: grid; place-items: center; border-radius: 50%; color: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .55), inset 0 0 0 2px rgba(255, 255, 255, .85); cursor: pointer; transition: transform .15s; }
.im:hover { transform: scale(1.12); }
.im svg { width: 56%; height: 56%; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .4)); }
.im b { position: absolute; right: -5px; bottom: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #111827; color: #fff; font-size: 10.5px; line-height: 18px; text-align: center; border: 1.5px solid #fff; }
.im-active { background: radial-gradient(circle at 35% 30%, #f87171, #b91c1c); } .im-detected { background: radial-gradient(circle at 35% 30%, #fcd34d, #d97706); }
.im-controlled { background: radial-gradient(circle at 35% 30%, #7dd3fc, #0284c7); } .im-extinguished { background: radial-gradient(circle at 35% 30%, #94a3b8, #475569); opacity: .85; }
.im.feat { box-shadow: 0 0 0 3px rgba(255, 176, 46, .8), 0 2px 12px rgba(0, 0, 0, .6); }
.im.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #ef4444; animation: pulse 1.8s ease-out infinite; pointer-events: none; }
@keyframes pulse { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
body.z-detail .im-wrap.im-inc { opacity: 0; pointer-events: none; }
.road-tag { transform: translate(-50%, -50%); width: max-content; background: #f59e0b; color: #111; font-weight: 800; font-size: 11px; padding: 2px 6px; border-radius: 5px; border: 1.5px solid #fff; text-align: center; box-shadow: 0 1px 6px rgba(0, 0, 0, .5); cursor: pointer; white-space: nowrap; }

/* diálogos */
.dlg { border: 1px solid var(--line); border-radius: 16px; background: var(--panel-solid); color: var(--text); padding: 20px 22px; width: min(520px, 94vw); box-shadow: var(--shadow); } .dlg.wide { width: min(760px, 96vw); }
.dlg::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: blur(3px); }
.dlg h2 { margin: 0 0 12px; font-size: 18px; } .dlg label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.dlg input, .dlg textarea { display: block; width: 100%; margin-top: 4px; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(127, 127, 127, .1); color: var(--text); font: 13px ui-monospace, monospace; }
.dlg-b { display: flex; gap: 8px; justify-content: flex-end; }

/* embed */
.is-embed .search, .is-embed .chips, .is-embed #btn-share, .is-embed .banner { display: none; }
.is-embed .topbar { min-height: 46px; } .is-embed .strip a { display: none; }

/* ===== Responsive ===== */
@media (max-width: 1100px) { .chips .chip:nth-child(3) { display: none; } }
@media (max-width: 900px) { .chips { display: none; } .search { max-width: none; } }
@media (max-width: 800px) {
  .topbar { flex-wrap: wrap; gap: 8px; padding: 8px 10px; left: 8px; right: 8px; }
  .brand-txt h1 { display: none; }
  .live { margin-left: auto; padding: 4px 9px; font-size: 12px; } .actions { order: 2; margin-left: 0; }
  .search { order: 3; flex: 1 1 100%; }
  .map-page .leaflet-top { top: 120px; }
  .panel { left: 0 !important; right: 0 !important; top: auto; bottom: 34px; width: auto; max-height: 58dvh; border-radius: 18px 18px 0 0; }
  .detail { left: 8px !important; right: 8px; bottom: 42px; width: auto; max-height: 50dvh; }
  .legend { display: none; } .strip a { display: none; }
}

/* ===== Páginas de contenido ===== */
body.site { min-height: 100vh; display: flex; flex-direction: column; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--panel-solid); border-bottom: 1px solid var(--line); }
.site-header .in { max-width: 1120px; margin: 0 auto; padding: 10px 18px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-header nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; } .site-header nav a { color: var(--text); padding: 7px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; } .site-header nav a:hover, .site-header nav a.on { background: rgba(255, 90, 31, .14); color: var(--accent); text-decoration: none; }
.brand-lg { font-weight: 800; font-size: 18px; display: flex; align-items: center; gap: 8px; color: var(--text); } .brand-lg svg { color: var(--accent); width: 26px; height: 26px; } .brand-lg:hover { text-decoration: none; }
main.container { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 26px 18px 56px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 8px; } .crumbs a { color: var(--muted); }
main h1 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.2; margin: 0 0 8px; letter-spacing: -.02em; }
main h2 { font-size: 21px; margin: 30px 0 12px; } main h3 { font-size: 17px; }
.lead { color: var(--muted); font-size: 16.5px; max-width: 760px; }
.prose { max-width: 780px; font-size: 16.5px; line-height: 1.7; } .prose h2 { margin-top: 28px; } .prose img { max-width: 100%; height: auto; border-radius: 10px; } .prose table { border-collapse: collapse; width: 100%; } .prose td, .prose th { border: 1px solid var(--line); padding: 6px 9px; }
.grid { display: grid; gap: 14px; } .g3 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); } .g2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; } a.card { display: block; color: var(--text); } a.card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.card h3 { margin: 0 0 4px; font-size: 16px; } .card p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.kpi { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; } .kpi b { display: block; font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; } .kpi span { font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; } .tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); } .tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; } .tbl tr:hover td { background: rgba(127, 127, 127, .06); }
.minimap { height: 420px; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; background: var(--bg2); }
.risk { display: inline-block; padding: 3px 11px; border-radius: 99px; font-weight: 700; font-size: 13px; color: #fff; }
.risk-0 { background: #16a34a; } .risk-1 { background: #65a30d; } .risk-2 { background: #ca8a04; } .risk-3 { background: #ea580c; } .risk-4 { background: #dc2626; } .risk-5 { background: #7f1d1d; }
.site-footer { border-top: 1px solid var(--line); background: var(--panel-solid); color: var(--muted); font-size: 13.5px; } .site-footer .in { max-width: 1120px; margin: 0 auto; padding: 22px 18px; display: grid; gap: 10px; } .site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; } .site-footer a { color: var(--muted); } .site-footer a:hover { color: var(--text); }
.notice { background: rgba(255, 176, 46, .1); border: 1px solid rgba(255, 176, 46, .35); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 14px 0; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }

/* ---- v1.1: secciones nuevas ---- */
.tw { overflow-x: auto; }
.chartbox { position: relative; height: 280px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.bar-h { height: 8px; border-radius: 4px; background: rgba(127, 127, 127, .2); overflow: hidden; min-width: 80px; } .bar-h i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent2), var(--accent)); }
.site-header nav a.cta { background: var(--accent); color: #fff; margin-left: 6px; } .site-header nav a.cta:hover { filter: brightness(1.1); color: #fff; }
.fcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px 24px; margin-bottom: 8px; }
.fcols h3 { margin: 0 0 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text); } .fcols a { display: block; padding: 3px 0; }
.chip-link { display: inline-block; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font-size: 13.5px; } .chip-link:hover { border-color: var(--accent); text-decoration: none; }
.f-lbl { display: block; margin: 12px 0 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.f-in { width: 100%; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 15px var(--font, system-ui); } .f-in:focus { outline: 2px solid var(--accent); border-color: transparent; }
.faq details { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; } .faq summary { cursor: pointer; font-weight: 600; } .faq p { margin: 8px 0 2px; color: var(--muted); }
/* menú de secciones en el mapa */
.menu-pop { position: fixed; z-index: 1200; top: calc(var(--top, 0px) + 58px); right: 10px; width: 250px; padding: 8px; background: var(--panel-solid); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.menu-pop a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 9px; color: var(--text); font-size: 14.5px; } .menu-pop a:hover { background: rgba(255, 90, 31, .12); text-decoration: none; }
.menu-pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }

/* v1.2 · selector de zona */
.zones{display:flex;gap:2px;background:var(--panel-2,rgba(120,120,120,.14));border-radius:10px;padding:3px}
.zones button{border:0;background:transparent;color:inherit;font:600 12.5px/1 inherit;font-family:inherit;padding:7px 10px;border-radius:8px;cursor:pointer;white-space:nowrap}
.zones button[aria-selected="true"]{background:var(--accent,#ea580c);color:#fff}
@media(max-width:1100px){.zones{order:5;width:100%;overflow-x:auto}}

/* v1.2 · diseños de portada (se eligen en Admin → Apariencia) */
[data-theme="light"][data-design="papel"]{--bg:#f6f1e6;--bg2:#fffdf8;--panel:#fffdf8f2;--panel-solid:#fffdf8;--text:#1f2937;--muted:#5b6472;--line:#e3dac6;--accent:#b93a0a;--accent2:#d97706;--shadow:0 8px 28px rgba(80,60,20,.16);--r:12px}
[data-design="papel"] .brand-txt strong,[data-design="papel"] .brand-txt h1,[data-design="papel"] .chip b{font-family:Georgia,'Iowan Old Style',serif}
[data-theme="light"][data-design="panel"]{--bg:#f1f5f9;--bg2:#ffffff;--panel:#fffffff2;--panel-solid:#ffffff;--text:#0f172a;--muted:#64748b;--line:#e2e8f0;--accent:#e04a1f;--accent2:#f59e0b;--shadow:0 6px 20px rgba(15,23,42,.12);--r:12px}
[data-theme="light"][data-design="menta"]{--bg:#e6f3f0;--bg2:#ffffff;--panel:#fffffff2;--panel-solid:#ffffff;--text:#0f172a;--muted:#4f6f69;--line:#cfe3de;--accent:#0f766e;--accent2:#ea580c;--shadow:0 10px 30px rgba(15,118,110,.2);--r:22px}
[data-theme="light"][data-design="editorial"]{--bg:#fbfaf6;--bg2:#fbfaf6;--panel:#fbfaf6f2;--panel-solid:#fbfaf6;--text:#1a1a1a;--muted:#6b665c;--line:#d9d4c7;--accent:#c8102e;--accent2:#c8102e;--shadow:0 2px 0 #1a1a1a;--r:2px}
[data-design="editorial"] .brand-txt strong,[data-design="editorial"] .brand-txt h1,[data-design="editorial"] .chip b{font-family:Georgia,'Playfair Display',serif}
[data-theme="light"][data-design="pastel"]{--bg:#e8f0fc;--bg2:#ffffff;--panel:#fffffff2;--panel-solid:#ffffff;--text:#0f172a;--muted:#64748b;--line:#dbe4f5;--accent:#3b5bdb;--accent2:#e8590c;--shadow:0 8px 24px rgba(59,91,219,.16);--r:18px}
[data-design="editorial"] .topbar{border-bottom:2px solid #1a1a1a;border-radius:0}
[data-design="menta"] .topbar,[data-design="pastel"] .topbar{border-radius:99px}

/* v1.3 · contraste en tema claro: texto oscuro sobre fondos suaves */
[data-theme="light"] .tag.s-active, [data-theme="light"] .badge.s-active { background: #fee2e2; color: #991b1b; }
[data-theme="light"] .tag.s-detected, [data-theme="light"] .badge.s-detected { background: #fef3c7; color: #78350f; }
[data-theme="light"] .tag.s-controlled, [data-theme="light"] .badge.s-controlled { background: #e0f2fe; color: #075985; }
[data-theme="light"] .tag.s-extinguished, [data-theme="light"] .badge.s-extinguished, [data-theme="light"] .badge.s-discarded { background: #e2e8f0; color: #334155; }
[data-theme="light"] .badge.ok { background: #dcfce7; color: #166534; } [data-theme="light"] .badge.feat { background: #ffedd5; color: #9a3412; }
.tag { font-size: 12.5px; } .badge { font-size: 12px; }
.tag.s-active, .tag.s-detected, .tag.s-controlled { font-weight: 800; }

/* v1.4 · aviso de cookies */
.ck { position: fixed; z-index: 2000; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: center; pointer-events: none; }
.ck-in { pointer-events: auto; max-width: 820px; width: 100%; background: var(--panel-solid); color: var(--text); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); padding: 16px 18px; font-size: 14.5px; }
.ck-t p { margin: 4px 0 10px; color: var(--muted); line-height: 1.5; } .ck-t strong { font-size: 16px; }
.ck-opts { display: grid; gap: 8px; margin-bottom: 12px; } .ck-opts label { display: flex; gap: 10px; align-items: flex-start; } .ck-opts input { width: 18px; height: 18px; margin-top: 2px; }
.ck-b { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ck-btn { border: 1px solid var(--line); background: transparent; color: var(--text); font-weight: 700; font-size: 14.5px; padding: 10px 16px; border-radius: 10px; cursor: pointer; }
.ck-btn.pri { background: var(--accent); border-color: var(--accent); color: #fff; } .ck-btn:hover { filter: brightness(1.08); }
.linklike { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.prose table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 14.5px; } .prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: rgba(127, 127, 127, .12); }
.legal-links { display: flex; gap: 6px 18px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; }
@media (max-width: 1500px) { .topbar .live #live-txt { display: none; } .topbar .brand-txt h1 { display: none; } .zones button { padding: 7px 8px; font-size: 12px; } }
@media (max-width: 1250px) { .topbar .chips .chip span { display: none; } }
