/* incolonias · estilos de la aplicación
   Sin dependencias externas (CSP 'self'). Contraste AA en todos los textos. */

:root {
  --fondo: #f4f5f2;
  --superficie: #ffffff;
  --superficie-2: #f8f9f7;
  --tinta: #1b2522;
  --tinta-2: #4f5d58;
  --tinta-3: #56635f;
  --borde: #dce2de;
  --borde-2: #c6cfca;
  --marca: #2f4a40;
  --marca-2: #2f6f57;
  --marca-claro: #e3ece8;
  --acento: #b4592c;
  --ok: #1e7a4c;
  --ok-fondo: #e4f3ea;
  --error: #b42318;
  --error-fondo: #fdecea;
  --info: #1d5f8a;
  --info-fondo: #e6f1f8;
  --aviso: #8a5a00;
  --aviso-fondo: #fff4dc;
  /* Estados de las unidades (también llevan trama o símbolo: no dependen solo del color) */
  --libre: #2f8f5b;
  --reservada: #d29a22;
  --ocupada: #4b6b9a;
  --no-disponible: #8f9895;
  --vencida: #c0392b;
  --pronto: #e07b1a;
  --radio: 8px;
  --sombra: 0 1px 2px rgba(20, 30, 27, .06), 0 2px 8px rgba(20, 30, 27, .05);
  --sombra-2: 0 8px 28px rgba(20, 30, 27, .16);
  --fuente: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --lateral: 248px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: var(--tinta); font: 15px/1.5 var(--fuente); }
