/* Estilos del tablero de Claude (se ajustan al design system en observatorio.css) */
.ovh { --ovh-c1: var(--color-fg-muted); --ovh-c2: var(--color-fg-muted); --ovh-c3: var(--color-fg-muted); --ovh-c4: var(--color-fg-muted); --ovh-c5: var(--color-fg-muted); --ovh-c6: var(--color-fg-muted);
  --ovh-ref: var(--ovh-c2); --ovh-ctx: var(--cds-chart-muted); --ovh-tenue: color-mix(in srgb, var(--ovh-c1) 40%, var(--color-panel)); --ovh-nd: var(--cds-chart-muted);
  font-family: var(--font-anthropic-sans); color: var(--color-fg); display: flex; flex-direction: column; gap: var(--cds-gap-xl); }
.ovh p { margin: 0; }
.ovh h1, .ovh h2, .ovh h3 { margin: 0; }
.ovh-cab { display: flex; flex-direction: column; gap: var(--cds-gap-sm); }
.ovh-etiqueta { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--color-fg-muted); }
.ovh-titulo { font-family: var(--font-anthropic-serif); font-weight: 700; font-size: var(--cds-font-size-title); line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; }
.ovh-actualizado { font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); }
.ovh-entradilla { font-size: calc(var(--cds-font-size-body) * 1.2); line-height: 1.5; max-width: 68ch; }
.ovh-entradilla b, .ovh-text b, .ovh-h3 b, .ovh-sec > h2 b { font-weight: var(--cds-font-weight-medium); font-variant-numeric: tabular-nums; }
.ovh-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--cds-gap-md); }
@media (max-width: 1079px) { .ovh-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .ovh-kpis { grid-template-columns: minmax(0, 1fr); } }
.ovh-kpi { background: var(--color-panel); border: 1px solid var(--color-border-line); border-radius: var(--cds-radius); padding: var(--cds-pad-lg); display: flex; flex-direction: column; gap: var(--cds-gap-xs); min-width: 0; }
.ovh-kpi-nombre { font-size: var(--cds-font-size-body); font-weight: var(--cds-font-weight-medium); }
.ovh-big { font-family: var(--font-anthropic-serif); font-weight: 700; font-size: var(--cds-font-size-title); line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; }
.ovh-cambio { font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); font-variant-numeric: tabular-nums; }
.ovh-spark { height: 40px; }
.ovh-fuente { font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); }
.ovh-kpi .ovh-fuente { margin-top: auto; padding-top: var(--cds-gap-sm); }
.ovh { counter-reset: ovhsec; }
.ovh-sec { display: flex; flex-direction: column; gap: var(--cds-gap-md); counter-increment: ovhsec; }
.ovh-sec > h2[data-nombre]::before { content: counter(ovhsec, decimal-leading-zero) ' · ' attr(data-nombre); display: block; margin-bottom: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--color-fg-muted); }
.ovh-sec > h2 { font-family: var(--font-anthropic-serif); font-weight: 700; font-size: var(--cds-font-size-heading); line-height: 1.25; letter-spacing: -0.01em; padding-top: var(--cds-pad-md); border-top: 1px solid var(--cds-chart-axis); text-wrap: balance; }
.ovh-rejilla { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--cds-gap-md); align-items: stretch; }
.ovh-rejilla > * { grid-column: span 6; }
.ovh-rejilla > .ovh-c4 { grid-column: span 4; }
.ovh-rejilla > .ovh-c8 { grid-column: span 8; }
.ovh-rejilla > .ovh-ancho { grid-column: 1 / -1; }
@media (max-width: 1023px) { .ovh-rejilla > *, .ovh-rejilla > .ovh-c4, .ovh-rejilla > .ovh-c8 { grid-column: 1 / -1; } }
.ovh-panel { background: var(--color-panel); border: 1px solid var(--color-border-line); border-radius: var(--cds-radius); padding: var(--cds-pad-lg); display: flex; flex-direction: column; gap: var(--cds-gap-sm); min-width: 0; }
.ovh-ancho { grid-column: 1 / -1; }
.ovh-panel[data-tipo]::before { content: attr(data-tipo); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--color-fg-muted); }
.ovh-panel > .ovh-pie { margin-top: auto; }
.ovh-dos { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--cds-gap-lg); align-items: start; }
.ovh-col { display: flex; flex-direction: column; gap: var(--cds-gap-md); min-width: 0; }
@media (max-width: 1023px) { .ovh-dos { grid-template-columns: minmax(0, 1fr); } }
.ovh-subtit { font-size: var(--cds-font-size-caption); font-weight: var(--cds-font-weight-medium); margin-top: var(--cds-gap-xs) !important; }
.ovh-h3 { font-family: var(--font-anthropic-serif); font-weight: 700; font-size: var(--cds-font-size-body); line-height: 1.3; text-wrap: balance; }
.ovh-sub { font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); }
.ovh-text { font-size: var(--cds-font-size-body); line-height: 1.5; max-width: 80ch; }
.ovh-pie { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--cds-gap-xs) var(--cds-gap-md); align-items: baseline; margin-top: var(--cds-gap-xs); padding-top: var(--cds-gap-sm); border-top: 1px solid var(--color-border-line); }
.ovh-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--cds-gap-sm); }
.ovh-chart { position: relative; min-height: 200px; }
.ovh .ovh-chart[data-draw]:not(.dash-skeleton) { min-height: 0; }
.ovh [data-draw='hom-serie'], .ovh [data-draw='hom-brecha'], .ovh [data-draw='ensu-serie'] { min-height: 250px; }
.ovh [data-draw='hom-capitales'], .ovh [data-draw='del-cap'], .ovh [data-draw='ensu-cap'], .ovh [data-draw='policia-cap'] { min-height: 520px; }
.ovh [data-draw='envipe-cifra'], .ovh [data-draw='envipe-prev'] { min-height: 420px; }
.ovh [data-draw='del-eneoct'], .ovh [data-draw='ensu-espacios'] { min-height: 380px; }
.ovh-svg { display: block; overflow: visible; }
.ovh-axis text { fill: var(--cds-text-secondary); font-size: 11px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.ovh-labels text { fill: var(--color-fg); font-family: var(--font-anthropic-sans); font-size: var(--cds-font-size-caption); }
.ovh-grid line { stroke: var(--cds-chart-grid); }
.ovh-baseline, .ovh-ref { stroke: var(--cds-chart-axis); }
.ovh-rule { stroke: var(--color-fg-muted); }
.ovh-dot { stroke: var(--color-panel); stroke-width: 2; }
.ovh-hueco { fill: var(--color-panel); }
.ovh-ends text { fill: var(--color-fg); font-size: var(--cds-font-size-caption); font-family: var(--font-anthropic-sans); font-variant-numeric: tabular-nums; }
.ovh-vals text { fill: var(--color-fg); font-size: var(--cds-font-size-caption); font-family: var(--font-anthropic-sans); font-weight: 600; font-variant-numeric: tabular-nums; }
.ovh-grupo text { fill: var(--color-fg); font-size: var(--cds-font-size-caption); font-family: var(--font-anthropic-sans); font-weight: 600; }
.ovh-tip { position: absolute; z-index: 3; pointer-events: none; background: var(--cds-surface-popover); border: 1px solid var(--cds-border); box-shadow: var(--cds-shadow-popover); border-radius: var(--cds-radius); padding: var(--cds-pad-sm) var(--cds-pad-md); font-size: var(--cds-font-size-caption); min-width: 150px; }
.ovh-tip[hidden] { display: none; }
.ovh-tip--arriba::after, .ovh-tip--abajo::after { content: ''; position: absolute; left: var(--ovh-pico, 50%); width: 10px; height: 10px; background: inherit; border: inherit; transform: translateX(-50%) rotate(45deg); }
.ovh-tip--arriba::after { bottom: -6px; border-top-color: transparent; border-left-color: transparent; }
.ovh-tip--abajo::after { top: -6px; border-bottom-color: transparent; border-right-color: transparent; }
.ovh-tip-pie { margin-top: 6px; padding-top: 6px; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); font-size: 12px; opacity: .85; }
@media (prefers-reduced-motion: no-preference) { .ovh-tip--arriba, .ovh-tip--abajo { animation: ovh-tip-entra .12s ease-out; } }
@keyframes ovh-tip-entra { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: none; } }
.ovh-tip-t { font-weight: var(--cds-font-weight-medium); margin-bottom: 4px; }
.ovh-tip-r { display: flex; align-items: center; gap: 6px; line-height: 1.6; }
.ovh-tip-r i { width: 12px; height: 3px; border-radius: 2px; flex: none; }
.ovh-tip-r b { font-weight: 700; font-variant-numeric: tabular-nums; }
.ovh-tip-r span { color: var(--cds-text-secondary); }
.ovh-legend { display: flex; flex-wrap: wrap; gap: var(--cds-gap-xs) var(--cds-gap-md); list-style: none; margin: 0; padding: 0; font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); }
.ovh-legend li { display: flex; align-items: center; gap: 6px; }
.ovh-sw { width: 12px; height: 12px; display: inline-block; flex: none; }
.ovh-sw.ovh-ln { width: 16px; height: 4px; border-radius: 2px; }
.ovh-tablewrap { overflow-x: auto; }
.ovh-tablewrap.ovh-alto { max-height: 480px; overflow-y: auto; }
.ovh-table { width: 100%; border-collapse: collapse; font-size: var(--cds-font-size-caption); font-variant-numeric: lining-nums tabular-nums; }
.ovh-table th { text-align: left; font-weight: var(--cds-font-weight-medium); color: var(--color-fg-muted); padding: 8px 10px; border-bottom: 2px solid var(--cds-chart-axis); vertical-align: bottom; white-space: nowrap; background: var(--color-panel); position: sticky; top: 0; }
.ovh-table td { padding: 8px 10px; border-bottom: 1px solid var(--color-border-line); vertical-align: top; }
.ovh-table .n { text-align: right; white-space: nowrap; }
.ovh-table.ovh-wide { min-width: 760px; }
.ovh-muted { color: var(--color-fg-muted); }
.ovh-doc { white-space: nowrap; }
.ovh-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.95em; white-space: nowrap; }
.ovh-ind { min-width: 220px; font-weight: var(--cds-font-weight-medium); }
.ovh-def { display: block; margin-top: 2px; font-weight: 400; color: var(--color-fg-muted); }
.ovh-badge { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: var(--cds-font-weight-medium); }
.ovh-badge::before { content: ''; width: 10px; height: 10px; flex: none; background: var(--ovh-badge, var(--ovh-c1)); }
.ovh-b1 { --ovh-badge: var(--ovh-c1); }
.ovh-b2 { --ovh-badge: var(--ovh-tenue); }
.ovh-b3 { --ovh-badge: var(--ovh-ref); }
.ovh-b4 { --ovh-badge: var(--ovh-nd); }
.ovh-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: var(--cds-gap-sm); }
.ovh-chips-1 { grid-template-columns: minmax(0, 1fr); }
.ovh-chips-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ovh-chips-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 599px) { .ovh-chips-3, .ovh-chips-2 { grid-template-columns: minmax(0, 1fr); } }
.ovh-chip { border: 1px solid var(--color-border-line); border-radius: var(--cds-radius); padding: var(--cds-pad-md); background: var(--color-panel); display: flex; flex-direction: column; gap: 6px; }
.ovh-chip .ovh-big { font-size: var(--cds-font-size-heading); }
.ovh-chip .ovh-badge { white-space: normal; }
.ovh-chip .ovh-sub { overflow-wrap: anywhere; }
.ovh-filtros { display: flex; flex-wrap: wrap; gap: var(--cds-gap-md); align-items: flex-end; }
.ovh .ovh-hit { cursor: pointer; outline: none; }
.ovh .ovh-hit:hover, .ovh .ovh-hit:focus-visible { fill: color-mix(in srgb, var(--ovh-c1) 10%, transparent); }
.ovh .ovh-hit:focus-visible { stroke: var(--ovh-c1); stroke-width: 2; }
.ovh .ovh-atenuado { opacity: .3; }
.ovh-ayuda { font-style: italic; }
.ovh-filtros-activos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--cds-gap-sm); }
.ovh-filtros-activos[hidden] { display: none; }
.ovh-filtro-activo, .ovh-filtro-limpiar { min-height: 36px; padding: 0 12px; border-radius: 999px; font: inherit; font-size: var(--cds-font-size-caption); cursor: pointer; }
.ovh-filtro-activo { border: 1px solid var(--ovh-c1); background: color-mix(in srgb, var(--ovh-c1) 12%, var(--color-panel)); color: var(--color-fg); }
.ovh-filtro-limpiar { border: 1px solid var(--color-border-line); background: transparent; color: var(--color-fg-muted); text-decoration: underline; }
.ovh-filtro-activo:focus-visible, .ovh-filtro-limpiar:focus-visible { outline: 2px solid var(--ovh-c1); outline-offset: 2px; }
.ovh-campo { display: flex; flex-direction: column; gap: 4px; min-width: 200px; flex: 1 1 200px; max-width: 360px; }
.ovh-campo label { font-size: var(--cds-font-size-caption); font-weight: var(--cds-font-weight-medium); }
.ovh-campo input { font: inherit; font-size: var(--cds-font-size-body); padding: 6px 10px; border: 1px solid var(--cds-chart-axis); border-radius: var(--cds-radius); background: var(--color-panel); color: var(--color-fg); }
.ovh-error { color: var(--color-fg-muted); font-size: var(--cds-font-size-caption); padding: var(--cds-pad-md) 0; }
.ovh-aviso { font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); border-left: 3px solid var(--cds-chart-axis); padding-left: var(--cds-pad-sm); }
.ovh-lista { margin: 0; padding-left: 1.2em; font-size: var(--cds-font-size-body); line-height: 1.5; max-width: 80ch; display: flex; flex-direction: column; gap: 4px; }
.ovh-medios { list-style: none; margin: 0; padding: 0 4px 0 0; max-height: 680px; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--color-border-line); border-bottom: 1px solid var(--color-border-line); }
.ovh-nota { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--color-border-line); }
.ovh-nota:last-child { border-bottom: 0; }
.ovh { --tema-hom: #c0484f; --tema-per: #196ea9; --tema-pat: #9e7b0b; --tema-gen: #b0609f; --tema-pol: #098356; --tema-des: #6549a3; --tema-ext: #dc701c; }
.ovh-mini { position: relative; width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; border-radius: 14px; color: var(--tc, var(--ovh-c1)); background: linear-gradient(145deg, color-mix(in srgb, var(--tc, var(--ovh-c1)) 26%, var(--color-panel)), color-mix(in srgb, var(--tc, var(--ovh-c1)) 9%, var(--color-panel))); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc, var(--ovh-c1)) 30%, transparent); }
.ovh-mini svg { width: 36px; height: 36px; }
.ovh-tag-tema::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--tc, var(--ovh-c1)); vertical-align: 0; }
.ovh-nota-c { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ovh-nota-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); font-variant-numeric: tabular-nums; }
.ovh-nota-medio { font-weight: var(--cds-font-weight-medium); color: var(--color-fg); }
.ovh-nota-t { font-weight: var(--cds-font-weight-medium); font-size: var(--cds-font-size-body); line-height: 1.35; }
.ovh-nota-r { font-size: var(--cds-font-size-body); line-height: 1.5; }
.ovh-nota-d { font-size: var(--cds-font-size-caption); line-height: 1.5; padding: 8px 10px; border-left: 3px solid var(--ovh-c1); background: color-mix(in srgb, var(--ovh-c1) 7%, var(--color-panel)); }
.ovh-nota-d b { font-weight: var(--cds-font-weight-medium); }
.ovh-tag { display: inline-block; padding: 1px 6px; border: 1px solid var(--color-border-line); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; line-height: 16px; letter-spacing: .04em; text-transform: uppercase; color: var(--color-fg-muted); }
@media (max-width: 599px) { .ovh-nota { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; } .ovh-mini { width: 52px; height: 52px; border-radius: 10px; } .ovh-mini svg { width: 28px; height: 28px; } }
.ovh-details { border-top: 1px solid var(--cds-chart-axis); padding-top: var(--cds-pad-md); }
.ovh-details summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--color-border-line); border-radius: 12px; background: color-mix(in srgb, var(--ovh-c1) 6%, var(--color-panel)); transition: background-color .15s, border-color .15s; }
.ovh-details summary::-webkit-details-marker { display: none; }
.ovh-details summary:hover { background: color-mix(in srgb, var(--ovh-c1) 12%, var(--color-panel)); border-color: var(--ovh-c1); }
.ovh-details summary:focus-visible { outline: 2px solid var(--ovh-c1); outline-offset: 2px; }
.ovh-sum-icono { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; color: var(--ovh-c1); background: color-mix(in srgb, var(--ovh-c1) 16%, var(--color-panel)); }
.ovh-sum-icono svg { width: 24px; height: 24px; }
.ovh-sum-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ovh-sum-t { font-weight: var(--cds-font-weight-medium); font-size: var(--cds-font-size-subheading, 16px); }
.ovh-sum-s { font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); }
.ovh-sum-accion { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--ovh-c1); color: #fff; font-size: var(--cds-font-size-caption); font-weight: var(--cds-font-weight-medium); white-space: nowrap; }
.ovh-sum-accion svg { width: 16px; height: 16px; transition: transform .2s; }
.ovh-details[open] .ovh-sum-accion svg { transform: rotate(180deg); }
.ovh-details:not([open]) .ovh-sum-ocultar, .ovh-details[open] .ovh-sum-ver { display: none; }
@media (max-width: 599px) { .ovh-sum-icono { display: none; } .ovh-details summary { flex-wrap: wrap; } .ovh-sum-accion { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .ovh-sum-accion svg, .ovh-details summary { transition: none; } }
.ovh-details dl { display: flex; flex-direction: column; gap: 10px; margin: var(--cds-gap-md) 0 0; font-size: var(--cds-font-size-caption); max-width: 90ch; }
.ovh-details dt { font-weight: var(--cds-font-weight-medium); }
.ovh-details dd { margin: 2px 0 0; color: var(--color-fg-muted); line-height: 1.5; }
