/* =============================================
   SISTEMA MÉDICO PEDIÁTRICO - CSS COMPLETO
   VERSIÓN FINAL: CORRECCIÓN DE HEADER Y MÁRGENES + CITAS
   ============================================= */

/* =============================================
   VARIABLES Y BASE
   ============================================= */
:root {
    --primary-color: #667eea;
    --primary-dark: #764ba2;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --secondary-color: #6c757d;
    --light-bg: #f8f9fa;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--light-bg);
}

/* =============================================
   SIDEBAR (MENÚ LATERAL) - CORREGIDO
   ============================================= */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background: linear-gradient(180deg, #212529 0%, #1a1d20 100%);
    
    /* Habilitar scroll vertical */
    overflow-y: auto;
    overflow-x: hidden;
    
    /* Z-index alto para estar sobre todo en móvil */
    z-index: 1040;
    
    transition: transform 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15);
    
    /* SOLUCIÓN: Agregamos mucho espacio abajo para que el menú de ayuda se vea completo */
    padding-bottom: 150px !important; 
}

.sidebar-header {
    position: sticky;
    top: 0;
    background: #212529;
    z-index: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 1rem;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin: 0.25rem 0.75rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    font-weight: 500;
}

.sidebar .nav-link:hover {
    color: #fff;
    background: rgba(102, 126, 234, 0.2);
    transform: translateX(5px);
}

.sidebar .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.sidebar .nav-link i {
    width: 24px;
    margin-right: 12px;
    text-align: center;
    font-size: 1.1rem;
}

#sidebarToggle {
    display: none;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1035;
    transition: opacity 0.3s ease-in-out;
}

/* Estilo para el divisor del sidebar */
hr.sidebar-divider {
    margin: 1rem 0;              /* Espacio arriba y abajo */
    color: inherit;              /* Hereda color para reseteos */
    border: 0;                   /* Quita el borde default del navegador */
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* Línea visible semitransparente */
    opacity: 1;                  /* Asegura que sea visible */
    width: 100%;                 /* Ocupa todo el ancho */
}

/* =============================================
   LAYOUT GLOBAL & NAVBAR (CORREGIDO)
   ============================================= */

/* 1. EL CONTENEDOR PRINCIPAL: Es el único que lleva el margen */
.main-wrapper {
    margin-left: 250px !important; /* Empuja todo el contenido a la derecha */
    width: auto !important;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* 2. NAVBAR: Ocupa el 100% del contenedor padre (.main-wrapper) */
.navbar {
    z-index: 1030;
    box-shadow: var(--shadow-md);
    background: var(--primary-color) !important;
    color: white !important;
    width: 100% !important; /* Llena el wrapper, no la pantalla entera */
    /* ELIMINADO: margin-left: 250px (Esto causaba el doble margen) */
}

/* 3. Contenido interior */
.main-content, main {
    padding-top: 1rem;
    padding-bottom: 2rem;
    flex-grow: 1;
}

/* Estilos internos del Navbar */
.navbar .navbar-text { display: flex !important; align-items: center; gap: 8px; font-weight: 500; }
.navbar .navbar-text i.fa-user { display: inline-block !important; font-size: 1.1rem; }

/* =============================================
   CARDS Y ESTADÍSTICAS
   ============================================= */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: visible; /* CRÍTICO para dropdowns */
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    font-weight: 600;
    border-bottom: none;
    padding: 1.25rem;
}

.stats-card {
    border-left: 4px solid;
    transition: transform 0.2s ease;
}

.stats-card:hover {
    transform: translateY(-4px);
}

.border-start-primary { border-left-color: var(--primary-color) !important; }
.border-start-success { border-left-color: var(--success-color) !important; }
.border-start-info { border-left-color: var(--info-color) !important; }
.border-start-warning { border-left-color: var(--warning-color) !important; }

/* =============================================
   TABLAS RESPONSIVE
   ============================================= */
.table-responsive {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    overflow-y: visible; /* CRÍTICO para dropdowns */
}

.table { margin-bottom: 0; }

.table thead th {
    background: var(--light-bg);
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: #495057;
    white-space: nowrap;
    padding: 1rem;
}

.table tbody tr { transition: background-color 0.3s ease; } 
.table tbody tr:hover { background-color: rgba(102, 126, 234, 0.05); }

/* Fix Dropdowns en Tablas */
.table td, .table th { overflow: visible; }
.dropdown { position: relative; z-index: 10; }
.dropdown-menu { position: absolute; z-index: 10001; top: 100%; transform: none !important; }