img, svg { max-width: 100%; }
a { color: var(--marca-2); text-underline-offset: 2px; }
a:hover { color: var(--marca); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--tinta); }
h1 { font-size: 1.55rem; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; font-weight: 650; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin: 0 0 .8em; }
hr { border: 0; border-top: 1px solid var(--borde); margin: 1.2rem 0; }
code, .mono { font-family: var(--mono); font-size: .9em; }
:focus-visible { outline: 3px solid #1d6fd6; outline-offset: 2px; border-radius: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: -9999px; top: 8px; background: var(--marca); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 1000; }
.saltar:focus { left: 8px; }
.banda-demo { background: #3d2f12; color: #ffe7b0; text-align: center; padding: 6px 12px; font-size: .85rem; }

/* ── Marco ─────────────────────────────────────────────────────────── */
.marco { display: flex; min-height: 100vh; }
.lateral { width: var(--lateral); flex: 0 0 var(--lateral); background: #17302a; color: #d6e2de; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.lateral .marca { padding: 18px 18px 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.logo { display: inline-flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; font-size: 1.15rem; letter-spacing: -.01em; }
.logo b { font-weight: 700; }
.logo:hover { color: #fff; }
.logo img { filter: none; }
.entidad { margin-top: 8px; font-size: .82rem; color: #a9bdb6; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lateral nav { padding: 8px 10px 16px; flex: 1; display: flex; flex-direction: column; }
.lateral ul { list-style: none; margin: 0; padding: 0; }
.lateral .grupo { margin: 16px 10px 4px; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #8aa59c; }
.lateral nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; color: #d6e2de; text-decoration: none; font-size: .92rem; }
.lateral nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.lateral nav a.activo { background: rgba(255,255,255,.13); color: #fff; font-weight: 600; }
.lateral .pie-nav { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.cuerpo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.barra { display: flex; align-items: center; gap: 12px; padding: 10px 24px; background: var(--superficie); border-bottom: 1px solid var(--borde); position: sticky; top: 0; z-index: 50; }
.btn-menu { display: none; background: none; border: 1px solid var(--borde); border-radius: 6px; padding: 6px 8px; cursor: pointer; }
.busqueda-global { flex: 1; max-width: 560px; }
.busqueda-global input { width: 100%; padding: 8px 12px 8px 36px; border: 1px solid var(--borde); border-radius: 20px; background: var(--superficie-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236d7a75' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center; font: inherit; }
.barra-der { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.avisos { position: relative; color: var(--tinta-2); display: inline-flex; padding: 6px; border-radius: 6px; }
.avisos:hover { background: var(--superficie-2); }
.contador { position: absolute; top: -2px; right: -4px; background: var(--error); color: #fff; font-size: .68rem; font-weight: 700; border-radius: 10px; padding: 1px 5px; }
.menu-usuario { position: relative; }
.menu-usuario summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.menu-usuario summary::-webkit-details-marker { display: none; }
.menu-usuario summary:hover { background: var(--superficie-2); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--marca); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.nombre-usuario { font-size: .9rem; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desplegable { position: absolute; right: 0; top: calc(100% + 6px); background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra-2); min-width: 240px; padding: 8px; z-index: 60; }
.desplegable a, .desplegable .enlace { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; color: var(--tinta); text-decoration: none; font: inherit; }
.desplegable a:hover, .desplegable .enlace:hover { background: var(--superficie-2); }
.desplegable .meta { padding: 6px 10px 10px; border-bottom: 1px solid var(--borde); margin-bottom: 6px; }
main { padding: 24px; flex: 1; outline: none; }
.pie { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 24px; color: var(--tinta-3); font-size: .8rem; border-top: 1px solid var(--borde); }

/* ── Iconos (máscaras SVG) ─────────────────────────────────────────── */
.ico { width: 18px; height: 18px; flex: 0 0 18px; display: inline-block; background: currentColor; -webkit-mask: var(--i) no-repeat center / contain; mask: var(--i) no-repeat center / contain; }
.ico-inicio { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 11 12 3l9 8v10h-6v-6H9v6H3z'/%3E%3C/svg%3E"); }
.ico-mapa { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Crect x='3' y='3' width='5' height='5' rx='1'/%3E%3Crect x='9.5' y='3' width='5' height='5' rx='1'/%3E%3Crect x='16' y='3' width='5' height='5' rx='1'/%3E%3Crect x='3' y='9.5' width='5' height='5' rx='1'/%3E%3Crect x='9.5' y='9.5' width='5' height='5' rx='1' opacity='.45'/%3E%3Crect x='16' y='9.5' width='5' height='5' rx='1'/%3E%3Crect x='3' y='16' width='5' height='5' rx='1' opacity='.45'/%3E%3Crect x='9.5' y='16' width='5' height='5' rx='1'/%3E%3Crect x='16' y='16' width='5' height='5' rx='1'/%3E%3C/svg%3E"); }
.ico-libro { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 4h11a3 3 0 0 1 3 3v13H7a3 3 0 0 1-3-3z'/%3E%3Cpath d='M8 8h6M8 12h6'/%3E%3C/svg%3E"); }
.ico-concesion { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 3h9l4 4v14H6z'/%3E%3Cpath d='M9 12h7M9 16h5'/%3E%3Ccircle cx='10' cy='8' r='1.5' fill='black'/%3E%3C/svg%3E"); }
.ico-unidad { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='4' y='4' width='16' height='16' rx='2'/%3E%3Cpath d='M4 12h16M12 4v16'/%3E%3C/svg%3E"); }
.ico-persona { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1-4 4-6 8-6s7 2 8 6'/%3E%3C/svg%3E"); }
.ico-euro { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M17 6a7 7 0 1 0 0 12M4 10h9M4 14h9'/%3E%3C/svg%3E"); }
.ico-lista { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M9 6h11M9 12h11M9 18h11'/%3E%3Ccircle cx='4.5' cy='6' r='1' fill='black'/%3E%3Ccircle cx='4.5' cy='12' r='1' fill='black'/%3E%3Ccircle cx='4.5' cy='18' r='1' fill='black'/%3E%3C/svg%3E"); }
.ico-doc { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 3h8l5 5v13H6z'/%3E%3Cpath d='M14 3v5h5'/%3E%3C/svg%3E"); }
.ico-estructura { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='9' y='3' width='6' height='5' rx='1'/%3E%3Crect x='3' y='16' width='6' height='5' rx='1'/%3E%3Crect x='15' y='16' width='6' height='5' rx='1'/%3E%3Cpath d='M12 8v4M6 16v-4h12v4'/%3E%3C/svg%3E"); }
.ico-datos { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 3v12m0 0-4-4m4 4 4-4M4 17v3h16v-3'/%3E%3C/svg%3E"); }
.ico-usuarios { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2 20c.8-3.5 3.5-5 7-5s6.2 1.5 7 5'/%3E%3Cpath d='M16 4.5a3.5 3.5 0 0 1 0 7M18 15c2 .6 3.4 2.2 4 5'/%3E%3C/svg%3E"); }
.ico-auditoria { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 3 4 6v6c0 5 3.5 8 8 9 4.5-1 8-4 8-9V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.ico-ajustes { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9 7 7M17 17l2.1 2.1M4.9 19.1 7 17M17 7l2.1-2.1'/%3E%3C/svg%3E"); }
.ico-soporte { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 14v-2a8 8 0 0 1 16 0v2'/%3E%3Crect x='3' y='13' width='4' height='6' rx='1'/%3E%3Crect x='17' y='13' width='4' height='6' rx='1'/%3E%3C/svg%3E"); }
.ico-ayuda { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.7.3-1 1-1 1.7V14'/%3E%3Ccircle cx='12' cy='17' r='1' fill='black'/%3E%3C/svg%3E"); }
.ico-publico { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 3 2.5 15 0 18M12 3c-2.5 3-2.5 15 0 18'/%3E%3C/svg%3E"); }
.ico-campana { width: 22px; height: 22px; flex-basis: 22px; --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 16V11a6 6 0 0 1 12 0v5l2 2H4z'/%3E%3Cpath d='M10 20a2 2 0 0 0 4 0'/%3E%3C/svg%3E"); }
.ico-menu { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E"); }

/* ── Componentes ───────────────────────────────────────────────────── */
.cabecera { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.cabecera h1 { margin: 0; }
.cabecera .sub { color: var(--tinta-2); margin: 4px 0 0; }
.acciones { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.migas { font-size: .85rem; color: var(--tinta-3); margin-bottom: 6px; }
.migas a { color: var(--tinta-2); }
.tarjeta { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra); padding: 18px 20px; margin-bottom: 18px; }
.tarjeta > h2:first-child, .tarjeta > h3:first-child { margin-top: 0; }
.tarjeta.centro { text-align: center; max-width: 520px; margin: 40px auto; }
.tarjeta-cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.tarjeta-cab h2 { margin: 0; }
.rejilla { display: grid; gap: 18px; }
.rejilla-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rejilla-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rejilla-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rejilla-ficha { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
.meta { color: var(--tinta-3); font-size: .85rem; }
.vacio { color: var(--tinta-3); text-align: center; padding: 22px 10px; }
.codigo-error { font-size: 3rem; font-weight: 800; color: var(--borde-2); margin: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 7px; border: 1px solid var(--marca); background: var(--marca); color: #fff; font: inherit; font-weight: 600; font-size: .9rem; text-decoration: none; cursor: pointer; line-height: 1.2; white-space: nowrap; }
.btn:hover { background: var(--marca-2); color: #fff; }
.btn-2 { background: var(--superficie); color: var(--marca); border-color: var(--borde-2); }
.btn-2:hover { background: var(--marca-claro); color: var(--marca); }
.btn-peligro { background: var(--superficie); color: var(--error); border-color: #e8b4ae; }
.btn-peligro:hover { background: var(--error-fondo); color: var(--error); }
.btn-sm { padding: 5px 10px; font-size: .82rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.enlace { background: none; border: 0; padding: 0; color: var(--marca-2); text-decoration: underline; cursor: pointer; font: inherit; }

.aviso { border-radius: var(--radio); padding: 11px 14px; margin-bottom: 16px; border: 1px solid; }
.aviso-ok { background: var(--ok-fondo); border-color: #b9dfc8; color: #14512f; }
.aviso-error { background: var(--error-fondo); border-color: #f2c1bb; color: #7a1a12; }
.aviso-info { background: var(--info-fondo); border-color: #bcd8ea; color: #12425f; }
.aviso-amarillo { background: var(--aviso-fondo); border-color: #f0d79a; color: #5e3e00; }

/* Formularios */
.form { display: grid; gap: 14px; }
.campos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.campo { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.campo-ancho { grid-column: 1 / -1; }
label, .etiqueta { font-weight: 600; font-size: .86rem; color: var(--tinta); }
.ayuda { font-size: .8rem; color: var(--tinta-3); font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], input[type=tel], input[type=url], input[type=color], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--borde-2); border-radius: 6px; background: #fff; font: inherit; color: var(--tinta); min-height: 38px;
}
input[type=color] { padding: 3px; width: 70px; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--marca-2); outline: 2px solid rgba(47, 93, 82, .25); outline-offset: 0; }
input[aria-invalid=true] { border-color: var(--error); }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 3px; width: 17px; height: 17px; flex: 0 0 17px; }
fieldset { border: 1px solid var(--borde); border-radius: var(--radio); padding: 12px 14px 14px; margin: 0; }
legend { font-weight: 650; padding: 0 6px; }
.filtros { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.filtros .campo { min-width: 150px; }
.filtros .campo-q { flex: 1; min-width: 220px; }
.req::after { content: " *"; color: var(--error); }

/* Tablas */
.tabla-env { overflow-x: auto; border: 1px solid var(--borde); border-radius: var(--radio); background: var(--superficie); }
table.tabla { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabla th { text-align: left; font-weight: 650; color: var(--tinta-2); background: var(--superficie-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.tabla th, .tabla td { padding: 9px 12px; border-bottom: 1px solid var(--borde); vertical-align: top; }
.tabla tbody tr:hover { background: #fafbf9; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla .num { text-align: right; font-variant-numeric: tabular-nums; }
.tabla a.fila-enlace { color: inherit; text-decoration: none; font-weight: 600; }
.tabla a.fila-enlace:hover { text-decoration: underline; }
dl.datos { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
dl.datos dt { color: var(--tinta-3); font-size: .86rem; }
dl.datos dd { margin: 0; font-weight: 500; }
.paginacion { display: flex; gap: 6px; align-items: center; justify-content: space-between; margin-top: 12px; flex-wrap: wrap; font-size: .88rem; }

/* Badges de estado */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 12px; font-size: .78rem; font-weight: 650; border: 1px solid transparent; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-libre, .badge-vigente, .badge-pagada, .badge-realizada { background: #e6f4ec; color: #19633f; }
.badge-reservada, .badge-prevista, .badge-pendiente { background: #fdf2dc; color: #7c5300; }
.badge-ocupada, .badge-renovada, .badge-transmitida { background: #e7edf6; color: #2f4d78; }
.badge-no_disponible, .badge-anulada, .badge-exenta, .badge-extinguida, .badge-renunciada { background: #eef0ef; color: #505a57; }
.badge-vencida, .badge-caducada { background: #fbe7e5; color: #9b2a1f; }
.etiqueta-rol { display: inline-block; font-size: .72rem; font-weight: 650; padding: 1px 7px; border-radius: 10px; background: var(--marca-claro); color: var(--marca); margin-right: 3px; }

/* Panel */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); padding: 14px 16px; box-shadow: var(--sombra); text-decoration: none; color: inherit; display: block; }
a.kpi:hover { border-color: var(--marca-2); }
.kpi .valor { font-size: 1.7rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .etiqueta-kpi { color: var(--tinta-2); font-size: .85rem; }
.kpi .detalle { font-size: .78rem; color: var(--tinta-3); margin-top: 4px; }
.barra-ocupacion { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--borde); margin: 8px 0 6px; }
.barra-ocupacion span { display: block; height: 100%; }
.seg-libre { background: var(--libre); } .seg-reservada { background: var(--reservada); } .seg-ocupada { background: var(--ocupada); } .seg-no_disponible { background: var(--no-disponible); }
.leyenda-estados { display: flex; flex-wrap: wrap; gap: 12px; font-size: .8rem; color: var(--tinta-2); }
.leyenda-estados span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; background: var(--c); }
.lista-avisos { list-style: none; padding: 0; margin: 0; }
.lista-avisos li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--borde); }
.lista-avisos li:last-child { border-bottom: 0; }
.accesos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.acceso { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--borde); border-radius: var(--radio); background: var(--superficie); color: var(--tinta); text-decoration: none; font-weight: 600; font-size: .92rem; }
.acceso:hover { border-color: var(--marca-2); background: var(--marca-claro); color: var(--marca); }
.acceso .ico { color: var(--marca-2); }

/* Línea de tiempo */
.linea { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--borde); }
.linea li { position: relative; padding: 0 0 14px 12px; }
.linea li::before { content: ""; position: absolute; left: -22px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--superficie); border: 2px solid var(--marca-2); }
.linea .cuando { font-size: .8rem; color: var(--tinta-3); }

/* Autocompletar */
.autocompletar { position: relative; }
.ac-lista { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; background: #fff; border: 1px solid var(--borde-2); border-radius: 6px; box-shadow: var(--sombra-2); margin: 2px 0 0; padding: 4px; list-style: none; max-height: 280px; overflow-y: auto; }
.ac-lista li { padding: 7px 9px; border-radius: 5px; cursor: pointer; font-size: .9rem; }
.ac-lista li[aria-selected=true], .ac-lista li:hover { background: var(--marca-claro); }
.ac-lista .meta { display: block; font-size: .78rem; }
.ac-elegido { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border: 1px solid var(--borde-2); border-radius: 6px; background: var(--marca-claro); min-height: 38px; }

/* Diálogos */
dialog { border: 0; border-radius: 12px; padding: 0; box-shadow: var(--sombra-2); max-width: min(620px, calc(100vw - 32px)); width: 100%; }
dialog::backdrop { background: rgba(15, 25, 22, .45); }
.dialogo-cab { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--borde); }
.dialogo-cab h2 { margin: 0; font-size: 1.1rem; }
.dialogo-cuerpo { padding: 18px 20px; }
.dialogo-pie { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--borde); background: var(--superficie-2); border-radius: 0 0 12px 12px; }
.cerrar { background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: var(--tinta-3); line-height: 1; padding: 4px 8px; border-radius: 6px; }
.cerrar:hover { background: var(--superficie-2); }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px); background: #1b2522; color: #fff; padding: 10px 18px; border-radius: 8px; opacity: 0; pointer-events: none; transition: .2s; z-index: 200; max-width: calc(100vw - 32px); }
.toast.ver { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--error); }

/* Pestañas */
.pestanas { display: flex; gap: 2px; border-bottom: 1px solid var(--borde); margin-bottom: 16px; overflow-x: auto; }
.pestanas a, .pestanas button { padding: 9px 14px; border: 0; background: none; color: var(--tinta-2); text-decoration: none; font: inherit; font-weight: 600; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.pestanas [aria-selected=true], .pestanas a.activo { color: var(--marca); border-bottom-color: var(--marca); }

/* Documentos */
.docs { list-style: none; padding: 0; margin: 0; }
.docs li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--borde); }
.docs li:last-child { border-bottom: 0; }
.docs .nombre-doc { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-bottom: 10px; }
.fotos a { display: block; aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; border: 1px solid var(--borde); background: var(--superficie-2); }
.fotos img { width: 100%; height: 100%; object-fit: cover; }

/* Páginas simples (login) */
body.simple { background: linear-gradient(160deg, #17302a 0%, #24453d 55%, #3b6658 100%); min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; }
.caja-simple { background: var(--superficie); border-radius: 14px; box-shadow: var(--sombra-2); width: 100%; max-width: 420px; padding: 30px 30px 26px; }
.caja-simple .logo { color: var(--marca); margin-bottom: 18px; }
.logo-grande { font-size: 1.45rem; }
.caja-simple h1 { font-size: 1.25rem; }
.caja-simple .btn { width: 100%; padding: 11px; }
.pie-simple { color: #cfe0da; font-size: .82rem; margin-top: 16px; }
.pie-simple a { color: #fff; }
.qr { display: block; margin: 10px auto; width: 200px; height: 200px; image-rendering: pixelated; border: 8px solid #fff; box-shadow: 0 0 0 1px var(--borde); }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .rejilla-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rejilla-ficha { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .lateral { position: fixed; left: 0; top: 0; z-index: 100; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--sombra-2); }
  .lateral.abierto { transform: none; }
  .btn-menu { display: inline-flex; }
  .rejilla-2, .rejilla-3 { grid-template-columns: 1fr; }
  main { padding: 16px; }
  .barra { padding: 8px 16px; }
  .nombre-usuario { display: none; }
}
@media (max-width: 520px) {
  .rejilla-4 { grid-template-columns: 1fr; }
  dl.datos { grid-template-columns: 1fr; gap: 2px; }
  dl.datos dd { margin-bottom: 8px; }
}
@media print {
  .lateral, .barra, .pie, .acciones, .btn, .filtros { display: none !important; }
  main { padding: 0; }
  .tarjeta { box-shadow: none; border: 0; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.leyenda-estados .l-libre { --c: var(--libre); } .leyenda-estados .l-reservada { --c: var(--reservada); }
.leyenda-estados .l-ocupada { --c: var(--ocupada); } .leyenda-estados .l-no_disponible { --c: var(--no-disponible); }
.leyenda-estados .l-vencida { --c: var(--vencida); } .leyenda-estados .l-pronto { --c: var(--pronto); }

/* ── Complementos ──────────────────────────────────────────────────── */
[hidden] { display: none !important; }
.arbol-estructura { list-style: none; margin: 0; padding: 0 0 0 20px; border-left: 2px solid var(--borde); }
.arbol-estructura.raiz { padding-left: 0; border-left: 0; }
.arbol-estructura li { margin: 0; }
.nodo-fila { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 10px; border-radius: 6px; }
.nodo-fila:hover { background: var(--superficie-2); }
.nodo-fila .acciones form { display: inline; }
li:target > .nodo-fila { background: var(--aviso-fondo); }
.arbol-estructura li[id^="nodo-"] { scroll-margin-top: 90px; }
.nodo-guardado { margin: 4px 0 0; font-size: .82rem; font-weight: 600; color: var(--ok); }
.tipos-op { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.tipo-op { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--borde-2); border-radius: var(--radio); padding: 11px 12px; cursor: pointer; font-weight: 400; background: var(--superficie); }
.tipo-op:hover { border-color: var(--marca-2); }
.tipo-op:has(input:checked) { border-color: var(--marca); background: var(--marca-claro); box-shadow: inset 0 0 0 1px var(--marca); }
.tipo-op input { margin-top: 4px; width: 17px; height: 17px; flex: 0 0 17px; }
.tipo-op strong { display: block; font-size: .95rem; }
.tipo-op small { display: block; color: var(--tinta-3); font-size: .8rem; line-height: 1.35; margin-top: 2px; }
.comprobacion { border-left: 4px solid var(--borde-2); }
.comprobacion.ok { border-left-color: var(--ok); background: var(--ok-fondo); }
.comprobacion.avisos { border-left-color: #d29a22; background: var(--aviso-fondo); }
.comprobacion.errores { border-left-color: var(--error); background: var(--error-fondo); }
.comprobacion ul { margin: 6px 0 0; padding-left: 20px; }
.exportar summary.btn { list-style: none; }
.exportar summary::-webkit-details-marker { display: none; }
.lista-variables { list-style: none; padding: 0; margin: 0; max-height: 70vh; overflow: auto; font-size: .86rem; }
.lista-variables li { padding: 4px 0; border-bottom: 1px dashed var(--borde); }
.sin-borde { border: 0 !important; padding: 0 !important; background: transparent !important; min-height: 0 !important; color: var(--tinta-3); }
table.cambios { margin-top: 6px; font-size: .8rem; }
table.cambios td, table.cambios th { padding: 3px 6px; }
.ocupantes-elegir { display: grid; gap: 6px; margin-bottom: 8px; padding: 10px; background: var(--superficie-2); border-radius: 6px; }
.manual li { margin-bottom: 6px; }
.acciones form { display: inline-flex; }

/* Interior de panteones */
.interior { display: grid; gap: 6px; margin-bottom: 14px; overflow-x: auto; }
.interior-fila { display: flex; gap: 6px; align-items: stretch; }
.interior-fila > .meta { width: 26px; align-self: center; }
.hueco-int { width: 128px; min-height: 66px; border-radius: 6px; padding: 6px 8px; text-decoration: none; color: #fff; display: flex; flex-direction: column; gap: 1px; font-size: .78rem; line-height: 1.25; }
.hueco-int strong { font-size: .9rem; }
.hueco-int span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .95; }
.hueco-int.e-libre { background: #2f7f53; } .hueco-int.e-ocupada { background: var(--ocupada); } .hueco-int.e-reservada { background: var(--reservada); color: #3d2a00; }
.hueco-int.e-no_disponible { background: #9aa3a0; color: #222; }
.hueco-int:hover { outline: 3px solid #1d6fd6; color: #fff; }
.vacio-int { border: 1px dashed var(--borde-2); background: transparent; }

/* Alta gratuita (Plan Pueblo) */
.senuelo { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alta-res { list-style: none; margin: 4px 0 14px; padding: 0; border-radius: var(--radio); }
.alta-res:not(:empty) { border: 1px solid var(--borde); }
.alta-res li { border-bottom: 1px solid var(--borde); }
.alta-res li:last-child { border-bottom: 0; }
.alta-res a { display: block; padding: 10px 12px; text-decoration: none; }
.alta-res a:hover, .alta-res a:focus { background: var(--marca-claro); }
.alta-res li.meta { padding: 10px 12px; }
.en-linea { display: flex; gap: 6px; align-items: center; }
.en-linea input { max-width: 220px; }

/* ══════════════ incolonias ══════════════ */
.ico-pin { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 21s-7-6.5-7-12a7 7 0 0 1 14 0c0 5.5-7 12-7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E"); }
.ico-gato { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M4 4l4 4h8l4-4v9a8 7 0 0 1-16 0z'/%3E%3Ccircle cx='9' cy='13' r='1' fill='black'/%3E%3Ccircle cx='15' cy='13' r='1' fill='black'/%3E%3Cpath d='M12 15v1.5M10.5 17.5h3'/%3E%3C/svg%3E"); }
.ico-alerta { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 3 2 20h20z'/%3E%3Cpath d='M12 10v4M12 17v.5'/%3E%3C/svg%3E"); }
.ico-chat { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3C/svg%3E"); }
.ico-caja { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 8l9-5 9 5v8l-9 5-9-5z'/%3E%3Cpath d='M3 8l9 5 9-5M12 13v8'/%3E%3C/svg%3E"); }
.ico-grafico { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 20V4M4 20h16'/%3E%3Cpath d='M8 16v-4M12 16V8M16 16v-6'/%3E%3C/svg%3E"); }
.ico-zona { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 6l5-2 6 2 5-2v14l-5 2-6-2-5 2z'/%3E%3Cpath d='M9 4v14M15 6v14'/%3E%3C/svg%3E"); }
.ico-movil { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='7' y='2' width='10' height='20' rx='2'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }
.contador-menu { margin-left: auto; background: var(--acento); color: #fff; border-radius: 10px; font-size: .72rem; font-weight: 700; padding: 1px 7px; }
.idioma { display: flex; gap: 2px; }
.idioma button { border: 1px solid var(--borde-2); background: var(--superficie); color: var(--tinta-2); font: 600 .75rem var(--fuente); padding: 4px 7px; cursor: pointer; }
.idioma button:first-of-type { border-radius: 6px 0 0 6px; } .idioma button:last-of-type { border-radius: 0 6px 6px 0; }
.idioma button.activo { background: var(--marca); color: #fff; border-color: var(--marca); }
.idioma-simple { text-align: center; font-size: .85rem; } .idioma-simple a[aria-current] { font-weight: 700; text-decoration: none; color: var(--tinta); }
.barra-pct { height: 6px; background: var(--borde); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.barra-pct span { display: block; height: 100%; background: var(--ok); }
.kpi-fecha { font-size: 1.15rem !important; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.bloque-inferior { margin-top: 18px; }
.sin-relleno { padding: 0 !important; overflow: hidden; }
.pad { padding: 10px 14px; margin: 0; }
.mapa-grande { height: min(72vh, 680px); }
.mapa-medio { height: 340px; border-radius: var(--radio); margin-bottom: 10px; }
.sin-relleno .mapa-medio { border-radius: 0; margin: 0; }
.leyenda-mapa { padding: 8px 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.punto { display: inline-block; width: 11px; height: 11px; border-radius: 50%; }
.punto-autorizada { background: #2f7a55; } .punto-pendiente { background: #c08a1e; } .punto-otra { background: #7d8784; } .punto-aviso { background: #b3412e; }
dl.datos { display: grid; grid-template-columns: minmax(130px, 34%) 1fr; gap: 6px 14px; margin: 0; }
dl.datos dt { color: var(--tinta-2); font-size: .88rem; } dl.datos dd { margin: 0; }
.tarjetas-gato, .pase-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tarjetas-gato a, .pase-lista label { display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--borde); border-radius: var(--radio); padding: 8px; text-decoration: none; color: inherit; background: var(--superficie); height: 100%; cursor: pointer; }
.tarjetas-gato a:hover, .pase-lista label:hover { border-color: var(--marca-2); }
.tarjetas-gato img, .pase-lista img, .sin-foto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--superficie-2); display: block; }
.sin-foto { background: var(--marca-claro) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393a8a0' stroke-width='1.5'%3E%3Cpath d='M4 4l4 4h8l4-4v9a8 7 0 0 1-16 0z'/%3E%3C/svg%3E") no-repeat center / 40%; }
.gato-nombre { font-weight: 650; }
.pase-lista input { position: absolute; opacity: 0; }
.pase-lista li { position: relative; }
.pase-lista .marca-pase .si { display: none; } .pase-lista .marca-pase .no { color: var(--tinta-3); font-size: .85rem; }
.pase-lista input:checked + img, .pase-lista input:checked + .sin-foto { outline: 4px solid var(--ok); }
.pase-lista input:checked ~ .marca-pase .si { display: inline; color: var(--ok); font-weight: 700; } .pase-lista input:checked ~ .marca-pase .no { display: none; }
.pase-lista input:focus-visible + img, .pase-lista input:focus-visible + .sin-foto { outline: 3px solid #1d6fd6; }
.celda-foto { width: 52px; } .celda-foto img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; display: block; }
.cab-gato { display: flex; gap: 14px; align-items: center; } .foto-gato { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.pasos-cer { list-style: none; display: flex; padding: 0; margin: 0 0 12px; gap: 4px; flex-wrap: wrap; counter-reset: p; }
.pasos-cer li { flex: 1; min-width: 90px; padding: 6px 8px; border-radius: 6px; background: var(--superficie-2); border: 1px solid var(--borde); font-size: .82rem; text-align: center; }
.pasos-cer li.hecho { background: var(--ok-fondo); border-color: #a9d6bb; } .pasos-cer li.actual { background: var(--marca); color: #fff; border-color: var(--marca); font-weight: 650; }
.historial { list-style: none; padding: 0; margin: 0; max-height: 360px; overflow: auto; } .historial li { padding: 6px 0; border-bottom: 1px solid var(--borde); }
.fotos figure { margin: 0; } .fotos figcaption { margin-top: 2px; }
.anotar { margin-top: 12px; } .anotar > summary { list-style: none; display: inline-flex; } .anotar[open] > summary { margin-bottom: 10px; }
.lista-checks { list-style: none; padding: 0; margin: 0 0 10px; } .lista-checks.columnas { columns: 3 220px; }
.mini-barras { display: flex; align-items: flex-end; gap: 3px; height: 64px; margin-bottom: 10px; } .mini-barras span { flex: 1; background: var(--marca-2); border-radius: 2px 2px 0 0; min-height: 4px; }
.zona-peligro { margin-top: 24px; text-align: right; }
.acciones-form { display: flex; gap: 10px; margin: 6px 0 24px; }
tr.alerta td { background: var(--aviso-fondo); } tr.inactiva td { color: var(--tinta-3); }
.badge-autorizada, .badge-esterilizado, .badge-retornado, .badge-presente, .badge-resuelta { background: #e6f4ec; color: #19633f; }
.badge-pendiente, .badge-capturado, .badge-media, .badge-asignada, .badge-en_curso, .badge-en_valoracion, .badge-acogida, .badge-bajo { background: #fdf2dc; color: #7c5300; }
.badge-no_autorizada, .badge-sin_esterilizar, .badge-alta, .badge-urgente, .badge-fallecido, .badge-desaparecido, .badge-nueva { background: #fbe7e5; color: #9b2a1f; }
.badge-inactiva, .badge-extinguida, .badge-no_retornable, .badge-sin_capturar, .badge-baja, .badge-descartada, .badge-cancelada, .badge-fusionado, .badge-no_visto { background: #eef0ef; color: #505a57; }
.badge-trasladado, .badge-adoptado, .badge-esterilizado { background: #e7edf6; color: #2f4d78; }
.chat { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: 14px; }
.chat-lista .conversaciones { list-style: none; padding: 0; margin: 10px 0 0; } .conversaciones li a { display: block; padding: 8px; border-radius: 6px; text-decoration: none; color: inherit; } .conversaciones li.activa a, .conversaciones li a:hover { background: var(--marca-claro); }
.mensajes { list-style: none; padding: 0; margin: 0 0 12px; max-height: 58vh; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.mensajes li { max-width: 78%; background: var(--superficie-2); border: 1px solid var(--borde); border-radius: 10px; padding: 6px 10px; align-self: flex-start; }
.mensajes li.mio { align-self: flex-end; background: var(--marca-claro); } .mensajes .autor { font-size: .75rem; color: var(--tinta-3); } .mensajes p { margin: 2px 0 0; }
.escribir { display: flex; gap: 8px; align-items: flex-end; } .escribir textarea { flex: 1; } .adjuntar { cursor: pointer; padding: 8px; } .adjuntar input { display: none; }
.pestanas-enlace { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; } .pestanas-enlace a { padding: 6px 12px; border-radius: 16px; border: 1px solid var(--borde-2); text-decoration: none; color: var(--tinta-2); background: var(--superficie); }
.pestanas-enlace a[aria-current] { background: var(--marca); color: #fff; border-color: var(--marca); }
.panel-widgets { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.widget { margin: 0; } .widget figcaption { font-weight: 650; margin-bottom: 8px; } .widget-ancho { grid-column: span 2; }
.cifra-grande { font-size: 2.2rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--marca); }
.grafico { width: 100%; height: auto; display: block; } .grafico.tarta { max-width: 190px; }
.g-rejilla { stroke: var(--borde); stroke-width: 1; } .g-eje { font-size: 10px; fill: var(--tinta-3); } .g-total { font-size: 20px; font-weight: 700; fill: var(--tinta); }
.g-leyenda { list-style: none; padding: 0; margin: 6px 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .82rem; } .g-leyenda span { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; }
.tarta-caja { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.datos-grafico { margin-top: 6px; font-size: .82rem; } .datos-grafico summary { cursor: pointer; color: var(--tinta-3); }
.lista-widgets { padding-left: 20px; } .lista-widgets li { margin: 4px 0; }
.informe h2 { font-size: 1.02rem; }
.documento-previo { max-width: 860px; } .documento-previo table { width: 100%; border-collapse: collapse; } .documento-previo th, .documento-previo td { border: 1px solid var(--borde); padding: 4px 8px; text-align: left; }
.guia { text-decoration: none; color: inherit; } .guia:hover { border-color: var(--marca-2); } .guia-otra { opacity: .75; }
.tutorial { list-style: none; padding: 0; } .tutorial li { display: flex; gap: 14px; align-items: flex-start; }
.num-paso { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--marca); color: #fff; display: grid; place-items: center; font-weight: 700; }
.clave-api { display: inline-block; word-break: break-all; padding: 6px 8px; background: var(--superficie); border-radius: 6px; margin-top: 4px; font-size: .95rem; }
.docs-api pre { background: #1e2a26; color: #e6efe9; padding: 12px 14px; border-radius: 8px; overflow: auto; font-size: .85rem; }
.docs-api { max-width: 820px; }
@media (max-width: 860px) { .chat { grid-template-columns: 1fr; } .widget-ancho { grid-column: auto; } dl.datos { grid-template-columns: 1fr; } dl.datos dt { margin-top: 6px; } }
