/* =========================================================================
   FamyPets Global Admin Dashboard - Estilos CSS Premium (Estética Oscura)
   ========================================================================= */

:root {
  /* Paleta de Colores de Alto Contraste */
  --bg-primary: #0a0f1d;
  --bg-secondary: #121829;
  --bg-card: rgba(30, 41, 59, 0.45);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Colores de Acento */
  --primary: #4f46e5;
  --primary-hover: #6366f1;
  --primary-light: rgba(79, 70, 229, 0.15);
  
  --success: #10b981;
  --success-light: rgba(16, 185, 129, 0.15);
  
  --warning: #f59e0b;
  --warning-light: rgba(245, 158, 11, 0.15);
  
  --error: #ef4444;
  --error-light: rgba(239, 68, 68, 0.15);
  
  --info: #06b6d4;
  --info-light: rgba(6, 182, 212, 0.15);

  --premium: #fbbf24;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  height: 100vh;
}

/* =========================================================================
   Contenedor Principal y Grid
   ========================================================================= */
.admin-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  height: 100vh;
}

/* =========================================================================
   Barra Lateral (Sidebar)
   ========================================================================= */
.sidebar {
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 24px;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.brand-icon {
  font-size: 36px;
  color: var(--primary);
}

.brand-logo {
  height: 40px;
  width: auto;
}

.brand-name h1 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-name span {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
}

/* Menú de Navegación */
.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 32px;
  flex-grow: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.nav-item.active {
  background-color: var(--primary-light);
  color: var(--primary-hover);
}

.nav-item.active .material-icons-round {
  color: var(--primary-hover);
}

.nav-item .material-icons-round {
  color: var(--text-muted);
  font-size: 22px;
  transition: color 0.2s ease;
}

.nav-item:hover .material-icons-round {
  color: var(--text-primary);
}

/* Footer Sidebar */
.sidebar-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
}

.user-role {
  font-size: 11px;
  color: var(--text-muted);
}

.btn-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: var(--error);
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-logout:hover {
  background-color: var(--error);
  color: white;
}

/* =========================================================================
   Contenido Principal (Main Content)
   ========================================================================= */
.main-content {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  padding: 32px;
}

/* Header */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.header-title h2 {
  font-size: 26px;
  font-weight: 800;
}

.header-title p {
  font-size: 13px;
  color: var(--text-secondary);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Toggle Switch */
.toggle-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #334155;
  transition: .4s;
}

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

