/* ==========================================================================
   ROOTJUMPS TECH — MASTER DESIGN SYSTEM & SHARED TOKENS (V3 PRO)
   Identidad Oficial: Deep Space Abyss (#030712), Neón Cyan (#00f2fe),
   Neón Emerald (#10b981), Mint (#34d399), Violet (#8b5cf6), Obsidian Glass.
   Compatible con Floating Island Navbar & Persistent Cart Dock FAB.
   ========================================================================== */

:root {
  /* ── 1. Paleta Maestra RootJumps ── */
  --rj-cyan: #00f2fe;
  --rj-cyan-dark: #0284c7;
  --rj-cyan-glow: rgba(0, 242, 254, 0.35);
  --rj-cyan-border: rgba(0, 242, 254, 0.35);

  --rj-emerald: #10b981;
  --rj-emerald-dark: #059669;
  --rj-emerald-glow: rgba(16, 185, 129, 0.35);
  --rj-emerald-border: rgba(16, 185, 129, 0.35);

  --rj-mint: #34d399;
  --rj-mint-glow: rgba(52, 211, 153, 0.3);

  --rj-violet: #8b5cf6;
  --rj-violet-glow: rgba(139, 92, 246, 0.3);

  --rj-amber: #f59e0b;
  --rj-amber-glow: rgba(245, 158, 11, 0.3);

  --rj-coral: #d97757;

  /* ── 2. Lienzo Deep Space Abyss & Glassmorphism ── */
  --rj-bg-abyss: #030712;
  --rj-bg-surface: #061024;
  --rj-bg-card: rgba(6, 16, 38, 0.85);
  --rj-bg-card-hover: rgba(10, 26, 60, 0.95);
  --rj-bg-island: rgba(4, 10, 24, 0.85);
  --rj-bg-input: rgba(3, 7, 18, 0.9);

  /* ── 3. Bordes & Resplandores ── */
  --rj-border-subtle: rgba(255, 255, 255, 0.08);
  --rj-border-medium: rgba(255, 255, 255, 0.14);
  --rj-border-highlight: rgba(0, 242, 254, 0.45);

  /* ── 4. Tipografía ── */
  --rj-font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --rj-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --rj-font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  --rj-text-pure: #ffffff;
  --rj-text-main: #f1f5f9;
  --rj-text-muted: #94a3b8;
  --rj-text-subtle: #64748b;

  /* ── 5. Sombras & Elevaciones ── */
  --rj-shadow-card: 0 16px 36px -10px rgba(0, 0, 0, 0.85);
  --rj-shadow-glow-cyan: 0 0 35px -5px rgba(0, 242, 254, 0.35);
  --rj-shadow-glow-emerald: 0 0 35px -5px rgba(16, 185, 129, 0.35);

  /* ── 6. Transiciones ── */
  --rj-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   AMBIENTE AURORA BOREAL DEEP TECH (FONDO VIVO)
   ========================================================================== */
.aurora-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 620px;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 242, 254, 0.22), rgba(16, 185, 129, 0.16) 40%, rgba(139, 92, 246, 0.10) 70%, transparent 100%);
  filter: blur(55px);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   FLOATING ISLAND NAVBAR (CÁPSULA CENTRADA CON LINKS NO-WRAP)
   ========================================================================== */
.island-nav-wrapper {
  position: sticky;
  top: 18px;
  z-index: 1000;
  padding: 0 16px;
  width: 100%;
}

.floating-island-nav {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  background: var(--rj-bg-island);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--rj-border-medium);
  border-radius: 9999px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.85), 0 0 30px -5px rgba(0, 242, 254, 0.12);
  transition: var(--rj-transition);
  box-sizing: border-box;
}

.floating-island-nav:hover {
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.95), 0 0 35px 0px rgba(0, 242, 254, 0.22);
}

.island-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.island-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rj-cyan), var(--rj-emerald));
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.4);
}

.island-brand-icon img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
}

.island-brand-icon-inner {
  width: 100%;
  height: 100%;
  background: #030712;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--rj-font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffffff;
}

