:root {
    --azul: #1d4ed8;
    --azul-oscuro: #1e3a8a;
    --gris: #64748b;
    --fondo: #f1f5f9;
    --verde: #16a34a;
    --amarillo: #ca8a04;
    --rojo: #dc2626;
    --morado: #7c3aed;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--fondo);
    color: #1e293b;
}

.navbar { background: var(--azul-oscuro); color: white; }
.navbar-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.brand { color: white; font-weight: 700; font-size: 1.2rem; text-decoration: none; }
.nav-links { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; align-items: center; }
.nav-links a, .nav-links .btn-link {
    color: #dbeafe; text-decoration: none; background: none; border: none;
    font-size: 0.95rem; cursor: pointer; padding: 0;
}
.nav-links a:hover, .nav-links .btn-link:hover { color: white; }
.saludo { color: white; font-weight: 600; }

.container { max-width: 1000px; margin: 0 auto; padding: 30px 20px; }

.hero { text-align: center; padding: 40px 20px; }
.hero h1 { color: var(--azul-oscuro); font-size: 2.2rem; margin-bottom: 8px; }
.hero p { color: var(--gris); margin-bottom: 24px; }

.btn {
    display: inline-block; padding: 10px 20px; border-radius: 8px;
    text-decoration: none; font-weight: 600; border: none; cursor: pointer; margin: 4px;
}
.btn-primary { background: var(--azul); color: white; }
.btn-primary:hover { background: var(--azul-oscuro); }
.btn-secondary { background: white; color: var(--azul); border: 1px solid var(--azul); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 30px; }
.step-card { background: white; border-radius: 12px; padding: 20px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.step-num {
    display: inline-block; width: 32px; height: 32px; line-height: 32px;
    border-radius: 50%; background: var(--azul); color: white; font-weight: 700; margin-bottom: 10px;
}

.form-card { background: white; padding: 24px; border-radius: 12px; max-width: 520px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; color: #334155; }
.form-control { width: 100%; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 0.95rem; }

.lista-solicitudes { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.solicitud-card {
    display: flex; justify-content: space-between; align-items: center;
    background: white; padding: 16px 20px; border-radius: 10px;
    text-decoration: none; color: inherit; box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.solicitud-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.12); }
.solicitud-card p { margin: 2px 0 0; color: var(--gris); font-size: 0.9rem; }

.badge { padding: 5px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; color: white; white-space: nowrap; }
.badge-pendiente { background: var(--rojo); }
.badge-enrevision { background: var(--amarillo); }
.badge-observada { background: var(--morado); }
.badge-corregida { background: var(--azul); }
.badge-atendida { background: var(--verde); }

.detalle { background: white; padding: 20px 24px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.detalle dt { font-weight: 700; color: var(--azul-oscuro); margin-top: 12px; }
.detalle dd { margin: 2px 0 0; color: #334155; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card { background: white; border-radius: 12px; padding: 18px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.stat-card span { display: block; font-size: 1.8rem; font-weight: 700; color: var(--azul); }
.stat-card p { margin: 4px 0 0; color: var(--gris); }

.tabla-admin { width: 100%; border-collapse: collapse; background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.tabla-admin th, .tabla-admin td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #e2e8f0; }
.tabla-admin th { background: #f8fafc; color: var(--gris); font-size: 0.85rem; text-transform: uppercase; }

.alert { padding: 12px 18px; border-radius: 8px; margin-bottom: 20px; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }

.footer { text-align: center; padding: 20px; color: var(--gris); font-size: 0.85rem; }

.auth-wrapper { display: flex; justify-content: center; padding: 40px 20px; }
.auth-card {
    background: white; border-radius: 16px; padding: 36px 32px;
    max-width: 380px; width: 100%; box-shadow: 0 4px 16px rgba(0,0,0,0.08); text-align: center;
}
.auth-icon {
    width: 56px; height: 56px; line-height: 56px; border-radius: 50%;
    background: var(--azul); color: white; font-size: 1.6rem; margin: 0 auto 14px;
}
.auth-card h2 { margin: 0 0 4px; color: var(--azul-oscuro); }
.auth-sub { color: var(--gris); margin-bottom: 20px; font-size: 0.9rem; }
.auth-card form { text-align: left; }
.auth-footer { margin-top: 18px; font-size: 0.9rem; color: var(--gris); }
.auth-footer a { color: var(--azul); font-weight: 600; text-decoration: none; }
.btn-block { width: 100%; }
.form-check { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 0.9rem; color: #334155; }
.form-check input { width: auto; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 0.9rem; text-align: left; }
