:root {
  --bg-obsidian: #000000;
  --bg-panel: #070707;
  --bg-card: #0c0c0c;
  --bg-card-hover: #141414;
  --bg-input: #050505;

  --border-subtle: #181818;
  --border-highlight: #282828;

  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  --accent-violet: #a855f7;
  --accent-violet-glow: rgba(168, 85, 247, 0.25);
  --accent-amber: #f59e0b;
  --accent-amber-glow: rgba(245, 158, 11, 0.25);
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.25);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-rose: #f43f5e;
  --accent-rose-glow: rgba(244, 63, 94, 0.25);
  --accent-blue: #3b82f6;
  --accent-blue-glow: rgba(59, 130, 246, 0.25);

  --radius-xl: 18px;
  --radius-lg: 12px;
  --radius-md: 9px;
  --radius-sm: 6px;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #000000;
  color: var(--text-primary);
  height: 100vh;
  overflow: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================================
   FONDOS AMBIENTALES DE LUJO (NEGRO PURO Y CARBONO)
   ============================================================================ */
.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #000000;
}

.ambient-orb {
  display: none !important;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 50%, transparent 95%);
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.08); }
}

/* ============================================================================
   ESTRUCTURA PRINCIPAL (SHELL)
   ============================================================================ */
.suite-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 295px 1fr;
  height: 100vh;
  width: 100vw;
  background: #000000;
}

/* ============================================================================
   SIDEBAR DE NAVEGACIÓN
   ============================================================================ */
.suite-sidebar {
  background: #040404;
  border-right: 1px solid #161616;
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  gap: 10px;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 6px 10px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-emblem {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.25);
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: 0.07em;
  background: linear-gradient(90deg, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-edition {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  color: var(--accent-violet);
  letter-spacing: 0.12em;
  margin-top: 2px;
}

.sidebar-group-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding: 8px 10px 4px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
}

.nav-card {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--radius-lg);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-card:hover {
  background: #0d0d0d;
  color: var(--text-primary);
  border-color: #222222;
  transform: translateX(3px);
}

.nav-card.active {
  background: #111111;
  border-color: #333333;
  color: var(--text-primary);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.9);
}

