@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("source-sans-3-400.ttf") format("truetype");
}
@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("source-sans-3-600.ttf") format("truetype");
}
@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("source-sans-3-700.ttf") format("truetype");
}

:root {
    --vino: #881b3c;
    --vino-oscuro: #68142e;
    --vino-suave: #f8f0f2;
    --dorado: #b58a4c;
    --texto: #29282b;
    --secundario: #6b6870;
    --borde: #e5e0dd;
    --fondo: #f6f5f3;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
    margin: 0;
    color: var(--texto);
    font-family: "Source Sans 3", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.45;
}
button, select, input { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: var(--vino); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--dorado); outline-offset: 3px; }

.pagina-concentraciones { background: var(--fondo); }
.ancho-pagina { width: calc(100% - 80px); max-width: 1360px; margin: 0 auto; }
.cabecera-institucional {
    background: #fff;
    border-bottom: 3px solid var(--vino);
}
.cabecera-contenido {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 17px;
    padding-bottom: 17px;
}
.identidad { display: block; flex: 0 1 561px; width: 561px; max-width: 561px; }
.identidad img { display: block; width: 100%; max-width: 561px; height: auto; }
.nombre-sistema { display: flex; align-items: center; gap: 13px; color: var(--vino); }
.nombre-sistema strong { font-size: 27px; font-weight: 700; letter-spacing: .5px; }
.nombre-sistema span {
    padding-left: 13px;
    border-left: 1px solid #d7c4ba;
    font-size: 13px;
    line-height: 1.3;
}
.franja-navegacion { background: #fff; border-bottom: 1px solid var(--borde); }
.ruta { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 13px; color: var(--secundario); }
.ruta a { color: var(--secundario); text-decoration: none; }
.ruta a:hover { color: var(--vino); text-decoration: underline; }
.ruta [aria-current] { color: var(--vino); font-weight: 600; }
.contenido-principal { padding-top: 34px; padding-bottom: 38px; }
.titulo-pagina { margin-bottom: 26px; }
.area-institucional {
    margin: 0 0 5px;
    color: var(--vino);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .4px;
}
h1 { margin: 0; color: var(--vino); font-size: 38px; line-height: 1.15; font-weight: 700; letter-spacing: -.7px; }
.titulo-pagina > p:last-child { margin: 11px 0 0; color: var(--secundario); font-size: 17px; }
.tarjeta, .panel-resultados {
    background: #fff;
    border: 1px solid var(--borde);
    border-radius: 9px;
    box-shadow: 0 3px 12px rgba(59, 38, 38, .035);
}
.filtros { padding: 24px 26px 0; }
.cabecera-filtros { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin-bottom: 20px; }
.cabecera-filtros h2 { margin: 0; font-size: 20px; font-weight: 600; }
.cabecera-filtros p { margin: 0; color: var(--secundario); font-size: 14px; }
.formulario-consulta {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 16px;
    margin: 0;
}
.campo-formulario { position: relative; flex: 1 1 150px; min-width: 0; }
.campo-formulario:nth-child(1) { flex: 1.5 1 190px; }
.campo-formulario:nth-child(2) { flex: 1.9 1 230px; }
.campo-formulario:nth-child(3) { flex: .8 1 100px; }
.campo-formulario:nth-child(4) { flex: 1.15 1 145px; }
.campo-formulario label { display: block; margin-bottom: 7px; color: #48424b; font-size: 13px; font-weight: 600; }
.campo-formulario select {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 35px 0 13px;
    border: 1px solid #cec6c8;
    border-radius: 5px;
    background: #fff;
    color: var(--texto);
    font-size: 15px;
    appearance: none;
    -webkit-appearance: none;
}
.campo-formulario::after {
    content: "";
    position: absolute;
    right: 16px;
    bottom: 22px;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid #776d72;
    border-bottom: 1.5px solid #776d72;
    transform: rotate(45deg);
    pointer-events: none;
}
.campo-formulario select:hover { border-color: var(--vino); }
.campo-formulario select:focus { border-color: var(--vino); outline: 2px solid #ead4dc; outline-offset: 1px; }
.campo-formulario select:disabled { color: #8e858b; background: #f5f3f3; border-color: #e2dcdc; }
.boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .15s, border-color .15s;
}
.formulario-consulta .boton { flex: 0 0 148px; height: 48px; min-height: 48px; min-width: 148px; }
.boton-primario { color: #fff; background: var(--vino); }
.boton-primario:hover { background: var(--vino-oscuro); }
.boton-primario:disabled { opacity: .7; cursor: progress; }
.boton-secundario { color: var(--vino); background: #fff; border-color: var(--vino); }
.boton-secundario:hover { background: var(--vino-suave); }
.ayuda-periodo { flex: 1 0 100%; margin: 0 0 4px; min-height: 18px; color: var(--secundario); font-size: 12px; }
.notas-consulta {
    list-style: none;
    display: grid;
    grid-template-columns: 1.3fr 1.3fr .9fr;
    gap: 20px;
    padding: 17px 0 19px;
    margin: 14px 0 0;
    border-top: 1px solid #eee9e7;
}
.notas-consulta li { display: flex; align-items: flex-start; gap: 9px; color: var(--secundario); font-size: 12px; line-height: 1.45; }
.simbolo-nr { margin-top: -1px; min-width: 19px; color: var(--vino); font-size: 14px; font-weight: 700; font-style: italic; }
.panel-resultados { position: relative; margin-top: 23px; overflow: hidden; }
.panel-resultados iframe { display: block; width: 100%; min-height: 340px; border: 0; background: #fff; }
.estado-carga {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, .95);
    color: var(--vino);
    font-size: 16px;
}
.indicador-carga { width: 20px; height: 20px; border: 2px solid #e4cfd6; border-top-color: var(--vino); border-radius: 50%; animation: girar .75s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.pie-pagina { border-top: 1px solid var(--borde); background: #fff; color: var(--secundario); font-size: 12px; }
.pie-pagina .ancho-pagina { display: flex; justify-content: space-between; gap: 16px; padding: 19px 0; }
.saltar-contenido { position: absolute; left: 12px; top: -100px; z-index: 30; background: #fff; padding: 12px; }
.saltar-contenido:focus { top: 10px; }

.pagina-resultados { padding: 23px 25px 25px; background: #fff; }
.barra-resultados { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.barra-resultados h2 { margin: 0 0 3px; color: #332e33; font-size: 21px; line-height: 1.2; font-weight: 600; }
.conteo-resultados { margin: 0; color: var(--secundario); font-size: 13px; }
.estado-vacio {
    min-height: 272px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px 18px 45px;
    border: 1px dashed #e4d9dd;
    border-radius: 5px;
    background: #fdfbfc;
    text-align: center;
}
.estado-vacio h3 { margin: 18px 0 5px; color: #51414a; font-size: 18px; font-weight: 600; }
.estado-vacio p { max-width: 410px; margin: 0; color: var(--secundario); font-size: 14px; }
.grafico-vacio { display: flex; align-items: flex-end; gap: 6px; width: 70px; height: 50px; padding: 0 7px 5px; border-left: 1px solid #d9c1ca; border-bottom: 1px solid #d9c1ca; }
.grafico-vacio i { flex: 1; height: 25%; background: #dec3ce; border-radius: 2px 2px 0 0; }
.grafico-vacio i:nth-child(2) { height: 65%; }
.grafico-vacio i:nth-child(3) { height: 45%; }
.grafico-vacio i:nth-child(4) { height: 90%; background: #ab637d; }
.grafico-vacio i:nth-child(5) { height: 58%; }
.mensaje-error { padding: 20px; border: 1px solid #e2bcc7; border-left: 4px solid var(--vino); border-radius: 4px; background: #fff8fa; color: #6c2039; font-size: 15px; }
.mensaje-error p { margin: 8px 0 0; }
.tabla-desplazable { max-height: 540px; overflow: auto; border: 1px solid var(--borde); border-radius: 5px; scrollbar-color: #c4a3ae #f4eef0; }
.tabla-desplazable:focus { outline: 2px solid #bc8da0; outline-offset: 2px; }
.tabla-desplazable table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    min-width: 100%;
    margin: 0;
    border: 0;
    color: var(--texto);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.tabla-desplazable caption { padding: 13px 16px; text-align: left; color: var(--secundario); background: #faf8f7; font-size: 13px; border-bottom: 1px solid var(--borde); }
.tabla-desplazable th, .tabla-desplazable td { min-width: 72px; padding: 11px 15px; border: 0; border-right: 1px solid #f0ebea; border-bottom: 1px solid #ece8e6; text-align: center; }
.tabla-desplazable th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--vino);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-right-color: rgba(255, 255, 255, .13);
}
.tabla-desplazable tbody tr:nth-child(even) td { background: #faf8f7; }
.tabla-desplazable tbody tr:hover td { background: #f8eff2; }
.tabla-desplazable tbody td:first-child { position: sticky; left: 0; z-index: 1; min-width: 124px; background: #fff; box-shadow: 1px 0 0 #e6dadd; }
.tabla-desplazable tbody tr:nth-child(even) td:first-child { background: #faf8f7; }
.tabla-desplazable thead th:first-child { left: 0; z-index: 3; min-width: 124px; }
.tabla-desplazable font, .tabla-desplazable span, .tabla-desplazable b { font-family: inherit; font-size: inherit; }
.tabla-desplazable td[bgcolor="#999999"] { background: #faf7f8; color: var(--vino); font-weight: 600; }
.tabla-desplazable td[bgcolor="#f4f4f4"] { background: var(--vino); color: #fff; font-weight: 600; }
.tabla-desplazable .textos_difusion { padding: 18px; color: var(--secundario); font-size: 14px; }
.ayuda-tabla { margin: 11px 0 0; color: var(--secundario); font-size: 12px; }

.icono-buscar { position: relative; display: inline-block; width: 13px; height: 13px; margin-right: 3px; border: 1.6px solid currentColor; border-radius: 50%; }
.icono-buscar::after { content: ""; position: absolute; width: 6px; height: 1.6px; right: -5px; bottom: -3px; background: currentColor; transform: rotate(45deg); }
.icono-descarga { position: relative; display: inline-block; width: 16px; height: 16px; border: solid currentColor; border-width: 0 1.5px 1.5px; border-radius: 0 0 2px 2px; }
.icono-descarga::before { content: ""; position: absolute; width: 1.5px; height: 10px; left: 6px; top: -3px; background: currentColor; }
.icono-descarga::after { content: ""; position: absolute; left: 3.5px; top: 2px; width: 5px; height: 5px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.icono-reloj { position: relative; display: inline-block; flex: 0 0 15px; height: 15px; margin-top: 2px; border: 1px solid #ad8393; border-radius: 50%; }
.icono-reloj::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 5px; border: solid #ad8393; border-width: 0 0 1px 1px; }
.icono-documento { display: inline-block; flex: 0 0 13px; height: 15px; margin-top: 2px; border: 1px solid #ad8393; border-radius: 1px; box-shadow: inset 0 -4px 0 #f1e8eb; }

@media (min-width: 1500px) {
    .contenido-principal { padding-top: 42px; }
}
@media (max-width: 1000px) {
    .ancho-pagina { width: calc(100% - 48px); }
    .identidad { max-width: 465px; }
    .nombre-sistema span { display: none; }
    .formulario-consulta .campo-formulario:nth-child(n) { flex: 1 1 20%; }
    .formulario-consulta .boton { order: 6; margin-left: auto; }
    .ayuda-periodo { flex: 1 1 60%; order: 5; align-self: center; }
    .notas-consulta { grid-template-columns: 1fr 1fr; gap: 12px 20px; }
}
@media (max-width: 640px) {
    .ancho-pagina { width: calc(100% - 32px); }
    .cabecera-contenido { min-height: 92px; padding: 15px 0; }
    .nombre-sistema { display: none; }
    .identidad { width: 100%; max-width: 480px; }
    .ruta { min-height: 39px; gap: 9px; font-size: 12px; }
    .contenido-principal { padding-top: 25px; padding-bottom: 24px; }
    h1 { font-size: 31px; }
    .titulo-pagina { margin-bottom: 20px; }
    .titulo-pagina > p:last-child { font-size: 15px; }
    .filtros { padding: 20px 18px 0; }
    .cabecera-filtros { margin-bottom: 17px; gap: 5px; }
    .cabecera-filtros p { font-size: 13px; }
    .formulario-consulta { gap: 13px; }
    .formulario-consulta .campo-formulario:nth-child(n) { flex: 1 1 40%; }
    .formulario-consulta .campo-formulario:first-child,
    .formulario-consulta .campo-formulario:nth-child(2) { flex: 1 1 100%; }
    .formulario-consulta .boton { flex: 1 1 100%; order: 5; margin-left: 0; }
    .ayuda-periodo { flex: 1 1 100%; order: 6; margin-bottom: 1px; }
    .notas-consulta { display: block; padding: 15px 0 5px; }
    .notas-consulta li { margin-bottom: 12px; }
    .panel-resultados { margin-top: 17px; }
    .pagina-resultados { padding: 19px 17px 18px; }
    .barra-resultados { gap: 13px; }
    .barra-resultados h2 { font-size: 20px; }
    .barra-resultados .boton { width: 100%; }
    .estado-vacio { min-height: 245px; padding: 20px 16px 30px; }
    .estado-vacio h3 { font-size: 17px; }
    .tabla-desplazable { max-height: 430px; }
    .pie-pagina .ancho-pagina { flex-direction: column; gap: 3px; padding: 16px 0; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition: none !important; }
}