input:checked + .slider {
  background-color: var(--primary);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--primary);
}

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

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Badges de Estado */
.connection-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.connection-badge.demo {
  background-color: var(--warning-light);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.connection-badge.live {
  background-color: var(--success-light);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.connection-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

/* =========================================================================
   Pestañas de Control (Tab Panes)
   ========================================================================= */
.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================================
   Sección Dashboard - Tarjetas KPI
   ========================================================================= */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.kpi-card {
  background-color: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.kpi-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.kpi-card.blue::after { background-color: var(--primary); }
.kpi-card.gold::after { background-color: var(--premium); }
.kpi-card.emerald::after { background-color: var(--success); }
.kpi-card.purple::after { background-color: #a855f7; }
.kpi-card.red::after { background-color: var(--error); }

.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blue .kpi-icon { background-color: rgba(79, 70, 229, 0.15); color: #818cf8; }
.gold .kpi-icon { background-color: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.emerald .kpi-icon { background-color: rgba(16, 185, 129, 0.15); color: #34d399; }
.purple .kpi-icon { background-color: rgba(168, 85, 247, 0.15); color: #c084fc; }
.red .kpi-icon { background-color: rgba(239, 68, 68, 0.15); color: #f87171; }

.kpi-icon .material-icons-round {
  font-size: 26px;
}

.kpi-data {
  display: flex;
  flex-direction: column;
}

.kpi-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.5px;
}

.kpi-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 4px;
}

.kpi-trend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
}

.text-green { color: var(--success); }
.text-red { color: var(--error); }

/* Paneles de Detalle */
.dashboard-details-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

.card {
  background-color: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 24px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.panel-header h3 {
  font-size: 16px;
  font-weight: 700;
}

.badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge.red-bg { background-color: var(--error-light); color: var(--error); border: 1px solid rgba(239, 68, 68, 0.2); }
.badge.blue-bg { background-color: var(--primary-light); color: var(--primary-hover); border: 1px solid rgba(79, 70, 229, 0.2); }
.badge.orange-bg { background-color: var(--warning-light); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.2); }

/* Listado de Mascotas Perdidas */
.lost-pets-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 280px;
  overflow-y: auto;
}

.lost-pet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.lost-pet-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lost-pet-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background-color: rgba(255, 255, 255, 0.05);
}

.lost-pet-details h4 {
  font-size: 13px;
  font-weight: 600;
}

.lost-pet-details p {
  font-size: 11px;
  color: var(--text-secondary);
}

.lost-pet-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  background-color: var(--error-light);
  color: var(--error);
  padding: 4px 8px;
  border-radius: 6px;
}

.lost-pet-location .material-icons-round {
  font-size: 14px;
}

.empty-state {
  text-align: center;
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 13px;
}

/* Donut Chart */
.chart-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  padding: 12px 0;
}

.chart-donut {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(
    #4f46e5 0% 70%,
    #eab308 70% 90%,
    #06b6d4 90% 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-donut::after {
  content: '';
  position: absolute;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
}

.donut-text {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.donut-val {
  font-size: 22px;
  font-weight: 800;
}

.donut-lbl {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.chart-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* =========================================================================
   Tablas y Formularios (Usuarios / Comunidad / Parámetros)
   ========================================================================= */
.table-container {
  padding: 0;
  overflow: hidden;
}

.table-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  gap: 16px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: 12px;
  flex-grow: 1;
  max-width: 450px;
}

.search-box input {
  background: none;
  border: none;
  color: var(--text-primary);
  width: 100%;
  font-size: 13px;
  outline: none;
}

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

.search-box .material-icons-round {
  color: var(--text-muted);
}

.dropdown-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.dropdown-filter select {
  background-color: #1e293b;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: 12px;
  outline: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

/* Estructura de Tabla */
.responsive-table {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th,
.admin-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
}

.admin-table th {
  font-weight: 600;
  color: var(--text-muted);
  background-color: rgba(255, 255, 255, 0.01);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.admin-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.01);
}

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

/* User Avatar en Tabla */
.user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--text-primary);
}

.user-name-wrapper {
  display: flex;
  flex-direction: column;
}

.user-name-wrapper .main-name {
  font-weight: 600;
}

.user-name-wrapper .sub-role {
  font-size: 10px;
  color: var(--text-muted);
}

/* Estado de Cuenta en Tabla */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-pill.activo { background-color: var(--success-light); color: var(--success); }
.status-pill.suspendido { background-color: var(--warning-light); color: var(--warning); }
.status-pill.premium { background-color: rgba(251, 191, 36, 0.15); color: var(--premium); border: 1px solid rgba(251, 191, 36, 0.2); }

/* Acciones en Fila */
.row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.btn-icon {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.btn-icon.delete:hover {
  background-color: var(--error-light);
  color: var(--error);
}

.btn-icon.suspend:hover {
  background-color: var(--warning-light);
  color: var(--warning);
}

.btn-icon.view:hover {
  background-color: var(--primary-light);
  color: var(--primary-hover);
}

.btn-icon .material-icons-round {
  font-size: 18px;
}

/* =========================================================================
   Sección de Moderación y Comunidad
   ========================================================================= */
.moderation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.scroll-panel {
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Logs de Reportes */
.reports-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.report-item {
  padding: 16px;
  border: 1px solid var(--border-color);
  background-color: rgba(255, 255, 255, 0.01);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.report-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.report-reporter {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.report-body {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-primary);
}

.report-message-text {
  font-style: italic;
  color: var(--text-secondary);
  border-left: 3px solid var(--warning);
  padding-left: 10px;
  margin: 6px 0;
}

.report-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.btn-sm-primary, .btn-sm-danger {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-sm-primary { background-color: var(--primary-light); color: var(--primary-hover); }
.btn-sm-primary:hover { background-color: var(--primary); color: white; }

.btn-sm-danger { background-color: var(--error-light); color: var(--error); }
.btn-sm-danger:hover { background-color: var(--error); color: white; }

/* Grupos de Comunidad */
.groups-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.group-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: 14px;
}

.group-item-info h4 {
  font-size: 13px;
  font-weight: 600;
}

.group-item-info p {
  font-size: 11px;
  color: var(--text-secondary);
}

/* =========================================================================
   Sección Formulario de Parámetros
   ========================================================================= */
.form-container {
  max-width: 650px;
}

.form-container h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group label .material-icons-round {
  color: var(--primary);
  font-size: 18px;
}

.form-group input[type="number"] {
  background-color: #1e293b;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  font-weight: 500;
}

.price-input {
  display: flex;
  align-items: center;
  background-color: #1e293b;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0 12px;
}

.price-input input {
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 12px;
  width: 100%;
  font-size: 14px;
  outline: none;
  font-weight: 500;
}

.currency-symbol, .currency-code {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.input-helper {
  font-size: 11px;
  color: var(--text-muted);
}

.switch-label {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.switch-label .material-icons-round {
  color: var(--warning);
  font-size: 18px;
}

.switch-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.switch-status-text {
  font-size: 12px;
  font-weight: 700;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s ease;
  margin-top: 12px;
}

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

.text-warning { color: var(--warning); }

/* =========================================================================
   Modal de Detalles
   ========================================================================= */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  width: 100%;
  max-width: 550px;
  animation: modalSlide 0.3s ease;
}

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

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

.close-modal-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
}

.modal-body {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.btn-secondary {
  background-color: #1e293b;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: #334155;
}

.modal-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.modal-info-row .lbl {
  color: var(--text-secondary);
}

.modal-info-row .val {
  font-weight: 600;
}

.modal-pets-section h4 {
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 700;
}

.modal-pets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.modal-pet-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.modal-pet-card h5 {
  font-size: 12px;
  font-weight: 600;
}

.modal-pet-card p {
  font-size: 10px;
  color: var(--text-secondary);
}

/* =========================================================================
   Pantalla de Acceso (Login Overlay)
   ========================================================================= */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.login-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.login-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-logo-icon {
  font-size: 54px;
  color: var(--primary);
  margin-bottom: 12px;
}

.login-header h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.login-header p {
  font-size: 12px;
  color: var(--text-secondary);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-mode-select {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 10px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}

.radio-label input {
  cursor: pointer;
  accent-color: var(--primary);
}

.login-btn {
  width: 100%;
  padding: 12px;
}

