/* ======================
   RESET BÁSICO
   ====================== */

* {
    box-sizing: border-box;
    margin: 10px;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f4f6;
    color: #111827;
    line-height: 1.5;
}

/* ======================
   TIPOGRAFÍA
   ====================== */

h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

p {
    color: #4b5563;
}

/* ======================
   CONTENEDORES
   ====================== */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 25px;
}

/* ======================
   CARDS
   ====================== */

.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* ======================
   BOTONES
   ====================== */

.btn {
    display: inline-block;
    padding: 10px 18px;
    background: #c9a44a;
    color: #111827;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.btn:hover {
    background: #b6923f;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* ======================
   FORMULARIOS
   ====================== */

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 1rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #c9a44a;
}

/* ======================
   HEADER DASHBOARD
   ====================== */

.dashboard-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ======================
   LOGIN
   ====================== */

.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    width: 100%;
    max-width: 400px;
}

/* ======================
   ERRORES
   ====================== */

.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* ======================
   TÍTULOS DE PÁGINA
   ====================== */

.page-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Línea sutil debajo */
.page-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, #c9a44a, transparent);
    margin-left: 15px;
}

table {
    width: 100%;
}

table td {
    text-align: center;
}

table th, table td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
}

table tr:hover {
    background: #f9fafb;
}
/* ======================
   SCORING SEMÁFORO
   ====================== */

.score-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
}

.score-number {
    font-size: 1.4rem;
}

.score-green {
    background: #dcfce7;
    color: #166534;
}

.score-yellow {
    background: #fef9c3;
    color: #854d0e;
}

.score-red {
    background: #fee2e2;
    color: #991b1b;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.kpi {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

.kpi-number {
    font-size: 32px;
    font-weight: 700;
    display: block;
    color: #111827;
}

.kpi-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7280;
}

.kpi-highlight {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
}

.kpi-highlight .kpi-number,
.kpi-highlight .kpi-label {
    color: #fff;
}

.kpi-link {
    text-decoration: none;
    color: inherit;
}

.kpi-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,.12);
    cursor: pointer;
}

.plan-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e0e7ff;
    color: #1e40af;
    font-size: 12px;
    font-weight: 600;
}

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
}

.alert.warning {
    background: #fef3c7;
    color: #92400e;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
}

.alert.info {
    background: #e0e7ff;
    color: #1e40af;
}

.btn-danger {
    background: #dc2626;
    color: #fff;
}
.btn-danger:hover {
    background: #b91c1c;
}

.manager-kpi-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}

.manager-kpi {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.manager-kpi-link {
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease, box-shadow .15s ease;
}

.manager-kpi-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.manager-kpi-number {
    display: block;
    font-size: 26px;
    font-weight: 700;
}

.manager-kpi-label {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}