.nav-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-icon-wrap.violet { background: #13101c; color: #c084fc; border: 1px solid #2a1f3d; }
.nav-icon-wrap.amber { background: #181308; color: #fbbf24; border: 1px solid #3d2b0e; }
.nav-icon-wrap.cyan { background: #08161b; color: #22d3ee; border: 1px solid #0e303b; }
.nav-icon-wrap.emerald { background: #081812; color: #34d399; border: 1px solid #0e3b27; }
.nav-icon-wrap.rose { background: #1a0a10; color: #fb7185; border: 1px solid #3d1421; }
.nav-icon-wrap.blue { background: #091222; color: #60a5fa; border: 1px solid #14284b; }

.nav-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.nav-title {
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.nav-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.63rem;
  padding: 3px 7px;
  border-radius: 999px;
  background: #0e0e0e;
  color: var(--text-secondary);
  border: 1px solid #222222;
  flex-shrink: 0;
}

.nav-pill.live {
  background: #081a11;
  color: #34d399;
  border-color: #104a2c;
}

.sidebar-vault-footer {
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.vault-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: #060606;
  border: 1px solid #1a1a1a;
}

.vault-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.vault-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #d1fae5;
}

.vault-sub {
  font-size: 0.67rem;
  color: #6ee7b7;
}

/* ============================================================================
   ÁREA PRINCIPAL & CABECERAS DE PANTALLA
   ============================================================================ */
.suite-main {
  height: 100vh;
  overflow-y: auto;
  padding: 26px 32px 110px;
}

.app-screen {
  display: none;
  animation: fadeSlideIn 0.26s ease-out;
}

.app-screen.active {
  display: block;
}

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

.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.screen-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.69rem;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.screen-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gradient-text-violet {
  background: linear-gradient(90deg, #c084fc, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-amber {
  background: linear-gradient(90deg, #fbbf24, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-cyan {
  background: linear-gradient(90deg, #22d3ee, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-emerald {
  background: linear-gradient(90deg, #34d399, #2dd4bf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-rose {
  background: linear-gradient(90deg, #fb7185, #f43f5e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-blue {
  background: linear-gradient(90deg, #60a5fa, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================================
   SELECTOR DE CUENTAS (CUENTA 1, CUENTA 2, CUENTA 3)
   ============================================================================ */
.account-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #080808;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid #1c1c1c;
}

.switcher-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding-left: 4px;
}

.account-pills {
  display: flex;
  gap: 5px;
}

.acc-pill {
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid #181818;
  background: #0d0d0d;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.acc-pill:hover {
  color: #ffffff;
  background: #161616;
  border-color: #282828;
}

.acc-pill.active {
  background: #1c1c1c;
  color: #ffffff;
  border-color: #3d3d3d;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ============================================================================
   SUB-PESTAÑAS INTERNAS
   ============================================================================ */
.subtab-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.subtab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 11px;
  background: #090909;
  border: 1px solid #1a1a1a;
  color: var(--text-secondary);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.subtab-btn:hover {
  color: #ffffff;
  border-color: #2b2b2b;
  background: #111111;
}

.subtab-btn.active {
  background: #141414;
  border-color: #383838;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8);
}

.subtab-panel {
  display: none;
}

.subtab-panel.active {
  display: block;
}

/* ============================================================================
   GLASS CARDS Y LAYOUTS DE ESTUDIO
   ============================================================================ */
.glass-card {
  background: #070707;
  border: 1px solid #181818;
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
}

.studio-split-grid {
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 20px;
  align-items: start;
}

.studio-split-config {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
  align-items: start;
}

.studio-split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.card-header-row h3 {
  font-size: 1.02rem;
  font-weight: 700;
}

.card-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.counter-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

/* ============================================================================
   CONTROLES DE FORMULARIO DE LUJO
   ============================================================================ */
.segmented-control {
  display: flex;
  background: rgba(8, 10, 18, 0.85);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 12px;
  gap: 4px;
}

.seg-btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.seg-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.field-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.field-box label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.field-hint {
  font-size: 0.71rem;
  color: var(--text-muted);
}

.luxury-input,
.luxury-select,
.luxury-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 13px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.luxury-textarea {
  resize: vertical;
  line-height: 1.55;
  user-select: text;
}

.luxury-input:focus,
.luxury-select:focus,
.luxury-textarea:focus {
  outline: none;
  border-color: var(--accent-violet);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.18);
}

.luxury-range {
  width: 100%;
  accent-color: var(--accent-violet);
  cursor: pointer;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.params-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.params-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.params-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.params-grid-5 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.toolbar-horizontal {
  display: flex;
  align-items: center;
  gap: 12px;
}

.input-with-btn {
  display: flex;
  gap: 10px;
}

/* ============================================================================
   BOTONES DE LUJO
   ============================================================================ */
.btn-luxury-primary {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #9333ea, #4f46e5);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
}

.btn-luxury-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.btn-luxury-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.violet-glow { box-shadow: 0 8px 25px var(--accent-violet-glow); }
.amber-glow {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 8px 25px var(--accent-amber-glow);
}
.cyan-glow {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  box-shadow: 0 8px 25px var(--accent-cyan-glow);
}
.rose-glow {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  box-shadow: 0 8px 25px var(--accent-rose-glow);
}
.blue-glow {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 8px 25px var(--accent-blue-glow);
}

.btn-action-gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 9px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-action-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-highlight);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-action-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-micro,
.btn-micro-gold {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border-highlight);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.btn-micro-gold {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fde68a;
}

.btn-ghost-sm {
  padding: 5px 10px;
  border-radius: 7px;
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fda4af;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

/* ============================================================================
   VOZ CLON AI COMPONENTS
   ============================================================================ */
.filter-bar-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.filter-row-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.voice-cards-scroll {
  max-height: 490px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.voice-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.18s ease;
}

.voice-item-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
}

.voice-item-card.selected {
  background: #141414;
  border-color: #383838;
}

.voice-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.voice-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #161616;
  border: 1px solid #282828;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
}

.voice-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.voice-card-sub {
  font-size: 0.7rem;
  color: var(--text-secondary);
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 2px;
}

.btn-preview-voice {
  padding: 5px 9px;
  border-radius: 7px;
  border: 1px solid #242424;
  background: #121212;
  color: #fff;
  font-size: 0.72rem;
  cursor: pointer;
  flex-shrink: 0;
}

.selected-voice-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 14px;
  background: #080808;
  border: 1px solid #242424;
  margin-bottom: 14px;
}

.sv-avatar {
  font-size: 1.5rem;
}

.sv-details {
  flex: 1;
}

.sv-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: #c084fc;
  letter-spacing: 0.1em;
}

.sv-name {
  font-size: 1rem;
  font-weight: 700;
}

.engine-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.35);
  text-transform: uppercase;
}

.script-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.script-box-header label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.script-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.char-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.71rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.char-pill.ready {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
}

.engine-params-panel {
  background: rgba(9, 11, 19, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  padding: 14px;
  margin: 14px 0;
}

.params-title {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.job-status-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #bae6fd;
  font-size: 0.84rem;
}

.pulse-ring {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #38bdf8;
  animation: pulseAnim 1.2s infinite ease-in-out;
}

@keyframes pulseAnim {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.25); opacity: 1; }
}

.master-output-card {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(14, 17, 29, 0.92));
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.output-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.badge-emerald {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: #34d399;
  letter-spacing: 0.1em;
}

.output-btns {
  display: flex;
  gap: 8px;
}

.luxury-audio {
  width: 100%;
  height: 40px;
  border-radius: 8px;
}

/* ============================================================================
   GALERÍAS DE ARTE, STOCK Y RECURSOS (MAGNIFIC, MAGE, VECTEEZY)
   ============================================================================ */
.art-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  min-height: 360px;
}

.stock-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 16px;
}

.empty-canvas-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  color: var(--text-secondary);
  border: 1px dashed var(--border-highlight);
  border-radius: 16px;
}

.empty-orb {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.asset-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.22s ease;
}

.asset-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.asset-thumb-wrap {
  position: relative;
  width: 100%;
  height: 190px;
  background: #090b12;
  overflow: hidden;
}

.asset-thumb-wrap img,
.asset-thumb-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.asset-card:hover .asset-thumb-wrap img {
  transform: scale(1.05);
}

.asset-badge-floating {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(5, 6, 11, 0.82);
  backdrop-filter: blur(8px);
  color: #f8fafc;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.asset-body {
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.asset-title {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.asset-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: auto;
}

.asset-actions-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.upload-thumb-box {
  margin-top: 8px;
  padding: 14px;
  border-radius: 10px;
  border: 1px dashed var(--border-highlight);
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.25);
}

.upload-thumb-box img {
  max-height: 120px;
  border-radius: 8px;
}

/* ============================================================================
   EPIDEMIC SOUND STUDIO TABLE & STEMS MIXER
   ============================================================================ */
.epidemic-tracks-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.epi-track-row {
  display: grid;
  grid-template-columns: 54px 1.5fr 1fr 1.4fr auto;
  align-items: center;
  gap: 16px;
  padding: 13px 18px;
  border-radius: 15px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.epi-track-row:hover {
  background: var(--bg-card-hover);
  border-color: rgba(16, 185, 129, 0.35);
}

.epi-cover-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 11px;
  overflow: hidden;
  cursor: pointer;
}

.epi-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.epi-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #34d399;
  font-size: 1.2rem;
}

