/* ============================================================
   LAYOUT — Header claro, navegación, footer (tema arena / teal)
   ============================================================ */

/* Header — fondo claro, sin franja azul oscuro */
.municipal-header {
    background: linear-gradient(180deg, #fffefb 0%, #f7f3eb 100%);
    color: var(--ui-heading, #3d4f54);
    box-shadow: 0 1px 0 rgba(212, 165, 116, 0.35), 0 8px 32px rgba(58, 79, 82, 0.06);
    border-bottom: none;
}

.municipal-logo {
    font-size: 2.5rem;
    color: #0d9488;
    filter: none;
}

.municipal-title {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: none;
    color: #3d4f54;
}

.municipal-subtitle {
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: #3d4f54;
}

/* Botones que antes eran "light" sobre azul: ahora legibles en cabecera clara */
.municipal-header .btn-outline-light {
    color: #3d4f54 !important;
    border-color: rgba(13, 148, 136, 0.45) !important;
    background: rgba(255, 255, 255, 0.85) !important;
}

.municipal-header .btn-outline-light:hover {
    background: #0d9488 !important;
    border-color: #0d9488 !important;
    color: #fff !important;
}

/* Avatar de usuario (header) */
.municipal-header .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ccfbf1, #99f6e4);
    border: 2px solid #5eead4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #0f766e;
    flex-shrink: 0;
}

.auth-buttons .btn {
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.25s ease;
}

.auth-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.25);
}

/* Navigation */
.municipal-nav {
    background: linear-gradient(180deg, #ffffff 0%, #faf8f4 100%);
    box-shadow: 0 1px 0 rgba(229, 224, 216, 0.9), 0 6px 20px rgba(58, 79, 82, 0.04);
}

.municipal-nav .navbar-toggler {
    border: 1px solid var(--municipal-border);
    padding: 0.375rem 0.625rem;
    border-radius: var(--municipal-radius-sm);
}

.municipal-nav .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

.municipal-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2858, 79, 82, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.municipal-nav .nav-link {
    color: #445559;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.75rem 1.125rem;
    border-radius: 999px;
    margin: 0.25rem 0.15rem;
    transition: all 0.2s ease;
    position: relative;
}

.municipal-nav .nav-link:hover {
    color: #0f766e;
    background-color: rgba(204, 251, 241, 0.65);
}

.municipal-nav .nav-link.active {
    color: #0f766e;
    background-color: rgba(204, 251, 241, 0.9);
    font-weight: 600;
}

.municipal-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 3px;
    background: linear-gradient(90deg, #14b8a6, #0d9488);
    border-radius: 3px;
}

/* Indicador de cola (derivador / agente) en la barra de navegación */
.municipal-nav .nav-queue-badge .nav-queue-badge-inner {
    cursor: default;
    pointer-events: none;
    user-select: none;
}

.municipal-nav .nav-queue-badge .nav-queue-badge-inner::after {
    display: none;
}

.municipal-nav .nav-queue-count {
    min-width: 1.5rem;
    padding: 0.35em 0.55em;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    color: #1c1917;
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
    border: 1px solid rgba(180, 83, 9, 0.35);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.municipal-nav .nav-queue-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #92400e;
    letter-spacing: 0.01em;
}

/* SweetAlert2: estilos detallados en municipal-alert.css */

/* SweetAlert2 botones */
.municipal-swal-confirm {
    background: linear-gradient(135deg, #14b8a6, #0d9488) !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
}

.municipal-swal-cancel {
    border-radius: 10px !important;
    font-weight: 600 !important;
}
