.agenda-mejora-hero {
    align-items: flex-start;
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: clamp(6.5rem, 9vw, 8.5rem);
    padding-bottom: clamp(4.5rem, 8vw, 6.5rem);
}

.agenda-mejora-contenido {
    display: grid;
    gap: clamp(1.75rem, 4vw, 3rem);
    width: min(100%, 1320px);
    padding-top: clamp(2.5rem, 9vh, 5rem);
}

.agenda-mejora-encabezado {
    display: grid;
    justify-items: center;
    gap: 1rem;
}

.agenda-mejora-encabezado .intro-documento-etiqueta,
.agenda-mejora-encabezado .intro-documento-linea {
    margin: 0;
}

.agenda-paso-titulo {
    margin: 0.35rem 0 0;
    color: #fff;
    font-size: clamp(1.2rem, 2.7vw, 2rem);
    font-weight: 600;
    text-align: center;
}

.agenda-ruta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
}

.agenda-ruta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    max-width: min(100%, 480px);
    padding: 0.55rem 0.85rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.82rem;
    line-height: 1.2;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agenda-ruta-item:hover,
.agenda-ruta-item:focus-visible {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
}

.agenda-opciones {
    width: 100%;
}

.agenda-opciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: clamp(0.85rem, 1.6vw, 1.25rem);
    width: 100%;
}

.agenda-opciones-grid--documentos {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
}

.agenda-opcion-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 118px;
    padding: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 38px rgba(3, 12, 25, 0.32);
    color: #fff;
    text-align: center;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.agenda-opcion-card--todos {
    border-color: rgba(255, 255, 255, 0.62);
    background: linear-gradient(145deg, rgba(86, 177, 197, 0.42), rgba(57, 84, 165, 0.30));
}

.agenda-opcion-card:hover,
.agenda-opcion-card:focus-visible {
    transform: translateY(-5px);
    border-color: #fff;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.13));
    box-shadow: 0 24px 48px rgba(3, 12, 25, 0.42);
    color: #fff;
}

