/* Estilos de la seccion de Datos Abiertos.
   Contrastes verificados contra WCAG 2.1 AA (Resolucion 1519 de 2020, Anexo 1).
   Comparte la paleta institucional del menu Participa. */

.da-hero {
    background: #0b4f6c;
    color: #ffffff;
    padding: 30px 26px;
    border-radius: 6px;
    margin-bottom: 24px;
}

.da-hero h1 {
    font-size: 30px;
    margin: 0 0 10px;
    font-weight: 700;
}

.da-hero p { margin: 0 0 8px; max-width: 78ch; }

.da-hero .da-cita {
    border-left: 3px solid #7fc7e3;
    padding-left: 14px;
    font-size: 14px;
    margin-top: 16px;
    color: #dceaf1;
}

.da-migas {
    font-size: 13px;
    color: #55606b;
    margin-bottom: 12px;
}

.da-migas a { color: #0b4f6c; }

.da-card {
    height: 100%;
    border: 1px solid #e0e4e8;
    border-radius: 6px;
    background: #ffffff;
    padding: 20px;
    transition: box-shadow .15s ease-in-out;
}

.da-card:hover,
.da-card:focus-within {
    box-shadow: 0 4px 14px rgba(11, 79, 108, .18);
}

.da-card h2,
.da-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.da-card p { font-size: 14px; color: #4a5560; }

.da-icono {
    font-size: 26px;
    color: #0b4f6c;
    margin-bottom: 10px;
    display: block;
}

.da-cifra {
    font-size: 30px;
    font-weight: 700;
    color: #0b4f6c;
    line-height: 1.1;
}

.da-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    background: #e7f1f6;
    color: #0b4f6c;
    margin: 0 4px 4px 0;
}

.da-badge.vivo    { background: #e2f4e8; color: #1b6b3a; }
.da-badge.formato { background: #f1f2f4; color: #3d4650; font-family: monospace; }
.da-badge.alerta  { background: #fdf0e3; color: #8a4b06; }

.da-meta {
    width: 100%;
    font-size: 14px;
    margin-bottom: 20px;
}

.da-meta th {
    width: 34%;
    background: #f5f7f9;
    font-weight: 600;
    color: #3d4650;
    padding: 9px 12px;
    border: 1px solid #e0e4e8;
    vertical-align: top;
}

.da-meta td {
    padding: 9px 12px;
    border: 1px solid #e0e4e8;
    vertical-align: top;
}

/* Tablas anchas: se desplazan dentro de su caja, nunca la pagina completa. */
.da-scroll {
    overflow-x: auto;
    border: 1px solid #e0e4e8;
    border-radius: 6px;
    margin-bottom: 20px;
}

.da-scroll table { margin-bottom: 0; font-size: 13px; }

.da-scroll thead th {
    background: #0b4f6c;
    color: #ffffff;
    font-weight: 600;
    white-space: nowrap;
    border-color: #0b4f6c;
}

.da-scroll code {
    background: transparent;
    color: #0b4f6c;
    font-size: 12px;
    padding: 0;
}

.da-descarga {
    display: inline-block;
    border: 1px solid #0b4f6c;
    border-radius: 4px;
    color: #0b4f6c;
    background: #ffffff;
    padding: 9px 16px;
    margin: 0 8px 8px 0;
    font-weight: 600;
    text-decoration: none;
}

.da-descarga:hover,
.da-descarga:focus {
    background: #0b4f6c;
    color: #ffffff;
    text-decoration: none;
}

.da-descarga small { display: block; font-weight: 400; font-size: 11px; }

.da-nota {
    background: #f5f7f9;
    border-left: 3px solid #0b4f6c;
    padding: 14px 18px;
    font-size: 14px;
    border-radius: 0 4px 4px 0;
    margin-bottom: 20px;
}

.da-nota.reserva { border-left-color: #b5651d; background: #fdf7f1; }

.da-norma {
    border-left: 3px solid #0b4f6c;
    padding-left: 14px;
    margin-bottom: 20px;
}

.da-norma h3 { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.da-norma .da-norma-titulo { font-size: 14px; color: #55606b; font-style: italic; }
.da-norma p { font-size: 14px; color: #4a5560; margin-bottom: 4px; }

.da-glosario dt { font-weight: 700; color: #0b4f6c; margin-top: 14px; }
.da-glosario dd { font-size: 14px; color: #4a5560; margin-left: 0; }

.da-api {
    background: #232c33;
    color: #e8eef2;
    padding: 14px 18px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
    overflow-x: auto;
    margin-bottom: 16px;
}

.da-api a { color: #7fc7e3; word-break: break-all; }

/* Enlace de salto al contenido: requisito de navegacion por teclado. */
.da-skip { position: absolute; left: -9999px; }

.da-skip:focus {
    left: 8px;
    top: 8px;
    z-index: 1000;
    background: #ffffff;
    padding: 8px 14px;
    border: 2px solid #0b4f6c;
}

/* Campo trampa anti-bots: fuera de la vista pero sin display:none. */
.participa-trampa {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