.island-brand-text {
  font-family: var(--rj-font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  white-space: nowrap;
}

.island-brand-text span {
  color: var(--rj-emerald);
}

/* Enlaces del Island Nav - Estrictamente 1 sola línea */
.island-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--rj-font-mono);
  font-size: 0.76rem;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap; /* PREVIENE ROTURA DE LÍNEA */
  font-weight: 600;
  transition: var(--rj-transition);
}

.nav-pill-active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.18), rgba(16, 185, 129, 0.18));
  color: var(--rj-cyan) !important;
  border: 1px solid rgba(0, 242, 254, 0.45);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.22);
}

.nav-pill-inactive {
  color: var(--rj-text-muted);
  border: 1px solid transparent;
}

.nav-pill-inactive:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.island-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--rj-cyan);
  box-shadow: 0 0 8px var(--rj-cyan);
  animation: rjPulse 2s infinite;
}

.island-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.island-btn-admin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--rj-text-main);
  font-family: var(--rj-font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--rj-transition);
  white-space: nowrap;
}

.island-btn-admin:hover {
  border-color: rgba(0, 242, 254, 0.5);
  background: rgba(0, 242, 254, 0.1);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.25);
}

/* Mobile Toggle Hamburger */
.island-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 6px;
}

/* ==========================================================================
   BOTÓN DE CARRITO FLOTANTE PERSISTENTE (DOCK FAB EN TODAS LAS VISTAS)
   ========================================================================== */
.floating-cart-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1050;
  background: linear-gradient(135deg, rgba(6, 24, 20, 0.94) 0%, rgba(2, 12, 10, 0.94) 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.9), 0 0 30px 2px rgba(16, 185, 129, 0.35);
  border-radius: 9999px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  color: #ffffff;
  transition: var(--rj-transition);
  font-family: var(--rj-font-mono);
}

.floating-cart-fab:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(52, 211, 153, 0.85);
  box-shadow: 0 20px 45px -5px rgba(0, 0, 0, 0.95), 0 0 40px 6px rgba(16, 185, 129, 0.6);
  color: #ffffff;
}

.fab-icon-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.fab-ping-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--rj-emerald);
  box-shadow: 0 0 10px var(--rj-emerald);
  animation: rjPulse 2s infinite;
}

.fab-text-box {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.1;
}

