/* Importar una fuente más moderna desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 0;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 15px;
    border: none;
    background: white;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.logo-container {
    margin-bottom: 1.5rem;
    text-align: center;
}

.logo-img {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.user-icon {
    color: #017DB0 !important;
    font-size: 4rem !important;
    margin-bottom: 1rem;
}

.login-card .card-title {
    font-size: 1.8rem !important;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

.login-card .text-muted {
    font-size: 1rem !important;
    margin-bottom: 2rem;
    text-align: center;
}

/* Campos de formulario */
.login-card .input-group {
    margin-bottom: 1.5rem;
}

.login-card .input-group-text {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    min-width: 50px;
    justify-content: center;
    font-size: 1.2rem !important;
}

.login-card .form-control {
    min-height: 50px !important;
    font-size: 1rem !important;
    padding: 0.75rem 1rem;
    border-radius: 0 8px 8px 0;
}

.login-card .input-group-text {
    border-radius: 8px 0 0 8px;
}

.login-card .form-control::placeholder {
    font-size: 0.9rem;
    color: #6c757d;
}

.login-card .form-control:focus {
    box-shadow: none;
    border-color: #86b7fe;
}

.login-card .btn-primary {
    background-color: #017DB0;
    border-color: #017DB0;
    padding: 0.75rem 2rem !important;
    font-size: 1.1rem !important;
    font-weight: 600;
    border-radius: 10px;
    margin-top: 1rem;
    min-height: 50px;
    transition: all 0.3s ease;
    width: 100%;
}

.login-card .btn-primary:hover {
    background-color: #015a7a;
    border-color: #015a7a;
    transform: translateY(-2px);
}