.epi-title {
  font-size: 0.92rem;
  font-weight: 700;
}

.epi-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.epi-tags-col {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.epi-badge {
  font-size: 0.69rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.stems-selector-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.stem-pill-btn {
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.16s ease;
}

.stem-pill-btn:hover,
.stem-pill-btn.active {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #6ee7b7;
}

.epidemic-master-bar {
  position: fixed;
  bottom: 18px;
  left: 315px;
  right: 28px;
  z-index: 50;
  background: #080808;
  border: 1px solid #202020;
  border-radius: 16px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95);
}

.master-track-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.master-cover {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  object-fit: cover;
}

.master-title {
  font-size: 0.86rem;
  font-weight: 700;
}

.master-sub {
  font-size: 0.72rem;
  color: #34d399;
}

.stem-badge-active {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: #081a11;
  color: #6ee7b7;
  border: 1px solid #104a2c;
}

.luxury-audio-wide {
  flex: 1;
  height: 38px;
}

/* ============================================================================
   CONSENSUS EDU RESEARCH CARDS & SYNTHESIS
   ============================================================================ */
.consensus-synthesis-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.synth-metric-card {
  background: #080808;
  border: 1px solid #1a1a1a;
  border-radius: 14px;
  padding: 14px 16px;
}

.synth-metric-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #60a5fa;
}

