@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ============================================
   AEUDJ TRANSPORTE - ESTILOS PREMIUM DARK
   ============================================ */

:root {
  --bg-gradient: linear-gradient(135deg, #0f172a 0%, #020617 100%);
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-bg-hover: rgba(51, 65, 85, 0.8);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-light: rgba(255, 255, 255, 0.2);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-glow: rgba(59, 130, 246, 0.5);

  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.4);

  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.4);

  --warning: #f59e0b;

  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
  background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.85)), url('../img/background.png');
  background-size: cover;
  background-position: center;
  /* 
     background-attachment:fixed breaks scroll on iOS/Android Safari.
     Using a fixed pseudo-element instead to achieve the same visual effect.
  */
  background-attachment: scroll;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;          /* Dynamic viewport height — respects mobile browser bars */
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* Smooth momentum scroll on iOS */
  overscroll-behavior-y: none;       /* Prevents rubber-band/bounce overshoot */
}

/* Fixed background layer — replaces background-attachment:fixed safely on mobile */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.85)), url('../img/background.png');
  background-size: cover;
  background-position: center;
  z-index: -2;
  pointer-events: none;
}

/* Fondo personalizado para el Login */
body[data-page="index"]::after {
  background: linear-gradient(rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.7)), url('../img/login-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body[data-page="estudiante"]::after {
  display: none !important;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.05) 0%, transparent 30%);
  z-index: -1;
  pointer-events: none;
}

/* ============================================
   UTILIDADES
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-gray-800 {
  color: #f1f5f9 !important;
}

.text-gray-700 {
  color: #e2e8f0 !important;
}

.text-gray-600 {
  color: var(--text-secondary) !important;
}

.text-blue-800 {
  color: #60a5fa !important;
}

.text-green-700,
.text-yellow-800,
.text-red-700 {
  color: #f8fafc !important;
}

.bg-gray-100 {
  background: rgba(0, 0, 0, 0.3) !important;
}

.border {
  border-color: var(--glass-border) !important;
}

/* ============================================
   TARJETAS GLASSMORPHISM
   ============================================ */
.card,
.card-horario {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  box-shadow: var(--card-shadow);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

div.card[style*="background:#f0f9ff"],
div.card[style*="background:#f8fafc"] {
  background: rgba(30, 41, 59, 0.6) !important;
  border-color: var(--glass-border) !important;
}

.card:hover,
.card-horario:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
}

.card-horario {
  margin-bottom: 2rem;
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1rem;
  text-align: center;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border-top-color: rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 0 20px var(--primary-glow);
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-top-color: rgba(255, 255, 255, 0.2);
}

.btn-success:hover {
  box-shadow: 0 0 20px var(--success-glow);
  transform: translateY(-2px);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border-top-color: rgba(255, 255, 255, 0.2);
}

.btn-danger:hover {
  box-shadow: 0 0 20px var(--danger-glow);
  transform: translateY(-2px);
}

.btn-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border-top-color: rgba(255, 255, 255, 0.2);
}

.btn-gray {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  border: 1px solid var(--glass-border);
}

.btn-gray:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
  display: block;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 0.5rem;
}

/* ============================================
   FORMULARIOS
   ============================================ */
.form-group {
  margin-bottom: 1rem;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  background: rgba(0, 0, 0, 0.3);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-select option {
  background: #0f172a;
  color: var(--text-primary);
}

/* ============================================
   ALERTAS
   ============================================ */
.alert {
  padding: 1rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

/* ============================================
   HORARIOS - SELECTOR
   ============================================ */
.time-slot {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  aspect-ratio: 1/1;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.time-slot:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--glass-border-light);
  transform: translateY(-4px);
}

.time-slot.selected,
.time-slot.selected-slot {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.2));
  border-color: var(--primary) !important;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
  transform: translateY(-4px) scale(1.02);
}

.time-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.time-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.25rem;
}

.time-route {
  font-size: 0.875rem;
  color: #94a3b8;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

/* ============================================
   LISTAS Y PASAJEROS
   ============================================ */
.passenger-list {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.passenger-list::-webkit-scrollbar {
  width: 6px;
}

.passenger-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.passenger-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.passenger-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.passenger-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
}

.passenger-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--glass-border-light);
}