.fab-tag {
  font-size: 0.65rem;
  color: var(--rj-mint);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fab-data {
  font-size: 0.8rem;
  font-weight: 900;
  color: #ffffff;
  margin-top: 2px;
}

.fab-data span {
  color: var(--rj-mint);
}

.fab-arrow {
  color: var(--rj-text-muted);
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.floating-cart-fab:hover .fab-arrow {
  transform: translateX(3px);
  color: #ffffff;
}

/* ==========================================================================
   TARJETAS MODERNAS V3 (VIBRANT CARDS)
   ========================================================================== */
.vibrant-card-cyan {
  background: linear-gradient(160deg, rgba(6, 16, 38, 0.92) 0%, rgba(2, 6, 18, 0.88) 100%);
  border: 1px solid rgba(0, 242, 254, 0.28);
  box-shadow: var(--rj-shadow-card), 0 0 25px -5px rgba(0, 242, 254, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 24px;
  padding: 24px;
  transition: var(--rj-transition);
  position: relative;
  overflow: hidden;
}

.vibrant-card-cyan:hover {
  border-color: rgba(0, 242, 254, 0.65);
  box-shadow: var(--rj-shadow-card), 0 0 35px 2px rgba(0, 242, 254, 0.32);
  transform: translateY(-4px);
}

.vibrant-card-portfolio {
  background: linear-gradient(160deg, rgba(16, 24, 38, 0.9) 0%, rgba(6, 10, 18, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--rj-shadow-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 24px;
  padding: 24px;
  transition: var(--rj-transition);
  position: relative;
  overflow: hidden;
}

.vibrant-card-portfolio:hover {
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: var(--rj-shadow-card), 0 0 30px -2px rgba(16, 185, 129, 0.28);
  transform: translateY(-3px);
}

/* ==========================================================================
   BOTONES Y LLAMADAS A LA ACCIÓN
   ========================================================================== */
.glow-btn-radiant {
  background: linear-gradient(135deg, var(--rj-cyan) 0%, var(--rj-emerald) 100%);
  color: #030712 !important;
  font-family: var(--rj-font-mono);
  font-weight: 900;
  border: none;
  border-radius: 9999px;
  padding: 12px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 0 25px -3px rgba(0, 242, 254, 0.55);
  text-decoration: none;
  transition: var(--rj-transition);
}

.glow-btn-radiant:hover {
  box-shadow: 0 0 38px 4px rgba(16, 185, 129, 0.8);
  transform: scale(1.025);
  color: #030712 !important;
}

.btn-pill-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-radius: 9999px;
  padding: 11px 24px;
  font-family: var(--rj-font-mono);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--rj-transition);
}

.btn-pill-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   BADGES & CHIPS
   ========================================================================== */
.badge-neon-cyan {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(0, 242, 254, 0.14);
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: var(--rj-cyan);
  font-family: var(--rj-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-neon-emerald {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--rj-mint);
  font-family: var(--rj-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* ==========================================================================
   ANIMACIONES CLAVE
   ========================================================================== */
@keyframes rjPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.45;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (BREAKPOINTS)
   ========================================================================== */
@media (max-width: 1160px) {
  .nav-kbd {
    display: none !important;
  }
  .nav-pill {
    padding: 5px 9px;
    font-size: 0.73rem;
    gap: 4px;
  }
  .island-nav-links {
    gap: 2px;
  }
  .island-brand-text {
    font-size: 0.95rem;
  }
}

@media (max-width: 980px) {
  .island-nav-links {
    display: none;
  }
  .island-mobile-toggle {
    display: block;
  }
  .floating-cart-fab {
    bottom: 20px;
    right: 20px;
    padding: 8px 16px;
  }
}

/* ==========================================================================
   TARJETAS COMPACTAS & ELEGANTES V3 (COMPACT CARDS GRID)
   ========================================================================== */
.compact-cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.compact-bento-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin: 0 auto;
}

.compact-card {
  background: linear-gradient(165deg, rgba(6, 16, 38, 0.95) 0%, rgba(2, 6, 18, 0.92) 100%);
  border: 1px solid rgba(0, 242, 254, 0.22);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--rj-transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.75);
}

.compact-card:hover {
  border-color: rgba(0, 242, 254, 0.6);
  box-shadow: 0 18px 40px -8px rgba(0, 0, 0, 0.85), 0 0 25px -5px rgba(0, 242, 254, 0.25);
  transform: translateY(-3px);
}

.compact-card-emerald {
  border-color: rgba(16, 185, 129, 0.25);
}
.compact-card-emerald:hover {
  border-color: rgba(16, 185, 129, 0.65);
  box-shadow: 0 18px 40px -8px rgba(0, 0, 0, 0.85), 0 0 25px -5px rgba(16, 185, 129, 0.25);
}

.compact-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.compact-squircle-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--rj-cyan);
}

.compact-squircle-icon.emerald {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--rj-mint);
}

.compact-squircle-icon.amber {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--rj-amber);
}

.compact-thumb-box {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  background: #020512;
  border: 1px solid var(--rj-border-subtle);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compact-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.compact-card-title {
  font-family: var(--rj-font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.compact-card-desc {
  font-size: 0.84rem;
  color: var(--rj-text-muted);
  line-height: 1.5;
  margin: 0 0 14px 0;
}

.compact-pill-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 18px 0;
  padding: 0;
  list-style: none;
}

.compact-pill-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--rj-text-main);
}

.compact-card-footer {
  border-top: 1px solid var(--rj-border-subtle);
  padding-top: 14px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.compact-price-val {
  font-family: var(--rj-font-mono);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--rj-mint);
}

.compact-price-label {
  font-size: 0.7rem;
  color: var(--rj-text-muted);
  display: block;
}

/* ==========================================================================
   VANGUARDIA FUSION V2+V3 (SUPABASE/STRIPE AURORA + RAYCAST COMMAND PALETTE)
   ========================================================================== */

/* 1. Malla de Aurora Dinámica Supabase / Stripe */
.aurora-mesh-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 15% 15%, rgba(0, 242, 254, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(16, 185, 129, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.05) 0%, transparent 40%);
  filter: blur(60px);
}