.synth-metric-lbl {
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.consensus-papers-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.paper-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.2s ease;
}

.paper-card:hover {
  border-color: #2a2a2a;
}

.paper-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.q1-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  padding: 3px 9px;
  border-radius: 6px;
  background: #141006;
  color: #fcd34d;
  border: 1px solid #33260c;
}

.study-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  padding: 3px 9px;
  border-radius: 6px;
  background: #091320;
  color: #93c5fd;
  border: 1px solid #142845;
}

.citation-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  padding: 3px 9px;
  border-radius: 6px;
  background: #081810;
  color: #6ee7b7;
  border: 1px solid #103822;
}

.paper-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}

.paper-takeaway-box {
  background: #090909;
  border-left: 3px solid #3b82f6;
  padding: 11px 14px;
  border-radius: 0 10px 10px 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #e2e8f0;
  margin-bottom: 12px;
}

.paper-abstract-box {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-secondary);
  padding: 10px 14px;
  background: #060606;
  border-radius: 10px;
  margin-bottom: 12px;
  user-select: text;
}

.paper-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.76rem;
  color: var(--text-secondary);
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

/* ============================================================================
   HISTORIAL DE TRABAJOS EN LA NUBE (VOZ CLON)
   ============================================================================ */
.jobs-history-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.job-history-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================================================================
   MODAL Y TOASTS
   ============================================================================ */
.luxury-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.luxury-modal-box {
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  overflow-y: auto;
  background: #070707;
  border: 1px solid #202020;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95);
}

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

.btn-close-modal {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #222222;
  background: #111111;
  color: #fff;
  cursor: pointer;
}

.toast-stack {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.luxury-toast {
  padding: 12px 18px;
  border-radius: 11px;
  background: #0c0c0c;
  border: 1px solid #242424;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  animation: fadeSlideIn 0.2s ease-out;
}

.status-chip-cyan,
.status-chip-rose {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.73rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: #07151a;
  color: #67e8f9;
  border: 1px solid #10333d;
}

.status-chip-rose {
  background: #18080c;
  color: #fda4af;
  border-color: #38121a;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* ============================================================================
   PORTAL DE LOGIN, REGISTRO Y APROBACIÓN POR ADMINISTRADOR (WEB & .EXE)
   ============================================================================ */
.auth-portal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #000000;
  backdrop-filter: blur(20px);
}

.auth-portal-card {
  width: 100%;
  max-width: 500px;
  padding: 32px 30px;
  border-radius: 20px;
  background: #070707;
  border: 1px solid #1e1e1e;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.98);
  animation: fadeSlideIn 0.25s ease-out;
}

.auth-brand-top {
  text-align: center;
  margin-bottom: 22px;
}

.auth-logo-ring {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: #fbbf24;
  margin-bottom: 4px;
}

.auth-main-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #fbbf24, #f97316, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.auth-tabs-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border-radius: 12px;
  background: #040404;
  border: 1px solid #181818;
  margin-bottom: 18px;
}

