/* ============================================================
   CYBER-NEO.CSS — Tema Cyberpunk Neón
   Se activa con body[data-theme="cyber"] (ciclo del botón de tema).
   Sobrescribe los tokens del design system y añade efectos de glow.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&display=swap');

/* ── TOKENS DEL TEMA CYBER ── */
body[data-theme="cyber"] {
  /* Controles nativos en oscuro (casillas, listas de <select>, calendarios).
     Ver la nota del tema oscuro en main.css. */
  color-scheme: dark;
  /* Fondos: casi negro con tinte violeta profundo */
  --color-bg:       #060010;
  --color-bg-2:     #0d0221;
  --color-bg-3:     #150a2e;
  --color-bg-4:     #23124d;
  --color-surface:  rgba(13,2,33,0.92);
  --color-border:   rgba(0,240,255,0.40);
  --color-border-2: rgba(176,38,255,0.30);

  /* Acentos neón */
  --color-indigo:       #00f0ff;   /* cian */
  --color-indigo-2:     #22d3ee;
  --color-indigo-light: rgba(0,240,255,0.12);
  --color-purple:       #b026ff;
  --color-violet:       #d400ff;

  /* Especialidades en versión neón */
  --color-dental:        #00e5ff;
  --color-dental-bg:     rgba(0,229,255,0.10);
  --color-dental-border: rgba(0,229,255,0.35);
  --color-vet:           #00ffa3;
  --color-vet-bg:        rgba(0,255,163,0.10);
  --color-vet-border:    rgba(0,255,163,0.35);

  /* Cielo (asistente de IA) en versión neón */
  --color-cielo:        #b026ff;
  --color-cielo-2:      #d400ff;
  --color-cielo-bg:     rgba(176,38,255,0.12);
  --color-cielo-border: rgba(176,38,255,0.40);
  --grad-cielo:         linear-gradient(135deg, #b026ff 0%, #d400ff 55%, #00f0ff 100%);
  --color-pro:          #00f0ff;
  --color-pro-2:        #00ffa3;
  --color-pro-bg:       rgba(0,240,255,0.12);
  --color-pro-border:   rgba(0,240,255,0.40);
  --color-pro-text:     #00f0ff;
  --grad-pro:           linear-gradient(135deg, #00f0ff 0%, #00ffa3 55%, #b026ff 100%);

  /* Cupones / ofertas */
  --color-coupon:        #ff2bd6;
  --color-coupon-bg:     rgba(255,43,214,0.12);
  --color-coupon-border: rgba(255,43,214,0.40);

  /* Estados */
  --color-gold:       #ffd000;
  --color-gold-2:     #ffe14d;
  --color-gold-light: rgba(255,208,0,0.14);
  --color-green:      #00ffa3;
  --color-green-bg:   rgba(0,255,163,0.12);
  --color-red:        #ff2b5e;
  --color-red-bg:     rgba(255,43,94,0.14);
  --color-orange:     #ff8a00;
  --color-orange-bg:  rgba(255,138,0,0.12);
  --color-success:    #00ffa3;
  --color-warning:    #ffd000;
  --color-error:      #ff2b5e;
  --color-primary:    #00f0ff;

  /* Texto: blanco con tinte cian */
  --color-text:   #e7fbff;
  --color-text-2: #9fb8d6;
  /* Antes #6b7ba6: sobre #060010 se quedaba en un gris que no se leía. */
  --color-text-3: #8d9dc6;

  /* ── ALIAS ──
     Se repiten aquí a propósito. Un alias definido con var() se resuelve una
     sola vez, en el bloque donde se escribe; si solo estuviera en :root se
     quedaría con los colores del tema claro y el texto desaparecería sobre
     este fondo casi negro. Misma lista en main.css (claro y oscuro). */
  --color-text-1:        var(--color-text);
  --color-bg-1:          var(--color-bg-2);
  --color-primary-hover: var(--color-indigo-2);
  --color-indigo-1:      var(--color-indigo);
  --color-danger:        var(--color-red);
  --color-bg-alt:        var(--color-bg-3);
  --bg-card:             var(--color-bg-2);
  --color-bg-dark:       #060010;
  --color-indigo-text:   var(--color-indigo);
  --color-dental-text:   var(--color-dental);
  --color-vet-text:      var(--color-vet);
  --color-coupon-text:   var(--color-coupon);
  --color-gold-text:     var(--color-gold);
  --color-green-text:    var(--color-green);
  --color-red-text:      var(--color-red);
  --color-orange-text:   var(--color-orange);
  --color-amber-text:    var(--color-gold);
  --chip-ok-bg:       rgba(0,255,163,0.14);   --chip-ok-text:      #00ffa3;
  --chip-warn-bg:     rgba(255,208,0,0.14);   --chip-warn-text:    #ffd000;
  --chip-bad-bg:      rgba(255,43,94,0.16);   --chip-bad-text:     #ff8fa8;
  --chip-info-bg:     rgba(0,240,255,0.14);   --chip-info-text:    #00f0ff;
  --chip-neutral-bg:  rgba(159,184,214,0.14); --chip-neutral-text: #9fb8d6;

  /* Gradientes neón */
  --grad-indigo:  linear-gradient(135deg, #00f0ff 0%, #b026ff 100%);
  --grad-primary: linear-gradient(135deg, #00f0ff 0%, #b026ff 100%);
  --grad-gold:    linear-gradient(135deg, #ffd000 0%, #ff8a00 100%);
  --grad-dental:  linear-gradient(135deg, #00e5ff 0%, #00f0ff 100%);
  --grad-vet:     linear-gradient(135deg, #00ffa3 0%, #00e5ff 100%);
  --grad-coupon:  linear-gradient(135deg, #ff2bd6 0%, #ff2b5e 100%);
  --grad-hero:    linear-gradient(160deg, #060010 0%, #10052a 50%, #060010 100%);
  --grad-card:    linear-gradient(145deg, #0d0221 0%, #10052a 100%);

  /* Sombras convertidas en glows neón */
  --shadow-sm:  0 0 6px rgba(0,240,255,0.10);
  --shadow-md:  0 0 16px rgba(0,240,255,0.14), 0 2px 8px rgba(0,0,0,0.5);
  --shadow-lg:  0 0 28px rgba(176,38,255,0.22), 0 8px 32px rgba(0,0,0,0.6);
  --shadow-glow:      0 0 26px rgba(0,240,255,0.55);
  --shadow-gold-glow: 0 0 22px rgba(255,208,0,0.5);
  --shadow-coupon:    0 0 22px rgba(255,43,214,0.45);
}

/* ── FONDO GLOBAL: rejilla + resplandores ── */
body[data-theme="cyber"] {
  background-color: var(--color-bg);
  position: relative;
}
body[data-theme="cyber"]::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(0,240,255,0.10), transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(176,38,255,0.12), transparent 45%),
    linear-gradient(rgba(0,240,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}
body[data-theme="cyber"] #app,
body[data-theme="cyber"] .navbar,
body[data-theme="cyber"] .toast-container { position: relative; z-index: 1; }

/* ── TIPOGRAFÍA TECH ── */
body[data-theme="cyber"] h1,
body[data-theme="cyber"] h2,
body[data-theme="cyber"] .dash-title,
body[data-theme="cyber"] .nav-logo {
  font-family: 'Orbitron', 'Nunito', 'Inter', sans-serif;
  letter-spacing: 0.5px;
}

/* Logo con glow */
body[data-theme="cyber"] .nav-logo span {
  text-shadow: 0 0 10px rgba(0,240,255,0.6);
}

/* Texto con gradiente neón brillante */
body[data-theme="cyber"] .gradient-text,
body[data-theme="cyber"] .gradient-gold-text {
  filter: drop-shadow(0 0 8px rgba(0,240,255,0.5));
}

/* ── NAVBAR ── */
body[data-theme="cyber"] .navbar {
  background: rgba(6,0,16,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,240,255,0.35);
  box-shadow: 0 0 24px rgba(0,240,255,0.15);
}
body[data-theme="cyber"] .nav-link:hover,
body[data-theme="cyber"] .nav-link.active {
  color: var(--color-indigo);
  text-shadow: 0 0 8px rgba(0,240,255,0.6);
}

/* ── BOTONES ── */
body[data-theme="cyber"] .btn-primary {
  background: var(--grad-indigo);
  border: 1px solid rgba(0,240,255,0.6);
  color: #04121a;
  font-weight: 700;
  letter-spacing: 0.4px;
  box-shadow: 0 0 16px rgba(0,240,255,0.45);
}
body[data-theme="cyber"] .btn-primary:hover {
  box-shadow: 0 0 28px rgba(0,240,255,0.75);
  transform: translateY(-1px);
}
body[data-theme="cyber"] .btn-success {
  background: linear-gradient(135deg,#00ffa3,#00e5ff);
  color: #04121a; border: 1px solid rgba(0,255,163,0.6);
  box-shadow: 0 0 16px rgba(0,255,163,0.4);
}
body[data-theme="cyber"] .btn-danger {
  background: linear-gradient(135deg,#ff2b5e,#ff2bd6);
  color: #fff; border: 1px solid rgba(255,43,94,0.6);
  box-shadow: 0 0 16px rgba(255,43,94,0.4);
}
body[data-theme="cyber"] .btn-ghost {
  background: rgba(0,240,255,0.04);
  border: 1px solid rgba(0,240,255,0.30);
  color: var(--color-text);
}
body[data-theme="cyber"] .btn-ghost:hover {
  border-color: rgba(0,240,255,0.7);
  box-shadow: 0 0 14px rgba(0,240,255,0.3);
}

/* ── CARDS / SUPERFICIES ── */
body[data-theme="cyber"] .card,
body[data-theme="cyber"] .stat-card,
body[data-theme="cyber"] .modal-box,
body[data-theme="cyber"] .dash-sidebar,
body[data-theme="cyber"] .table-wrapper {
  background: var(--grad-card);
  border: 1px solid rgba(0,240,255,0.22);
  box-shadow: 0 0 20px rgba(0,240,255,0.08), inset 0 0 40px rgba(176,38,255,0.05);
}
body[data-theme="cyber"] .card:hover,
body[data-theme="cyber"] .stat-card:hover {
  border-color: rgba(0,240,255,0.5);
  box-shadow: 0 0 26px rgba(0,240,255,0.22);
}

/* Iconos de stats con glow */
body[data-theme="cyber"] .stat-icon {
  box-shadow: 0 0 18px rgba(0,240,255,0.35);
}

/* ── SIDEBAR (dashboard/admin) ── */
body[data-theme="cyber"] .dash-sidebar {
  border-right: 1px solid rgba(0,240,255,0.30);
}
body[data-theme="cyber"] .dash-nav-item.active {
  background: rgba(0,240,255,0.10);
  color: var(--color-indigo);
  box-shadow: inset 3px 0 0 var(--color-indigo), 0 0 14px rgba(0,240,255,0.2);
  text-shadow: 0 0 8px rgba(0,240,255,0.5);
}
body[data-theme="cyber"] .dash-nav-item:hover {
  background: rgba(176,38,255,0.08);
}

/* ── INPUTS / FORMULARIOS ── */
body[data-theme="cyber"] .form-input,
body[data-theme="cyber"] .form-select,
body[data-theme="cyber"] input,
body[data-theme="cyber"] select,
body[data-theme="cyber"] textarea {
  background: rgba(6,0,16,0.6);
  border: 1px solid rgba(0,240,255,0.28);
  color: var(--color-text);
}
body[data-theme="cyber"] .form-input:focus,
body[data-theme="cyber"] .form-select:focus,
body[data-theme="cyber"] input:focus,
body[data-theme="cyber"] select:focus,
body[data-theme="cyber"] textarea:focus {
  border-color: var(--color-indigo);
  box-shadow: 0 0 0 3px rgba(0,240,255,0.15), 0 0 16px rgba(0,240,255,0.3);
  outline: none;
}
body[data-theme="cyber"] .form-input::placeholder { color: var(--color-text-3); }

/* ── BADGES NEÓN ── */
body[data-theme="cyber"] .badge {
  border-width: 1px;
  border-style: solid;
  backdrop-filter: blur(4px);
}
body[data-theme="cyber"] .badge-pro,
body[data-theme="cyber"] .badge-active {
  background: rgba(0,255,163,0.12);
  color: #00ffa3;
  border-color: rgba(0,255,163,0.5);
  box-shadow: 0 0 12px rgba(0,255,163,0.3);
}
body[data-theme="cyber"] .badge-free {
  background: rgba(0,240,255,0.10);
  color: #00f0ff;
  border-color: rgba(0,240,255,0.4);
}
body[data-theme="cyber"] .badge-pending {
  background: rgba(255,208,0,0.12);
  color: #ffd000;
  border-color: rgba(255,208,0,0.5);
  box-shadow: 0 0 12px rgba(255,208,0,0.25);
}
body[data-theme="cyber"] .badge-suspended {
  background: rgba(255,43,94,0.12);
  color: #ff2b5e;
  border-color: rgba(255,43,94,0.5);
  box-shadow: 0 0 12px rgba(255,43,94,0.25);
}

/* ── TABLAS ── */
body[data-theme="cyber"] .table thead th {
  color: var(--color-indigo);
  border-bottom: 1px solid rgba(0,240,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.72rem;
}
body[data-theme="cyber"] .table tbody tr:hover {
  background: rgba(0,240,255,0.05);
}
body[data-theme="cyber"] .table tbody td {
  border-bottom: 1px solid rgba(176,38,255,0.12);
}

/* ── MODAL ── */
body[data-theme="cyber"] .modal-overlay {
  background: rgba(3,0,10,0.75);
  backdrop-filter: blur(8px);
}
body[data-theme="cyber"] .modal-box {
  border: 1px solid rgba(0,240,255,0.35);
  box-shadow: 0 0 40px rgba(0,240,255,0.25), 0 0 80px rgba(176,38,255,0.15);
}

/* ── TOASTS ── */
body[data-theme="cyber"] .toast {
  background: rgba(13,2,33,0.95);
  border: 1px solid rgba(0,240,255,0.35);
  box-shadow: 0 0 22px rgba(0,240,255,0.25);
}

/* ── SCROLLBAR NEÓN ── */
body[data-theme="cyber"] ::-webkit-scrollbar { width: 10px; height: 10px; }
body[data-theme="cyber"] ::-webkit-scrollbar-track { background: #0d0221; }
body[data-theme="cyber"] ::-webkit-scrollbar-thumb {
  background: linear-gradient(#00f0ff,#b026ff);
  border-radius: 8px;
}

/* ── AVATAR / LOGOS ── */
body[data-theme="cyber"] .nav-avatar,
body[data-theme="cyber"] .dash-avatar,
body[data-theme="cyber"] .biz-logo {
  box-shadow: 0 0 16px rgba(0,240,255,0.4);
}