.passenger-number {
  background: linear-gradient(135deg, var(--primary), #2563eb);
  color: white;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.passenger-info {
  flex: 1;
  margin-left: 1rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.passenger-name {
  font-weight: 700;
  color: #ffffff;
  font-size: 1.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.passenger-meta {
  font-size: 0.8rem;
  color: #94a3b8;
}

.passenger-time {
  font-size: 0.9rem;
  color: #3b82f6;
  font-weight: 850;
  background: rgba(59, 130, 246, 0.15);
  padding: 0.5rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(59, 130, 246, 0.4);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
  margin-left: 1rem;
  text-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

.action-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.status-success {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ============================================
   OTROS ELEMENTOS
   ============================================ */
.logo img {
  height: 5rem;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.page-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.spinner {
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  animation: spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  margin: 3rem auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Tablas Admin Puras */
table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
}

th {
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

tr:last-child td {
  border-bottom: none;
}

/* Sticky menu */
.sticky-menu {
  position: sticky;
  top: 1rem;
  z-index: 20;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.schedule-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s;
}

.schedule-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* Utils */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-red-400 {
  color: #f87171 !important;
}

.text-blue-400 {
  color: #60a5fa !important;
}

.text-white {
  color: #ffffff !important;
}

.text-slate-400 {
  color: #94a3b8 !important;
}

.font-bold {
  font-weight: 700 !important;
}

.w-full {
  width: 100% !important;
}

.max-w-400 {
  max-width: 400px !important;
}

.max-w-380 {
  max-width: 380px !important;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.fixed {
  position: fixed !important;
}

.z-100 {
  z-index: 100 !important;
}

.z-200 {
  z-index: 200 !important;
}

.flex {
  display: flex !important;
}

.flex-col {
  flex-direction: column !important;
}

.items-center {
  align-items: center !important;
}

.justify-center {
  justify-content: center !important;
}

.gap-2 {
  gap: 0.5rem !important;
}

.gap-3 {
  gap: 0.75rem !important;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 1rem !important;
}

/* Specific button styles for JS injection */
.btn-admin-entry {
  background: rgba(139, 92, 246, 0.2) !important;
  border: 1px solid rgba(139, 92, 246, 0.4) !important;
  color: #c4b5fd !important;
  text-shadow: 0 0 10px rgba(196,181,253,0.5);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
  display: inline-block;
  width: 100%;
  border-radius: 12px;
  font-weight: bold;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  text-decoration: none;
  text-align: center;
}

.btn-voluntario-entry {
  background: rgba(16, 185, 129, 0.2) !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  color: #6ee7b7 !important;
  text-shadow: 0 0 10px rgba(110,231,183,0.5);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
  display: inline-block;
  width: 100%;
  border-radius: 12px;
  font-weight: bold;
  padding: 0.75rem;
  text-decoration: none;
  text-align: center;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-card {
  width: 100%;
  max-width: 400px;
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 1.5rem;
  border-radius: 1.5rem;
}

.modal-title {
  margin-bottom: 1rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
}

.modal-desc {
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.modal-content-area {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-espera {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.25rem;
  border-radius: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  border: 2px solid transparent;
}

.btn-espera-camino {
  border-color: rgba(52,211,153,0.3);
  background: rgba(52,211,153,0.08);
  color: #6ee7b7;
}

.btn-espera-parada {
  border-color: rgba(59,130,246,0.3);
  background: rgba(59,130,246,0.08);
  color: #93c5fd;
}

.espera-icon-text {
  font-size: 1.4rem;
}

.espera-info {
  text-align: left;
}

.espera-label {
  font-size: 1rem;
  font-weight: 700;
}

.trip-card-interactive {
  cursor: pointer !important;
  width: 100% !important;
  transition: all 0.2s !important;
  background: rgba(59,130,246,0.1) !important;
  border: 1px solid rgba(59,130,246,0.3) !important;
}

.trip-card-interactive:hover {
  background: rgba(59,130,246,0.2) !important;
  transform: translateY(-2px) !important;
}

.trip-label-ida {
  color: #93c5fd !important;
}

.trip-label-vuelta {
  color: #c4b5fd !important;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-10 {
  margin-top: 2.5rem;
}

.pt-4 {
  padding-top: 1rem;
}

.pt-6 {
  padding-top: 1.5rem;
}

.p-6 {
  padding: 1.5rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

/* Grid Utilities */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.col-span-full { grid-column: 1 / -1; }

.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.flex-1 {
  flex: 1 !important;
}

.gap-1 {
  gap: 0.25rem !important;
}

.gap-2 {
  gap: 0.5rem !important;
}

.icon-small {
  width: 16px;
  height: 16px;
}

.icon-medium {
  width: 28px;
  height: 28px;
}

.mb-0-4 {
  margin-bottom: 0.4rem !important;
}

.mt-0-3 {
  margin-top: 0.3rem !important;
}

.mt-1-5 {
  margin-top: 1.5rem !important;
}

.mb-0-75 {
  margin-bottom: 0.75rem !important;
}

.mb-1-5 {
  margin-bottom: 1.5rem !important;
}

.mb-1-25 {
  margin-bottom: 1.25rem !important;
}

.p-2 {
  padding: 2rem !important;
}

.text-xs {
  font-size: 0.7rem !important;
}

.text-sm {
  font-size: 0.85rem !important;
}

.text-base {
  font-size: 1rem !important;
}

.text-lg {
  font-size: 1.2rem !important;
}

.text-xl-2 {
  font-size: 1.5rem !important;
}

.text-xl-3 {
  font-size: 1.35rem !important;
}

.rounded-full {
  border-radius: 50% !important;
}

.bg-blue-glow {
  background: rgba(59, 130, 246, 0.12) !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

.w-64 {
  width: 64px !important;
}

.h-64 {
  height: 64px !important;
}

.lh-1-5 {
  line-height: 1.5 !important;
}

.text-slate-500 {
  color: #64748b !important;
}

.text-slate-600 {
  color: #475569 !important;
}

.no-underline {
  text-decoration: none !important;
}

.badge-red-mini {
  display: none;
  background: #ef4444;
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  margin-left: auto;
}

.nav-item-special {
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  background: rgba(59, 130, 246, 0.05) !important;
}

.chart-container {
  width: 100%;
  height: 320px;
}

.flex-between {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.activity-header {
  font-size: 1rem;
  font-weight: 800;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-small-blue {
  font-size: 0.72rem;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
}

.spinner-mini {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(59, 130, 246, 0.2);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: pvSpin 0.8s linear infinite;
  margin: 0 auto 0.75rem;
}

@keyframes pvSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.text-orange-400 {
  color: #fb923c !important;
}

.text-purple-400 {
  color: #c4b5fd !important;
}

.text-green-400 {
  color: #34d399 !important;
}

.text-yellow-400 {
  color: #fbbf24 !important;
}

.p-0 {
  padding: 0 !important;
}

.overflow-hidden {
  overflow: hidden !important;
}

.overflow-x-auto {
  overflow-x: auto !important;
}

.h-12 {
  height: 3rem !important;
}

.w-12 {
  width: 3rem !important;
}

.rounded-2xl {
  border-radius: 1rem !important;
}

.border-white-5 {
  border: 1px solid rgba(255,255,255,0.05) !important;
}

.pt-1 {
  padding-top: 0.25rem !important;
}

.tracking-wide {
  letter-spacing: 0.025em !important;
}

.tracking-tighter {
  letter-spacing: -0.05em !important;
}

.scale-75 {
  transform: scale(0.75) !important;
}

.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
}

.min-h-420 {
  min-height: 420px !important;
}

.p-8 {
  padding: 2rem !important;
}

.gap-0-7 {
  gap: 0.7rem !important;
}

.gap-0-75 {
  gap: 0.75rem !important;
}

.gap-0-85 {
  gap: 0.85rem !important;
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr) !important;
}

.rounded-1-2 {
  border-radius: 1.2rem !important;
}

.p-1-4 {
  padding: 1.4rem !important;
}

.letter-spacing-0-08 {
  letter-spacing: 0.08em !important;
}

.mb-1-25 {
  margin-bottom: 1.25rem !important;
}

.mb-1-5 {
  margin-bottom: 1.5rem !important;
}

.max-w-900 {
  max-width: 900px !important;
}

.bg-dark-900 {
  background: #111827 !important;
}

.rounded-1-5 {
  border-radius: 1.5rem !important;
}

.p-1-25 {
  padding: 1.25rem !important;
}

.p-1 {
  padding: 0.75rem !important;
}

.p-2 {
  padding: 1rem !important;
}

.gap-0-4 {
  gap: 0.4rem !important;
}

.bg-slate-900 {
  background: #0f172a !important;
}

.border-white-06 {
  border: 1px solid rgba(255,255,255,0.06) !important;
}

.rounded-1 {
  border-radius: 1rem !important;
}

.p-0-3 {
  padding: 0.3rem !important;
}

.bg-blue-gradient {
  background: linear-gradient(135deg,#4f75ff,#3451d1) !important;
}

.text-white {
  color: #fff !important;
}

.lh-0-3 {
  line-height: 0.3rem !important;
}

.mt-0-3 {
  margin-top: 0.3rem !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.font-900 {
  font-weight: 900 !important;
}

.text-1-4 {
  font-size: 1.4rem !important;
}

.text-1-1 {
  font-size: 1.1rem !important;
}

.text-0-82 {
  font-size: 0.82rem !important;
}

.text-0-72 {
  font-size: 0.72rem !important;
}

.text-0-8 {
  font-size: 0.8rem !important;
}

.text-1 {
  font-size: 1rem !important;
}

.text-2xl {
  font-size: 1.5rem !important;
}

.text-3xl {
  font-size: 1.875rem !important;
}

.font-extrabold {
  font-weight: 800 !important;
}

.uppercase {
  text-transform: uppercase !important;
}

.tracking-widest {
  letter-spacing: 0.1em !important;
}

.icon-inline {
  display: inline-block;
  vertical-align: middle;
}

.flex-wrap {
  flex-wrap: wrap !important;
}

.justify-end {
  justify-content: flex-end !important;
}

.pb-0 {
  padding-bottom: 0 !important;
}

.opacity-6 {
  opacity: 0.6 !important;
}

.mr-4px {
  margin-right: 4px !important;
}

.badge-point-espera {
  font-size:0.6rem !important;
  font-weight:800 !important;
  background:rgba(52,211,153,0.12) !important;
  color:#34d399 !important;
  border:1px solid rgba(52,211,153,0.3) !important;
  padding:0.12rem 0.5rem !important;
  border-radius:999px !important;
  flex-shrink:0 !important;
}

.divider-vertical {
  width:1px !important;
  background:rgba(255,255,255,0.1) !important;
  margin:0 0.2rem !important;
}

.empty-state-container {
  text-align:center !important;
  padding: 4rem 1.5rem !important;
  opacity: 0.6 !important;
}

.empty-state-icon {
  width:60px !important;
  height:60px !important;
  margin: 0 auto 1.5rem !important;
  background: rgba(255,255,255,0.05) !important;
  color: var(--text-muted) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid var(--glass-border) !important;
}

.empty-state-title {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin-bottom: 0.5rem !important;
}

.empty-state-desc {
  color: var(--text-muted) !important;
  font-size: 0.9rem !important;
  max-width: 260px !important;
  margin: 0 auto !important;
}

.success-state-container {
  text-align:center !important;
  padding: 3rem 1.5rem !important;
  background: rgba(16,185,129,0.1) !important;
  border-radius: 1.5rem !important;
  border: 1px solid rgba(16,185,129,0.2) !important;
  margin-top: 1rem !important;
}

.success-state-icon {
  width:60px !important;
  height:60px !important;
  margin: 0 auto 1.5rem !important;
  background: rgba(16,185,129,0.15) !important;
  color: #34d399 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 0 25px rgba(16,185,129,0.2) !important;
}

.success-state-title {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: #34d399 !important;
  margin-bottom: 0.5rem !important;
}

.success-state-desc {
  color: #6ee7b7 !important;
  font-size: 0.95rem !important;
  opacity: 0.8 !important;
  max-width: 300px !important;
  margin: 0 auto !important;
}

.ml-4 {
  margin-left: 4px !important;
}

.pr-2-5 {
  padding-right: 2.5rem !important;
}

.right-10 {
  right: 10px !important;
}

.pos-relative {
  position: relative !important;
}

.pos-absolute {
  position: absolute !important;
}

.bg-none {
  background: none !important;
}

.outline-none {
  outline: none !important;
}

.cursor-pointer {
  cursor: pointer !important;
}

.bg-red-20 {
  background: rgba(239,68,68,0.2) !important;
}

.text-red-light {
  color: #fca5a5 !important;
}

.border-red-30 {
  border-color: rgba(239,68,68,0.3) !important;
}

.flex-0-3 {
  flex: 0.3 !important;
}

.font-mono-tracking-tighter {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
  letter-spacing: -0.05em !important;
}

.bg-blue-10 {
  background: rgba(59,130,246,0.1) !important;
}

.border-blue-25 {
  border: 1px solid rgba(59,130,246,0.25) !important;
}

.border-blue-20 {
  border: 1px solid rgba(59,130,246,0.2) !important;
}

.bg-blue-05 {
  background: rgba(59,130,246,0.05) !important;
}

.border-red-30-light {
  border: 1px solid rgba(239,68,68,0.3) !important;
}

.bg-red-05 {
  background: rgba(239,68,68,0.05) !important;
}

.text-13px {
  font-size: 13px !important;
}

.margin-0 {
  margin: 0 !important;
}

.custom-select-arrow {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="rgba(255,255,255,0.3)"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"/></svg>') !important;
  background-repeat: no-repeat !important;
  background-position: right 1.5rem center !important;
  background-size: 1.2em !important;
}

.max-w-xl {
  max-width: 36rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.space-y-4>*+* {
  margin-top: 1rem;
}

.space-y-5>*+* {
  margin-top: 1.25rem;
}

.uppercase {
  text-transform: uppercase;
}

.tracking-widest {
  letter-spacing: 0.1em;
}

.font-semibold {
  font-weight: 600;
}

.text-xl {
  font-size: 1.25rem;
}

.text-\[10px\] {
  font-size: 10px;
}

/* ============================================
   UI REDESIGN - MOCKUP STYLE
   ============================================ */
.login-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.glass-card {
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  width: 100%;
  max-width: 420px;
  overflow: visible !important;
  margin: 1rem auto;
}

.glass-card-wide {
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 2rem auto;
  border-radius: 2rem;
}

.mockup-logo {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  background: white;
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 99;
}

.mockup-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 1rem;
  color: #94a3b8;
  width: 1.25rem;
  height: 1.25rem;
  z-index: 10;
  pointer-events: none;
}

.premium-input {
  width: 100%;
  padding: 1rem 3rem 1rem 3rem;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  color: white;
  font-size: 16px !important;
  transition: all 0.3s ease;
}

.premium-input:focus {
  outline: none;
  background: rgba(30, 41, 59, 0.8);
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.premium-select {
  appearance: none;
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  color: white;
  font-size: 1rem;
}

.toggle-password {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  z-index: 10;
}

.toggle-password:hover {
  color: #94a3b8;
}

.btn-premium {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to right, #3b82f6, #2563eb);
  color: white;
  border: none;
  border-radius: 1.25rem;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px -5px rgba(37, 99, 235, 0.4);
}

.btn-arrow {
  width: 1.25rem;
  height: 1.25rem;
}

.btn-pill-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-pill-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.icon-left {
  margin-right: 0.75rem;
  width: 1.25rem;
}

.icon-right {
  margin-left: auto;
  width: 1rem;
}

.icon-inline {
  width: 1rem;
  display: inline;
  vertical-align: middle;
}

.icon-xs {
  width: 1rem;
  height: 1rem;
  display: inline-block;
  vertical-align: middle;
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
}

.login-footer {
  margin-top: 3rem;
  text-align: center;
  color: #94a3b8;
}

.footer-location {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.75rem;
  opacity: 0.6;
}

.footer-dot-indicator {
  width: 30px;
  height: 4px;
  background: #3b82f6;
  border-radius: 2px;
  margin: 1rem auto;
}

@media (max-width: 480px) {
  .card {
    padding: 1.5rem;
  }

  .mockup-logo {
    width: 80px;
    height: 80px;
  }
}

/* ============================================
   ADMIN SIDEBAR & DASHBOARD — PREMIUM REDESIGN
   ============================================ */
html, body {
  height: 100%;
}

body.admin-page {
  background: #020617 !important;
}
body.admin-page::after {
  display: none !important;
}

.admin-wrapper {
  display: flex;
  min-height: 100%;
  background: linear-gradient(160deg, #060d1f 0%, #0a1628 50%, #060d1f 100%);
}

/* ── Sidebar ─────────────────────────────── */
.sidebar-wrapper {
  width: 270px;
  height: 100vh;
  height: 100dvh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.25rem;
  z-index: 50;
  flex-shrink: 0;
  border-radius: 0 !important;
  border-left: none !important;
  border-top: none !important;
  border-bottom: none !important;
  background: rgba(10, 18, 40, 0.6) !important;
  border-right: 1px solid rgba(255,255,255,0.06) !important;
  box-shadow: 4px 0 30px rgba(0,0,0,0.3) !important;
  backdrop-filter: blur(30px) !important;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 2.5rem;
  padding: 0.75rem 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-logo {
  width: 42px;
  height: 42px;
  background: white;
  border-radius: 12px;
  padding: 2px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  flex-shrink: 0;
}

.sidebar-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border-radius: 0.875rem;
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  position: relative;
}

.nav-item i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
}

.nav-item:hover i {
  transform: translateX(2px);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.08));
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 2px 12px rgba(59,130,246,0.1), inset 0 1px 0 rgba(255,255,255,0.05);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 8px rgba(59,130,246,0.6);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.logout-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  width: 100%;
  background: none;
  border: none;
  color: #f87171;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 0.875rem;
  transition: all 0.25s ease;
}

.logout-link:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
}

/* ── Content area ────────────────────────── */
.content-wrapper {
  flex: 1;
  padding: 2rem 2.5rem;
  min-height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(59,130,246,0.25) transparent;
  background: radial-gradient(ellipse at 80% 0%, rgba(59,130,246,0.05) 0%, transparent 55%),
              radial-gradient(ellipse at 20% 100%, rgba(99,102,241,0.04) 0%, transparent 50%);
}
.content-wrapper::-webkit-scrollbar { width: 4px; }
.content-wrapper::-webkit-scrollbar-track { background: transparent; }
.content-wrapper::-webkit-scrollbar-thumb { background: rgba(59,130,246,0.2); border-radius: 99px; }

/* ── Content header ──────────────────────── */
.content-header {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 2rem !important;
}

.content-header h1 {
  background: linear-gradient(135deg, #f8fafc 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

/* ── Stat Cards ──────────────────────────── */
.stat-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  border-radius: 50%;
  opacity: 0.04;
  transform: translate(30%, -30%);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Blue stat glow */
.stat-card:nth-child(1) { border-top: 2px solid rgba(59,130,246,0.4); }
.stat-card:nth-child(1)::after { background: #3b82f6; width: 160px; height: 160px; opacity: 0.06; }

/* Orange stat glow */
.stat-card:nth-child(2) { border-top: 2px solid rgba(249,115,22,0.4); }
.stat-card:nth-child(2)::after { background: #f97316; width: 160px; height: 160px; opacity: 0.06; }

/* Green stat glow */
.stat-card:nth-child(3) { border-top: 2px solid rgba(16,185,129,0.4); }
.stat-card:nth-child(3)::after { background: #10b981; width: 160px; height: 160px; opacity: 0.06; }

/* Blue/indigo stat glow */
.stat-card:nth-child(4) { border-top: 2px solid rgba(99,102,241,0.4); }

/* ── Glass card upgrade for dashboard ───── */
.glass-card {
  background: rgba(12, 22, 48, 0.5) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.07) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.04) !important;
  border-radius: 1.25rem !important;
}

.admin-screen {
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 1200px) {
  .dashboard-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .admin-wrapper {
    flex-direction: column;
    /* On mobile, content scrolls normally — sidebar is at bottom */
    padding-bottom: 70px; /* space for bottom nav bar */
  }

  .sidebar-wrapper {
    /* Fixed bottom navigation bar on mobile */
    width: 100%;
    height: auto;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    padding: .5rem .75rem;
    padding-bottom: calc(.5rem + env(safe-area-inset-bottom));
    z-index: 100;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
    border-bottom: none !important;
    border-radius: 0 !important;
  }

  /* Hide logo/title in mobile bottom bar */
  .sidebar-header {
    display: none;
  }
  .sidebar-footer {
    display: none;
  }

  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: .25rem;
    justify-content: space-around;
    /* Hide scrollbar */
    scrollbar-width: none;
  }
  .sidebar-nav::-webkit-scrollbar { display: none; }

  .nav-item {
    flex-direction: column;
    gap: .2rem;
    padding: .4rem .6rem;
    border-radius: .65rem;
    font-size: .58rem;
    min-width: 52px;
    align-items: center;
    text-align: center;
  }
  .nav-item span {
    display: block; /* keep labels visible */
    font-size: .58rem;
    font-weight: 700;
    white-space: nowrap;
  }
  .nav-item i {
    width: 18px;
    height: 18px;
  }

  /* Content takes full page height and scrolls naturally */
  .content-wrapper {
    height: auto;
    min-height: calc(100dvh - 70px);
    overflow-y: visible;
    padding: 1rem;
    padding-bottom: 1.5rem;
    -webkit-overflow-scrolling: auto;
  }
}

.spinner-small {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.waitlist-divider {
  margin: 1.5rem 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f59e0b;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.waitlist-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(245, 158, 11, 0.4), transparent);
}

.compact-passenger-item.waiting {
  background: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.15);
}

.compact-passenger-item.waiting .compact-name {
  color: #fcd34d;
}

.interactive-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-card:hover {
  transform: translateY(-5px);
  background: var(--glass-bg-hover) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 10px 40px -10px var(--primary-glow);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 650px;
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border-light) !important;
  border-radius: 2rem;
  overflow: hidden;
  animation: modalIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--danger);
}

.modal-body {
  padding: 2rem;
}

.waitlist-modal-group {
  margin-bottom: 2rem;
}

.waitlist-modal-title {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.waitlist-modal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.75rem;
  margin-bottom: 0.5rem;
  border-left: 3px solid transparent;
}

.waitlist-modal-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-left-color: var(--warning);
}

/* ============================================
   CONFIRMED VIEW & ACTION BUTTONS
   ============================================ */
.cambio-item {
  position: relative;
  overflow: hidden;
}

.cambio-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.cambio-item:hover::after {
  transform: translateX(100%);
}

.btn-action span {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.confirmed-actions .btn-action {
  flex-direction: column;
  padding: 1.25rem 0.5rem;
  border-radius: 1.25rem;
  min-height: 80px;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.4s ease-out forwards;
}

.confirm-badge {
  width: 80px;
  height: 80px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}

.confirmed-schedule-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s ease;
}

.confirmed-schedule-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-action:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

.btn-action.btn-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-action.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-action.btn-info {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-action i {
  margin-right: 0.5rem;
}

/* ============================================
   SCHEDULE GRID & TIME SLOTS
   ============================================ */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  padding: 0.5rem 0;
}

.time-slot {
  background: rgba(30, 41, 59, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.25rem 1rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  position: relative;
  user-select: none;
}

.time-slot:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.time-slot.selected {
  background: rgba(59, 130, 246, 0.25);
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3), 0 8px 20px rgba(59, 130, 246, 0.2);
}

.time-slot .time-icon {
  font-size: 1.5rem;
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.time-slot .time-icon svg,
.time-slot .time-icon i {
  width: 28px;
  height: 28px;
}

.time-slot .time-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f8fafc;
}

.time-slot .time-route {
  font-size: 0.75rem;
  color: #94a3b8;
  font-family: monospace;
}

.time-slot .checkmark {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 18px;
  height: 18px;
  background: #3b82f6;
  border-radius: 50%;
}

.time-slot .checkmark::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 11px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
}

.time-slot .checkmark.hidden {
  display: none;
}

@media (max-width: 768px) {
  .schedule-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

/* ============================================
   MOBILE OPTIMIZATION
   ============================================ */
@media (max-width: 768px) {

  html,
  body {
    overflow-x: hidden !important;
    position: relative;
    width: 100% !important;
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
  }

  .admin-wrapper {
    overflow-x: hidden;
  }

  input,
  select,
  textarea,
  button {
    font-size: 16px !important; /* prevents iOS auto-zoom on form fields */
  }

  .content-wrapper {
    padding: 1rem 0.85rem !important;
    padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important; /* clear bottom nav */
    height: auto !important;
    overflow-y: visible !important;
    overflow-x: hidden;
  }

  .content-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: .75rem;
    margin-bottom: 1.25rem !important;
  }

  .glass-card {
    padding: 1.25rem !important;
    margin: .75rem 0 !important;
    border-radius: 1.25rem !important;
    width: 100% !important;
    max-width: none !important;
  }

  .stat-card {
    padding: 1rem !important;
  }



  .overflow-x-auto {
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.5rem;
    padding: 0 0.5rem;
  }

  #adminHorarioGrid {
    padding-bottom: 1rem;
    scrollbar-width: none;
  }

  #adminHorarioGrid::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 480px) {
  .text-4xl {
    font-size: 1.75rem !important;
  }

  .text-3xl {
    font-size: 1.5rem !important;
  }

  .btn-premium {
    padding: 1.25rem !important;
    font-size: 0.9rem !important;
  }

  .premium-input,
  .premium-select {
    padding: 0.875rem 1rem 0.875rem 3rem !important;
  }
}

/* ============================================
   ADMIN TOAST NOTIFICATIONS
   ============================================ */
.admin-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  padding: 1.25rem 2rem;
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  min-width: 320px;
  justify-content: center;
}

.admin-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
}

.admin-toast.error {
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.admin-toast.success {
  border-color: rgba(52, 211, 153, 0.4);
  color: #10b981;
}

.admin-toast i {
  width: 20px;
  height: 20px;
}

/* ============================================
   GESTIÓN DE PERSONAL (PLUS JAKARTA SANS)
   ============================================ */
.jakarta-font {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.staff-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.staff-page-title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #f8fafc;
}

.staff-page-sub {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-top: 0.25rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.staff-topbar-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

.staff-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: 'Plus Jakarta Sans', sans-serif;
  text-decoration: none;
}

.staff-btn-ghost {
  background: rgba(30, 41, 59, 0.6);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.staff-btn-ghost:hover {
  background: rgba(51, 65, 85, 0.7);
  color: #f8fafc;
}

.staff-btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

.staff-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.staff-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.staff-stat-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s;
}

.staff-stat-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.staff-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.staff-stat-icon.blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.staff-stat-icon.green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.staff-stat-icon.amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.staff-stat-icon.purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.staff-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: #f8fafc;
}

.staff-stat-lbl {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 2px;
  font-weight: 500;
}

.staff-content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.staff-panel {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  backdrop-filter: blur(16px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.staff-panel-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.staff-panel-title {
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #f8fafc;
}

.staff-search-wrap {
  position: relative;
  flex: 1;
  max-width: 300px;
}

.staff-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #475569;
  font-size: 0.95rem;
  pointer-events: none;
}

.staff-search-input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  color: #f8fafc;
  font-size: 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.2s;
}

.staff-search-input::placeholder {
  color: #475569;
}

.staff-search-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.staff-filter-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.1);
  overflow-x: auto;
}

.staff-filter-tab {
  padding: 0.4rem 1rem;
  border-radius: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  color: #94a3b8;
  background: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  white-space: nowrap;
}

.staff-filter-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
}

.staff-filter-tab.active {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.3);
}

.staff-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom-left-radius: 1.5rem;
  border-bottom-right-radius: 1.5rem;
}

.staff-table-new {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  flex: 1;
}

.staff-table-new th {
  padding: 0.75rem 1.5rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #475569;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
}

.staff-table-new td {
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.875rem;
  vertical-align: middle;
  color: #f8fafc;
}

.staff-table-new tr:last-child td {
  border-bottom: none;
}

.staff-table-new tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.staff-avatar-new {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  color: white;
}

.staff-name-new {
  font-weight: 600;
  font-size: 0.9rem;
  color: #f8fafc;
}

.staff-meta-new {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 1px;
}

.staff-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.staff-badge-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.staff-badge-green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.staff-badge-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.staff-badge-gray {
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.staff-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.staff-dot-green {
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.staff-dot-gray {
  background: #475569;
}

.staff-row-actions {
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
}

.staff-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
}

.staff-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.15);
}

.staff-icon-btn.danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.staff-right-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.staff-quick-add-panel {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 1.5rem;
  backdrop-filter: blur(16px);
}

.staff-qa-title {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #f8fafc;
}

.staff-qa-field {
  margin-bottom: 0.875rem;
}

.staff-qa-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 0.4rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.staff-qa-input,
.staff-qa-select {
  width: 100%;
  padding: 0.7rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  color: #f8fafc;
  font-size: 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.2s;
  appearance: none;
}

.staff-qa-input:focus,
.staff-qa-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.staff-qa-input::placeholder {
  color: #475569;
}

.staff-qa-select option {
  background: #0f172a;
}

.staff-btn-add-full {
  width: 100%;
  padding: 0.85rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
  transition: all 0.2s;
  margin-top: 0.25rem;
}

.staff-btn-add-full:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.staff-activity-panel {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(16px);
  flex: 1;
}

.staff-act-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.staff-act-item:last-child {
  border-bottom: none;
}

.staff-act-dot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
}

.staff-act-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.staff-act-text {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
  color: #f8fafc;
}

.staff-act-time {
  font-size: 0.7rem;
  color: #475569;
  margin-top: 2px;
}

@media (max-width: 1024px) {
  .staff-content-grid {
    grid-template-columns: 1fr;
  }

  .staff-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .staff-stats-row {
    grid-template-columns: 1fr;
  }

  .staff-topbar {
    flex-direction: column;
  }
}

/* ============================================
   SWITCH TOGGLE
   ============================================ */
.switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 18px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: #3b82f6;
}