.auth-tab-btn {
  padding: 10px 12px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.auth-tab-btn.active {
  background: #141414;
  color: #ffffff;
  border: 1px solid #2c2c2c;
}

.auth-form-panel {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.auth-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-info-note {
  padding: 10px 13px;
  border-radius: 10px;
  background: #0c0a06;
  border: 1px solid #2a1f0a;
  color: #fde68a;
  font-size: 0.75rem;
  line-height: 1.45;
}

.auth-error-banner {
  padding: 10px 13px;
  border-radius: 10px;
  background: #18080a;
  border: 1px solid #3d1419;
  color: #fda4af;
  font-size: 0.78rem;
  font-weight: 600;
}

.btn-primary-violet {
  padding: 13px 18px;
  border-radius: 11px;
  border: 1px solid #383838;
  background: #181818;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8);
  transition: all 0.18s ease;
}

.btn-primary-violet:hover {
  background: #242424;
  border-color: #555555;
  transform: translateY(-1px);
}

.btn-primary-gold {
  padding: 12px 18px;
  border-radius: 11px;
  border: 1px solid #44320e;
  background: #1a1408;
  color: #fde68a;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8);
  transition: all 0.18s ease;
}

.btn-primary-gold:hover {
  background: #261d0a;
  border-color: #634710;
  transform: translateY(-1px);
}

.auth-footer-links {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid #161616;
  text-align: center;
}

.btn-download-exe-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 9px;
  background: #090909;
  border: 1px solid #202020;
  color: #e2e8f0;
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
}

.btn-download-exe-link:hover {
  background: #141414;
  border-color: #333333;
}

/* Sala de espera de aprobación */
.auth-pending-panel {
  text-align: center;
  padding: 10px 4px;
}

.pending-pulse-badge {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #121008;
  border: 2px solid #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.auth-pending-panel h3 {
  font-size: 1.15rem;
  color: #fde68a;
  margin-bottom: 8px;
}

.auth-pending-panel p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}

.pending-meta-box {
  text-align: left;
  padding: 12px 15px;
  border-radius: 12px;
  background: #050505;
  border: 1px solid #161616;
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pending-meta-box span {
  color: var(--text-secondary);
  display: inline-block;
  width: 78px;
}

/* Tarjeta de sesión en el Sidebar */
.sidebar-user-card {
  margin-top: auto;
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 13px;
  background: #060606;
  border: 1px solid #181818;
}

.user-card-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #181818;
  border: 1px solid #2e2e2e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.user-card-info {
  flex: 1;
  min-width: 0;
}

.user-card-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-card-plan {
  font-size: 0.69rem;
  color: #fde68a;
  font-weight: 600;
}

.btn-logout-mini {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #33151b;
  background: #14080b;
  color: #fda4af;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-card-meta {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid #141414;
  font-size: 0.68rem;
  color: #71717a;
  font-family: 'JetBrains Mono', monospace;
}

.sidebar-exe-btn {
  display: block;
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #0e0e0e;
  border: 1px solid #222222;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: all 0.18s ease;
}

.sidebar-exe-btn:hover {
  background: #161616;
  border-color: #383838;
}

.admin-nav-card {
  border-color: #262626 !important;
  background: #0a0a0a !important;
}

/* ============================================================================
   PANEL ADMINISTRATIVO DEOX (KPIS, TABLA DE USUARIOS & ACTIVACIÓN 1M/3M/6M/1A)
   ============================================================================ */
.status-chip-emerald {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.73rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: #06140e;
  color: #6ee7b7;
  border: 1px solid #0e3b26;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.admin-kpi-card {
  padding: 16px 18px;
  border-radius: 14px;
  background: #070707;
  border: 1px solid #181818;
}

.admin-kpi-card.pending {
  border-color: #38280f;
  background: #0a0805;
}

.admin-kpi-card.active {
  border-color: #103822;
  background: #050a07;
}

.admin-kpi-card.expired {
  border-color: #381219;
  background: #0a0506;
}

.kpi-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.kpi-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: #ffffff;
  margin: 4px 0 2px;
}

.kpi-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.admin-filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.filter-pill.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #fde68a;
}

.admin-users-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 620px;
  overflow-y: auto;
  padding-right: 4px;
}

.admin-user-row {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.18s ease;
}

.admin-user-row:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.admin-user-row.is-pending {
  border-color: rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(15, 23, 42, 0.8));
}

.admin-user-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-user-identity {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.admin-user-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-user-handle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  color: #38bdf8;
}

