.maqueta { background: #fffbeb; border: 1px solid #fcd34d; border-radius: .75rem; padding: .75rem 1rem; margin: 0; font-size: .95rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.kpis li { background: #fff; border: 1px solid var(--piedra-200); border-radius: var(--radio); box-shadow: var(--sombra); padding: 1.1rem 1.25rem; }
.kpis b { display: block; font-family: var(--fuente-titulo); font-size: 1.9rem; line-height: 1.2; color: var(--piedra-900); }
.kpis span { color: var(--texto-suave); font-size: .92rem; }
.filtros { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: end; margin-bottom: 1rem; }
.filtros label { display: grid; gap: .25rem; font-size: .9rem; font-weight: 600; flex: 1 1 11rem; max-width: 100%; min-width: 0; }
.filtros .selector { min-width: 0; }
.filtros .boton { min-height: 46px; }
.grafico { position: relative; margin: 0 0 1.5rem; }
.grafico h3 { margin: 0 0 .1rem; }
.grafico svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.grafico text { font-family: var(--fuente-texto); font-size: 12px; fill: var(--piedra-600); }
.grafico .rejilla { stroke: var(--piedra-200); stroke-width: 1; }
.grafico .base { stroke: var(--piedra-300); stroke-width: 1; }
.grafico .guia { stroke: var(--piedra-500); stroke-width: 1; }
.leyenda { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; list-style: none; padding: 0; margin: .4rem 0 .6rem; font-size: .9rem; }
.leyenda li { display: flex; align-items: center; gap: .45rem; }
.leyenda i { width: 18px; height: 3px; border-radius: 2px; }
.globo { position: absolute; top: 0; z-index: 5; pointer-events: none; background: #fff; border: 1px solid var(--piedra-300); border-radius: .6rem; box-shadow: var(--sombra); padding: .5rem .7rem; font-size: .85rem; line-height: 1.5; max-width: 15rem; }
.globo strong { font-variant-numeric: tabular-nums; }
.globo i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: .4rem; vertical-align: middle; }
details.datos { margin-bottom: 1rem; }
details.datos summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--verde-700); }
.tabla { width: 100%; border-collapse: collapse; font-size: .88rem; line-height: 1.45; }
.tabla th { text-align: left; background: var(--verde-700); color: #fff; font-family: var(--fuente-titulo); padding: .6rem .7rem; }
.tabla td { border-top: 1px solid var(--piedra-200); padding: .6rem .7rem; vertical-align: top; overflow-wrap: anywhere; }
.tabla .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.etq { display: inline-block; border-radius: 999px; padding: .1rem .6rem; font-size: .8rem; font-weight: 600; background: var(--piedra-100); color: var(--piedra-700); border: 1px solid var(--piedra-200); }
.etq.oficial, .etq.aprobado { background: var(--verde-50); color: var(--verde-700); border-color: var(--verde-100); }
.etq.pendiente { background: #fffbeb; color: #92400e; border-color: #fcd34d; }
.etq.rechazado { background: var(--rojo-50); color: var(--rojo); border-color: #fecaca; }
[data-grafico] { position: relative; }

.aviso-dato { color: #92400e; font-size: .85rem; margin: .25rem 0 0; }
.lista { display: grid; gap: .9rem; }
.item { border: 1px solid var(--piedra-200); border-left: 5px solid #d97706; border-radius: .75rem; padding: 1rem; min-width: 0; }
.item h3 { font-size: 1.08rem; margin: 0 0 .2rem; overflow-wrap: anywhere; }
.item p { margin: .25rem 0; font-size: .94rem; overflow-wrap: anywhere; }
.item .valor { font-family: var(--fuente-titulo); font-size: 1.5rem; font-weight: 700; }
.acciones { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; margin-top: .75rem; }
.acciones label { display: grid; gap: .2rem; font-size: .85rem; font-weight: 600; }
.acciones input { min-height: 42px; border: 1px solid var(--piedra-500); border-radius: .6rem; padding: .4rem .6rem; font-size: 1rem; width: 8.5rem; max-width: 100%; }
.acciones .nota { flex: 1 1 12rem; } .acciones .nota input { width: 100%; }
.boton-rojo { background: #fff; color: var(--rojo); border-color: #fecaca; } .boton-rojo:hover { background: var(--rojo-50); color: var(--rojo); }
.lado { display: grid; gap: 1rem; } .lado > * { min-width: 0; }
@media (min-width: 900px) { .lado.con-imagen { grid-template-columns: 1fr 1fr; } .lado.con-imagen .foto { position: sticky; top: 6.5rem; align-self: start; max-height: calc(100vh - 8rem); overflow: auto; } }
.foto img { width: 100%; border: 1px solid var(--piedra-300); border-radius: .5rem; }
.leido { white-space: pre-wrap; overflow-wrap: anywhere; font-family: ui-monospace, monospace; font-size: .8rem; line-height: 1.5; background: var(--piedra-50); border: 1px solid var(--piedra-200); border-radius: .6rem; padding: .9rem; margin: 0; max-height: 70vh; overflow: auto; }
.pagina { border-top: 1px solid var(--piedra-200); padding-top: 1.1rem; margin-top: 1.1rem; }
.paginas { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; margin-top: 1rem; }
.dos { display: grid; gap: 1rem; } @media (min-width: 640px) { .dos { grid-template-columns: 1fr 1fr; } }
.formulario select, .formulario textarea { width: 100%; min-height: 46px; padding: .6rem .8rem; border: 1px solid var(--piedra-500); border-radius: .75rem; background: #fff; font: inherit; }
.menu-lista form { margin: 0; } .menu-lista button { width: 100%; }
@media (min-width: 960px) { .menu-lista a:not(.boton) { padding-inline: .55rem; font-size: .95rem; } }
.aviso-dato.bien { color: var(--verde-700); }