/* =============================================
   ESTILOS DE GESTIÓN DE CITAS (TU CÓDIGO INCORPORADO)
   ============================================= */

/* Animación sutil para resaltar citas de hoy */
.table-warning,
.table-warning.cita-hoy {
    background-color: #fff3cd !important;
    transition: all 0.3s ease;
}

.table-warning:hover,
.table-warning.cita-hoy:hover {
    background-color: #ffe69c !important;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

/* Borde izquierdo para citas de hoy */
tr[style*="border-left"] {
    border-left-width: 4px !important;
    border-left-style: solid !important;
}

/* Estilo para el ícono de estrella en citas de hoy */
.cita-hoy .fa-star,
.table-warning .fa-star {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Mejoras en dropdowns de citas */
.dropdown-toggle::after {
    margin-left: 0.3em;
}

.dropdown-menu .dropdown-item {
    padding: 0.5rem 1rem;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Badge personalizado para estado de citas */
.badge-estado-programada {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.badge-estado-confirmada {
    background-color: #0d6efd !important;
}

.badge-estado-completada {
    background-color: #198754 !important;
}

.badge-estado-cancelada {
    background-color: #dc3545 !important;
}

.badge-estado-no_asistio {
    background-color: #6c757d !important;
}

/* Efectos hover para botones de acciones */
.btn-group-sm .btn {
    transition: all 0.2s ease;
}

.btn-group-sm .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilo para el badge "HOY" */
.bg-warning.text-dark {
    font-weight: 600;
    font-size: 0.75em;
}

/* Mejora visual para los badges de tipo de consulta */
.badge.bg-info {
    font-weight: 500;
}

/* Efecto para el botón de asignar turno */
.btn-outline-primary:hover {
    background-color: #0d6efd;
    color: white;
}

/* =============================================
   OTRAS SECCIONES
   ============================================= */
.paciente-card {
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: var(--shadow-sm);
}
.paciente-card:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }

.quick-action-btn {
    padding: 1rem;
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
}
.quick-action-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.hover-shadow { transition: box-shadow 0.3s ease; }
.hover-shadow:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.cursor-pointer { cursor: pointer; }

/* Animaciones */
@keyframes slideIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.card, .table-responsive { animation: slideIn 0.4s ease-out; } 
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.mobile-cards { animation: fadeIn 0.3s ease-out; }

/* =============================================
   LOGIN PAGE
   ============================================= */
.login-background {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: linear-gradient(rgba(102, 126, 234, 0.85), rgba(118, 75, 162, 0.85)),
        url('https://images.unsplash.com/photo-1631217868264-e5b90bb7e133?w=1920');
    background-size: cover; background-position: center; background-attachment: fixed;
}
.login-background::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: float 15s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-20px); } }
.login-container { position: relative; z-index: 10; display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px; }
.login-card {
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    border-radius: 50px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 100px rgba(102, 126, 234, 0.2);
    width: 100%; max-width: 420px; padding: 60px 45px; animation: slideDown 0.6s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.3); text-align: center;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-50px); } to { opacity: 1; transform: translateY(0); } }
.login-icon {
    width: 90px; height: 90px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 25px; box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4); animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.login-icon i { font-size: 45px; color: white; }