.admin-user-contact {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.user-status-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.user-status-badge.pending {
  background: rgba(245, 158, 11, 0.22);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

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

.user-status-badge.expired,
.user-status-badge.suspended {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.45);
}

.admin-plan-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-duration-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-activate-plan {
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-activate-plan:hover {
  background: rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}

.btn-activate-plan.gold {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a;
}

.btn-activate-plan.gold:hover {
  background: rgba(245, 158, 11, 0.35);
}

.admin-ota-box {
  margin-top: 16px;
  padding: 13px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.ota-update-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 950;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #9333ea);
  color: #ffffff;
  font-size: 0.82rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.65);
}

/* ============================================================================
   ESTILOS DEL PORTAL WEB PÚBLICO (lapromptsuite.com)
   ============================================================================ */
body.in-portal {
  overflow-y: auto !important;
  height: auto !important;
}

body.in-suite {
  overflow: hidden !important;
  height: 100vh !important;
}

.portal-view {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 100vh;
  background: #000000;
  color: #f8fafc;
}

.portal-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar del Portal Web */
.portal-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #161616;
  z-index: 900;
}

.portal-nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.portal-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #18181b, #09090b);
  border: 1px solid rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}

.portal-brand-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.portal-brand-version {
  display: inline-block;
  padding: 2px 7px;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
  margin-left: 6px;
}

.portal-nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.portal-link {
  color: #a1a1aa;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.portal-link:hover, .portal-link.active {
  color: #fbbf24;
}

.portal-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-portal-login {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid #27272a;
  padding: 9px 18px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-portal-login:hover {
  border-color: #3f3f46;
  background: #121214;
}

.btn-portal-cta {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000000;
  border: none;
  padding: 9px 20px;
  border-radius: 9px;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
  transition: all 0.2s;
}

.btn-portal-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5);
}

.btn-portal-suite {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #ffffff;
  border: none;
  padding: 9px 20px;
  border-radius: 9px;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.35);
  transition: all 0.2s;
}

.btn-portal-suite:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(168, 85, 247, 0.55);
}

/* Hero Section */
.portal-hero-section {
  padding: 160px 0 90px;
  text-align: center;
  position: relative;
}

.portal-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.portal-hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.3rem;
  font-weight: 800;
  line-height: 1.18;
  max-width: 980px;
  margin: 0 auto 20px;
  letter-spacing: -0.02em;
}

.portal-hero-subtitle {
  font-size: 1.15rem;
  color: #94a3b8;
  max-width: 780px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.portal-hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000000;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px 32px;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.38);
  transition: all 0.25s;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(245, 158, 11, 0.55);
}

.btn-hero-secondary {
  background: #09090b;
  color: #38bdf8;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 14px 28px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  transition: all 0.25s;
}

.btn-hero-secondary:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  transform: translateY(-2px);
}

.btn-hero-outline {
  background: transparent;
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.4);
  font-weight: 700;
  font-size: 1.02rem;
  padding: 14px 28px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-hero-outline:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: #a855f7;
  transform: translateY(-2px);
}

.portal-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid #181818;
}

.portal-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
}

.stat-label {
  font-size: 0.82rem;
  color: #71717a;
  font-weight: 600;
}

/* Secciones Generales */
.portal-section {
  padding: 90px 0;
  position: relative;
}

.portal-section-dark {
  background: #040404;
  border-top: 1px solid #141414;
  border-bottom: 1px solid #141414;
}

.section-header-center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #fbbf24;
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1rem;
  color: #94a3b8;
  line-height: 1.6;
}

/* Grids de Herramientas */
.tools-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.tool-showcase-card {
  background: #080808;
  border: 1px solid #181818;
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.tool-showcase-card:hover {
  transform: translateY(-4px);
  border-color: #27272a;
  background: #0e0e0e;
}

.tool-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}

.tool-icon-box.violet { background: rgba(168, 85, 247, 0.15); border: 1px solid rgba(168, 85, 247, 0.35); }
.tool-icon-box.amber { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.35); }
.tool-icon-box.emerald { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.35); }
.tool-icon-box.cyan { background: rgba(6, 182, 212, 0.15); border: 1px solid rgba(6, 182, 212, 0.35); }

.tool-showcase-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.tool-showcase-card p {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.55;
  margin-bottom: 18px;
  flex-grow: 1;
}

.tool-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  color: #cbd5e1;
  border-top: 1px solid #181818;
  padding-top: 14px;
}

/* Acerca De */
.about-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-card {
  background: #080808;
  border: 1px solid #1a1a1a;
  border-radius: 16px;
  padding: 32px 26px;
}

