/**
 * Estilos del Panel de Administración
 * Diseño: Apple Liquid Glass / Glassmorphism
 * Colores: Basados en estacatierradelfuego.ar
 */

/* ============= BASE ============= */

body {
    overflow-x: hidden;
    max-width: 100vw;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1e40af 100%);
    background-attachment: fixed;
}

/* Eliminar cualquier subrayado de enlaces */
a {
    text-decoration: none !important;
}

a:hover,
a:focus,
a:active {
    text-decoration: none !important;
    outline: none;
}

/* ============= LIQUID GLASS NAVBAR ============= */

/* Ocultar navbar en desktop, mostrar solo en móvil/tablet */
.admin-navbar {
    display: none;
    background: rgba(30, 58, 138, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    color: var(--white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    max-width: 100vw;
    overflow-x: hidden;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    max-width: 100%;
    height: 70px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar-logo {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.navbar-brand-icon {
    font-size: 1.75rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Navbar Menu - Solo para referencia (ya no se usa en móvil) */
.navbar-menu {
    display: none;
}

.navbar-menu-item {
    margin: 0;
}

.navbar-menu-link {
    text-decoration: none !important;
    border-bottom: none !important;
    color: #ffffff;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar-user-name {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.navbar-logout {
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.navbar-logout:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(252, 165, 165, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.navbar-toggle {
    display: none;
    background: rgba(212, 175, 55, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(212, 175, 55, 0.9);
    color: #1e3a8a;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.3);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.navbar-toggle:hover,
.navbar-toggle:active {
    background: rgba(212, 175, 55, 1);
    transform: scale(1.1);
    border-color: rgba(212, 175, 55, 1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.navbar-menu-mobile {
    display: none;
}

/* ============= MENÚ MODAL MÓVIL (Liquid Glass) ============= */
.mobile-menu-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                backdrop-filter 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.35s;
}

.mobile-menu-modal.active {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 1;
    visibility: visible;
}

.mobile-menu-modal.closing {
    opacity: 0;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.mobile-menu-content {
    background: rgba(30, 58, 138, 0.95);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(212, 175, 55, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    opacity: 0;
    transform: scale(0.85);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-modal.active .mobile-menu-content {
    opacity: 1;
    transform: scale(1);
}

.mobile-menu-modal.closing .mobile-menu-content {
    opacity: 0;
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.4, 0, 1, 1),
                opacity 0.35s cubic-bezier(0.4, 0, 1, 1);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.mobile-menu-header h2 {
    color: #d4af37;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mobile-menu-close {
    background: rgba(220, 53, 69, 0.2);
    border: 2px solid rgba(220, 53, 69, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
    padding: 0;
}

.mobile-menu-close:hover,
.mobile-menu-close:active {
    background: rgba(220, 53, 69, 0.4);
    border-color: rgba(220, 53, 69, 0.8);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.5);
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: #ffffff;
    text-decoration: none !important;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(10px);
}

/* Animación escalonada de aparición estilo Apple */
.mobile-menu-modal.active .mobile-menu-link:nth-child(1) {
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

.mobile-menu-modal.active .mobile-menu-link:nth-child(2) {
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards;
}

.mobile-menu-modal.active .mobile-menu-link:nth-child(3) {
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.mobile-menu-modal.active .mobile-menu-link:nth-child(4) {
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.25s forwards;
}

.mobile-menu-modal.active .mobile-menu-link:nth-child(5) {
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

.mobile-menu-modal.active .mobile-menu-link:nth-child(6) {
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.35s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-link:hover,
.mobile-menu-link:active {
    background: rgba(212, 175, 55, 0.35);
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
}

.mobile-menu-link.active {
    background: rgba(212, 175, 55, 0.5);
    border-color: rgba(212, 175, 55, 0.7);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.mobile-menu-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.mobile-menu-footer {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(10px);
}

.mobile-menu-modal.active .mobile-menu-footer {
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.45s forwards;
}

.mobile-menu-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.mobile-menu-user-icon {
    font-size: 1.5rem;
}

.mobile-menu-user-name {
    color: #d4af37;
    font-weight: 600;
    font-size: 1rem;
}

.mobile-menu-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(220, 53, 69, 0.2);
    border: 2px solid rgba(220, 53, 69, 0.5);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mobile-menu-logout:hover,
.mobile-menu-logout:active {
    background: rgba(220, 53, 69, 0.4);
    border-color: rgba(220, 53, 69, 0.7);
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.4);
}

/* Ocultar menú modal en desktop */
@media (min-width: 993px) {
    .mobile-menu-modal {
        display: none !important;
    }
}

/* ============= LIQUID GLASS CONTAINERS ============= */

.admin-container,
.admin-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    gap: 1.5rem;
    padding: 1.5rem;
    max-width: 100vw;
    overflow-x: hidden;
}

/* ============= LIQUID GLASS SIDEBAR ============= */

.admin-sidebar,
.sidebar {
    background: rgba(30, 58, 138, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    color: #ffffff;
    padding: 2rem 0;
    position: sticky;
    top: 1.5rem;
    height: fit-content;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    transition: all 0.3s ease;
}

.admin-sidebar::-webkit-scrollbar,
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.admin-sidebar::-webkit-scrollbar-track,
.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.admin-sidebar::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.5);
    border-radius: 10px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover,
.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.7);
}

.sidebar-header {
    padding: 0 1.5rem 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.sidebar-header h2 {
    font-size: 1.375rem;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.sidebar-header .admin-user,
.sidebar-header p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 500;
}

.sidebar-nav,
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu-item {
    margin: 0;
}

.nav-item,
.sidebar-menu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: #ffffff;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    border-left: 3px solid transparent;
    border-bottom: none !important;
}

.nav-item:hover,
.sidebar-menu-link:hover {
    background: rgba(212, 175, 55, 0.2);
    color: #ffffff;
    border-left-color: rgba(212, 175, 55, 0.8);
    transform: translateX(5px);
    text-decoration: none !important;
    border-bottom: none !important;
}

.nav-item.active,
.sidebar-menu-link.active {
    background: rgba(212, 175, 55, 0.3);
    color: #ffffff;
    border-left-color: #d4af37;
    font-weight: 600;
    text-decoration: none !important;
    border-bottom: none !important;
}

.nav-item.nav-logout,
.sidebar-menu-link:last-child {
    margin-top: 1rem;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    padding-top: 1.5rem;
}

.nav-item.nav-logout:hover {
    background: rgba(239, 68, 68, 0.15);
    border-left-color: rgba(252, 165, 165, 0.6);
}

.nav-icon {
    font-size: 1.25rem;
    width: 1.5rem;
    text-align: center;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-text {
    font-size: 0.95rem;
}

/* ============= LIQUID GLASS MAIN CONTENT ============= */

.admin-main,
.main-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    max-width: 100%;
    overflow-x: hidden;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.admin-header {
    margin-bottom: 2rem;
}

.admin-header h1 {
    color: #f8f9fa;
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 800;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #ffffff 0%, #f5e6d3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-header p {
    color: #ffffff;
    margin: 0;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ============= LIQUID GLASS STATS CARDS ============= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
}

.stat-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    min-width: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.6), rgba(212, 175, 55, 1));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px 0 rgba(0, 0, 0, 0.4);
    border-color: rgba(212, 175, 55, 0.6);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card.primary::before {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.stat-card.success::before {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.stat-card.warning::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.stat-card.error::before {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stat-card-title {
    font-size: 0.875rem;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.stat-card-icon {
    font-size: 2rem;
    opacity: 0.8;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.stat-card-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.3);
}

/* ============= LIQUID GLASS TABLES ============= */

.table-container {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 100%;
    margin-bottom: 2rem;
}

.table-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.table-header h2 {
    color: #ffffff;
    margin: 0;
    font-size: 1.375rem;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.5);
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.7);
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.table thead {
    background: rgba(30, 58, 138, 0.4);
}

.table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    word-wrap: break-word;
    color: #ffffff;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.admin-table td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* ============= LIQUID GLASS BADGES ============= */

.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.badge-pending,
.badge-warning {
    background: rgba(251, 191, 36, 0.25);
    color: #fef3c7;
    border-color: rgba(251, 191, 36, 0.3);
}

.badge-confirmed,
.badge-success {
    background: rgba(16, 185, 129, 0.25);
    color: #d1fae5;
    border-color: rgba(16, 185, 129, 0.3);
}

.badge-in-use,
.badge-info {
    background: rgba(59, 130, 246, 0.25);
    color: #dbeafe;
    border-color: rgba(59, 130, 246, 0.3);
}

.badge-rejected,
.badge-danger {
    background: rgba(239, 68, 68, 0.25);
    color: #fee2e2;
    border-color: rgba(239, 68, 68, 0.3);
}

.badge-completed,
.badge-secondary {
    background: rgba(156, 163, 175, 0.25);
    color: #e5e7eb;
    border-color: rgba(156, 163, 175, 0.3);
}

/* ============= LIQUID GLASS BUTTONS ============= */

.btn {
    background: rgba(30, 58, 138, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #ffffff;
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9375rem;
}

.btn:hover {
    background: rgba(30, 58, 138, 0.8);
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: rgba(59, 130, 246, 0.6);
    border-color: rgba(96, 165, 250, 0.5);
}

.btn-primary:hover {
    background: rgba(59, 130, 246, 0.8);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, 
        rgba(75, 85, 99, 0.85) 0%, 
        rgba(107, 114, 128, 0.85) 100%);
    border: 2px solid rgba(75, 85, 99, 0.4);
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 12px rgba(75, 85, 99, 0.25);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, 
        rgba(55, 65, 81, 0.95) 0%, 
        rgba(75, 85, 99, 0.95) 100%);
    border-color: rgba(55, 65, 81, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(75, 85, 99, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.85) 0%, 
        rgba(5, 150, 105, 0.85) 100%);
    border: 2px solid rgba(16, 185, 129, 0.4);
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, 
        rgba(5, 150, 105, 0.95) 0%, 
        rgba(4, 120, 87, 0.95) 100%);
    border-color: rgba(5, 150, 105, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
}

.btn-danger {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.85) 0%, 
        rgba(220, 38, 38, 0.85) 100%);
    border: 2px solid rgba(239, 68, 68, 0.4);
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, 
        rgba(220, 38, 38, 0.95) 0%, 
        rgba(185, 28, 28, 0.95) 100%);
    border-color: rgba(220, 38, 38, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.5);
}

/* ============= LIQUID GLASS CARDS ============= */

.card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.metric-card {
    text-align: center;
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(31, 38, 135, 0.25);
}

.metric-title {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* ============= FORM CONTROLS ============= */

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
textarea,
select {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: #ffffff;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
}

/* Fix para textarea en modales - asegurar que el texto se vea */
.modal textarea,
.modal-body textarea,
textarea.form-control {
    color: #1e293b !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid rgba(30, 58, 138, 0.3);
}

.modal textarea::placeholder,
.modal-body textarea::placeholder,
textarea.form-control::placeholder {
    color: rgba(30, 58, 138, 0.5) !important;
}

select,
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    padding-right: 3rem;
    cursor: pointer;
    color: #ffffff;
}

select option,
select.form-control option {
    background: rgba(30, 58, 138, 0.95);
    color: #ffffff;
    padding: 0.5rem;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-control:hover,
input:hover,
textarea:hover,
select:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(212, 175, 55, 0.5);
}

.form-control:hover::placeholder,
input:hover::placeholder,
textarea:hover::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9375rem;
}

/* Alias para form-input (igual que form-control) */
.form-input {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: #ffffff;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.form-input:disabled {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    border-color: rgba(212, 175, 55, 0.2);
}

/* ============= ACTION BUTTONS ============= */

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Botón de WhatsApp estandarizado (tabla desktop) */
.action-buttons .whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    color: white !important;
    display: inline-flex !important;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    border: none !important;
}

.action-buttons .whatsapp-btn:hover {
    background: linear-gradient(135deg, #22c55e 0%, #0f766e 100%) !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
}

.action-buttons .whatsapp-btn img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* ============= UTILITIES ============= */

.w-100 {
    width: 100%;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1.125rem;
}

.text-muted {
    color: rgba(255, 255, 255, 0.6);
}

.text-success {
    color: #10b981;
}

.text-warning {
    color: #f59e0b;
}

.text-primary {
    color: #6366f1;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

/* ============= MODAL GLASS ============= */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid rgba(30, 58, 138, 0.2);
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 0 40px rgba(30, 58, 138, 0.1);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 2px solid rgba(30, 58, 138, 0.15);
    background: linear-gradient(135deg, 
        rgba(30, 58, 138, 0.08) 0%, 
        rgba(59, 130, 246, 0.05) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    color: #1e3a8a;
    font-weight: 700;
    font-size: 1.5rem;
}

/* Estilos específicos para modales de usuarios */
.modal-header h2 {
    margin: 0;
    color: #1e3a8a;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

/* Botón cerrar modal - Estándar UX/UI con área táctil mínima 44x44px */
.modal-close-top {
    /* Área táctil mínima según WCAG */
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    
    /* Posicionamiento */
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    
    /* Reset y centrado */
    padding: 0;
    margin: 0;
    border: none;
    outline: none;
    
    /* Estilo visual Liquid Glass */
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.9) 0%, 
        rgba(220, 38, 38, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 
        0 4px 12px rgba(239, 68, 68, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    
    /* Texto */
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    
    /* Interacción */
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    
    /* Animación */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Asegurar que el contenido del botón no interfiera */
.modal-close-top * {
    pointer-events: none;
}

/* Estados hover y focus */
.modal-close-top:hover,
.modal-close-top:focus-visible {
    background: linear-gradient(135deg, 
        rgba(220, 38, 38, 1) 0%, 
        rgba(185, 28, 28, 1) 100%);
    transform: scale(1.05);
    box-shadow: 
        0 6px 16px rgba(239, 68, 68, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Estado activo (click) */
.modal-close-top:active {
    transform: scale(0.95);
    box-shadow: 
        0 2px 6px rgba(239, 68, 68, 0.4),
        inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Accesibilidad - outline para navegación por teclado */
.modal-close-top:focus-visible {
    outline: 3px solid rgba(239, 68, 68, 0.5);
    outline-offset: 2px;
}

/* Botón cerrar modal - Position absolute dentro del modal-content */
.modal-close-absolute {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.85) 0%, 
        rgba(220, 38, 38, 0.85) 100%);
    border: 2px solid rgba(239, 68, 68, 0.4);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2999 !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.modal-close-absolute:hover {
    background: linear-gradient(135deg, 
        rgba(220, 38, 38, 0.95) 0%, 
        rgba(185, 28, 28, 0.95) 100%);
    border-color: rgba(220, 38, 38, 0.6);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.5);
}

.modal-close-absolute:active {
    transform: translateY(0) scale(0.98);
}

/* Botón cerrar modal - FIXED position (fuera del header) */
.modal-close-fixed {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.85) 0%, 
        rgba(220, 38, 38, 0.85) 100%);
    border: 2px solid rgba(239, 68, 68, 0.4);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    position: fixed;
    top: calc(5vh + 1rem);
    right: calc(50vw - 300px + 1rem);
    z-index: 2999 !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.modal-close-fixed:hover {
    background: linear-gradient(135deg, 
        rgba(220, 38, 38, 0.95) 0%, 
        rgba(185, 28, 28, 0.95) 100%);
    border-color: rgba(220, 38, 38, 0.6);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.5);
}

.modal-close-fixed:active {
    transform: translateY(0) scale(0.98);
}

@media (max-width: 768px) {
    .modal-close-fixed {
        right: 1rem;
        top: calc(5vh + 0.5rem);
    }
}

/* Botón cerrar modal - Original en header */
.modal-close {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.85) 0%, 
        rgba(220, 38, 38, 0.85) 100%);
    border: 2px solid rgba(239, 68, 68, 0.4);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
    z-index: 2002 !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.modal-close * {
    pointer-events: none;
}

.modal-close:hover {
    background: linear-gradient(135deg, 
        rgba(220, 38, 38, 0.95) 0%, 
        rgba(185, 28, 28, 0.95) 100%);
    border-color: rgba(220, 38, 38, 0.6);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.5);
}

.modal-close:active {
    transform: translateY(0) scale(0.98);
}

/* Modal específico de usuarios */
#modalUsuario .modal-header,
#modalPassword .modal-header {
    background: linear-gradient(135deg, 
        rgba(30, 58, 138, 0.08) 0%, 
        rgba(59, 130, 246, 0.05) 100%);
    border-bottom: 2px solid rgba(30, 58, 138, 0.15);
}

#modalUsuario .modal-content,
#modalPassword .modal-content {
    border: 2px solid rgba(30, 58, 138, 0.2);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 0 40px rgba(30, 58, 138, 0.15);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    background: transparent;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(30, 58, 138, 0.05);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(30, 58, 138, 0.3);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(30, 58, 138, 0.5);
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 2px solid rgba(30, 58, 138, 0.15);
    background: linear-gradient(135deg, 
        rgba(30, 58, 138, 0.05) 0%, 
        rgba(59, 130, 246, 0.03) 100%);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    flex-shrink: 0;
}

/* ============= ESTILOS DE FORMULARIOS EN MODALES ============= */

/* Inputs dentro de modales */
.modal .form-group label,
.modal-body .form-group label {
    color: #1e3a8a;
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    display: block;
}

.modal .form-input,
.modal-body .form-input,
.modal .form-control,
.modal-body .form-control {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(30, 58, 138, 0.2);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: #1e293b;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
    font-weight: 500;
}

.modal .form-input::placeholder,
.modal-body .form-input::placeholder,
.modal .form-control::placeholder,
.modal-body .form-control::placeholder {
    color: #94a3b8;
}

.modal .form-input:focus,
.modal-body .form-input:focus,
.modal .form-control:focus,
.modal-body .form-control:focus {
    outline: none;
    background: rgba(255, 255, 255, 1);
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.modal .form-input:disabled,
.modal-body .form-input:disabled,
.modal .form-control:disabled,
.modal-body .form-control:disabled {
    background: rgba(241, 245, 249, 0.95);
    color: #94a3b8;
    cursor: not-allowed;
    border-color: rgba(30, 58, 138, 0.15);
}

/* Selects dentro de modales */
.modal .form-select,
.modal-body .form-select,
.modal select.form-control,
.modal-body select.form-control {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(30, 58, 138, 0.2);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: #1e293b;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
    font-weight: 500;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%231e3a8a' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    padding-right: 3rem;
    cursor: pointer;
}

.modal .form-select:focus,
.modal-body .form-select:focus {
    outline: none;
    background: rgba(255, 255, 255, 1);
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.modal .form-select option,
.modal-body .form-select option {
    background: #ffffff;
    color: #1e293b;
    padding: 0.5rem;
}

/* Texto de ayuda en formularios de modal */
.modal .form-help,
.modal-body .form-help,
.modal small.form-help,
.modal-body small.form-help {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
}

/* Checkbox label en modales */
.modal .checkbox-label,
.modal-body .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1e293b;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.modal .checkbox-label input[type="checkbox"],
.modal-body .checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(30, 58, 138, 0.3);
    border-radius: 6px;
    cursor: pointer;
    accent-color: #3b82f6;
}

/* Párrafos con clase text-muted en modales */
.modal .text-muted,
.modal-body .text-muted {
    color: #64748b;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.modal .text-muted strong,
.modal-body .text-muted strong {
    color: #1e3a8a;
    font-weight: 600;
}

/* ============= RESPONSIVE ADMIN ============= */

/* Media query específica para rango crítico 992px - 1082px */
@media (min-width: 993px) and (max-width: 1082px) {
    /* Reducir padding del contenedor principal */
    .admin-container,
    .admin-layout {
        padding: 1rem;
        gap: 1rem;
    }
    
    /* Sidebar más compacto */
    .admin-sidebar,
    .sidebar {
        width: 240px;
        grid-column: span 1;
    }
    
    .admin-container,
    .admin-layout {
        grid-template-columns: 240px 1fr;
    }
    
    /* Reducir padding del contenido principal */
    .admin-main,
    .main-content {
        padding: 1.25rem;
    }
    
    /* Optimizar tabla para evitar scroll horizontal */
    .table {
        font-size: 0.8125rem;
        min-width: auto !important;
    }
    
    .table th,
    .table td {
        padding: 0.625rem 0.375rem !important;
    }
    
    /* Ajustes específicos para tabla de reservas optimizada */
    .reservas-table-optimized th[style*="width: 50px"] {
        width: 40px !important;
    }
    
    .reservas-table-optimized th[style*="min-width: 120px"] {
        min-width: 90px !important;
    }
    
    .reservas-table-optimized th[style*="min-width: 180px"] {
        min-width: 130px !important;
    }
    
    .reservas-table-optimized th[style*="min-width: 200px"] {
        min-width: 150px !important;
    }
    
    .reservas-table-optimized th[style*="width: 120px"] {
        width: 100px !important;
    }
    
    .reservas-table-optimized th[style*="width: 160px"] {
        width: 130px !important;
    }
    
    /* Dashboard table también más compacto */
    .table thead th {
        font-size: 0.75rem;
        padding: 0.625rem 0.375rem !important;
    }
    
    /* Botones de acción más pequeños */
    .btn-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.9rem !important;
    }
    
    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    /* Stats cards más compactas */
    .stats-grid {
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-card-value {
        font-size: 2rem;
    }
    
    /* Header más compacto */
    .admin-header h1 {
        font-size: 1.625rem;
    }
    
    /* Table container con menos padding */
    .table-header {
        padding: 1rem;
    }
    
    .table-header h2 {
        font-size: 1.125rem;
    }
}

@media (max-width: 992px) {
    /* Mostrar navbar en móvil/tablet */
    .admin-navbar {
        display: block;
    }
    
    .admin-container,
    .admin-layout {
        grid-template-columns: 1fr;
        min-height: calc(100vh - 70px);
        padding: 1rem;
    }
    
    /* Ocultar sidebar en móvil/tablet */
    .admin-sidebar,
    .sidebar {
        display: none;
    }
    
    .admin-main,
    .main-content {
        padding: 1rem;
        width: 100%;
        overflow-x: hidden;
    }
    
    /* Navbar menu ya tiene estilos globales, solo ajustes si necesarios */
    
    .navbar-user {
        display: none;
    }
    
    .navbar-toggle {
        display: block;
    }
    
    .navbar-menu-mobile {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .navbar-menu-mobile .navbar-user-name {
        padding: 0.75rem 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        color: rgba(255, 255, 255, 0.95);
        font-weight: 500;
    }
    
    .navbar-menu-mobile .navbar-logout {
        margin: 0.5rem 1.5rem;
        background: rgba(220, 53, 69, 0.9);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    /* Hacer las tablas responsive con glass */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    
    .table {
        min-width: 600px;
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
    }
    
    /* Ajustar tarjetas de estadísticas */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card-value {
        font-size: 2rem;
    }
    
    /* Ajustar header de tablas */
    .table-header {
        padding: 1rem;
        border-radius: 16px 16px 0 0;
    }
    
    .table-header h2 {
        font-size: 1.125rem;
    }
    
    /* Botones de acción más compactos */
    .action-buttons {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .btn-icon {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 576px) {
    .navbar-container {
        padding: 0 1rem;
        height: 60px;
    }
    
    .navbar-brand {
        font-size: 0.95rem;
    }
    
    .navbar-brand-icon {
        font-size: 1.25rem;
    }
    
    .navbar-menu {
        top: 60px;
        border-radius: 0 0 16px 16px;
    }
    
    .admin-main,
    .main-content {
        padding: 0.75rem;
    }
    
    .admin-header h1 {
        font-size: 1.375rem;
    }
    
    /* Tarjetas de estadísticas en columna única */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
        border-radius: 16px;
    }
    
    .stat-card-value {
        font-size: 1.75rem;
    }
    
    .stat-card-title {
        font-size: 0.75rem;
    }
    
    /* Tablas más compactas */
    .table {
        font-size: 0.8125rem;
        min-width: 500px;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.375rem;
    }
    
    .table-header {
        padding: 0.75rem;
        border-radius: 12px 12px 0 0;
    }
    
    .table-header h2 {
        font-size: 1rem;
    }
    
    /* Botones más pequeños */
    .btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
        border-radius: 12px;
    }
    
    .btn-icon {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    /* Modal responsive con glass */
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
        border-radius: 16px;
        max-width: calc(100% - 2rem);
    }
    
    .modal-header h3 {
        font-size: 1.125rem;
    }
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

/* ============= UTILITIES ============= */

.w-100 {
    width: 100%;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

/* ============= DESKTOP STYLES (min-width: 993px) ============= */
@media (min-width: 993px) {
    /* En desktop, el navbar está oculto, así que estos estilos solo aplican si se necesita mostrar */
    .navbar-menu {
        /* Resetear estilos de modal */
        position: static !important;
        transform: none !important;
        width: auto !important;
        max-width: none !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        border-radius: 0 !important;
        flex-direction: row !important;
        padding: 0 !important;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        /* Estilos horizontales */
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .navbar-menu-link {
        /* Resetear estilos de modal */
        width: auto !important;
        margin: 0 !important;
        padding: 0.75rem 1.25rem !important;
        font-size: 0.9rem !important;
        font-weight: 500 !important;
        text-shadow: none !important;
        /* Estilos desktop */
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: #ffffff;
        border-radius: 12px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .navbar-menu-link:hover {
        background: rgba(212, 175, 55, 0.25) !important;
        color: #ffffff;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    }
    
    .navbar-menu-link.active {
        background: rgba(212, 175, 55, 0.4) !important;
        color: #ffffff;
        font-weight: 600 !important;
        box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3) !important;
    }
}

/* ============= CARDS DE RESERVAS MÓVIL (Liquid Glass) ============= */
.reservas-cards-container {
    display: none; /* Oculto por defecto, visible solo en móvil */
}

.reserva-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.reserva-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(212, 175, 55, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    border-color: rgba(212, 175, 55, 0.5);
}

.reserva-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.reserva-card-id {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.reserva-card-estado {
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.reserva-card-estado.pendiente {
    background: rgba(255, 193, 7, 0.3);
    border: 1px solid rgba(255, 193, 7, 0.6);
    color: #ffc107;
}

.reserva-card-estado.aprobada {
    background: rgba(40, 167, 69, 0.3);
    border: 1px solid rgba(40, 167, 69, 0.6);
    color: #28a745;
}

.reserva-card-estado.rechazada {
    background: rgba(220, 53, 69, 0.3);
    border: 1px solid rgba(220, 53, 69, 0.6);
    color: #dc3545;
}

.reserva-card-estado.completada {
    background: rgba(23, 162, 184, 0.3);
    border: 1px solid rgba(23, 162, 184, 0.6);
    color: #17a2b8;
}

.reserva-card-body {
    margin-bottom: 1rem;
}

.reserva-card-info {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
}

.reserva-card-icon {
    font-size: 1.25rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    min-width: 24px;
}

.reserva-card-detail {
    flex: 1;
}

.reserva-card-label {
    font-size: 0.75rem;
    color: rgba(212, 175, 55, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.reserva-card-value {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.reserva-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.reserva-card-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.reserva-card-btn:hover {
    background: rgba(212, 175, 55, 0.3);
    border-color: rgba(212, 175, 55, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.reserva-card-btn.btn-primary {
    background: rgba(30, 58, 138, 0.4);
    border-color: rgba(59, 130, 246, 0.6);
}

.reserva-card-btn.btn-primary:hover {
    background: rgba(59, 130, 246, 0.5);
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.reserva-card-btn.btn-success {
    background: rgba(16, 185, 129, 0.4);
    border-color: rgba(16, 185, 129, 0.6);
}

.reserva-card-btn.btn-success:hover {
    background: rgba(16, 185, 129, 0.6);
    border-color: rgba(16, 185, 129, 0.8);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.reserva-card-btn.btn-danger {
    background: rgba(239, 68, 68, 0.4);
    border-color: rgba(239, 68, 68, 0.6);
}

.reserva-card-btn.btn-danger:hover {
    background: rgba(239, 68, 68, 0.6);
    border-color: rgba(239, 68, 68, 0.8);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* ============= MODAL DE CONFIRMACIÓN DE ACCIONES ============= */

.action-modal .modal-header {
    background: linear-gradient(135deg, 
        rgba(30, 58, 138, 0.05) 0%, 
        rgba(212, 175, 55, 0.05) 100%);
}

.action-modal .accion-info {
    color: #ffffff;
}

.action-modal .accion-info p {
    color: rgba(255, 255, 255, 0.9);
}

.action-modal .form-control {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.action-modal .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.action-modal .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.action-modal label {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
}

/* Animación de shake para contraseña incorrecta */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.action-modal .form-control.error,
.form-control.error {
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
    border-color: rgba(239, 68, 68, 0.8) !important;
    background: rgba(239, 68, 68, 0.05) !important;
}

/* Tabla optimizada sin scroll horizontal */
.reservas-table-optimized {
    table-layout: fixed;
    width: 100%;
}

.reservas-table-optimized td,
.reservas-table-optimized th {
    padding: 0.75rem 0.5rem !important;
    vertical-align: middle !important;
}

/* Botones de icono compactos */
.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-icon.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-icon.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-icon.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

.btn-icon.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-icon.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

/* ============= PENDING CARDS (Dashboard) ============= */

.pending-cards-container {
    display: none; /* Mostrar solo en mobile */
    gap: 1rem;
}

.pending-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(212, 175, 55, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1rem;
}

.pending-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 0 30px rgba(212, 175, 55, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.pending-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.pending-card .badge {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.pending-card .badge-warning {
    background: linear-gradient(135deg, #d4af37 0%, #c9a02c 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.pending-card .card-id {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.pending-card .card-info {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.pending-card .card-info li {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    gap: 1rem;
}

.pending-card .card-info li:last-child {
    border-bottom: none;
}

.pending-card .card-label {
    font-weight: 600;
    color: #1e3a8a;
    flex-shrink: 0;
    min-width: 100px;
}

.pending-card .card-value {
    color: #334155;
    text-align: right;
    flex-grow: 1;
}

.pending-card .card-value strong {
    color: #1e293b;
}

.pending-card .card-value small {
    display: block;
    color: #64748b;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.pending-card .card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-top: 0.75rem;
    border-top: 2px solid rgba(212, 175, 55, 0.2);
}

.pending-card .card-actions .btn {
    flex: 1;
    min-width: calc(50% - 0.25rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    padding: 0.625rem 0.875rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pending-card .card-actions .whatsapp-btn {
    flex: 1 1 100%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.pending-card .card-actions .whatsapp-btn:hover {
    background: linear-gradient(135deg, #22c55e 0%, #0f766e 100%) !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
}

.pending-card .card-actions .whatsapp-btn img {
    filter: brightness(0) invert(1);
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: #cbd5e1;
    font-style: italic;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 1rem;
}

/* Responsive: Mostrar cards en móvil, tabla en desktop */
@media (max-width: 768px) {
    .table-container {
        display: none !important;
    }
    
    .pending-cards-container {
        display: block !important;
    }
    
    .pending-card .card-info li {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pending-card .card-label {
        margin-bottom: 0.25rem;
    }
    
    .pending-card .card-value {
        text-align: left;
    }
    
    .pending-card .card-actions .btn {
        min-width: 100%;
        flex: 1 1 100%;
    }
}

/* Tablets - Mejorar scroll en tablas */
@media (min-width: 769px) and (max-width: 1200px) {
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: -1rem;
        padding: 1rem;
    }
    
    .data-table {
        min-width: 1000px;
        font-size: 0.8125rem;
    }
    
    .data-table th {
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .data-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8125rem;
        white-space: nowrap;
    }
    
    .data-table td br {
        display: none;
    }
    
    .data-table td small {
        display: inline;
        margin-left: 0.25rem;
    }
    
    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        min-width: 140px;
    }
    
    .action-buttons .btn {
        width: 100%;
        font-size: 0.75rem;
        padding: 0.375rem 0.5rem;
        white-space: nowrap;
    }
}

/* Desktop grande - tabla completa */
@media (min-width: 1201px) {
    .data-table th {
        padding: 1rem;
    }
    
    .data-table td {
        padding: 1rem;
    }
    
    .action-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .action-buttons .btn {
        flex: 1 1 auto;
        min-width: 100px;
    }
}

/* Responsive: Mostrar cards en móvil/tablet, tabla en desktop (Dashboard y Reservas) */
@media (max-width: 1199px) {
    .table-responsive,
    .table-container {
        display: none !important;
    }
    
    .pending-cards-container,
    .reservas-cards-container {
        display: block !important;
    }
}

@media (min-width: 1200px) {
    .pending-cards-container,
    .reservas-cards-container {
        display: none !important;
    }
    
    .table-responsive,
    .table-container {
        display: block !important;
    }
}

/* ============= RESERVA CARDS (Reservas.php) ============= */

.reserva-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(212, 175, 55, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1rem;
}

.reserva-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 0 30px rgba(212, 175, 55, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.reserva-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.reserva-card .card-id {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.reserva-card .card-info {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.reserva-card .card-info li {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    gap: 1rem;
}

.reserva-card .card-info li:last-child {
    border-bottom: none;
}

.reserva-card .card-label {
    font-weight: 600;
    color: #1e3a8a;
    flex-shrink: 0;
    min-width: 100px;
}

.reserva-card .card-value {
    color: #334155;
    text-align: right;
    flex-grow: 1;
}

.reserva-card .card-value strong {
    color: #1e293b;
}

.reserva-card .card-value small {
    display: block;
    color: #64748b;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.reserva-card .card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-top: 0.75rem;
    border-top: 2px solid rgba(212, 175, 55, 0.2);
}

.reserva-card .card-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    padding: 0.625rem 0.875rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
}

/* Responsive para reservas cards */
@media (max-width: 1199px) {
    .reservas-cards-container {
        display: block !important;
    }
    
    .reserva-card .card-info li {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .reserva-card .card-label {
        margin-bottom: 0.25rem;
    }
    
    .reserva-card .card-value {
        text-align: left;
    }
}

@media (min-width: 1200px) {
    .reservas-cards-container {
        display: none !important;
    }
}

/* Responsive: Mostrar cards en móvil, tabla en desktop */
@media (max-width: 1199px) {
    .table-responsive {
        display: none !important;
    }
    
    .reservas-cards-container {
        display: block !important;
    }
}

@media (min-width: 1200px) {
    .reservas-cards-container {
        display: none !important;
    }
    
    .table-responsive {
        display: block !important;
    }
}

/* ============= GESTIÓN DE USUARIOS ============= */

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
}

.badge-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.2) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.badge-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.badge-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.badge-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.2) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.badge-secondary {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.2) 0%, rgba(75, 85, 99, 0.2) 100%);
    border: 1px solid rgba(107, 114, 128, 0.3);
    color: #6b7280;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

/* ============= PERFIL DE USUARIO ============= */

.profile-container {
    display: grid;
    gap: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 1rem 1rem 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.card-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body {
    padding: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.badge-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 0.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.info-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.info-item label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.info-item p {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
}

/* ============= ALERTAS ============= */

.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: rgba(30, 58, 138, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10000;
    min-width: 300px;
    max-width: 500px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.alert.show {
    opacity: 1;
    transform: translateX(0);
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(5, 150, 105, 0.95) 100%);
    border-color: rgba(16, 185, 129, 0.5);
}

.alert-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);
    border-color: rgba(239, 68, 68, 0.5);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.95) 0%, rgba(217, 119, 6, 0.95) 100%);
    border-color: rgba(245, 158, 11, 0.5);
}

.alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, rgba(37, 99, 235, 0.95) 100%);
    border-color: rgba(59, 130, 246, 0.5);
}

.alert i {
    font-size: 1.25rem;
}

/* ============= CHECKBOX PERSONALIZADO ============= */

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* ============= TEXT UTILITIES ============= */

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--gray);
    font-size: 0.9375rem;
}

small.form-help {
    font-size: 0.8125rem;
}

/* ============= GLASS CARDS (Para Usuarios y Perfil) ============= */

.glass-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-header {
    margin-bottom: 1.5rem;
    padding: 0 1rem 1rem 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.card-header h2,
.card-header h3 {
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.card-body {
    color: #ffffff;
    padding: 1rem;
}

/* Stats Cards para Usuarios */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: rgba(212, 175, 55, 0.5);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.stat-icon.bg-primary {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(37, 99, 235, 0.3));
    color: #60a5fa;
}

.stat-icon.bg-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.3));
    color: #34d399;
}

.stat-icon.bg-info {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(124, 58, 237, 0.3));
    color: #a78bfa;
}

.stat-icon.bg-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.3));
    color: #fbbf24;
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.stat-info p {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Filters Section */
.filters-section {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.form-select {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: #ffffff;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    padding-right: 3rem;
    cursor: pointer;
}

.form-select option {
    background: rgba(30, 58, 138, 0.95);
    color: #ffffff;
}

/* User Info en tabla */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #d4af37;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: rgba(30, 58, 138, 0.3);
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #d4af37;
    text-transform: uppercase;
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    color: #ffffff;
}

.data-table tbody tr {
    transition: background 0.2s ease;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-primary {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-info {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-secondary {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

/* Info Grid para perfil */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.info-item label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.info-item p {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Badge Container */
.badge-container {
    display: flex;
    align-items: center;
    height: 100%;
}

/* ============= USUARIOS GRID (CARDS RESPONSIVAS) ============= */

.usuarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Loading State */
.loading-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.loader-dots {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.loader-dots .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    animation: loadingDots 1.4s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

.loader-dots .dot:nth-child(1) { animation-delay: 0s; }
.loader-dots .dot:nth-child(2) { animation-delay: 0.2s; }
.loader-dots .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes loadingDots {
    0%, 80%, 100% { 
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% { 
        transform: scale(1.2);
        opacity: 1;
    }
}

.loading-state p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    font-weight: 500;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* Usuario Card - Liquid Glass */
.usuario-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.12) 0%, 
        rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(30, 58, 138, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 20px rgba(212, 175, 55, 0.05);
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.usuario-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--primary-gold) 0%, 
        var(--secondary-blue) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.usuario-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 40px rgba(30, 58, 138, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset,
        0 0 30px rgba(212, 175, 55, 0.1);
}

.usuario-card:hover::before {
    opacity: 1;
}

/* Card Header */
.usuario-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.usuario-info {
    flex: 1;
    min-width: 0;
}

.usuario-nombre {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.usuario-rol-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.usuario-rol-badge.super-admin {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.15));
    color: var(--primary-gold);
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.usuario-rol-badge.admin {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(59, 130, 246, 0.15));
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.usuario-email {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Menu de Acciones - Dropdown (3 dots) */
.usuario-actions {
    position: relative;
}

.actions-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    font-weight: 700;
}

.actions-toggle:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.4);
    transform: scale(1.1);
}

.actions-toggle.active {
    background: rgba(212, 175, 55, 0.25);
    border-color: rgba(212, 175, 55, 0.5);
}

/* Dropdown Menu */
.actions-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    min-width: 200px;
    background: linear-gradient(135deg, 
        rgba(30, 58, 138, 0.95) 0%, 
        rgba(30, 64, 175, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    padding: 0.5rem;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.actions-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.actions-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.actions-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.actions-dropdown-item.danger:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.actions-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

/* Card Body */
.usuario-card-body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.usuario-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.usuario-detail-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.usuario-detail-value {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Estado Badge */
.usuario-estado {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.usuario-estado.activo {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.usuario-estado.inactivo {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.4);
}

/* Card Footer */
.usuario-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.usuario-ultimo-acceso {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* ============= RESPONSIVE - USUARIOS GRID ============= */

/* Desktop Grande (>1400px) - 3 columnas */
@media (min-width: 1400px) {
    .usuarios-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop Medio (1200px-1399px) - 2 columnas */
@media (min-width: 1200px) and (max-width: 1399px) {
    .usuarios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop Pequeño/Tablet (768px-1199px) - 2 columnas */
@media (min-width: 768px) and (max-width: 1199px) {
    .usuarios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .usuario-card {
        padding: 1.25rem;
    }
}

/* Tablet Pequeño (576px-767px) - 1 columna */
@media (min-width: 576px) and (max-width: 767px) {
    .usuarios-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .usuario-card-body {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }
}

/* Móvil (<576px) - 1 columna compacta */
@media (max-width: 575px) {
    .usuarios-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .usuario-card {
        padding: 1rem;
    }
    
    .usuario-nombre {
        font-size: 1.125rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .usuario-card-body {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }
    
    .actions-dropdown {
        right: auto;
        left: 0;
    }
}

/* ============= SCROLLBAR PERSONALIZADO LIQUID GLASS ============= */

/* Scrollbar del historial de cambios */
.historial-timeline-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.6) transparent;
}

.historial-timeline-container::-webkit-scrollbar {
    width: 8px;
}

.historial-timeline-container::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.historial-timeline-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, 
        rgba(59, 130, 246, 0.7) 0%,
        rgba(96, 165, 250, 0.5) 50%,
        rgba(59, 130, 246, 0.4) 100%);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(96, 165, 250, 0.3);
    box-shadow: 
        0 2px 8px rgba(59, 130, 246, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset,
        0 0 12px rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.historial-timeline-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, 
        rgba(59, 130, 246, 0.9) 0%,
        rgba(96, 165, 250, 0.7) 50%,
        rgba(59, 130, 246, 0.6) 100%);
    box-shadow: 
        0 4px 12px rgba(59, 130, 246, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset,
        0 0 20px rgba(59, 130, 246, 0.4);
}

.historial-timeline-container::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, 
        rgba(59, 130, 246, 1) 0%,
        rgba(96, 165, 250, 0.8) 50%,
        rgba(59, 130, 246, 0.7) 100%);
}

/* Scrollbar del modal de detalles (contenedor principal) */
.modal-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.5) transparent;
}

.modal-body::-webkit-scrollbar {
    width: 10px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
    margin: 8px 0;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, 
        rgba(148, 163, 184, 0.6) 0%,
        rgba(203, 213, 225, 0.4) 50%,
        rgba(148, 163, 184, 0.3) 100%);
    border-radius: 10px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(203, 213, 225, 0.3);
    box-shadow: 
        0 2px 10px rgba(148, 163, 184, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.25) inset,
        0 0 15px rgba(148, 163, 184, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, 
        rgba(148, 163, 184, 0.8) 0%,
        rgba(203, 213, 225, 0.6) 50%,
        rgba(148, 163, 184, 0.5) 100%);
    box-shadow: 
        0 4px 16px rgba(148, 163, 184, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.35) inset,
        0 0 25px rgba(148, 163, 184, 0.25),
        0 0 40px rgba(255, 255, 255, 0.1);
}

.modal-body::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, 
        rgba(148, 163, 184, 0.95) 0%,
        rgba(203, 213, 225, 0.75) 50%,
        rgba(148, 163, 184, 0.65) 100%);
}

