:root {
  /* ── Global Efecty · Design Tokens oficiales ── */

  /* Fondos */
  --ge-bg-primary: #0A0A0F;
  --ge-bg-secondary: #111118;
  --ge-bg-elevated: #1A1A24;
  --ge-bg-card: #14141C;

  /* Gradiente de marca */
  --ge-gradient-start: #C026D3;
  --ge-gradient-mid: #7C3AED;
  --ge-gradient-end: #22D3EE;
  --ge-gradient-brand: linear-gradient(135deg, #C026D3 0%, #7C3AED 50%, #22D3EE 100%);

  /* Colores sólidos */
  --ge-magenta: #C026D3;
  --ge-violet: #7C3AED;
  --ge-violet-light: #A855F7;
  --ge-cyan: #22D3EE;
  --ge-cyan-light: #67E8F9;
  --ge-blue: #3B82F6;

  /* Texto */
  --ge-text-primary: #FAFAFA;
  --ge-text-secondary: #A1A1AA;
  --ge-text-muted: #71717A;
  --ge-text-inverse: #0A0A0F;

  /* UI */
  --ge-success: #22C55E;
  --ge-warning: #F59E0B;
  --ge-error: #EF4444;
  --ge-danger: #EF4444;
  --ge-border: rgba(255, 255, 255, 0.08);

  /* Tipografía — Sora (display) + DM Sans (texto) + JetBrains Mono (técnico) */
  --ge-font: 'DM Sans', system-ui, -apple-system, sans-serif;
  --ge-font-display: 'Sora', 'DM Sans', system-ui, sans-serif;
  --ge-font-hero: 'Sora', 'DM Sans', system-ui, sans-serif;
  --ge-font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  /* Tracking */
  --ge-tracking-tight: -0.03em;
  --ge-tracking-snug: -0.02em;
  --ge-tracking-normal: -0.01em;
  --ge-tracking-wide: 0.04em;
  --ge-tracking-widest: 0.12em;

  /* Forma */
  --ge-radius-sm: 8px;
  --ge-radius: 12px;
  --ge-radius-lg: 20px;
  --ge-radius-full: 9999px;

  /* Efectos */
  --ge-glow-magenta: 0 0 24px rgba(192, 38, 211, 0.35);
  --ge-glow-cyan: 0 0 24px rgba(34, 211, 238, 0.35);
  --ge-glow-brand: 0 0 32px rgba(124, 58, 237, 0.4);
  --ge-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  --ge-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
  --ge-transition: 0.2s ease;

  /* Alias legacy (compatibilidad con vistas existentes) */
  --ge-navy: var(--ge-bg-primary);
  --ge-navy-light: var(--ge-bg-elevated);
  --ge-teal: var(--ge-cyan);
  --ge-teal-dark: #06B6D4;
  --ge-teal-glow: rgba(34, 211, 238, 0.25);
  --ge-bg: var(--ge-bg-primary);
  --ge-text: var(--ge-text-primary);
}

/* ── Utilidades compartidas UI 2026 ── */
.surface-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--ge-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ui-mesh-bg {
  background-color: var(--ge-bg-primary);
  background-image:
    radial-gradient(ellipse 55% 45% at 0% 0%, rgba(192, 38, 211, 0.14), transparent 65%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(34, 211, 238, 0.1), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  background-position: 0 0, 100% 100%, center center, center center;
}

.gradient-text {
  background: var(--ge-gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--ge-font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ge-cyan-light);
}
.eyebrow i { font-size: 0.85em; opacity: 0.9; }

/* ── Botones suaves (plataforma completa) ──
   Evita bordes bruscos y el “corte” de color en gradientes
   (franja transparente / subpixel al hacer hover). */
.btn,
.btn-primary,
.btn-gradient,
.btn-ghost,
.btn-outline,
.btn-secondary,
.btn-danger,
a.btn {
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.btn,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 14px;
  font-family: var(--ge-font-display);
  font-weight: 600;
  letter-spacing: var(--ge-tracking-snug);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.28s ease,
    background 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    color 0.28s ease,
    opacity 0.28s ease,
    filter 0.28s ease;
}

.btn-primary,
.btn-gradient {
  color: #fff;
  border: none !important;
  background-color: var(--ge-violet);
  background-image: linear-gradient(
    135deg,
    #d946ef 0%,
    #a855f7 28%,
    #7c3aed 58%,
    #22d3ee 100%
  );
  background-size: 140% 140%;
  background-position: 0% 50%;
  background-repeat: no-repeat;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.14),
    0 8px 22px rgba(124, 58, 237, 0.28);
  filter: saturate(1.02);
}

.btn-primary:hover,
.btn-gradient:hover {
  background-position: 100% 50%;
  filter: brightness(1.06) saturate(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 12px 28px rgba(192, 38, 211, 0.32);
  transform: translateZ(0);
}

.btn-primary:active,
.btn-gradient:active {
  filter: brightness(0.97);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.2),
    0 4px 14px rgba(124, 58, 237, 0.22);
}

.btn-ghost,
.btn-outline,
.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: var(--ge-text-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover,
.btn-outline:hover,
.btn-secondary:hover {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(168, 85, 247, 0.42) !important;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 6px 18px rgba(0, 0, 0, 0.18);
  transform: translateZ(0);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.32) !important;
  color: #fca5a5;
  box-shadow: none;
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.5) !important;
  color: #fecaca;
  transform: translateZ(0);
}

.btn:focus-visible,
.btn-primary:focus-visible,
.btn-gradient:focus-visible,
.btn-ghost:focus-visible,
.btn-outline:focus-visible,
.btn-secondary:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.55);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn-primary,
  .btn-gradient,
  .btn-ghost,
  .btn-outline,
  .btn-secondary,
  .btn-danger,
  a.btn {
    transition: none;
  }
}
