@font-face {
    font-family: 'Soberana Sans';
    src: url('ruta/a/soberana-sans.woff2') format('woff2'),
         url('ruta/a/soberana-sans.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
    --color-guinda: #000000;
    --color-hover: #FFD700 ;
    --color-guinda-claro: rgba(123, 30, 58, 0.1);
    --color-dorado: #B87333;
    --color-dorado-claro: rgba(184, 115, 51, 0.1);
    --fondo: #f8f8f8;
    --fuente-principal: 'Soberana Sans', Arial, sans-serif;
}

body {
    background-color: var(--fondo);
    font-family: var(--fuente-principal);
}

.main-content {
    margin-left: 250px;
    padding: 20px;
    transition: margin 0.3s ease;
}

@media (max-width: 767.98px) {
    .main-content {
        margin-left: 0;
    }
}

.sidebar {
    background: linear-gradient(160deg, var(--color-guinda) 0%, var(--color-dorado) 100%);
    color: white;
    min-height: 100vh;
    padding-top: 20px;
    position: fixed;
    width: 250px;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-item {
    padding: 8px 15px;
    cursor: pointer;
    font-size: 0.85rem;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.sidebar-item a {
    display: block; /* Hace que todo el área sea clickeable */
    color: white;
    text-decoration: none; /* Elimina el subrayado */
    padding: 8px 15px; /* Ajusta al padding que ya tienes */
    margin: -8px -15px; /* Compensa el padding del contenedor padre */
}

.sidebar-item:hover {
    background-color: var(--color-hover);
    border-left: 3px solid white;
}

.sidebar a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    transition: all 0.2s;
}

.sidebar a:hover {
    background-color: var(--color-hover);
    border-left: 3px solid white;
}

.sidebar-item.active {
    background-color: rgba(255, 255, 255, 0.15);
    border-left: 3px solid white; /* Barra blanca visible */
    font-weight: 500;
}

.sidebar-item.active:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-left: 3px solid white; /* Mantiene el mismo grosor */
}

.logo-container {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px; /* Añade espacio arriba del logo (opcional) */
}

.app-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 25px;
    text-align: center;
    padding: 10px;
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.menu-toggle {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 900;
    background: var(--color-guinda);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    display: none;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

@media (max-width: 767.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .menu-toggle {
        display: block;
    }
}

/* Login */
.login-container {
    width: 380px; /* Ancho fijo en lugar de max-width */
    min-height: 400px; /* Altura mínima fija */
    margin: 50px auto;
    padding: 30px 25px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribuye el espacio verticalmente */
}

.login-title {
    color: var(--color-guinda);
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: bold;
    text-align: center;
    white-space: nowrap; /* Evita que el texto se divida en múltiples líneas */
    overflow: hidden;
    text-overflow: ellipsis; /* Añade puntos suspensivos si el texto es muy largo */
}

.login-subtitle {
    color: #777;
    font-size: 0.85rem;
    margin-bottom: 25px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.login-body{
    background-color: #000000;
}

.btn-login {
    background-color: var(--color-guinda);
    color: #ffffff;
    border: none;
    font-size: 0.9rem;
    padding: 8px;
    transition: background-color 0.2s;
}

.btn-login:hover {
    background-color: var(--color-hover);
    color: #000000;
}

.form-label {
    font-size: 0.82rem;
    color: #666;
    font-weight: 500;
}

.form-control {
    font-size: 0.9rem;
    padding: 6px 10px;
    border: 1px solid #ddd;
}

.form-control:focus {
    border-color: var(--color-guinda);
    box-shadow: 0 0 0 0.2rem rgba(123, 30, 58, 0.1);
}

.card-municipal {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background-color: white;
    margin-bottom: 25px;
    overflow: hidden;
}

.card-municipal:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.card-municipal .card-header {
    background-color: var(--color-guinda);
    color: white;
    padding: 12px 20px;
    border-bottom: none;
    font-weight: 500;
}

.card-municipal .card-body {
    padding: 20px;
    background-color: white;
}

.card-municipal .card-footer {
    background-color: var(--color-guinda-claro);
    padding: 12px 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.card-municipal.dorada .card-header {
    background-color: var(--color-dorado);
}

.card-municipal.dorada .card-footer {
    background-color: var(--color-dorado-claro);
}

.card-municipal .btn-card {
    background-color: var(--color-guinda);
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 0.85rem;
}

.card-municipal .btn-card:hover {
    background-color: var(--color-dorado);
}

.card-municipal.dorada .btn-card {
    background-color: var(--color-dorado);
}

.card-municipal.dorada .btn-card:hover {
    background-color: var(--color-guinda);
}
.swal2-popup {
    font-family: 'Arial', sans-serif;
    border-radius: 8px !important;
    border-top: 4px solid #FFD700 !important;
}
        
.swal2-title {
    color: #000000 !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
}
        
.swal2-icon.swal2-error {
    color: #FFD700 !important;
    border-color: #FFD700 !important;
}
        
.swal2-x-mark-line-left, 
.swal2-x-mark-line-right {
    background-color: #FFD700 !important;
}
        
.swal2-confirm {
    background-color: #FFD700 !important;
    border: none !important;
    transition: background 0.3s !important;
}
        
.swal2-confirm:hover {
    background-color: #FFEB3B !important;
}
        
.swal2-content {
    color: #555 !important;
}

.cerrar-sesion {
    margin-top: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 20px;
}
        
.cerrar-sesion:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
        
.cerrar-sesion i {
    margin-right: 8px;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    border-collapse: collapse;
}

.table th {
    background-color: var(--color-guinda-claro);
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
}

.table td {
    padding: 12px 15px;
    border-top: 1px solid #dee2e6;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: var(--color-guinda-claro);
}

/* Estilos para los alerts */
.alert {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.alert-guinda {
    background-color: var(--color-guinda-claro);
    border-left: 4px solid var(--color-guinda);
    color: var(--color-guinda);
}

.alert-dorada {
    background-color: var(--color-dorado-claro);
    border-left: 4px solid var(--color-dorado);
    color: var(--color-dorado);
}

/* Estilos para listas */
.list-group-item {
    padding: 12px 15px;
    background-color: transparent;
    border-color: rgba(0,0,0,0.05);
}

/* Botones peque帽os */
.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 5px 8px;
}

/* Responsive para tablas */
@media (max-width: 767.98px) {
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Agregar al final de tu CSS existente */

/* Estilos para la vista de cartilla */
.profile-img-container {
    border: 3px solid var(--color-guinda);
    border-radius: 50%;
    padding: 5px;
    display: inline-block;
}

.text-guinda {
    color: var(--color-guinda);
}

.bg-guinda-light {
    background-color: var(--color-guinda-claro);
    color: var(--color-guinda);
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.datos-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.datos-section:last-child {
    border-bottom: none;
}

.document-status {
    background-color: var(--color-guinda-claro);
    padding: 15px;
    border-radius: 5px;
}

/* Estilos para listas */
.list-group-item {
    padding: 12px 15px;
    background-color: transparent;
    border-color: rgba(0,0,0,0.05);
}

/* Progress bar */
.progress {
    background-color: #e9ecef;
    border-radius: 5px;
}

.progress-bar {
    border-radius: 5px;
}

/* Botones de acci贸n */
.btn-card.dorada {
    background-color: var(--color-dorado);
}

.btn-card.dorada:hover {
    background-color: #a05a28;
}

.pagination {
    margin-bottom: 0;
}

.page-item .page-link {
    color: var(--color-guinda);
    border: 1px solid #dee2e6;
    padding: 0.3rem 0.6rem;
}

.page-item.active .page-link {
    background-color: var(--color-guinda);
    border-color: var(--color-guinda);
    color: white;
}

.page-item.disabled .page-link {
    color: #6c757d;
}

.page-item:not(.disabled):not(.active) .page-link:hover {
    background-color: var(--color-guinda-claro);
    color: var(--color-guinda);
}

/* Estilos para el texto de informaci贸n */
.dataTables_info {
    font-size: 0.85rem;
    color: #6c757d;
    padding-top: 0.5rem;
}

.vehicle-img-container {
    border: 2px solid var(--color-guinda);
    border-radius: 8px;
    padding: 5px;
    background-color: white;
}

.vehicle-img {
    max-height: 200px;
    object-fit: cover;
}

.bg-guinda {
    background-color: var(--color-guinda);
    color: white;
}

.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline-item {
    position: relative;
    padding-bottom: 15px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-point {
    position: absolute;
    left: -20px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-dorado);
    border: 2px solid white;
}

.timeline-content {
    padding-left: 10px;
    border-left: 2px solid var(--color-guinda-claro);
}

.timeline-item:last-child .timeline-content {
    border-left: 2px solid transparent;
}

.progress {
    background-color: #e9ecef;
    border-radius: 5px;
}

.progress-bar {
    font-size: 0.75rem;
    font-weight: 500;
}

.weapon-img-container {
    border: 2px solid var(--color-guinda);
    border-radius: 8px;
    padding: 5px;
    background-color: white;
}

.weapon-img {
    max-height: 200px;
    object-fit: contain;
}

.bg-guinda-light {
    background-color: var(--color-guinda-claro);
    color: var(--color-guinda);
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.datos-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.datos-section:last-child {
    border-bottom: none;
}

.list-group-item {
    padding: 12px 15px;
    background-color: transparent;
    border-color: rgba(0,0,0,0.05);
}

.progress {
    background-color: #e9ecef;
    border-radius: 5px;
}

.progress-bar {
    font-size: 0.75rem;
    font-weight: 500;
}

.badge.bg-guinda {
    background-color: var(--color-guinda);
    color: white;
}

/* Estructura ultracompacta */
.footer-ultracompact {
    position: fixed;
    bottom: 0;
    left: 250px;
    right: 0;
    background: var(--color-guinda);
    padding: 8px 0;
    border-top: 1px solid var(--color-dorado);
    z-index: 100;
    font-size: 0.75rem;
}

.footer-ultracompact .small {
    margin-bottom: 0;
    line-height: 1.3;
}

.footer-ultracompact a {
    color: white;
    text-decoration: none;
    white-space: nowrap;
}

.footer-ultracompact a:hover {
    color: var(--color-dorado);
}

/* Ajuste para móviles */
@media (max-width: 767.98px) {
    .footer-ultracompact {
        left: 0;
        position: relative;
        text-align: center;
    }
    
    .footer-ultracompact .row > div {
        margin-bottom: 10px;
    }
    
    .footer-ultracompact .text-md-end {
        text-align: center !important;
    }
}

/* Agrega estas reglas CSS al final de tu hoja de estilos existente */

.sidebar {
    overflow-y: auto; /* Habilita el desplazamiento vertical cuando sea necesario */
    display: flex;
    flex-direction: column;
    height: 100vh; /* Ocupa toda la altura de la ventana */
}

.sidebar > .logo-container {
    margin-top: auto; /* Empuja el logo hacia abajo */
    padding-bottom: 20px; /* Espacio en la parte inferior */
}

/* Opcional: estilo para la barra de desplazamiento */
.sidebar::-webkit-scrollbar {
    width: 8px;
}
.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.sidebar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
    background: #555;
}
.user-card-container {
            height: 100%;
        }
        .user-card {
            border-radius: 8px;
            overflow: hidden;
            transition: all 0.3s ease;
            height: 420px; /* Altura fija para todas las cards */
            display: flex;
            flex-direction: column;
        }
        .user-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        .card-img-top {
            height: 160px;
            width: 100%;
            object-fit: cover;
            background-color: #f8f9fa;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .card-img-top img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .card-img-top .bi-person {
            font-size: 3rem;
            color: #6c757d;
        }
        .card-body {
            padding: 1.25rem;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }
        .user-details {
            margin-bottom: 15px;
            flex-grow: 1;
        }
        .user-details p {
            margin-bottom: 5px;
            font-size: 0.9rem;
        }
        .user-details .detail-label {
            font-weight: bold;
            color: #495057;
        }
        .user-actions {
            margin-top: auto;
        }
