/* 1. Base y variables: punto único para colores, tipografía y medidas. */
:root {
    --verde: #176b58;
    --verde-oscuro: #123e36;
    --verde-suave: #e9f3ee;
    --fondo: #f5f7f5;
    --papel: #fff;
    --texto: #203b35;
    --muted: #778780;
    --borde: #e4eae6;
    --rojo: #ab3c3c;
    --sombra: 0 4px 18px #153b2f04;
    --radio: 16px;
    --lateral: 248px;
    font-family: Inter, 'Segoe UI', Arial, sans-serif;
    color: var(--texto);
    font-size: 14px;
    line-height: 1.5;
    font-synthesis: none;
}
*,
*::before,
*::after {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--fondo);
}
a {
    color: inherit;
    text-decoration: none;
}
button,
input,
select,
textarea {
    font: inherit;
}
button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}
button {
    cursor: pointer;
}
button:disabled {
    cursor: wait;
    opacity: 0.65;
}
img,
svg {
    vertical-align: middle;
}
svg.icono {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
h1,
h2,
h3,
p {
    margin-top: 0;
}
h1 {
    font-size: clamp(25px, 2.2vw, 34px);
    line-height: 1.22;
    letter-spacing: -1px;
    margin-bottom: 10px;
    font-weight: 650;
}
h2 {
    font-size: 17px;
    letter-spacing: -0.25px;
    font-weight: 650;
    margin-bottom: 5px;
}
h3 {
    font-size: 16px;
}
p {
    margin-bottom: 16px;
}
small {
    font-size: 12px;
}
strong {
    font-weight: 600;
}
:focus-visible {
    outline: 3px solid #64ac93;
    outline-offset: 3px;
}
::selection {
    background: #cce5d7;
}
button {
    border: 0;
}
button:focus-visible {
    outline-offset: 3px;
}
[hidden] {
    display: none !important;
}
.solo-lectores {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
.saltar {
    position: fixed;
    z-index: 500;
    top: -60px;
    left: 20px;
    background: white;
    padding: 12px;
    border-radius: 8px;
}
.saltar:focus {
    top: 10px;
}
/* 2. Estructura y navegación. */
.lateral {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--lateral);
    background: var(--verde-oscuro);
    color: #cadad3;
    display: flex;
    flex-direction: column;
    padding: 30px 18px 18px;
    z-index: 100;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #3d665a transparent;
}
.marca {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 21px;
    font-weight: 650;
    letter-spacing: -0.4px;
    color: #fff;
    padding: 0 7px;
}
.marca-icono {
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #275549;
    border: 1px solid #497463;
    width: 42px;
    height: 46px;
    color: #c0e3c7;
    flex-shrink: 0;
}
.marca-icono .icono {
    width: 25px;
    height: 25px;
}
.marca small {
    display: block;
    color: #8eafa3;
    font-size: 9px;
    letter-spacing: 0.5px;
    font-weight: 400;
    margin-top: 1px;
}
.contexto {
    display: flex;
    gap: 8px;
    align-items: center;
    background: #1c483e;
    border: 1px solid #32594d;
    border-radius: 8px;
    margin: 30px 7px 15px;
    padding: 9px 10px;
    font-size: 11px;
    color: #bfd8ca;
}
.contexto span:last-child {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.punto {
    display: inline-block;
    width: 6px;
    height: 6px;
    min-width: 6px;
    border-radius: 50%;
    background: #94d1a9;
}
.punto.ambar {
    background: #dbac58;
}
.rotulo-menu {
    color: #82a094;
    font-size: 9px;
    font-weight: 650;
    letter-spacing: 1.3px;
    margin: 20px 14px 10px;
}
.enlace-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 9px;
    margin: 3px 0;
    font-size: 12.5px;
    color: #bdd2c8;
    transition: background 0.15s;
}
.enlace-menu .icono {
    width: 18px;
    height: 18px;
    color: #92b8a6;
}
.enlace-menu:hover {
    background: #204d41;
}
.enlace-menu.seleccionado {
    color: #143e31;
    background: #d4e8cd;
    font-weight: 650;
}
.enlace-menu.seleccionado .icono {
    color: #286446;
}
.enlace-menu.seleccionado::after {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #286446;
    margin-left: auto;
}
.pie-lateral {
    margin-top: auto;
    padding-top: 30px;
}
.cuenta {
    border-top: 1px solid #315549;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 5px 12px;
}
.cuenta > span:last-child {
    min-width: 0;
}
.cuenta strong {
    display: block;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #e9f0eb;
    font-size: 11px;
}
.cuenta small {
    font-size: 9px;
    color: #90ada0;
    display: block;
    margin-top: 3px;
}
.avatar {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    background: #d8e4c5;
    color: #30523c;
}
.avatar-pequeno {
    width: 32px;
    height: 32px;
    min-width: 32px;
}
.avatar.claro {
    background: #f0f3e9;
    color: #637647;
    border: 1px solid #e8ecdd;
}
.salir {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: transparent;
    color: #a9c4b7;
    font-size: 11px;
    padding: 9px 12px;
    text-align: left;
    border-radius: 8px;
}
.salir:hover {
    background: #224e42;
}
.salir .icono {
    width: 16px;
    height: 16px;
}
.espacio {
    margin-left: var(--lateral);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.barra-superior {
    height: 76px;
    min-height: 76px;
    background: #ffffffc9;
    border-bottom: 1px solid var(--borde);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 36px;
    gap: 20px;
}
.ruta-actual {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 11px;
    min-width: 0;
    color: var(--muted);
}
.ruta-actual strong {
    font-weight: 500;
    color: #456155;
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.separador {
    color: #c0cbc4;
    margin: 0 4px;
}
.barra-derecha {
    display: flex;
    align-items: center;
    gap: 18px;
}
.fecha-hoy {
    font-size: 11px;
    color: #7d8c83;
    letter-spacing: 0.4px;
}
.etiqueta-suave {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f5f1;
    padding: 6px 9px;
    border-radius: 6px;
    font-size: 10px;
    color: #63816c;
    white-space: normal;
}
.etiqueta-suave .icono {
    width: 13px;
    height: 13px;
}
.etiqueta-suave.directivo {
    background: #faf0db;
    color: #98762d;
}
.contenido {
    padding: 32px 36px 24px;
    max-width: 1680px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
    min-width: 0;
}
.pie-pagina {
    padding: 20px 36px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #94a198;
    font-size: 10px;
    max-width: 1680px;
    width: 100%;
    margin: auto;
}
.pie-pagina span:first-child {
    font-weight: 650;
    color: #718578;
}
.encabezado-pagina {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 27px;
}
.encabezado-pagina p {
    color: var(--muted);
    font-size: 12px;
    margin: 0;
}
.sobrelinea {
    display: block;
    font-size: 9px;
    font-weight: 650;
    letter-spacing: 1.6px;
    color: #779480;
    margin-bottom: 10px;
}
.volver {
    font-size: 11px;
    margin-bottom: 12px;
}
.movil,
.velo {
    display: none;
}
/* 3. Componentes reutilizables. */
.boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    padding: 10px 16px;
    min-height: 40px;
    border: 1px solid transparent;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    transition:
        background 0.15s,
        box-shadow 0.15s;
    white-space: nowrap;
}
.boton .icono {
    width: 16px;
    height: 16px;
}
.boton.principal {
    background: var(--verde);
    color: white;
    box-shadow: 0 3px 7px #1c6b5610;
}
.boton.principal:hover {
    background: #115643;
}
.boton.secundario {
    background: white;
    border-color: #dce5de;
    color: #4e695b;
}
.boton.secundario:hover {
    background: #f6f8f4;
    border-color: #b6caba;
}
.boton.texto {
    color: #64806e;
    background: transparent;
    padding-left: 8px;
    padding-right: 8px;
}
.boton.peligro {
    background: #fff7f4;
    border-color: #eedbd6;
    color: #b15c48;
}
.boton.pequeno {
    min-height: 33px;
    padding: 6px 11px;
    font-size: 10px;
}
.boton.ancho {
    width: 100%;
}
.boton-icono {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: transparent;
    color: #81978a;
}
.boton-icono:hover {
    background: #edf3ed;
    color: var(--verde);
}
.boton-icono .icono {
    width: 16px;
    height: 16px;
}
.acciones {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.acciones.fin {
    justify-content: flex-end;
    margin-top: 18px;
}
.enlace {
    color: var(--verde);
    font-size: 11px;
    font-weight: 550;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.enlace:hover {
    text-decoration: underline;
}
.enlace .icono {
    width: 14px;
    height: 14px;
}
.enlace-boton {
    font-size: 10px;
    color: #6b8271;
    padding: 5px;
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.tarjeta {
    background: var(--papel);
    border: 1px solid var(--borde);
    border-radius: var(--radio);
    padding: 24px;
    box-shadow: var(--sombra);
    margin-bottom: 24px;
    min-width: 0;
}
.tarjeta.sin-relleno {
    padding: 0;
    overflow: hidden;
}
.cabecera-tarjeta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.cabecera-tarjeta h2 {
    font-size: 14px;
}
.cabecera-tarjeta p {
    font-size: 10px;
    color: #94a197;
    margin: 4px 0 0;
}
.sin-relleno > .cabecera-tarjeta {
    padding: 23px 24px 0;
}
.tarjeta.sin-relleno > .cabecera-tarjeta:last-child {
    padding-bottom: 23px;
}
.texto-secundario {
    color: var(--muted);
    line-height: 1.7;
}
.texto-normal {
    font-weight: 500;
}
.separacion-arriba {
    margin-top: 25px;
}
.vacio {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 55px 25px;
    min-height: 220px;
    color: #87998c;
}
.vacio > .icono {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    color: #afc1ae;
}
.vacio h3 {
    color: #647e69;
    margin: 0;
    font-size: 14px;
}
.vacio p {
    font-size: 11px;
    max-width: 330px;
    margin: 0;
    line-height: 1.7;
}
.vacio.compacto {
    min-height: 165px;
    padding: 24px;
}
.estado {
    font-size: 9px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 5px;
    font-weight: 550;
    white-space: nowrap;
}
.estado::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}
.estado.activo {
    background: #edf6ee;
    color: #51845c;
}
.estado.inactivo {
    background: #f5f0ed;
    color: #a0826b;
}
.aviso {
    border: 1px solid;
    border-radius: 10px;
    padding: 13px 16px;
    margin-bottom: 22px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    line-height: 1.6;
}
.aviso.exito {
    background: #eff8f0;
    border-color: #cfe5d3;
    color: #386e49;
}
.aviso.error {
    background: #fff4f1;
    border-color: #efd6ce;
    color: #a34c3b;
}
.aviso.informacion {
    background: #f0f6f4;
    border-color: #d5e7dd;
    color: #4c7362;
}
.aviso button {
    background: none;
    color: inherit;
    font-size: 21px;
    line-height: 1;
}
.aviso a {
    text-decoration: underline;
}
.resumen-errores ul {
    padding-left: 20px;
    margin: 6px 0 0;
}
.nota-destacada {
    font-size: 11px;
    line-height: 1.8;
    background: #f7f8f1;
    border: 1px solid #ebeedf;
    border-radius: 9px;
    padding: 14px 17px;
    color: #78805c;
    margin: 20px 0 0;
}
.nota-destacada p {
    margin: 5px 0 0;
}
.nota-campo {
    font-size: 10px;
    line-height: 1.7;
    color: #8b9a8e;
    margin: 7px 0 0;
}
.requerido {
    color: #b18b54;
}
.dialogo {
    border: 1px solid var(--borde);
    border-radius: 20px;
    padding: 32px;
    max-width: 440px;
    width: calc(100% - 32px);
    box-shadow: 0 30px 120px #0d322b40;
    color: var(--texto);
}
.dialogo::backdrop {
    background: #122c2590;
    backdrop-filter: blur(3px);
}
.dialogo p {
    font-size: 13px;
    color: #778b7d;
    line-height: 1.8;
}
.dialogo .acciones {
    justify-content: flex-end;
    margin-top: 22px;
}
.icono-grande {
    display: grid;
    place-items: center;
    width: 49px;
    height: 49px;
    border-radius: 14px;
    background: #eaf2e7;
    color: var(--verde);
    margin-bottom: 22px;
}
.icono-grande > .icono {
    width: 25px;
    height: 25px;
}
/* 4. Indicadores y gráficos sin dependencias externas. */
.cuadricula-indicadores {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}
.indicador {
    background: white;
    border: 1px solid var(--borde);
    border-radius: 14px;
    padding: 20px 21px;
    box-shadow: var(--sombra);
}
.indicador-arriba {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #7b8e80;
    font-size: 11px;
}
.indicador-icono {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #eef5e9;
    color: #668958;
}
.indicador-icono .icono {
    width: 18px;
    height: 18px;
}
.indicador-icono.azul {
    background: #ecf2f7;
    color: #61889e;
}
.indicador-icono.ambar {
    background: #faf3e5;
    color: #ba9a57;
}
.indicador-icono.violeta {
    background: #f1eef7;
    color: #9982b5;
}
.cifra {
    display: block;
    font-size: 34px;
    line-height: 1.4;
    font-weight: 650;
    letter-spacing: -1.2px;
    margin: 7px 0 8px;
    color: #284a3c;
}
.indicador-pie {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 9px;
    color: #94a191;
}
.indicador-pie .icono {
    width: 14px;
    height: 14px;
}
.cuadricula-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 24px;
}
.cuadricula-panel > .tarjeta {
    margin-bottom: 24px;
}
.cuadricula-graficos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.cuadricula-graficos > .tarjeta {
    margin: 0;
}
.barras {
    padding: 4px 0;
    display: grid;
    gap: 16px;
}
.barra-fila > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 10px;
    color: #7f9182;
    margin-bottom: 8px;
}
.barra-fila strong {
    color: #526c5b;
}
.barra-fondo {
    height: 8px;
    border-radius: 3px;
    background: #f1f5ef;
    overflow: hidden;
}
.barra-fondo > span {
    height: 100%;
    display: block;
    border-radius: 3px;
    background: #91b994;
    min-width: 2px;
}
.barra-fila:nth-child(2n) .barra-fondo > span {
    background: #bbcbaa;
}
.barra-fila:nth-child(3n) .barra-fondo > span {
    background: #669684;
}
.anillo {
    width: 155px;
    height: 155px;
    border-radius: 50%;
    background: conic-gradient(#7ba886 var(--avance), #edf1e9 0);
    display: grid;
    place-items: center;
    margin: 5px auto 23px;
    transform: rotate(-90deg);
}
.anillo > div {
    width: 123px;
    height: 123px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transform: rotate(90deg);
}
.anillo strong {
    font-size: 30px;
    color: #466952;
    line-height: 1.4;
}
.anillo span {
    font-size: 9px;
    color: #8d9b8b;
}
.leyenda {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 10px;
    color: #93a08f;
}
.leyenda span {
    display: flex;
    gap: 7px;
    align-items: center;
}
.leyenda strong {
    color: #637f64;
}
.leyenda i {
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: #7ba886;
}
.leyenda i.gris {
    background: #e1e7dc;
}
.franja-acciones {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding: 25px 28px;
    background: #edf2e7;
    border: 1px solid #e0e8d7;
    border-radius: 14px;
    margin-bottom: 24px;
}
.franja-acciones .sobrelinea {
    font-size: 8px;
    margin-bottom: 6px;
    color: #8b9c70;
}
.franja-acciones h2 {
    font-size: 17px;
    color: #526c42;
}
.franja-acciones p {
    font-size: 10px;
    color: #98a28b;
    margin: 5px 0 0;
}
.franja-acciones .boton.secundario {
    background: #f8faf4;
    border-color: #d9e2ce;
}
.personas > a {
    display: flex;
    gap: 11px;
    align-items: center;
    border-bottom: 1px solid #f0f3ed;
    padding: 14px 0;
}
.personas > a:last-child {
    border: 0;
}
.personas > a > span:nth-child(2) {
    flex: 1;
    min-width: 0;
}
.personas strong {
    font-size: 11px;
    display: block;
    color: #536f5c;
}
.personas small {
    font-size: 9px;
    color: #99a592;
    display: block;
    margin-top: 4px;
}
.personas .etiqueta-suave {
    font-size: 8px;
    max-width: 90px;
}
/* 5. Formularios, tablas y navegación de registros. */
.campo {
    min-width: 0;
    margin-bottom: 17px;
}
.campo label {
    display: block;
    font-size: 11px;
    font-weight: 550;
    color: #637d69;
    margin-bottom: 7px;
}
input,
select,
textarea {
    width: 100%;
    max-width: 100%;
    border: 1px solid #dce5dd;
    background: #fff;
    color: #3d5946;
    border-radius: 8px;
    padding: 11px 12px;
    font-size: 12px;
    min-height: 42px;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}
textarea {
    resize: vertical;
    line-height: 1.7;
}
input::placeholder,
textarea::placeholder {
    color: #a9b6aa;
    font-size: 11px;
}
select {
    padding-right: 28px;
}
input:focus,
select:focus,
textarea:focus {
    outline: 0;
    border-color: #90b29a;
    box-shadow: 0 0 0 3px #82a98815;
}
input:disabled,
select:disabled {
    background: #f2f5f0;
    color: #a2aea0;
}
input[readonly] {
    background: #f4f6f1;
}
.con-error input,
.con-error select,
.con-error textarea {
    border-color: #d9a69b;
}
.error-campo {
    display: block;
    color: #b86b57;
    font-size: 10px;
    margin-top: 6px;
}
.campos {
    display: grid;
    column-gap: 24px;
    row-gap: 0;
}
.campos.dos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.campos.tres {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.valor-fijo {
    background: #f5f7f2;
    border: 1px dashed #dbe3d5;
    border-radius: 8px;
    padding: 11px 12px;
    font-size: 11px;
    min-height: 42px;
    color: #809475;
}
.seccion-formulario > header {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eef1eb;
}
.seccion-formulario > header h2 {
    font-size: 15px;
}
.seccion-formulario > header p {
    font-size: 11px;
    color: #91a18c;
    margin: 0;
}
.numero-seccion {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: #edf3e7;
    color: #829573;
    font-size: 11px;
    font-weight: 650;
}
.seccion-formulario {
    padding: 26px 30px;
}
.auxiliares {
    margin: 0 0 20px;
}
.auxiliares .nota-campo {
    margin: 0;
}
.pie-formulario {
    position: sticky;
    bottom: 12px;
    background: #fffffff5;
    border: 1px solid #dce7d8;
    border-radius: 12px;
    box-shadow: 0 5px 25px #3b5a2920;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 16px 22px;
    backdrop-filter: blur(10px);
    z-index: 15;
}
.pie-formulario > span {
    font-size: 10px;
    color: #98a58e;
}
.filtros {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    padding: 20px 24px;
    border-bottom: 1px solid var(--borde);
}
.filtros .campo {
    margin: 0;
    min-width: 135px;
    flex: 0 1 190px;
}
.filtros .campo label {
    font-size: 9px;
    margin-bottom: 5px;
    color: #85977e;
}
.filtros input,
.filtros select {
    font-size: 11px;
    min-height: 38px;
    padding: 9px 11px;
}
.filtros .boton {
    min-height: 38px;
}
.buscador {
    display: flex;
    align-items: center;
    position: relative;
    flex: 1 1 200px;
}
.buscador > .icono {
    position: absolute;
    left: 12px;
    color: #9bac95;
    width: 16px;
    height: 16px;
}
.buscador input {
    padding-left: 36px;
    min-height: 38px;
    background: #fafbf8;
}
.tabla-desplazable {
    width: 100%;
    overflow: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 11px;
}
thead {
    background: #fafbf8;
    border-bottom: 1px solid #e8ede3;
}
th {
    font-size: 9px;
    font-weight: 550;
    letter-spacing: 0.2px;
    color: #91a084;
    padding: 13px 20px;
    white-space: nowrap;
}
td {
    padding: 17px 20px;
    border-bottom: 1px solid #f0f3ec;
    color: #778c6e;
    vertical-align: middle;
}
tbody tr:last-child td {
    border-bottom: 0;
}
tbody tr:hover {
    background: #fcfdf9;
}
td strong {
    color: #4e6947;
}
td small {
    display: block;
    font-size: 9px;
    color: #9aa78f;
    margin-top: 4px;
    line-height: 1.5;
}
.nombre-registro {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}
.nombre-registro strong {
    font-size: 11px;
    font-weight: 550;
    display: block;
}
.simbolo-tabla {
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    min-width: 33px;
    background: #f1f5e9;
    color: #a0b38d;
    border: 1px solid #e9eede;
    border-radius: 8px;
}
.simbolo-tabla .icono {
    width: 17px;
    height: 17px;
}
.acciones-tabla {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.paginacion {
    border-top: 1px solid #edf1e7;
    padding: 15px 23px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: #99a68d;
    font-size: 10px;
}
.paginacion nav {
    display: flex;
    gap: 8px;
}
.cadena {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 10px;
    color: #8ea181;
    margin: -7px 0 24px;
}
.cadena a {
    color: #608653;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.cadena .icono {
    width: 14px;
    height: 14px;
}
.cadena strong {
    font-weight: 500;
}
.pestanas {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid #e0e8d9;
    margin-bottom: 24px;
    overflow: auto;
}
.pestanas > a {
    display: flex;
    gap: 7px;
    align-items: center;
    white-space: nowrap;
    font-size: 11px;
    padding: 14px 0;
    color: #91a080;
    border-bottom: 2px solid transparent;
}
.pestanas > a.actual {
    border-bottom-color: var(--verde);
    color: var(--verde);
    font-weight: 600;
}
.pestanas span {
    font-size: 9px;
    background: #eaf0df;
    padding: 2px 6px;
    border-radius: 5px;
}
.ficha {
    display: grid;
    gap: 24px;
    margin: 0;
}
.ficha.dos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ficha.tres {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ficha dt {
    font-size: 10px;
    color: #94a38a;
    margin-bottom: 7px;
}
.ficha dd {
    margin: 0;
    font-size: 12px;
    color: #506c45;
    overflow-wrap: anywhere;
}
.lista-acciones {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.lista-acciones > a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 0;
    border-bottom: 1px solid #edf1e5;
    font-size: 11px;
    color: #728961;
}
.lista-acciones > a > span {
    flex: 1;
}
.lista-acciones > a > .icono {
    width: 17px;
    height: 17px;
}
.lista-acciones small {
    display: block;
    font-size: 9px;
    color: #a0ac92;
    margin-top: 4px;
}
.diseno-catalogos {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 24px;
}
.menu-catalogos {
    padding: 12px;
    align-self: start;
}
.menu-catalogos > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    font-size: 11px;
    color: #7e9270;
}
.menu-catalogos .icono {
    width: 12px;
    height: 12px;
    opacity: 0.4;
}
.menu-catalogos > a:hover {
    background: #f7f9f1;
}
.menu-catalogos > a.actual {
    background: #eaf2e2;
    color: #4d7741;
    font-weight: 600;
}
.historial {
    list-style: none;
    padding: 0;
    margin: 0;
}
.historial li {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    align-items: center;
    border-bottom: 1px solid #eff3e8;
}
.historial li:last-child {
    border: 0;
}
.historial strong {
    font-size: 11px;
    display: block;
    font-weight: 550;
    color: #758963;
}
.historial small {
    display: block;
    color: #a1ad91;
    font-size: 9px;
    margin-top: 4px;
}
.exportaciones {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.exportaciones h2 {
    font-size: 15px;
}
.exportaciones p {
    font-size: 10px;
    color: #9ba98b;
    margin: 6px 0 0;
}
.exportaciones select {
    width: auto;
    max-width: 210px;
    font-size: 11px;
}
.alcance-reporte {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    padding: 14px 24px;
    font-size: 10px;
    color: #819776;
    background: #fafcf6;
}
.alcance-reporte .icono {
    width: 14px;
    height: 14px;
}
.alcance-reporte small {
    margin-left: auto;
    font-size: 9px;
    color: #9cac90;
}
/* 6. Mapa territorial. */
.diseno-mapa {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 20px;
}
.listado-mapa {
    max-height: 650px;
    overflow: auto;
    padding: 0;
}
.listado-mapa > .cabecera-tarjeta {
    padding: 22px 20px 0;
}
.puntos-lista article {
    padding: 18px;
    border-top: 1px solid #edf1e5;
}
.puntos-lista article > button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    text-align: left;
    color: #607c53;
    width: 100%;
    padding: 0;
}
.puntos-lista article strong {
    display: block;
    font-size: 11px;
}
.puntos-lista article small {
    font-size: 9px;
    color: #9dac91;
    display: block;
    margin-top: 4px;
}
.puntos-lista article > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
}
.marcador-lista {
    display: grid;
    place-items: center;
    background: #edf4e5;
    color: #6b985a;
    min-width: 32px;
    height: 32px;
    border-radius: 8px;
}
.marcador-lista.sectores {
    background: #e7eef7;
    color: #6683ac;
}
.marcador-lista.subsectores {
    background: #f8eedf;
    color: #bc9764;
}
.lienzo-mapa {
    padding: 0;
    overflow: hidden;
    position: relative;
}
#mapa {
    height: 550px;
    width: 100%;
    z-index: 1;
    background: #eaf0e5;
}
.leyenda-mapa {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 15px 20px 5px;
    color: #8fa180;
    font-size: 10px;
}
.leyenda-mapa span {
    display: flex;
    gap: 6px;
    align-items: center;
}
.leyenda-mapa i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.color-sector {
    background: #6586b5;
}
.color-subsector {
    background: #c4a064;
}
.color-asociacion {
    background: #6b985a;
}
.lienzo-mapa > .nota-campo {
    padding: 0 20px 14px;
}
.pin {
    border: 3px solid white;
    width: 22px;
    height: 22px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 2px 5px #18372140;
}
.pin.sectores {
    background: #6586b5;
}
.pin.subsectores {
    background: #c4a064;
}
.pin.asociaciones {
    background: #6b985a;
}
.popup-mapa {
    max-width: 240px;
    color: #536c49;
    font-family: Inter, 'Segoe UI', Arial, sans-serif;
}
.popup-mapa h3 {
    font-size: 13px;
    margin: 0 0 8px;
}
.popup-mapa p {
    font-size: 11px;
    line-height: 1.6;
    margin: 0 0 10px;
}
.popup-mapa a {
    color: var(--verde);
    font-weight: 600;
    font-size: 11px;
}
/* 7. Acceso e instalación. */
.pagina-acceso {
    display: grid;
    grid-template-columns: 45% 55%;
    min-height: 100vh;
    background: #fbfcf8;
}
.presentacion {
    background: var(--verde-oscuro);
    color: #cfdfcf;
    padding: 45px 54px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.presentacion::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border: 1px solid #4a6f512e;
    border-radius: 50%;
    right: -370px;
    bottom: -150px;
    box-shadow:
        0 0 0 75px #4a6f5110,
        0 0 0 150px #4a6f5108;
    pointer-events: none;
}
.presentacion .marca {
    font-size: 23px;
    padding: 0;
}
.presentacion .marca small {
    font-size: 10px;
    color: #88aa97;
}
.presentacion-centro {
    padding: 65px 0;
    position: relative;
    z-index: 1;
}
.presentacion-centro .sobrelinea {
    color: #96b48e;
    letter-spacing: 2px;
    font-size: 9px;
    margin-bottom: 22px;
}
.presentacion h1 {
    font-size: clamp(36px, 3.8vw, 59px);
    line-height: 1.12;
    letter-spacing: -2px;
    font-weight: 500;
    color: #f4f6ec;
    margin-bottom: 25px;
}
.presentacion em {
    font-style: normal;
    color: #bad7a5;
}
.presentacion-centro > p {
    max-width: 320px;
    font-size: 12px;
    line-height: 1.9;
    color: #9db69d;
}
.red-visual {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 42px;
}
.red-visual > span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 72px;
    padding: 12px 8px;
    border: 1px solid #577c5540;
    background: #254a3933;
    border-radius: 10px;
    font-size: 9px;
    color: #bfd2ad;
}
.red-visual .icono {
    width: 25px;
    height: 25px;
    color: #a0c08c;
}
.red-visual i {
    width: 22px;
    height: 1px;
    background: #67885c;
}
.nota-presentacion {
    font-size: 10px;
    letter-spacing: 0.3px;
    color: #8aaa88;
    max-width: 280px;
    margin: 0;
}
.zona-acceso {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px;
    min-width: 0;
}
.tarjeta-acceso {
    width: 100%;
    max-width: 470px;
    padding: 20px 0;
}
.tarjeta-acceso h1 {
    font-size: 30px;
    letter-spacing: -1px;
}
.tarjeta-acceso > .texto-secundario {
    font-size: 12px;
    margin-bottom: 26px;
}
.tarjeta-acceso .sobrelinea {
    font-size: 9px;
}
.tarjeta-acceso .campos {
    column-gap: 16px;
}
.formulario-acceso .campo {
    margin-bottom: 19px;
}
.formulario-acceso .campo label {
    font-size: 11px;
}
.formulario-acceso input {
    background: white;
    min-height: 46px;
}
.formulario-acceso > .boton {
    min-height: 46px;
    margin-top: 10px;
}
.con-revelador {
    position: relative;
}
.con-revelador input {
    padding-right: 74px;
}
.revelador {
    position: absolute;
    right: 10px;
    top: 34px;
    background: transparent;
    color: #849a72;
    font-size: 10px;
    padding: 5px;
}
.ayuda-acceso {
    text-align: center;
    font-size: 10px;
    color: #94a389;
    line-height: 1.9;
    border-top: 1px solid #e9eedf;
    padding-top: 24px;
    margin-top: 30px;
}
.pie-acceso {
    color: #a1ae96;
    font-size: 9px;
    letter-spacing: 0.5px;
    margin: 30px 0 0;
}
/* 8. Adaptación a tabletas, móviles y accesibilidad. */
@media (min-width: 1600px) {
    .contenido {
        padding-top: 40px;
    }
    .cuadricula-indicadores {
        gap: 24px;
    }
    .indicador {
        padding: 24px;
    }
    .cifra {
        font-size: 39px;
    }
    .presentacion {
        padding: 60px 80px;
    }
}
@media (max-width: 1200px) {
    :root {
        --lateral: 224px;
    }
    .contenido {
        padding: 25px;
    }
    .barra-superior {
        padding: 0 25px;
    }
    .cuadricula-indicadores {
        gap: 12px;
    }
    .indicador {
        padding: 17px;
    }
    .indicador-arriba {
        font-size: 10px;
    }
    .cuadricula-panel {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
        gap: 18px;
    }
    .franja-acciones {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }
    .exportaciones {
        align-items: flex-start;
        flex-direction: column;
    }
    .diseno-mapa {
        grid-template-columns: 270px minmax(0, 1fr);
    }
    .presentacion {
        padding: 38px;
    }
    .zona-acceso {
        padding: 38px;
    }
    .ficha.tres {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .diseno-catalogos {
        grid-template-columns: 210px minmax(0, 1fr);
        gap: 18px;
    }
}
@media (max-width: 1000px) {
    .cuadricula-indicadores {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cuadricula-panel {
        grid-template-columns: 1fr;
    }
    .cuadricula-panel > .tarjeta {
        margin-bottom: 0;
    }
    .cuadricula-panel {
        margin-bottom: 24px;
    }
    .encabezado-pagina {
        align-items: flex-start;
    }
    .encabezado-pagina > .acciones {
        justify-content: flex-end;
    }
    .cuadricula-graficos {
        grid-template-columns: 1fr;
    }
    .fecha-hoy {
        display: none;
    }
    .diseno-mapa {
        grid-template-columns: 1fr;
    }
    .listado-mapa {
        max-height: 260px;
    }
    .puntos-lista {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .diseno-catalogos {
        grid-template-columns: 1fr;
    }
    .menu-catalogos {
        display: flex;
        overflow: auto;
        gap: 5px;
        margin-bottom: 0;
    }
    .menu-catalogos a {
        white-space: nowrap;
    }
    .menu-catalogos .icono {
        display: none;
    }
    .campos.dos {
        column-gap: 18px;
    }
    .presentacion h1 {
        font-size: 38px;
    }
    .red-visual {
        gap: 4px;
    }
    .red-visual > span {
        min-width: 60px;
        font-size: 8px;
    }
    .red-visual i {
        width: 13px;
    }
    .pagina-acceso {
        grid-template-columns: 40% 60%;
    }
    .presentacion {
        padding: 28px;
    }
    .zona-acceso {
        padding: 30px;
    }
}
@media (max-width: 760px) {
    .lateral {
        transform: translateX(-100%);
        transition: transform 0.2s;
        width: 260px;
    }
    .menu-abierto .lateral {
        transform: translateX(0);
    }
    .velo {
        display: none;
        position: fixed;
        inset: 0;
        background: #173d2a70;
        backdrop-filter: blur(2px);
        z-index: 90;
    }
    .menu-abierto .velo {
        display: block;
    }
    .menu-abierto {
        overflow: hidden;
    }
    .espacio {
        margin-left: 0;
    }
    .movil {
        display: inline-grid;
    }
    .barra-superior {
        height: 62px;
        min-height: 62px;
        padding: 0 18px;
        gap: 10px;
    }
    .barra-derecha {
        gap: 10px;
    }
    .barra-derecha .etiqueta-suave {
        display: none;
    }
    .ruta-actual {
        gap: 8px;
        font-size: 10px;
    }
    .ruta-actual > span:first-of-type {
        display: none;
    }
    .ruta-actual .separador {
        display: none;
    }
    .ruta-actual strong {
        max-width: 200px;
    }
    .contenido {
        padding: 23px 18px;
    }
    .pie-pagina {
        padding: 18px;
        font-size: 9px;
    }
    .pie-pagina span:nth-child(2) {
        display: none;
    }
    .encabezado-pagina {
        flex-wrap: wrap;
        gap: 16px;
        margin-bottom: 22px;
    }
    .encabezado-pagina h1 {
        font-size: 27px;
    }
    .encabezado-pagina p {
        font-size: 11px;
    }
    .encabezado-pagina > .boton {
        min-height: 36px;
    }
    .tarjeta {
        padding: 20px;
        margin-bottom: 20px;
    }
    .seccion-formulario {
        padding: 22px;
    }
    .franja-acciones {
        padding: 23px;
    }
    .filtros {
        padding: 18px;
        gap: 10px;
    }
    .filtros .campo {
        flex: 1 1 130px;
    }
    .buscador {
        flex-basis: 100%;
    }
    .filtros .boton {
        flex: 0 1 auto;
    }
    .sin-relleno > .cabecera-tarjeta {
        padding: 20px 20px 0;
    }
    .tarjeta.sin-relleno {
        padding: 0;
    }
    th,
    td {
        padding: 14px 16px;
    }
    .pestanas {
        gap: 19px;
    }
    .pestanas a {
        font-size: 10px;
    }
    .paginacion {
        padding: 15px;
    }
    .pie-formulario {
        bottom: 8px;
        padding: 14px;
    }
    .pie-formulario > span {
        display: none;
    }
    .pie-formulario > .acciones {
        width: 100%;
        justify-content: flex-end;
    }
    .ficha.dos {
        gap: 20px;
    }
    .ficha dd {
        font-size: 11px;
    }
    .ficha dt {
        font-size: 9px;
    }
    .cadena {
        font-size: 9px;
    }
    .puntos-lista {
        grid-template-columns: 1fr;
    }
    #mapa {
        height: 420px;
    }
    .pagina-acceso {
        display: block;
    }
    .presentacion {
        padding: 25px 28px;
        min-height: auto;
    }
    .presentacion-centro,
    .nota-presentacion {
        display: none;
    }
    .presentacion .marca {
        font-size: 20px;
    }
    .presentacion .marca small {
        font-size: 9px;
    }
    .presentacion .marca-icono {
        height: 40px;
        width: 40px;
    }
    .zona-acceso {
        padding: 24px;
        min-height: calc(100vh - 90px);
    }
    .tarjeta-acceso {
        max-width: 460px;
    }
    .tarjeta-acceso h1 {
        font-size: 28px;
    }
    .tarjeta-acceso .icono-grande {
        margin-bottom: 16px;
    }
}
@media (max-width: 480px) {
    .campos.dos,
    .campos.tres {
        grid-template-columns: 1fr;
    }
    .formulario-acceso .campos.dos {
        grid-template-columns: 1fr;
    }
    .indicador {
        padding: 15px;
    }
    .indicador-arriba {
        font-size: 9px;
    }
    .indicador-icono {
        width: 26px;
        height: 26px;
    }
    .indicador-icono .icono {
        width: 15px;
        height: 15px;
    }
    .cifra {
        font-size: 29px;
    }
    .indicador-pie {
        font-size: 8px;
    }
    .cuadricula-indicadores {
        gap: 10px;
    }
    .franja-acciones .acciones {
        gap: 8px;
    }
    .franja-acciones .boton {
        padding: 9px 11px;
        font-size: 10px;
    }
    .encabezado-pagina h1 {
        font-size: 25px;
    }
    .encabezado-pagina > .acciones {
        justify-content: flex-start;
    }
    .ficha.tres {
        grid-template-columns: 1fr;
    }
    .seccion-formulario {
        padding: 18px;
    }
    .seccion-formulario > header {
        align-items: flex-start;
        gap: 11px;
    }
    .seccion-formulario > header h2 {
        font-size: 14px;
    }
    .seccion-formulario > header p {
        font-size: 10px;
    }
    .pie-formulario .boton {
        padding: 10px 14px;
    }
    .exportaciones .acciones {
        width: 100%;
    }
    .exportaciones select {
        width: 100%;
        max-width: none;
    }
    .persona .etiqueta-suave {
        display: none;
    }
    .alcance-reporte small {
        margin-left: 0;
    }
    .paginacion {
        font-size: 9px;
    }
    .zona-acceso {
        padding: 24px 22px;
    }
    .persona > span:nth-child(2) {
        overflow: hidden;
    }
    .red-visual {
        display: none;
    }
    .filtros .campo {
        flex-basis: 100%;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
@media print {
    .lateral,
    .barra-superior,
    .pie-pagina,
    .pie-formulario,
    .filtros,
    .acciones,
    .pestanas,
    .saltar {
        display: none !important;
    }
    .espacio {
        margin: 0;
    }
    .contenido {
        padding: 0;
    }
    .tarjeta,
    .indicador {
        box-shadow: none;
        break-inside: avoid;
    }
    .contenido {
        max-width: none;
    }
    body {
        background: #fff;
    }
}