input:checked+.slider:before {
  transform: translateX(16px);
}

/* ============================================
   GESTIÓN DE PENALIDADES
   ============================================ */

/* Sección raíz */
#screen-penalidades {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Grid de 3 stat cards */
#screen-penalidades>div:first-child {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Stat cards dentro de penalidades */
#screen-penalidades .stat-card.glass-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-radius: 1.25rem;
  max-width: none;
  margin: 0;
  width: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

#screen-penalidades .stat-card.glass-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.stat-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.stat-header svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-sub {
  font-size: 0.72rem;
  color: #475569;
  font-weight: 500;
  margin: 0;
}

/* Tabs */
.pen-tabs {
  display: flex;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  padding: 0.35rem;
  width: fit-content;
}

.pen-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  color: #64748b;
  background: none;
  font-family: inherit;
  letter-spacing: 0.02em;
}

.pen-tab:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.05);
}

.pen-tab.active {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.pen-tab.active-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.3);
}

/* Paneles de tabla — ocupa ancho completo */
#penTab-penalizados,
#penTab-historial {
  width: 100%;
  border-radius: 1.25rem;
  overflow: hidden;
  max-width: none;
  margin: 0;
}

/* Tabla */
.pen-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  background: transparent;
}

.pen-table thead tr {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.pen-table th {
  padding: 0.9rem 1.25rem;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #475569;
  white-space: nowrap;
  background: transparent;
}

.pen-table td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  vertical-align: middle;
  font-size: 0.875rem;
}

