  /* ==========================================
     VARIABLES GLOBALES Y RESET (Asegura el scroll)
     ========================================== */
  :root {
    --bg-dark: #050508;
    --neon-blue: #00f3ff;
    --neon-cyan: #00f3ff;
    --text-white: #ffffff;
    --glass-bg: rgba(10, 10, 15, 0.85);
  }

  html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* ESTA ES LA MAGIA QUE ARREGLA EL SCROLL EN TU TABLET */
    overflow-y: auto; 
    overflow-x: hidden;
  }

  /* Contenedor principal donde se inyectan las pantallas */
  #app-container {
    padding-top: 80px; 
    padding-bottom: 60px; 
    min-height: calc(100vh - 140px);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; 
    overflow-y: visible;
  }

  /* ==========================================
     HEADER MAESTRO
     ========================================== */
  #main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--neon-blue);
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    box-sizing: border-box;
    z-index: 1000;
    color: var(--text-white);
  }

  #main-header.oculto {
    display: none !important;
  }

  .header-center {
    text-align: center;
    display: flex;
    flex-direction: column;
  }

  .hospital-name {
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: #888888;
    text-transform: uppercase;
  }

  .brand-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--neon-blue);
    text-shadow: 0 0 8px var(--neon-blue);
    letter-spacing: 1px;
  }

  /* ICONOS SVG NEÓN (Header) */
  .icon-neon {
    width: 28px;
    height: 28px;
    cursor: pointer;
    color: var(--neon-blue);
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 3px var(--neon-blue));
  }

  .icon-neon:active {
    transform: scale(0.9);
  }

  /* ==========================================
     MENÚ LATERAL (DRAWER)
     ========================================== */
  #drawer-menu {
    position: fixed;
    top: 0;
    left: -300px; 
    width: 280px; 
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-right: 1px solid var(--neon-blue);
    box-shadow: 5px 0 25px rgba(0, 243, 255, 0.1);
    z-index: 2000;
    transition: left 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
  }

  #drawer-menu.abierto {
    left: 0;
  }

  .drawer-header {
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
  }

  .drawer-links {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  /* 📍 ESTILOS DE LOS BOTONES DEL MENÚ */
  .drawer-links li {
    padding: 15px 25px;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.15s ease; /* Transición veloz para reaccionar al dedo */
    display: flex;
    align-items: center;
  }

  /* 📍 ESTADO POR DEFECTO: SIEMPRE NEÓN */
  .icon-menu-neon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    color: var(--neon-blue); /* Ícono siempre celeste */
    filter: drop-shadow(0 0 4px var(--neon-blue)); /* Brillo base permanente */
    flex-shrink: 0;
    transition: all 0.15s ease;
  }

  .texto-menu-neon {
    font-size: 1.2rem;
    color: var(--text-white); /* Letra principal en blanco para legibilidad */
    text-shadow: 0 0 8px var(--neon-blue); /* Aura brillante celeste detrás de la letra */
    font-weight: 500;
    transition: all 0.15s ease;
  }

  /* 📍 EFECTO TÁCTIL (MÓVIL): AL TOCAR LA PANTALLA */
  .drawer-links li:active {
    background: rgba(0, 243, 255, 0.15); /* Ilumina el fondo de la franja */
    border-left: 4px solid var(--neon-blue); /* Aparece la barra izquierda */
    transform: scale(0.96); /* Efecto físico: el botón se hunde al tocarlo */
  }

  .drawer-links li:active .icon-menu-neon {
    filter: drop-shadow(0 0 10px var(--neon-blue)) brightness(1.5); /* Fogonazo de luz extra */
  }

  .drawer-links li:active .texto-menu-neon {
    color: var(--neon-blue); /* La letra se tiñe de celeste al presionar */
    text-shadow: 0 0 12px var(--neon-blue);
  }

  /* Efecto Hover mantenido solo para usuarios que usen PC */
  @media (hover: hover) {
    .drawer-links li:hover {
      background: rgba(0, 243, 255, 0.05);
    }
  }

  /* 📍 BOTÓN SALIR: Alerta Roja permanente */
  .menu-salir svg {
    color: #ff2a2a;
    filter: drop-shadow(0 0 4px #ff2a2a);
    transition: all 0.15s ease;
  }
  
  .menu-salir span {
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 0 0 8px #ff2a2a;
    transition: all 0.15s ease;
  }
  
  .menu-salir:active {
    background: rgba(255, 42, 42, 0.15) !important;
    border-left: 4px solid #ff2a2a !important;
    transform: scale(0.96);
  }
  
  .menu-salir:active svg {
    filter: drop-shadow(0 0 10px #ff2a2a) brightness(1.5);
  }
  
  .menu-salir:active span {
    color: #ff2a2a;
    text-shadow: 0 0 12px #ff2a2a;
  }


  /* ==========================================
     GLOBITO DE NOTIFICACIONES (NUEVO)
     ========================================== */
  .badge-notificacion {
    background-color: #ff0055; 
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 12px;
    box-shadow: 0 0 8px rgba(255, 0, 85, 0.6);
    min-width: 20px;
    text-align: center;
    display: inline-block;
    line-height: 1.2;
  }

  /* ==========================================
     OVERLAY (Fondo oscuro al abrir menú)
     ========================================== */
  #menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 1500;
    display: none;
  }

  #menu-overlay.activo {
    display: block;
  }