/* 2. Micro-Tabs Interactivos para Tarjetas Técnicas */
.compact-tab-header {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}

.compact-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 7px;
  color: var(--rj-text-muted);
  font-family: var(--rj-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.compact-tab-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.compact-tab-pane {
  display: none;
  animation: fadeInPane 0.2s ease-in-out;
}

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

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

/* 3. Badges de SLA, Latencia & Métricas Raycast / Warp */
.sla-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.sla-badge {
  font-family: var(--rj-font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--rj-text-main);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sla-badge.cyan {
  border-color: rgba(0, 242, 254, 0.3);
  color: var(--rj-cyan);
}

.sla-badge.emerald {
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--rj-mint);
}

/* 4. Command Palette Flotante (Raycast Style - Ctrl + K) */
.command-palette-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 18, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  animation: fadeInPalette 0.18s ease-out;
}

.command-palette-overlay.active {
  display: flex;
}

.command-palette-dialog {
  width: 100%;
  max-width: 620px;
  background: linear-gradient(165deg, rgba(10, 16, 32, 0.98) 0%, rgba(4, 8, 18, 0.98) 100%);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 35px -5px rgba(0, 242, 254, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.command-palette-search {
  display: flex;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 14px;
}

.command-palette-search i {
  color: var(--rj-cyan);
  font-size: 1.15rem;
}

.command-palette-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-family: var(--rj-font-sans);
  font-size: 1.05rem;
  font-weight: 600;
}

.command-palette-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
}

.command-palette-kbd {
  font-family: var(--rj-font-mono);
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--rj-text-muted);
}

.command-palette-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.command-palette-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  color: #FFFFFF;
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  cursor: pointer;
}

.command-palette-item:hover,
.command-palette-item.selected {
  background: rgba(0, 242, 254, 0.1);
  border-color: rgba(0, 242, 254, 0.3);
  color: #FFFFFF;
  transform: translateX(4px);
}

.command-palette-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.command-palette-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--rj-cyan);
}

.command-palette-item-icon.emerald {
  color: var(--rj-mint);
  background: rgba(16, 185, 129, 0.1);
}

.command-palette-item-icon.amber {
  color: var(--rj-amber);
  background: rgba(245, 158, 11, 0.1);
}

.command-palette-item-text {
  display: flex;
  flex-direction: column;
}

.command-palette-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #FFFFFF;
}

.command-palette-item-desc {
  font-size: 0.75rem;
  color: var(--rj-text-muted);
}

.command-palette-footer {
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--rj-text-muted);
  font-family: var(--rj-font-mono);
}

@keyframes fadeInPalette {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   PORTAL DE CLIENTES & AUTENTICACIÓN (OPCIÓN 2 + 3 HYBRID)
   ========================================================================== */

.auth-page-wrapper {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  z-index: 2;
}

.form-card {
  width: 100%;
  max-width: 460px;
  background: linear-gradient(165deg, rgba(6, 16, 38, 0.92) 0%, rgba(2, 6, 18, 0.95) 100%);
  border: 1px solid var(--rj-border-subtle);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 242, 254, 0.08);
  backdrop-filter: blur(16px);
}

.form-card-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-brand-badge {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px auto;
  border-radius: 14px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

.auth-brand-badge img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.form-title {
  font-family: var(--rj-font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.form-subtitle {
  font-size: 0.85rem;
  color: var(--rj-text-muted);
  line-height: 1.5;
}

.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-label {
  display: block;
  font-family: var(--rj-font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--rj-cyan);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  background: rgba(4, 9, 24, 0.85);
  border: 1px solid var(--rj-border-subtle);
  border-radius: 10px;
  color: #ffffff;
  font-family: var(--rj-font-body);
  font-size: 0.9rem;
  transition: var(--rj-transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--rj-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
  background: rgba(6, 14, 34, 0.95);
}

.btn-block {
  width: 100%;
}

.btn-glow {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #020817;
  font-weight: 800;
  font-family: var(--rj-font-mono);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.35);
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(0, 242, 254, 0.55);
}

.form-card-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rj-border-subtle);
  text-align: center;
  font-size: 0.82rem;
  color: var(--rj-text-muted);
}

.link-highlight {
  color: var(--rj-cyan);
  font-weight: 700;
  text-decoration: underline;
}

/* ── Portal Layout & Sidebar ───────────────────────────────── */
.portal-layout {
  display: flex;
  min-height: 100vh;
  background: var(--rj-bg-abyss);
  color: var(--rj-text-main);
  position: relative;
}

.portal-sidebar {
  width: 270px;
  background: rgba(3, 7, 18, 0.95);
  border-right: 1px solid var(--rj-border-subtle);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--rj-border-subtle);
}