.login-title { font-size: 28px; font-weight: 700; color: #2d3748; margin-bottom: 8px; letter-spacing: -0.5px; }
.login-subtitle { font-size: 15px; color: #718096; font-weight: 400; }
.login-form { margin-top: 35px; text-align: left; }
.login-form .form-group { margin-bottom: 25px; position: relative; }
.login-form .form-label { display: block; margin-bottom: 10px; color: #4a5568; font-weight: 600; font-size: 14px; letter-spacing: 0.3px; }
.input-wrapper { position: relative; transition: transform 0.2s ease; }
.input-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: #a0aec0; font-size: 18px; transition: color 0.3s ease; z-index: 1; pointer-events: none; }
.login-form .form-control { width: 100%; padding: 16px 20px 16px 55px; border: 2px solid #e2e8f0; border-radius: 25px; font-size: 15px; transition: all 0.3s ease; background: white; color: #2d3748; height: auto; }
.login-form .form-control:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1); background: white; }
.login-form .form-control:focus ~ .input-icon { color: #667eea; }
.btn-login {
    width: 100%; padding: 16px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none; border-radius: 25px; color: white; font-size: 16px; font-weight: 600; cursor: pointer;
    transition: all 0.3s ease; box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3); letter-spacing: 0.5px; margin-top: 10px; position: relative; display: flex; justify-content: center; align-items: center;
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4); }
.btn-login:active { transform: translateY(0); }
.btn-login i { margin-left: 8px; transition: transform 0.3s ease; }
.btn-login:hover i { transform: translateX(5px); }
.alert-error { background: rgba(245, 101, 101, 0.1); border: 2px solid rgba(245, 101, 101, 0.3); border-radius: 20px; padding: 15px 20px; margin-bottom: 25px; color: #c53030; font-size: 14px; display: flex; align-items: center; animation: shake 0.5s ease; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-10px); } 75% { transform: translateX(10px); } }
.alert-error i { margin-right: 12px; font-size: 18px; }
.login-footer { text-align: center; margin-top: 35px; padding-top: 25px; border-top: 1px solid #e2e8f0; }
.footer-text { color: #718096; font-size: 13px; margin-bottom: 8px; }
.footer-icons { display: flex; justify-content: center; gap: 15px; margin-top: 15px; }
.footer-icon { width: 35px; height: 35px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 16px; transition: transform 0.3s ease; cursor: pointer; }
.footer-icon:hover { transform: translateY(-3px); }
.floating-element { position: fixed; border-radius: 50%; background: rgba(255, 255, 255, 0.1); pointer-events: none; z-index: 1; }
.floating-element-1 { width: 300px; height: 300px; top: -150px; right: -150px; animation: float 20s ease-in-out infinite; }
.floating-element-2 { width: 200px; height: 200px; bottom: -100px; left: -100px; animation: float 15s ease-in-out infinite reverse; }
.btn-login.loading { pointer-events: none; opacity: 0.7; background: #6c757d; }
.btn-login.loading::after { content: ""; display: inline-block; width: 1em; height: 1em; margin-left: 0.5em; border: 3px solid rgba(255, 255, 255, 0.5); border-radius: 50%; border-top-color: #fff; animation: spin 1s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =============================================
   RESPONSIVE (AJUSTES PARA MÓVIL)
   ============================================= */
@media (max-width: 768px) {
    #sidebarToggle { display: inline-block !important; } 
    .sidebar { transform: translateX(-100%); width: 280px; }
    .sidebar.show { transform: translateX(0); }
    .sidebar-overlay.show { display: block; }
    
    /* RESET en móvil: Quitar márgenes en TODOS los contenedores */
    .navbar, 
    .main-wrapper, 
    .main-content, 
    main,
    body > .container,
    body > .container-fluid { 
        margin-left: 0 !important; 
        width: 100% !important;
    }
    
    body.sidebar-open { overflow: hidden; }
    .table-responsive.hide-mobile { display: none !important; }
    .mobile-cards { display: block !important; }
    .btn-group-sm .btn { font-size: 0.85rem; padding: 0.4rem 0.6rem; }
    
    .d-flex.justify-content-between { flex-direction: column; gap: 1rem; align-items: stretch !important; }
    .d-flex.justify-content-between > div { width: 100%; }
    
    .login-card { padding: 45px 35px; max-width: 380px; border-radius: 40px; }
    .login-title { font-size: 24px; }
    .login-icon { width: 75px; height: 75px; }
    .login-icon i { font-size: 38px; }
}

@media (max-width: 576px) {
    .btn-group .btn span:not(.badge) { display: none !important; }
    .btn-group .btn i { margin: 0 !important; }
    .btn-action { width: 100%; justify-content: center; }
    h1 { font-size: 1.5rem; }
    .badge { font-size: 0.75rem; padding: 0.35em 0.65em; }
    .login-card { padding: 40px 30px; border-radius: 35px; }
    .login-title { font-size: 22px; }
}

    /* Estilo para pacientes con cita hoy */
    .table-warning {
        background-color: #fff3cd !important;
        transition: all 0.3s ease;
    }
    
    .table-warning:hover {
        background-color: #ffe69c !important;
        box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
    }
    
    /* Borde izquierdo para pacientes con cita */
    tr[style*="border-left"] {
        border-left-width: 4px !important;
        border-left-style: solid !important;
    }
    
    /* Animación para el icono de calendario */
    .fa-calendar-check {
        animation: pulse 2s infinite;
    }
    
    @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.5; }
    }
   
    /* Animación sutil para resaltar citas de hoy */
    .table-warning {
        background-color: #fff3cd !important;
        transition: all 0.3s ease;
    }
    
    .table-warning:hover {
        background-color: #ffe69c !important;
        box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
    }
    
    /* Borde izquierdo para citas de hoy */
    tr[style*="border-left"] {
        border-left-width: 4px !important;
        border-left-style: solid !important;
    }
    
    .dropdown-toggle::after {
        margin-left: 0.3em;
    }
    
    /* Mejorar visibilidad de badges en dropdowns */
    .dropdown-menu .dropdown-item {
        padding: 0.5rem 1rem;
    }
    
    .dropdown-menu .dropdown-item:hover {
        background-color: #f8f9fa;
    }
/* ==========================================================================
   ESTILOS DE RECETA MÉDICA (IMPRESIÓN)
   ========================================================================== */

/* Clase especial para el body de la receta */
.body-receta {
    background-color: #eee;
    font-family: 'Times New Roman', Times, serif;
}

.receta-container {
    background: white;
    width: 21cm; /* Ancho carta/A4 */
    min-height: 14cm; /* Media carta aprox */
    margin: 20px auto;
    padding: 40px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    position: relative;
}

.header-receta {
    text-align: center;
    border-bottom: 2px solid #003366;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.doctor-name {
    font-size: 1.6rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #003366;
    margin-bottom: 5px;
}

.doctor-specialty {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.doctor-contact {
    font-size: 0.9rem;
    color: #555;
}

.info-paciente-box {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    border: 1px solid #eee;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.rx-symbol {
    font-size: 3rem;
    font-weight: bold;
    font-style: italic;
    margin-bottom: 15px;
    color: #003366;
}

.contenido-receta {
    font-size: 1.25rem;
    line-height: 1.8;
    min-height: 350px;
    white-space: pre-wrap; /* Respeta los saltos de línea */
    padding-left: 10px;
}

.footer-receta {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.firma-box {
    text-align: center;
    width: 250px;
    border-top: 1px solid #000;
    padding-top: 10px;
}

/* ESTILOS ESPECÍFICOS DE IMPRESIÓN */
@media print {
    .body-receta { 
        background: white; 
        margin: 0;
        -webkit-print-color-adjust: exact;
    }
    .receta-container {
        box-shadow: none;
        margin: 0;
        width: 100%;
        border: none;
        padding: 20px;
    }
    .no-print {
        display: none !important;
    }
    @page {
        margin: 0.5cm;
        size: auto;
    }
    .info-paciente-box {
        background-color: #f9f9f9 !important;
        border: 1px solid #ddd;
    }
}

/* ==========================================================================
   AJUSTES DE RECETA PARA CELULARES (RESPONSIVE)
   ========================================================================== */
@media screen and (max-width: 768px) {
    /* En pantallas pequeñas, quitamos el ancho fijo de papel */
    .receta-container {
        width: 100% !important;
        margin: 0 !important;
        padding: 20px !important;
        box-shadow: none !important;
        min-height: auto !important;
    }

    /* Quitamos el fondo gris para que parezca una app nativa */
    .body-receta {
        background-color: white !important;
        padding: 10px;
    }

    /* Ajustamos tamaños de fuente para lectura en móvil */
    .doctor-name { font-size: 1.3rem; }
    .rx-symbol { font-size: 2rem; }
    .contenido-receta { font-size: 1.1rem; }
    
    /* En móvil la firma puede ir centrada y más pequeña */
    .footer-receta {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        text-align: center;
    }
}

/* ==========================================================================
   CORRECCIÓN DE MENÚS DESPLEGABLES EN TABLAS
   ========================================================================== */

/* Asegura que el menú flote por encima de cualquier otro elemento */
.dropdown-menu {
    z-index: 10050 !important; /* Más alto que el navbar o modales */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); /* Sombra para que destaque más */
}

/* Evita que la celda de la tabla recorte el menú */
.table-responsive {
    overflow: visible !important; 
}

/* Opcional: Si en móvil se rompe el scroll lateral, usa esto en media query */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto !important;
    }
}

/* =========================================
   ESTILOS GESTIÓN DE TURNOS (ANIMACIONES)
   ========================================= */

.list-group-item {
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Animación de campanita */
@keyframes ring {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-15deg); }
    30% { transform: rotate(10deg); }
    40% { transform: rotate(-10deg); }
    50% { transform: rotate(5deg); }
    60% { transform: rotate(-5deg); }
    70% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.campanita-animada {
    display: inline-block;
    animation: ring 2s ease-in-out infinite;
    transform-origin: top center;
    color: #ffc107;
    font-size: 1.2rem;
}

/* Efecto de pulsación en la tarjeta de atención */
@keyframes pulse-card {
    0%, 100% { box-shadow: 0 0.5rem 1rem rgba(13, 110, 253, 0.3); }
    50% { box-shadow: 0 0.5rem 2rem rgba(13, 110, 253, 0.5); }
}

.paciente-atencion {
    animation: pulse-card 2s ease-in-out infinite;
}

.paciente-atencion .badge {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}