body {
    font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
    background: #F4F6F7;
    color: #2C3E50;
    margin: 0;
    padding: 0;
}
.barra-progreso-fila {
    margin: 10px 0;
}
.barra-progreso-etiqueta {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: #34495E;
    margin-bottom: 4px;
}
.barra-progreso-fondo {
    background: #E5E8E8;
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}
.barra-progreso-relleno {
    background: #1E8449;
    height: 100%;
    border-radius: 999px;
    transition: width 0.4s ease;
    width: 0%;
}
header {
    background: #2C3E50;
    color: white;
    padding: 20px 32px;
}
header h1 {
    margin: 0;
    font-size: 22px;
}
header p {
    margin: 4px 0 0;
    color: #BDC3C7;
    font-size: 13px;
}
main {
    max-width: 900px;
    margin: 32px auto;
    padding: 0 20px;
}
.tarjeta {
    background: white;
    border: 1px solid #D5D8DC;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}
.dropzone {
    border: 2px dashed #BDC3C7;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    color: #7F8C8D;
    cursor: pointer;
    transition: border-color 0.15s;
}
.dropzone.arrastrando {
    border-color: #2C3E50;
    background: #F4F6F7;
}
#lista_archivos {
    margin-top: 16px;
    font-size: 13px;
    color: #34495E;
}
select, button {
    font-family: inherit;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #BDC3C7;
}
button {
    background: #2C3E50;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
}
button:hover {
    background: #1A242F;
}
button:disabled {
    background: #95A5A6;
    cursor: default;
}
.fila-controles {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}
.evento {
    background: white;
    border: 1px solid #D5D8DC;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.evento-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.evento-header h3 {
    margin: 0;
    font-size: 16px;
}
.estado {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    color: white;
}
.estado.APROBADO { background: #1E8449; }
.estado.RECHAZADO { background: #C0392B; }
.estado.SIN_ESTRUCTURAR { background: #95A5A6; }
.evento img {
    max-width: 100%;
    border-radius: 6px;
    border: 1px solid #D5D8DC;
    margin-bottom: 12px;
}
.campo { margin: 8px 0; font-size: 14px; line-height: 1.5; }
.campo b { color: #2C3E50; }
.hallazgo {
    border-left: 3px solid #BDC3C7;
    padding: 6px 12px;
    margin: 8px 0;
    font-size: 13.5px;
    background: #F9F9F9;
}
.hallazgo.Crítico { border-color: #C0392B; }
.hallazgo.Medio { border-color: #D68910; }
.hallazgo.Leve { border-color: #7F8C8D; }
.severidad {
    font-weight: 700;
    font-size: 12px;
}
.severidad.Crítico { color: #C0392B; }
.severidad.Medio { color: #D68910; }
.severidad.Leve { color: #7F8C8D; }
.volver {
    display: inline-block;
    margin-bottom: 20px;
    color: #2C3E50;
    text-decoration: none;
    font-size: 14px;
}
.volver:hover { text-decoration: underline; }
.aviso {
    background: #FDEBD0;
    border: 1px solid #F5B041;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 20px;
}
.detalle-colapsable > summary {
    cursor: pointer;
    font-size: 14px;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.detalle-colapsable > summary::-webkit-details-marker { display: none; }
.detalle-colapsable > summary::before {
    content: '▸';
    color: #7F8C8D;
    font-size: 12px;
    transition: transform 0.15s ease;
}
.detalle-colapsable[open] > summary::before { transform: rotate(90deg); }
.detalle-colapsable[open] > summary { margin-bottom: 14px; }
.fila-ruta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    word-break: break-all;
    padding: 6px 0;
}
.fila-ruta a { color: #2C3E50; }
.fila-ruta button {
    flex-shrink: 0;
    font-size: 12px;
    padding: 4px 10px;
}
