:root {
    --primary: #1A2E5A;
    --accent: #C09A2C;
    --olive: #6b7a1f;
    --bg-soft: #f4f6fa;
}

body {
    background: linear-gradient(to bottom, #f4f6fa, #eef1f7);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------- Encuesta publica ---------- */

.encuesta-wrapper {
    max-width: 640px;
    margin: 0 auto;
    padding: 32px 16px 60px;
}

.encuesta-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(26, 46, 90, .08);
    padding: 28px 24px;
}

.encuesta-logo {
    max-height: 60px;
    margin-bottom: 16px;
}

.encuesta-titulo {
    color: var(--olive);
    font-weight: 700;
    font-size: 1.6rem;
}

.encuesta-subtitulo {
    color: #1d5fd6;
    font-weight: 500;
}

.pregunta-numero {
    font-weight: 600;
    color: #222;
    margin-top: 28px;
    margin-bottom: 12px;
}

.opcion-calificacion {
    border: 1px solid #dfe3ea;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all .15s ease;
}

.opcion-calificacion:hover {
    border-color: var(--accent);
    background: #fffdf5;
}

.opcion-calificacion.selected {
    border-color: var(--primary);
    background: #eef2fb;
    box-shadow: 0 0 0 2px rgba(26, 46, 90, .12);
}

.opcion-calificacion input {
    margin-right: 10px;
}

.ticket-info {
    font-size: .85rem;
    color: #6c757d;
}

/* Checkbox de seguimiento: mismo color de marca marcado o no marcado,
   en vez del azul por defecto de Bootstrap. */
.form-check-input {
    width: 1.15em;
    height: 1.15em;
    border: 1px solid #adb5bd;
    box-shadow: none !important;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    border-color: var(--primary);
}

.btn-encuesta {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-encuesta:hover {
    background: #142348;
    border-color: #142348;
}

/* ---------- Login staff ---------- */

.login-wrapper .login-card {
    border-radius: 16px;
}

.login-wrapper .logo {
    max-height: 70px;
}

.login-wrapper .subtitle {
    color: #6c757d;
}

/* ---------- Dashboard / Casos ---------- */

.dashboard-container .card-kpi {
    border-radius: 14px;
    color: #fff;
}

.card-kpi .kpi-icon {
    font-size: 2rem;
    opacity: .8;
}

.card-kpi h2 {
    font-weight: 700;
}

.bg-kpi-nuevo { background: #6c757d; }
.bg-kpi-proceso { background: #0d6efd; }
.bg-kpi-resuelto { background: #198754; }
.bg-kpi-total { background: var(--primary); }

.timeline {
    position: relative;
    padding-left: 28px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: #dfe3ea;
}

.timeline-item {
    position: relative;
    margin-bottom: 22px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -28px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-item .timeline-date {
    font-size: .8rem;
    color: #6c757d;
}

.estado-badge {
    font-size: .8rem;
    padding: .4em .7em;
}