.pen-table tbody tr:last-child td {
  border-bottom: none;
}

.pen-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Celdas especiales */
.pen-table .name-cell {
  font-weight: 700;
  color: #f8fafc !important;
  font-size: 0.95rem;
  white-space: nowrap;
}

.pen-table .mat-cell {
  font-family: monospace;
  font-size: 0.8rem !important;
  color: #94a3b8 !important;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.25rem 0.6rem !important;
  border-radius: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

/* Contador de faltas */
.falta-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.falta-count.low {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.falta-count.med {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.falta-count.high {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Badge de estado */
.pen-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.pen-badge.activo {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.pen-badge.penalizado {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Faltas active indicators */
.active-faltas-container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.active-faltas-dots {
  display: flex;
  gap: 4px;
}

.active-falta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.active-falta-dot.inactive {
  background: #334155;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.4);
}

.active-falta-dot.active {
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
}

@keyframes pulse-red {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px #ef4444; }
  50% { opacity: .4; transform: scale(0.85); box-shadow: 0 0 2px #ef4444; }
}

.active-falta-dot.pulse-red {
  background: #ef4444;
  animation: pulse-red 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Libro de Registro de Faltas (Logbook) */
.logbook-card {
  background: rgba(15, 23, 42, 0.4);
  border: 1.5px dashed rgba(251, 191, 36, 0.25);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  margin-top: 1rem;
}

.logbook-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(251, 191, 36, 0.15);
  padding-bottom: 1.2rem;
  margin-bottom: 1.2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.logbook-title-area {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.logbook-subtitle {
  font-size: 0.68rem;
  font-weight: 800;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.85;
}

.logbook-date-display {
  font-size: 1.2rem;
  font-weight: 800;
  color: #f8fafc;
  font-family: 'Outfit', sans-serif;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.logbook-nav {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.4rem 0.6rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.logbook-nav-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.logbook-nav-btn:hover:not(:disabled) {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  transform: scale(1.05);
}

.logbook-nav-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.logbook-nav-info {
  font-size: 0.78rem;
  color: #64748b;
  font-family: monospace;
  font-weight: 600;
}

.logbook-table-container {
  overflow-x: auto;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(0, 0, 0, 0.15);
}

.logbook-table {
  width: 100%;
  border-collapse: collapse;
}

.logbook-table th {
  background: rgba(0, 0, 0, 0.25);
  padding: 0.8rem 1rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #475569;
  letter-spacing: 0.08em;
}

.logbook-table td {
  padding: 0.9rem 1rem;
  font-size: 0.85rem;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.logbook-table tr:last-child td {
  border-bottom: none;
}

.logbook-table tr:hover td {
  background: rgba(255, 255, 255, 0.015);
}

.logbook-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  gap: 1rem;
}

.logbook-empty-icon {
  width: 48px;
  height: 48px;
  color: #475569;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Botón Ver Faltas (Calendario) */
.btn-ver-faltas {
  background: rgba(251, 191, 36, 0.08) !important;
  border: 1px solid rgba(251, 191, 36, 0.25) !important;
  color: #fbbf24 !important;
  padding: 0.35rem 0.65rem !important;
  border-radius: 0.5rem !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  transition: all 0.2s ease !important;
  outline: none !important;
}

.btn-ver-faltas:hover {
  background: rgba(251, 191, 36, 0.16) !important;
  border-color: rgba(251, 191, 36, 0.4) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.12) !important;
}

.btn-ver-faltas i, .btn-ver-faltas svg {
  color: #fbbf24 !important;
  width: 13px !important;
  height: 13px !important;
}

/* Modal de Detalle de Faltas Históricas */
.faltas-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
}

.faltas-detail-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.faltas-detail-dialog {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.98));
  border: 1.5px solid rgba(251, 191, 36, 0.2);
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 800px;
  width: 95%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(251, 191, 36, 0.05);
  transform: scale(0.92) translateY(10px);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faltas-detail-overlay.visible .faltas-detail-dialog {
  transform: scale(1) translateY(0);
}

/* ── Modal close X button (top-right corner) ── */
.faltas-modal-close-x {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: #64748b;
  font-size: 1rem;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  z-index: 10;
  line-height: 1;
  font-family: inherit;
}
.faltas-modal-close-x:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
  transform: rotate(90deg);
}

/* ── Modal action buttons container ── */
.faltas-modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  justify-content: flex-end;
}

/* ── Cerrar button (secondary) ── */
.faltas-modal-btn-cerrar {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.55rem 1.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  border-radius: 0.6rem;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}
.faltas-modal-btn-cerrar:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.15);
}

/* ── Levantar button (primary green) ── */
.faltas-modal-btn-levantar {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  padding: 0.55rem 1.3rem;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  border-radius: 0.6rem;
  cursor: pointer;
  outline: none;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}
.faltas-modal-btn-levantar:hover {
  background: linear-gradient(135deg, #34d399, #10b981);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
  transform: translateY(-1px);
}
.faltas-modal-btn-levantar:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Disabled state button ── */
.faltas-modal-btn-disabled {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.02);
  color: #475569;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.55rem 1.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  border-radius: 0.6rem;
  cursor: not-allowed;
  outline: none;
  opacity: 0.7;
}

/* ── Modal pagination bar ── */
.faltas-modal-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding: 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.025);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.faltas-modal-pagination-info {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ── Pagination nav button (Anterior / Siguiente) ── */
.faltas-modal-page-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  border-radius: 0.6rem;
  border: 1px solid rgba(59, 130, 246, 0.25);
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}
.faltas-modal-page-btn:hover:not(:disabled) {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(59, 130, 246, 0.4);
  color: #bfdbfe;
  transform: translateY(-1px);
}
.faltas-modal-page-btn:disabled {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
  color: #334155;
  cursor: not-allowed;
  transform: none;
}

/* Botón levantar */
.btn-levantar {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.btn-levantar:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

.btn-levantar:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* Botón notificar */
.btn-notificar {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.btn-notificar:hover {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(59, 130, 246, 0.55);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn-notificar:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* Buscador y filtro de fecha en penalidades */
#penSearch,
#penDate {
  background: transparent;
  border: none;
  color: #f1f5f9;
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
  width: 100%;
  color-scheme: dark;
}

#penSearch::placeholder {
  color: #475569;
}

#penDate {
  color-scheme: dark;
  cursor: pointer;
  width: auto;
  min-width: 130px;
}

.pen-filter-bar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.pen-filter-search {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  padding: 0.6rem 1rem;
  transition: border-color 0.2s;
}

.pen-filter-search:focus-within {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.pen-filter-search svg {
  color: #475569;
  flex-shrink: 0;
}

.pen-filter-date {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  padding: 0.6rem 1rem;
  transition: border-color 0.2s;
  white-space: nowrap;
}

.pen-filter-date:focus-within {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.pen-filter-date svg {
  color: #475569;
  flex-shrink: 0;
}

/* Estado vacío */
.empty-pen {
  text-align: center;
  padding: 3.5rem 2rem;
  color: #475569;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

/* Paginación de penalidades */
.pen-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.15);
}

.pen-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.pen-page-btn:hover:not(:disabled) {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  color: #a5b4fc;
  transform: translateY(-1px);
}

.pen-page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pen-page-info {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Scroll personalizado */
.custom-scroll {
  overflow-x: auto;
}

.custom-scroll::-webkit-scrollbar {
  height: 5px;
}

.custom-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.custom-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

/* Responsive penalidades */
@media (max-width: 768px) {
  #screen-penalidades>div:first-child {
    grid-template-columns: 1fr !important;
  }

  .pen-tabs {
    width: 100%;
  }

  .pen-tab {
    flex: 1;
    text-align: center;
    font-size: 0.78rem;
    padding: 0.5rem 0.75rem;
  }
}

/* ============================================
   USER GREETING PILL
   ============================================ */
.user-greeting-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  animation: fadeInDown 0.6s ease-out;
}

.user-greeting-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.greeting-icon {
  font-size: 1.1rem;
}

.greeting-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.greeting-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  font-weight: 700;
}

.greeting-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.greeting-container-votar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.greeting-container-voluntario {
  margin-right: auto;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .greeting-container-votar {
    justify-content: center;
    margin-bottom: 1rem;
  }
  
  .user-greeting-pill {
    padding: 0.3rem 0.8rem;
  }
  
  .greeting-name {
    font-size: 0.8rem;
  }
}

/* Recuperación de Contraseña */
.recovery-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
}

.recovery-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.recovery-dialog {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
  border: 1.5px solid rgba(59, 130, 246, 0.25);
  border-radius: 1.75rem;
  padding: 2.25rem 2rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 40px rgba(59, 130, 246, 0.05);
  transform: scale(0.9) translateY(15px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.recovery-overlay.visible .recovery-dialog {
  transform: scale(1) translateY(0);
}