.agenda-opcion-card:focus-visible,
.agenda-ruta-item:focus-visible,
.agenda-documento-acciones a:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.agenda-opcion-clave {
    font-size: 1.05rem;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.agenda-opcion-descripcion {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
    text-transform: uppercase;
}

.agenda-vacio {
    width: min(100%, 720px);
    margin: 0 auto;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 20px;
    background: rgba(8, 22, 40, 0.66);
    color: #fff;
    text-align: center;
}

.agenda-resultados-acceso {
    margin-top: 0;
}

html:has(.agenda-resultados-seccion),
body:has(.agenda-resultados-seccion) {
    overflow-y: hidden;
}

body:has(.agenda-resultados-seccion) .agenda-mejora-hero {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}

.agenda-resultados-seccion {
    position: relative;
    isolation: isolate;
    height: calc(100vh - 72px);
    height: calc(100dvh - 72px);
    min-height: 0;
    padding: clamp(5.5rem, 8vw, 7rem) 1.5rem clamp(4rem, 7vw, 6rem);
    overflow-x: clip;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-color: rgba(159, 184, 199, 0.82) rgba(9, 27, 43, 0.42);
    scrollbar-gutter: stable;
    scroll-margin-top: 72px;
    background:
        radial-gradient(circle at 15% 20%, rgba(94, 190, 220, 0.20), transparent 30%),
        radial-gradient(circle at 85% 80%, rgba(111, 29, 155, 0.25), transparent 35%),
        linear-gradient(135deg, #091b2b 0%, #102f45 48%, #1b1740 100%);
}

.agenda-resultados-contenido {
    position: relative;
    z-index: 2;
    width: min(100%, 1320px);
    margin: 0 auto;
}

.agenda-resultados-contenido > .agenda-vacio {
    margin-top: min(22vh, 10rem);
}

.agenda-resultados-subir {
    position: fixed;
    right: clamp(1rem, 3vw, 2.5rem);
    bottom: clamp(1rem, 3vw, 2rem);
    display: flex;
    width: max-content;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
}

body.agenda-vista-resultados .agenda-resultados-subir,
.agenda-resultados-seccion:target .agenda-resultados-subir {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.agenda-resultados {
    --agenda-azul: #126c9e;
    --agenda-azul-oscuro: #16324f;
    --agenda-borde: rgba(70, 107, 132, 0.30);
    --agenda-texto: #203548;
    --agenda-texto-suave: #647789;
    --agenda-verde: #1f9d67;
    --agenda-ambar: #f59e0b;
    --agenda-rojo: #dc4c4c;
    --agenda-superficie-panel: rgba(211, 226, 235, 0.96);
    --agenda-superficie-elevada: #e8f1f5;
    --agenda-superficie-media: #d4e3ec;
    --agenda-superficie-alterna: #c8dbe6;
    --agenda-superficie-hover: #bad3e1;
    display: grid;
    gap: 1.25rem;
    width: 100%;
}

.agenda-herramientas[hidden],
.agenda-detalle-contenedor[hidden],
.agenda-sin-coincidencias[hidden],
.agenda-paginacion[hidden] {
    display: none !important;
}

.agenda-resumen {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    gap: clamp(1.25rem, 3vw, 2.25rem);
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(166, 192, 207, 0.62);
    border-radius: 26px;
    background: linear-gradient(145deg, var(--agenda-superficie-panel), rgba(190, 209, 221, 0.96));
    box-shadow: 0 18px 44px rgba(4, 18, 34, 0.20);
    color: var(--agenda-texto);
}

.agenda-resumen-encabezado,
.agenda-detalle-encabezado {
    display: flex;
    grid-column: 1 / -1;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.agenda-resumen-encabezado h3,
.agenda-detalle-encabezado h3 {
    margin: 0.15rem 0 0;
    color: var(--agenda-azul-oscuro);
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    font-weight: 750;
}

.agenda-resumen-etiqueta {
    color: var(--agenda-azul);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.agenda-resumen-registros,
.agenda-detalle-encabezado > span {
    color: var(--agenda-texto-suave);
    font-size: 0.78rem;
    font-weight: 650;
}

.agenda-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.agenda-kpi {
    position: relative;
    display: grid;
    align-content: center;
    min-height: 128px;
    padding: 1.05rem 1.15rem;
    overflow: hidden;
    border: 1px solid var(--agenda-borde);
    border-radius: 18px;
    background: var(--agenda-superficie-elevada);
    box-shadow: 0 7px 18px rgba(20, 48, 70, 0.08);
}

.agenda-kpi::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: currentColor;
    content: "";
}

.agenda-kpi--total {
    color: var(--agenda-azul);
}

.agenda-kpi--concluido {
    color: var(--agenda-verde);
}

.agenda-kpi--proceso {
    color: #a86400;
}

.agenda-kpi--cancelado {
    color: #b53232;
}

.agenda-kpi-etiqueta {
    color: var(--agenda-texto-suave);
    font-size: 0.76rem;
    font-weight: 750;
}

.agenda-kpi strong {
    color: var(--agenda-azul-oscuro);
    font-size: clamp(1.8rem, 3.8vw, 2.5rem);
    line-height: 1.08;
}

.agenda-kpi-ayuda,
.agenda-kpi-porcentaje {
    margin-top: 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
}

@property --agenda-fin-concluidos {
    syntax: "<percentage>";
    inherits: false;
    initial-value: 0%;
}

@property --agenda-fin-proceso {
    syntax: "<percentage>";
    inherits: false;
    initial-value: 0%;
}

.agenda-grafica-contenedor {
    display: grid;
    grid-template-columns: minmax(230px, 1fr) minmax(155px, 0.7fr);
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    min-height: 280px;
    padding: 1rem;
    border: 1px solid var(--agenda-borde);
    border-radius: 22px;
    background: linear-gradient(145deg, var(--agenda-superficie-elevada), var(--agenda-superficie-media));
}

.agenda-grafica-escena {
    --agenda-inclinacion: 58deg;
    --agenda-giro: -28deg;
    --agenda-profundidad: 12px;
    position: relative;
    width: min(100%, 270px);
    aspect-ratio: 1.18;
    margin: 0 auto;
    perspective: 850px;
    isolation: isolate;
}

.agenda-grafica-anillo {
    --agenda-fin-concluidos: var(--agenda-fin-concluidos-final);
    --agenda-fin-proceso: var(--agenda-fin-proceso-final);
    --agenda-revelado: 100%;
    position: absolute;
    top: 3%;
    left: 8%;
    width: 84%;
    aspect-ratio: 1;
    border-radius: 50%;
    -webkit-mask: radial-gradient(circle, transparent 0 39%, #000 40% 100%);
    mask: radial-gradient(circle, transparent 0 39%, #000 40% 100%);
    transform-style: preserve-3d;
    transition: opacity 500ms ease, transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.agenda-grafica-profundidad {
    z-index: 1;
    background: conic-gradient(
        from -25deg,
        #12633f 0 min(var(--agenda-fin-concluidos), var(--agenda-revelado)),
        #a65f00 min(var(--agenda-fin-concluidos), var(--agenda-revelado)) min(var(--agenda-fin-proceso), var(--agenda-revelado)),
        #8f2929 min(var(--agenda-fin-proceso), var(--agenda-revelado)) var(--agenda-revelado),
        transparent var(--agenda-revelado) 100%);
    filter: saturate(0.9);
    transform: translateY(var(--agenda-profundidad)) rotateX(var(--agenda-inclinacion)) rotateZ(var(--agenda-giro));
}

.agenda-grafica-cara {
    z-index: 2;
    background: conic-gradient(
        from -25deg,
        var(--agenda-verde) 0 min(var(--agenda-fin-concluidos), var(--agenda-revelado)),
        var(--agenda-ambar) min(var(--agenda-fin-concluidos), var(--agenda-revelado)) min(var(--agenda-fin-proceso), var(--agenda-revelado)),
        var(--agenda-rojo) min(var(--agenda-fin-proceso), var(--agenda-revelado)) var(--agenda-revelado),
        transparent var(--agenda-revelado) 100%);
    box-shadow: inset 8px 9px 16px rgba(255, 255, 255, 0.22), inset -8px -10px 16px rgba(11, 27, 40, 0.14);
    transform: rotateX(var(--agenda-inclinacion)) rotateZ(var(--agenda-giro));
}

.agenda-grafica-sombra {
    position: absolute;
    z-index: 0;
    right: 7%;
    bottom: 16%;
    left: 7%;
    height: 25%;
    border-radius: 50%;
    background: rgba(19, 47, 68, 0.25);
    filter: blur(14px);
    transform: rotate(-8deg);
    transition: opacity 650ms ease, transform 800ms ease;
}

.agenda-grafica-etiqueta {
    position: absolute;
    top: 43%;
    left: 50%;
    z-index: 3;
    display: grid;
    min-width: 76px;
    padding: 0.6rem 0.8rem;
    border: 1px solid rgba(18, 108, 158, 0.14);
    border-radius: 15px;
    background: rgba(232, 241, 245, 0.96);
    box-shadow: 0 8px 22px rgba(18, 49, 70, 0.18);
    color: var(--agenda-azul-oscuro);
    place-items: center;
    transform: translate(-50%, -50%);
    transition: opacity 450ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.agenda-grafica-etiqueta strong {
    font-size: 1.35rem;
    line-height: 1;
}

.agenda-grafica-etiqueta small {
    margin-top: 0.2rem;
    color: var(--agenda-texto-suave);
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0.14em;
}

.agenda-grafica-escena.is-pending .agenda-grafica-anillo {
    --agenda-revelado: 0%;
}

.agenda-grafica-escena.is-pending .agenda-grafica-profundidad {
    opacity: 0;
    transform: translateY(-2px) rotateX(72deg) rotateZ(-28deg) scale(0.86);
}

.agenda-grafica-escena.is-pending .agenda-grafica-cara {
    opacity: 0.18;
    transform: translateY(-10px) rotateX(72deg) rotateZ(-28deg) scale(0.86);
}

.agenda-grafica-escena.is-pending .agenda-grafica-sombra,
.agenda-grafica-escena.is-pending .agenda-grafica-etiqueta {
    opacity: 0;
}

.agenda-grafica-escena.is-pending .agenda-grafica-sombra {
    transform: rotate(-8deg) scale(0.55);
}

.agenda-grafica-escena.is-pending .agenda-grafica-etiqueta {
    transform: translate(-50%, -35%) scale(0.82);
}

.agenda-grafica-escena--vacia .agenda-grafica-cara {
    background: #b8c4cc;
}

.agenda-grafica-escena--vacia .agenda-grafica-profundidad {
    background: #71818d;
}

.agenda-grafica-leyenda {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.agenda-grafica-leyenda li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.7rem;
    border: 1px solid var(--agenda-borde);
    border-radius: 13px;
    background: rgba(232, 241, 245, 0.88);
}

.agenda-grafica-leyenda li > span:last-child {
    display: grid;
}

.agenda-grafica-leyenda strong {
    color: var(--agenda-texto);
    font-size: 0.76rem;
}

.agenda-grafica-leyenda small {
    color: var(--agenda-texto-suave);
    font-size: 0.68rem;
}

.agenda-leyenda-color {
    width: 0.72rem;
    height: 2rem;
    border-radius: 999px;
}

.agenda-leyenda-color--concluido {
    background: var(--agenda-verde);
}

.agenda-leyenda-color--proceso {
    background: var(--agenda-ambar);
}

.agenda-leyenda-color--cancelado {
    background: var(--agenda-rojo);
}

.agenda-grafica-vacia {
    margin: 0;
    color: var(--agenda-texto-suave);
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
}

.agenda-detalle-panel {
    overflow: hidden;
    border: 1px solid rgba(166, 192, 207, 0.62);
    border-radius: 26px;
    background: linear-gradient(145deg, var(--agenda-superficie-panel), rgba(190, 209, 221, 0.96));
    box-shadow: 0 18px 44px rgba(4, 18, 34, 0.20);
    color: var(--agenda-texto);
}

.agenda-detalle-encabezado {
    padding: clamp(1.2rem, 2.5vw, 1.7rem);
    border-bottom: 1px solid var(--agenda-borde);
}

.agenda-herramientas {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto auto;
    align-items: end;
    gap: 0.9rem;
    padding: 1rem clamp(1.2rem, 2.5vw, 1.7rem);
    border-bottom: 1px solid var(--agenda-borde);
    background: rgba(196, 216, 228, 0.82);
}

.agenda-buscador,
.agenda-tamano-pagina,
.agenda-orden-movil {
    display: grid;
    gap: 0.35rem;
    color: var(--agenda-texto-suave);
    font-size: 0.72rem;
    font-weight: 750;
}

.agenda-buscador-campo {
    position: relative;
    display: block;
}

.agenda-buscador-campo i {
    position: absolute;
    top: 50%;
    left: 0.85rem;
    color: #718494;
    transform: translateY(-50%);
}

.agenda-buscador input,
.agenda-tamano-pagina select,
.agenda-orden-movil select {
    height: 42px;
    border: 1px solid #cbd8e1;
    border-radius: 50%;
    background: var(--agenda-superficie-elevada);
    color: var(--agenda-texto);
    font-size: 0.82rem;
}

.agenda-buscador input {
    width: 100%;
    padding: 0 0.9rem 0 2.45rem;
    border-radius: 12px;
}

.agenda-tamano-pagina select {
    min-width: 104px;
    padding: 0 2rem 0 0.75rem;
    border-radius: 12px;
}

.agenda-orden-movil {
    display: none;
}

.agenda-orden-movil select {
    min-width: 165px;
    padding: 0 2rem 0 0.75rem;
    border-radius: 12px;
}

.agenda-buscador input:focus,
.agenda-tamano-pagina select:focus,
.agenda-orden-movil select:focus {
    border-color: var(--agenda-azul);
    outline: 3px solid rgba(18, 108, 158, 0.15);
}

.agenda-contador {
    align-self: center;
    color: var(--agenda-texto-suave);
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.agenda-detalle-contenedor {
    width: 100%;
    overflow-x: auto;
    background: var(--agenda-superficie-elevada);
}

.agenda-detalle {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
    color: var(--agenda-texto);
}

.agenda-detalle th,
.agenda-detalle td {
    padding: 0.9rem 0.8rem;
    border-bottom: 1px solid var(--agenda-borde);
    vertical-align: middle;
}

.agenda-detalle thead th {
    padding: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.13);
    background: var(--agenda-azul);
    color: #fff;
    font-size: 0.72rem;
    text-align: left;
}

.agenda-detalle thead th:nth-child(n + 5),
.agenda-detalle tbody td:nth-child(n + 5) {
    text-align: center;
}

.agenda-orden {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    width: 100%;
    min-height: 52px;
    padding: 0.7rem 0.75rem;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 750;
    text-align: inherit;
}

.agenda-orden:hover,
.agenda-orden:focus-visible {
    background: rgba(255, 255, 255, 0.14);
}

.agenda-orden:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -4px;
}

.agenda-detalle tbody tr {
    background: var(--agenda-superficie-elevada);
}

.agenda-detalle tbody tr:nth-child(even) {
    background: var(--agenda-superficie-alterna);
}

.agenda-detalle tbody tr:hover {
    background: var(--agenda-superficie-hover);
}

.agenda-detalle tbody tr[hidden] {
    display: none;
}

.agenda-programa {
    display: block;
    max-width: 320px;
    color: var(--agenda-azul-oscuro);
    font-size: 0.82rem;
    line-height: 1.4;
}

.agenda-ente {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 220px;
    font-size: 0.72rem;
    line-height: 1.35;
}

.agenda-ente img {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: 1px solid var(--agenda-borde);
    border-radius: 10px;
    background: var(--agenda-superficie-media);
    object-fit: contain;
}

.agenda-ente > span {
    display: grid;
}

.agenda-ente small,
.agenda-periodos small {
    color: var(--agenda-texto-suave);
    font-size: 0.66rem;
}

.agenda-periodos {
    display: grid;
    min-width: 86px;
    font-size: 0.72rem;
}

.agenda-valor {
    display: inline-grid;
    min-width: 34px;
    min-height: 30px;
    border-radius: 9px;
    font-size: 0.78rem;
    font-weight: 800;
    place-items: center;
}

.agenda-valor--concluido {
    background: #e2f5ec;
    color: #126b45;
}

.agenda-valor--proceso {
    background: #fff1d7;
    color: #925900;
}

.agenda-valor--cancelado {
    background: #fde7e7;
    color: #a52e2e;
}

.agenda-sin-coincidencias {
    margin: 0;
    padding: 2.5rem 1.5rem;
    background: var(--agenda-superficie-elevada);
    color: var(--agenda-texto-suave);
    text-align: center;
}

.agenda-paginacion {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem clamp(1.2rem, 2.5vw, 1.7rem);
    border-top: 1px solid var(--agenda-borde);
    background: rgba(196, 216, 228, 0.82);
}

.agenda-paginacion button {
    min-height: 38px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd8e1;
    border-radius: 10px;
    background: var(--agenda-superficie-elevada);
    color: var(--agenda-azul-oscuro);
    font-size: 0.75rem;
    font-weight: 750;
}

.agenda-paginacion button:hover:not(:disabled),
.agenda-paginacion button:focus-visible,
.agenda-paginas button[aria-current="page"] {
    border-color: var(--agenda-azul);
    background: var(--agenda-azul);
    color: #fff;
}

.agenda-paginacion button:focus-visible {
    outline: 3px solid rgba(18, 108, 158, 0.2);
    outline-offset: 2px;
}

.agenda-paginacion button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.agenda-paginas {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
}

.agenda-paginas button {
    min-width: 38px;
    padding-inline: 0.45rem;
}

.agenda-paginas span {
    align-self: center;
    color: var(--agenda-texto-suave);
}

.agenda-pagina-estado {
    color: var(--agenda-texto-suave);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.agenda-documento-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    padding: clamp(1.1rem, 2.5vw, 1.5rem);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(8, 22, 40, 0.58));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 20px 45px rgba(4, 10, 20, 0.32);
    color: #fff;
}

.agenda-documento-card h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.45;
}

.agenda-documento-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.agenda-documento-meta span {
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.75rem;
    font-weight: 600;
}

.agenda-documento-card dl,
.agenda-documento-card dd {
    margin: 0;
}

.agenda-documento-card dl {
    display: grid;
    gap: 0.75rem;
}

.agenda-documento-card dt {
    margin-bottom: 0.15rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.agenda-documento-card dd {
    font-size: 0.88rem;
    line-height: 1.4;
}

.agenda-documento-acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: auto;
}

.agenda-documento-acciones a {
    padding: 0.6rem 0.85rem;
    border-radius: 999px;
    background: #fff;
    color: #0d223b;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

.agenda-documento-acciones a:hover,
.agenda-documento-acciones a:focus-visible {
    background: #dcecff;
    color: #071525;
}

body:has(.agenda-mejora-hero) .bg-footer {
    display: none;
}

@media (max-width: 991.98px) {
    .agenda-resumen {
        grid-template-columns: minmax(0, 1fr);
    }

    .agenda-grafica-contenedor {
        grid-template-columns: minmax(250px, 1fr) minmax(180px, 0.7fr);
    }
}

@media (max-width: 767.98px) {
    .agenda-mejora-hero {
        padding-bottom: 4rem;
    }

    .agenda-mejora-contenido {
        padding-top: 2rem;
    }

    .agenda-resultados-seccion {
        padding: 5rem 1rem 3.5rem;
    }

    .agenda-resultados-subir {
        bottom: 0.75rem;
    }

    .agenda-opciones-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .agenda-opciones-grid--documentos {
        grid-template-columns: minmax(0, 1fr);
    }

    .agenda-resumen {
        grid-template-columns: minmax(0, 1fr);
        padding: 1rem;
        border-radius: 22px;
    }

    .agenda-resumen-encabezado,
    .agenda-detalle-encabezado {
        align-items: flex-start;
        flex-direction: column;
    }

    .agenda-grafica-contenedor {
        grid-template-columns: minmax(0, 1fr);
    }

    .agenda-grafica-escena {
        --agenda-inclinacion: 53deg;
        --agenda-giro: -24deg;
        --agenda-profundidad: 9px;
        width: min(100%, 250px);
    }

    .agenda-grafica-leyenda {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .agenda-grafica-leyenda li {
        align-items: start;
        grid-template-columns: minmax(0, 1fr);
    }

    .agenda-leyenda-color {
        width: 2rem;
        height: 0.35rem;
    }

    .agenda-detalle-panel {
        border-radius: 22px;
    }

    .agenda-herramientas {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .agenda-buscador,
    .agenda-contador {
        grid-column: 1 / -1;
    }

    .agenda-orden-movil {
        display: grid;
    }

    .agenda-tamano-pagina select,
    .agenda-orden-movil select {
        width: 100%;
        min-width: 0;
    }

    .agenda-detalle-contenedor {
        padding: 0.85rem;
        overflow: visible;
        background: #eef4f7;
    }

    .agenda-detalle {
        display: block;
        min-width: 0;
    }

    .agenda-detalle thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .agenda-detalle tbody {
        display: grid;
        gap: 0.8rem;
    }

    .agenda-detalle tbody tr,
    .agenda-detalle tbody tr:nth-child(even),
    .agenda-detalle tbody tr:hover {
        display: grid;
        overflow: hidden;
        border: 1px solid var(--agenda-borde);
        border-radius: 16px;
        background: var(--agenda-superficie-elevada);
        box-shadow: 0 6px 16px rgba(20, 48, 70, 0.06);
    }

    .agenda-detalle td,
    .agenda-detalle tbody td:nth-child(n + 5) {
        display: grid;
        grid-template-columns: minmax(105px, 0.65fr) minmax(0, 1fr);
        gap: 0.75rem;
        align-items: center;
        padding: 0.7rem 0.85rem;
        color: var(--agenda-texto);
        font-size: 0.76rem;
        text-align: left;
    }

    .agenda-detalle td::before {
        color: var(--agenda-texto-suave);
        content: attr(data-label);
        font-size: 0.67rem;
        font-weight: 800;
        letter-spacing: 0.03em;
        text-transform: uppercase;
    }

    .agenda-detalle td:first-child {
        display: block;
        padding: 1rem;
        background: var(--agenda-superficie-media);
    }

    .agenda-detalle td:first-child::before {
        display: block;
        margin-bottom: 0.35rem;
    }

    .agenda-programa {
        max-width: none;
        font-size: 0.88rem;
    }

    .agenda-ente {
        min-width: 0;
    }

    .agenda-valor {
        justify-self: start;
    }

    .agenda-paginacion {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .agenda-paginas {
        grid-row: 1;
        grid-column: 1 / -1;
        flex-wrap: wrap;
    }

    .agenda-paginacion > button:first-child {
        grid-row: 2;
        grid-column: 1;
    }

    .agenda-paginacion > button:last-child {
        grid-row: 2;
        grid-column: 2;
    }

    .agenda-pagina-estado {
        grid-row: 3;
        grid-column: 1 / -1;
        text-align: center;
    }
}

@media (max-width: 479.98px) {
    .agenda-opciones-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .agenda-opcion-card {
        min-height: 96px;
        border-radius: 20px;
    }

    .agenda-ruta {
        justify-content: stretch;
    }

    .agenda-ruta-item {
        max-width: 100%;
    }

    .agenda-kpis {
        gap: 0.65rem;
    }

    .agenda-kpi {
        min-height: 108px;
        padding: 0.85rem;
    }

    .agenda-grafica-leyenda {
        grid-template-columns: minmax(0, 1fr);
    }

    .agenda-grafica-leyenda li {
        align-items: center;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .agenda-leyenda-color {
        width: 0.45rem;
        height: 2rem;
    }

    .agenda-herramientas {
        grid-template-columns: minmax(0, 1fr);
    }

    .agenda-buscador,
    .agenda-contador {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .agenda-opcion-card,
    .agenda-grafica-anillo,
    .agenda-grafica-sombra,
    .agenda-grafica-etiqueta {
        transition: none;
    }
}
