* { box-sizing: border-box; }
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f2f4f7;
    margin: 0;
    padding: 0;
    color: #2c3345;
}
.navbar {
    background: #1f2a44;
    padding: 16px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar h1 {
    color: #fff;
    font-size: 20px;
    margin: 0;
}
.navbar a {
    color: #cfd8ea;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    font-size: 14px;
}
.navbar a:hover, .navbar a.active {
    color: #ffffff;
    border-bottom: 2px solid #4f8cff;
}
.container {
    max-width: 900px;
    margin: 30px auto;
    background: #fff;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
h2 {
    margin-top: 0;
    color: #1f2a44;
}
label {
    display: block;
    margin-top: 16px;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}
input[type=text], input[type=date], select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d3d8e0;
    border-radius: 6px;
    font-size: 14px;
}
textarea { resize: vertical; min-height: 80px; }
button, .btn {
    margin-top: 24px;
    background: #4f8cff;
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
button:hover, .btn:hover { background: #3a72e0; }
.alerta-exito {
    background: #e4f8ec;
    border: 1px solid #34c471;
    color: #1c7a43;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
}
.alerta-error {
    background: #fdeaea;
    border: 1px solid #e35b5b;
    color: #a12d2d;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 13px;
}
th, td {
    border: 1px solid #e2e6ee;
    padding: 8px 10px;
    text-align: left;
}
th {
    background: #eef2fa;
    color: #1f2a44;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}
tr:nth-child(even) { background: #fafbfd; }
.folio-badge {
    background: #1f2a44;
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
}
.filtros {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.filtros input, .filtros select {
    width: auto;
    min-width: 160px;
}
.detalle-link {
    color: #4f8cff;
    font-weight: 600;
    text-decoration: none;
}
.tabla-scroll { overflow-x: auto; }