/* Responsive para móviles */
@media (max-width: 576px) {
    .login-container {
        padding: 0.5rem;
    }
    
    .login-card {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .card-body {
        padding: 2rem !important;
    }
    
    .logo-img {
        max-width: 100px;
    }
    
    .user-icon {
        font-size: 3rem !important;
    }
    
    .login-card .card-title {
        font-size: 1.5rem !important;
    }
    
    .login-card .text-muted {
        font-size: 0.9rem !important;
    }
    
    .login-card .form-control {
        min-height: 45px !important;
        font-size: 0.9rem !important;
    }
    
    .login-card .input-group-text {
        font-size: 1rem !important;
        min-width: 45px;
    }
    
    .login-card .btn-primary {
        padding: 0.6rem 1.5rem !important;
        font-size: 1rem !important;
        min-height: 45px;
    }
}

/* Para tablets */
@media (min-width: 577px) and (max-width: 768px) {
    .login-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* EL RESTO DEL ARCHIVO SE MANTIENE IGUAL DESDE AQUÍ */

.sidebar {
    min-height: 100vh;
    background: linear-gradient(135deg, #017DB0 0%, #015a7a 100%);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-logo {
    max-width: 80px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 0.2rem 0.5rem;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(5px);
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
    width: 20px;
}

.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid #017DB0;
    border-radius: 15px;
    margin: 0 2rem 2rem 2rem;
    padding: 1rem 2rem;
}

.main-title {
    font-family: 'Roboto Condensed', 'Arial Narrow', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    color: #212529;
    margin: 0 0 0.3rem 0;
}

.main-subtitle {
    font-style: italic;
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

.header-user-section {
    margin-right: 0;
}

.header-user-section {
    margin-right: 2rem;
}

.user-dropdown .dropdown-toggle::after {
    display: none;
}

/* FILTRO DE FECHAS - DISEÑO MEJORADO */

.filter-period-section {
    margin: 0 1rem 1.5rem 1rem;
    padding: 0.8rem 0;
}

.filter-period-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-period-title {
    color: #017DB0;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.filter-controls .form-select {
    border-radius: 6px;
    border: 1px solid #e9ecef;
    padding: 0.25rem 0.6rem;
    min-width: 130px;
    height: 32px;
    transition: all 0.3s ease;
    background-color: white;
    font-size: 0.85rem;
}

.filter-controls .btn {
    border-radius: 6px;
    padding: 0.25rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    height: 32px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 0 1rem 2rem 1rem;
}

.stat-card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 90px;
    overflow: hidden;
    position: relative;
    background: white;
    display: flex;
    flex-direction: row;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Sección izquierda - 60% de ancho */
.stat-left {
    width: 60%;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: center;
    line-height: 1.2;
}

/* Sección derecha - 40% de ancho */
.stat-right {
    width: 40%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #212529;
    margin: 0;
    line-height: 1;
}

/* Colores específicos para cada tarjeta */
.stat-card.total-pedidos .stat-left { background: linear-gradient(135deg, #6a757d, #8a9197); }
.stat-card.aceptadas .stat-left { background: linear-gradient(135deg, #008754, #28a745); }
.stat-card.en-proceso .stat-left { background: linear-gradient(135deg, #000DB0, #0d6efd); }
.stat-card.pendientes .stat-left { background: linear-gradient(135deg, #eec007, #ffed39); }
.stat-card.completadas .stat-left { background: linear-gradient(135deg, #0d6efd, #3dd5f3); }
.stat-card.rechazadas .stat-left { background: linear-gradient(135deg, #dc0045, #e74c3c); }

/* Responsive */
@media (max-width: 992px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        margin: 0 1rem 2rem 1rem;
    }
    
    .main-header, .filter-period-card {
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

@media (max-width: 576px) {
    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 0 1rem 2rem 1rem;
    }
    
    .stat-card {
        height: 75px;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    .stat-left {
        font-size: 0.75rem;
    }
    
    .main-header {
        padding: 0.8rem 1.5rem;
        margin: 0 1rem 1.5rem 1rem;
    }
    
    .main-title {
        font-size: 1.4rem;
    }
    
    .filter-period-card {
        margin: 0 1rem 1.5rem 1rem;
    }
    
    @media (max-width: 768px) {
        .filter-period-card .card-body {
            padding: 0.5rem 1rem;
        }
        
        .filter-controls {
            flex-direction: column;
            gap: 0.3rem;
            align-items: stretch;
        }
        
        .filter-period-title {
            font-size: 0.9rem;
            margin-bottom: 0.3rem;
        }
    }
    
    .filter-controls .form-select {
        min-width: auto;
    }
}
/* RESTO DE ESTILOS MANTENIDOS */
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.stat-label {
    color: #6c757d;
    font-weight: 500;
    margin: 0;
}

.filters-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.search-input {
    border-radius: 25px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #017DB0;
    box-shadow: 0 0 0 0.25rem rgba(1, 125, 176, 0.25);
}

.filter-btn {
    border-radius: 15px;
    padding: 0.3rem 0.6rem;
    margin: 0.05rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.filter-btn.active {
    background-color: #017DB0;
    border-color: #017DB0;
    color: white;
}

.filters-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin: 0 1rem 1.5rem 1rem;
}

.petitions-table {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 0 1rem;
}

.table {
    margin: 0;
}

.table th {
    background-color: #f8f9fa;
    border: none;
    font-weight: 600;
    color: #495057;
    padding: 1rem;
}

.table td {
    border: none;
    padding: 1rem;
    vertical-align: middle;
}

.table tbody tr {
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(1, 125, 176, 0.05);
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

.badge.aceptada {
    background-color: #d1e7dd;
    color: #0f5132;
}

.badge.rechazada {
    background-color: #f8d7da;
    color: #721c24;
}

.badge.pendiente {
    background-color: #fff3cd;
    color: #856404;
}

.badge.en-proceso {
    background-color: #cce5ff;
    color: #004085;
}

.badge.completada {
    background-color: #d1e7dd;
    color: #0f5132;
}

.btn-action {
    padding: 0.4rem 0.8rem;
    margin: 0.1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.btn-view {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.btn-view:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}

.btn-edit {
    background-color: #017DB0;
    border-color: #017DB0;
    color: white;
}

.btn-edit:hover {
    background-color: #015a7a;
    border-color: #015a7a;
}

.btn-delete {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.btn-delete:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
}

.modal-header {
    background-color: #017DB0;
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-footer {
    border: none;
    padding: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.filter-controls .form-select {
    border-radius: 6px;
    border: 1px solid #e9ecef;
    padding: 0.25rem 0.6rem;
    min-width: 130px;
    height: 32px;
    transition: all 0.3s ease;
    background-color: white;
    font-size: 0.85rem;
}

.form-control:focus, .form-select:focus {
    border-color: #017DB0;
    box-shadow: 0 0 0 0.25rem rgba(1, 125, 176, 0.25);
}

@media (max-width: 720px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        z-index: 1050;
        transition: left 0.3s ease;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .stats-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        margin: 0 1rem 1.5rem 1rem;
    }
        
    .stat-card {
        min-height: 100px;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .filter-period-card .card-body {
        padding: 0.3rem 1.5rem;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .filter-controls .form-select {
        min-width: auto;
    }
    
    .filters-section {
        padding: 1rem;
    }
    
    .table-responsive {
        border-radius: 15px;
    }
    
    .login-container {
        padding: 0.5rem;
    }
    
    .login-card {
        max-width: 100%;
        margin: 0;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .logo-img {
        max-width: 80px !important;
        border-radius: 15px;
    }
    
    .user-icon {
        font-size: 4rem !important;
    }
    
    .login-card .card-title {
        font-size: 1.5rem !important;
    }
    
    .login-card .text-muted {
        font-size: 0.9rem !important;
    }
    
    .login-card .form-control {
        min-height: 40px !important;
        font-size: 1rem !important;
        padding: 0.5rem 0.5rem;
    }
    
    .login-card .input-group-text {
        font-size: 1.3rem !important;
        min-width: 50px;
    }
    
    .login-card .btn-primary {
        padding: 0.5rem 1rem !important;
        font-size: 1.2rem !important;
        min-height: 50px;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-info-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}

.current-datetime {
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 500;
}

.current-datetime i {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .user-info-container {
        align-items: center;
    }
    
    .current-datetime {
        font-size: 0.8rem;
    }
}

.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Sección de búsqueda */
.historial-search-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 0 1rem 2rem 1rem;
}

/* Tarjeta de información del ciudadano */
.historial-ciudadano-card {
    background: linear-gradient(135deg, #017DB0 0%, #015a7a 100%);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    margin: 0 1rem 2rem 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Container del timeline */
.historial-timeline-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin: 0 1rem 2rem 1rem;
}

/* Línea de tiempo */
.historial-timeline-line {
    position: relative;
    padding-left: 2rem;
}

.historial-timeline-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

/* Items de petición */
.historial-peticion-item {
    border-left: 4px solid #017DB0;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    animation: slideIn 0.5s ease-out forwards;
    opacity: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.historial-peticion-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Estados de peticiones */
.historial-peticion-item.rechazada {
    border-left-color: #dc3545;
}

.historial-peticion-item.completada {
    border-left-color: #28a745;
}

.historial-peticion-item.pendiente {
    border-left-color: #ffc107;
}

.historial-peticion-item.en-proceso {
    border-left-color: #0dcaf0;
}

.historial-peticion-item.precarga {
    border-left-color: #6c757d;
}

.historial-peticion-item.aceptada {
    border-left-color: #17a2b8;
}

/* Mensaje sin resultados */
.historial-no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
    margin: 0 1rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.historial-no-results i {
    color: #adb5bd;
}

/* Mini estadísticas */
.historial-stats-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.historial-stat-mini-card {
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.historial-stat-mini-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.historial-stat-mini-label {
    font-size: 0.9rem;
    opacity: 0.9;
    display: block;
    margin-top: 0.5rem;
}

/* Responsive para historial */
@media (max-width: 768px) {
    .historial-search-section {
        padding: 1rem;
        margin: 0 0.5rem 1.5rem 0.5rem;
    }
    
    .historial-ciudadano-card {
        padding: 1.5rem;
        margin: 0 0.5rem 1.5rem 0.5rem;
    }
    
    .historial-timeline-container {
        padding: 1rem;
        margin: 0 0.5rem 1.5rem 0.5rem;
    }
    
    .historial-stats-mini {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .historial-stat-mini-number {
        font-size: 1.5rem;
    }
    
    .historial-peticion-item {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .historial-timeline-line {
        padding-left: 1rem;
    }
    
    .historial-no-results {
        padding: 2rem 1rem;
        margin: 0 0.5rem;
    }
}

@media (max-width: 576px) {
    .historial-peticion-item h6 {
        font-size: 0.95rem;
    }
    
    .historial-peticion-item p {
        font-size: 0.9rem;
    }
    
    .historial-peticion-item small {
        font-size: 0.75rem;
    }
}

/* Buscador Principal */
.search-hero {
    background: linear-gradient(135deg, #017DB0 0%, #015a7a 100%);
    border-radius: 15px;
    padding: 2rem;
    margin: 0 1rem 1.5rem 1rem;
    color: white;
}

.search-hero h4 {
    margin-bottom: 0.5rem;
}

.search-hero .form-control {
    font-size: 1.1rem;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    border: none;
}

.search-hero .form-control:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.search-hero .btn-buscar {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 10px;
    background: #017DB0;
    border: none;
    font-weight: 600;
    color: white;
}

.search-hero .btn-buscar:hover {
    background: #015a7a;
    transform: translateY(-2px);
}

/* Tarjetas de Resultado de Búsqueda */
.resultado-card {
    border-radius: 15px;
    overflow: hidden;
    margin: 0 1rem 1.5rem 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
}

.resultado-card .card-header {
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.resultado-card.encontrado .card-header {
    background: #28a745;
    color: white;
}

.resultado-card.no-encontrado .card-header {
    background: #ffc107;
    color: #212529;
}

.resultado-card .card-body {
    padding: 1.5rem;
    background: white;
}

/* Sección Grupo Familiar en Modal */
.grupo-familiar-section {
    background: #e3f2fd;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid #90caf9;
}

.grupo-familiar-section h6 {
    color: #1565c0;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Items de Familiar */
.familiar-item {
    background: white;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    border-left: 4px solid #17a2b8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.familiar-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

/* Sección de Historial de Pedidos */
.historial-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

/* Mini tarjetas de pedidos */
.pedido-mini {
    padding: 0.6rem 1rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #6c757d;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pedido-mini:hover {
    background: #e9ecef;
}

.pedido-mini.pendiente {
    border-left-color: #ffc107;
}

.pedido-mini.en-proceso {
    border-left-color: #17a2b8;
}

.pedido-mini.completada {
    border-left-color: #28a745;
}

.pedido-mini.rechazada {
    border-left-color: #dc3545;
}

.pedido-mini.aceptada {
    border-left-color: #007bff;
}

/* Vista 360 - Grid de dos columnas */
.vista-360 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .vista-360 {
        grid-template-columns: 1fr;
    }
    
    .search-hero {
        padding: 1.5rem;
        margin: 0 0.5rem 1rem 0.5rem;
    }
    
    .search-hero .form-control {
        font-size: 1rem;
        padding: 0.6rem 0.8rem;
    }
    
    .resultado-card {
        margin: 0 0.5rem 1rem 0.5rem;
    }
}

/* Scrollbar personalizado para historial */
.historial-section::-webkit-scrollbar {
    width: 6px;
}

.historial-section::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 3px;
}

.historial-section::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 3px;
}

.historial-section::-webkit-scrollbar-thumb:hover {
    background: #6c757d;
}

/* Espacio entre secciones en Ciudadanos */
.search-hero {
    margin-bottom: 1.5rem !important;
}

#area-resultados {
    margin-bottom: 1rem;
}

#area-resultados:empty {
    margin-bottom: 0;
}