.about-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.about-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
}

.about-card p {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.65;
}

/* Grid de Precios */
.pricing-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}

.pricing-card {
  background: #080808;
  border: 1px solid #1c1c1c;
  border-radius: 18px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  border-color: #333333;
}

.pricing-card.featured {
  border: 1px solid rgba(245, 158, 11, 0.6);
  background: #0a0907;
  box-shadow: 0 10px 35px rgba(245, 158, 11, 0.12);
}

.pricing-card.vip {
  border: 1px solid rgba(168, 85, 247, 0.6);
  background: #09060b;
  box-shadow: 0 10px 35px rgba(168, 85, 247, 0.12);
}

.pricing-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 6px;
  background: #18181b;
  color: #a1a1aa;
  margin-bottom: 16px;
}

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

.pricing-badge.popular {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.pricing-badge.vip-badge {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.5);
}

.plan-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.plan-sub {
  font-size: 0.82rem;
  color: #71717a;
  margin-bottom: 20px;
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #181818;
}

.price-tag .currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fbbf24;
}

.price-tag .amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.price-tag .period {
  font-size: 0.8rem;
  color: #a1a1aa;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.86rem;
  color: #cbd5e1;
  margin-bottom: 30px;
  flex-grow: 1;
}

.btn-choose-plan {
  width: 100%;
  padding: 13px;
  border-radius: 11px;
  background: #18181b;
  color: #ffffff;
  border: 1px solid #27272a;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-choose-plan:hover {
  background: #27272a;
  border-color: #3f3f46;
}

.btn-choose-plan.featured-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000000;
  border: none;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
}

.btn-choose-plan.featured-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.55);
}

.btn-choose-plan.vip-btn {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #ffffff;
  border: none;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.35);
}

.btn-choose-plan.vip-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(168, 85, 247, 0.55);
}

/* Descargas */
.download-card-hero {
  background: #070707;
  border: 1px solid #1a1a1a;
  border-radius: 20px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: center;
}

.download-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.download-info h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff;
}

.download-info p {
  font-size: 0.98rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 24px;
}

.download-specs {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  font-size: 0.85rem;
  color: #a1a1aa;
}

.download-specs strong {
  color: #ffffff;
  display: block;
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-download-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 15px 34px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.35);
  transition: all 0.2s;
  width: fit-content;
}

.btn-download-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.5);
}

.download-meta-note {
  font-size: 0.78rem;
  color: #64748b;
}

.download-steps {
  background: #0c0c0c;
  border: 1px solid #1a1a1a;
  border-radius: 16px;
  padding: 24px;
}

.download-steps h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #fbbf24;
}

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.steps-list code {
  background: #18181b;
  padding: 2px 6px;
  border-radius: 4px;
  color: #38bdf8;
  font-family: monospace;
}

/* Seguridad */
.security-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.sec-card {
  background: #080808;
  border: 1px solid #181818;
  border-radius: 16px;
  padding: 26px 20px;
}

.sec-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.sec-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff;
}

.sec-card p {
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.55;
}

/* Footer */
.portal-footer {
  border-top: 1px solid #161616;
  background: #000000;
  padding: 40px 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: #ffffff;
  display: block;
  margin-bottom: 4px;
}

.footer-copy {
  font-size: 0.82rem;
  color: #64748b;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #a1a1aa;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fbbf24;
}

/* Botón flotante para volver al portal desde la suite */
.btn-return-portal {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #141416;
  border: 1px solid #27272a;
  color: #e2e8f0;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-return-portal:hover {
  background: #202024;
  border-color: #3f3f46;
  color: #ffffff;
}

@media (max-width: 1024px) {
  .tools-grid-4, .pricing-grid-4, .security-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid-3 {
    grid-template-columns: 1fr;
  }
  .download-card-hero {
    grid-template-columns: 1fr;
  }
  .portal-hero-title {
    font-size: 2.4rem;
  }
}

@media (max-width: 640px) {
  .tools-grid-4, .pricing-grid-4, .security-grid-4 {
    grid-template-columns: 1fr;
  }
  .portal-nav-links {
    display: none;
  }
}