.portal-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portal-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--rj-text-muted);
  transition: var(--rj-transition);
}

.portal-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.portal-link.active {
  color: var(--rj-cyan);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.25);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

.portal-main {
  flex: 1;
  padding: 36px 40px;
  max-width: 1200px;
  position: relative;
  z-index: 2;
  overflow-y: auto;
}

/* ── Stats Bento Grid ──────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-box {
  background: linear-gradient(160deg, rgba(6, 16, 38, 0.85) 0%, rgba(2, 6, 18, 0.9) 100%);
  border: 1px solid var(--rj-border-subtle);
  border-radius: 14px;
  padding: 18px 20px;
  transition: var(--rj-transition);
}

.stat-box:hover {
  border-color: rgba(0, 242, 254, 0.35);
  transform: translateY(-2px);
}

.stat-label {
  font-family: var(--rj-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--rj-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.stat-val {
  font-family: var(--rj-font-mono);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.1;
}

/* ── Clean Data Tables ─────────────────────────────────────── */
.requests-table-wrapper {
  background: linear-gradient(160deg, rgba(6, 16, 38, 0.85) 0%, rgba(2, 6, 18, 0.9) 100%);
  border: 1px solid var(--rj-border-subtle);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

.clean-table th {
  background: rgba(3, 7, 18, 0.95);
  padding: 14px 18px;
  font-family: var(--rj-font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--rj-text-muted);
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--rj-border-subtle);
}

.clean-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.88rem;
  vertical-align: middle;
}

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

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

.btn-primary {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #020817;
  font-weight: 800;
  font-family: var(--rj-font-mono);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--rj-border-subtle);
  color: var(--rj-cyan);
  font-family: var(--rj-font-mono);
  font-weight: 700;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--rj-transition);
}

.btn-outline:hover {
  border-color: var(--rj-cyan);
  background: rgba(0, 242, 254, 0.1);
  color: #ffffff;
}

/* ==========================================================================
   MOBILE NAVIGATION MENU DRAWER & OVERLAY (100% RESPONSIVE)
   ========================================================================== */
.mobile-nav-collapse {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(2, 6, 18, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  padding: 24px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-collapse.active {
  display: flex !important;
}

.mobile-nav-inner {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-header .island-mobile-toggle {
  display: block;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--rj-text-muted);
  cursor: pointer;
  padding: 0 4px;
}

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

.mobile-nav-links-list li a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--rj-text-main);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--rj-transition);
}

.mobile-nav-links-list li a:hover,
.mobile-nav-links-list li a:active {
  background: rgba(0, 242, 254, 0.1);
  border-color: rgba(0, 242, 254, 0.35);
  color: #FFFFFF;
}

/* ==========================================================================
   PORTAL DE CLIENTES RESPONSIVE (MÓVIL & TABLETS)
   ========================================================================== */
@media (max-width: 900px) {
  .portal-layout {
    flex-direction: column;
  }
  .portal-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    top: 0;
    border-right: none;
    border-bottom: 1px solid var(--rj-border-subtle);
    padding: 16px 20px;
  }
  .portal-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .portal-link {
    padding: 8px 12px;
    font-size: 0.82rem;
  }
  .portal-main {
    padding: 24px 16px;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .portal-sidebar {
    padding: 14px 14px;
  }
  .portal-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .portal-link {
    padding: 8px 10px;
    font-size: 0.78rem;
    justify-content: center;
    text-align: center;
  }
  .portal-link span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Tablas Responsivas en Cliente */
.requests-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.clean-table {
  min-width: 580px;
}
