/**
 * ICARO - Dark Theme Design Tokens
 * Portal Nexum Gaming Theme
 * Extracted from Figma: zM7b02dOEn6d9VeKaGwrFV (Design System node 0:1)
 * Generated: 2026-09-11
 */

:root {
  /* ==================== BRAND COLORS ==================== */
  --color-primary: #2FA8C4;
  --color-primary-glow: #7DDBF0;
  --color-primary-dark: #13849D;
  --color-primary-darker: #08677C;
  --color-primary-darkest: #034B5C;

  /* ==================== BACKGROUNDS ==================== */
  --color-bg-base: #0D1216;
  --color-bg-card: #161C21;
  --color-bg-elevated: #232B32;
  --color-bg-hover: #2A3139;
  --color-bg-active: #3A424B;

  /* ==================== TEXT ==================== */
  --color-text-base: #F1F4F5;
  --color-text-primary: #FFFFFF;
  --color-text-muted: #A0B0B8;
  --color-text-subtle: #7A8A92;
  --color-text-inverse: #0D1216;

  /* ==================== BORDERS & INPUTS ==================== */
  --color-border: #3A424B;
  --color-border-light: #2A3139;
  --color-input-bg: #161C21;
  --color-input-border: #3A424B;
  --color-input-border-focus: #2FA8C4;

  /* ==================== SEMANTIC COLORS ==================== */
  --color-success: #4CBB6C;
  --color-success-light: #9AE6B0;
  --color-success-dark: #157831;

  --color-warning: #F7B92A;
  --color-warning-light: #FFE19C;
  --color-warning-dark: #D39606;

  --color-error: #E6502A;
  --color-error-light: #FD9E86;
  --color-error-dark: #C0300C;

  --color-info: #F2994A;
  --color-info-light: #FECCA1;
  --color-info-dark: #CD6C16;

  --color-accent: #8A38F5;
  --color-accent-light: #B794FF;
  --color-accent-dark: #5D1FB8;

  /* ==================== GRADIENTS ==================== */
  --gradient-primary: linear-gradient(180deg, #0073FF 0%, #0DA2FF 100%);
  --gradient-primary-hover: linear-gradient(180deg, #0052CC 0%, #0A7FCC 100%);
  --gradient-primary-active: linear-gradient(180deg, #003D99 0%, #075C99 100%);

  /* ==================== TYPOGRAPHY ==================== */
  --font-family-display: var(--font-syne), "Syne", system-ui, -apple-system, sans-serif;
  --font-family-base: var(--font-satoshi), "Satoshi Variable", system-ui, -apple-system, sans-serif;

  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 30px;
  --font-size-4xl: 36px;
  --font-size-5xl: 48px;
  --font-size-6xl: 60px;
  --font-size-7xl: 72px;
  --font-size-8xl: 96px;
  --font-size-9xl: 128px;

  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  --line-height-xs: 16px;
  --line-height-sm: 20px;
  --line-height-base: 24px;
  --line-height-lg: 28px;
  --line-height-xl: 32px;
  --line-height-2xl: 36px;
  --line-height-3xl: 40px;
  --line-height-4xl: 48px;
  --line-height-5xl: 58px;
  --line-height-6xl: 74px;
  --line-height-7xl: 82px;
  --line-height-8xl: 104px;
  --line-height-9xl: 132px;

  /* ==================== SPACING ==================== */
  --space-px: 1px;
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* ==================== BORDER RADIUS ==================== */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-card: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;
  --radius-full: 50%;

  /* ==================== SHADOWS ==================== */
  --shadow-none: none;
  --shadow-xs: 0px 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0px 4px 6px rgba(0, 0, 0, 0.1), 0px 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0px 10px 15px rgba(0, 0, 0, 0.1), 0px 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0px 20px 25px rgba(0, 0, 0, 0.1), 0px 10px 10px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0px 25px 50px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0px 0px 20px rgba(47, 168, 196, 0.3);
  --shadow-glow-bright: 0px 0px 32px rgba(125, 219, 240, 0.4);

  /* ==================== Z-INDEX ==================== */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;

  /* ==================== TRANSITIONS ==================== */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;

  /* ==================== FOR YOU (webs-sdk ForYouFullPage) ====================
     El ForYouFullPage del SDK resuelve sus colores leyendo estas vars via
     getComputedStyle(document.documentElement). Sin ellas cae a sus defaults
     (fondo blanco #F9F9F9 y CTA naranja #FF5500), que rompen el tema oscuro de
     icaro. Se mapean al design system Figma del portal: fondo oscuro, tarjetas
     elevadas, texto claro y CTA con el primario teal de marca. */
  --foryou-bg: var(--color-bg-base);
  --foryou-card-bg: var(--color-bg-card);
  --foryou-text: var(--color-text-base);
  --foryou-primary: var(--color-primary);
  --foryou-primary-hover: var(--color-primary-dark);
  --foryou-button-text: var(--color-text-primary);
  --foryou-tab-active: var(--color-primary);
  --foryou-tab-border: var(--color-primary);
  --foryou-tab-inactive: var(--color-text-muted);
  --foryou-border: var(--color-border);
}

/* ForYou (ForYouCard del webs-sdk): cada feature se pinta en un grid de dos
   columnas y su imagen viene a `w-full` (llena media columna), por lo que se ve
   demasiado grande frente al Figma. Capamos su ancho y la centramos. Solo
   afecta a las imágenes de las features (`img.object-contain`, que solo existen
   en ForYouCard); el banner superior es un `background-image`, no un <img>, así
   que no se toca. Ajustable via --foryou-feature-img-max.

   OJO: no fijar `display` aquí. Cada feature trae DOS <img> (una `hidden md:block`
   para escritorio y otra `block md:hidden` para móvil) y solo debe verse una;
   forzar `display:block` las mostraría ambas (imagen duplicada). La que está
   visible ya es `block`, así que `margin-inline:auto` la centra igual. */
.foryou-page {
  --foryou-feature-img-max: 420px;
}
.foryou-page img.object-contain {
  max-width: var(--foryou-feature-img-max);
  height: auto;
  margin-inline: auto;
}

/**
 * Dark theme override for ICARO
 * High contrast enforcement and proper text-on-dark rendering
 */
.theme-icaro,
body.theme-icaro {
  /* Ensure dark background on body */
  background-color: var(--color-bg-base);
  color: var(--color-text-base) !important;

  /* Force theme-specific colors even if CSS reset tries neutral-900 */
  background: var(--color-bg-base) !important;

  /* Las variables --font-syne/--font-satoshi las inyecta next/font en el <body>
     (no en :root), así que las familias se derivan AQUÍ, donde ya existen. */
  --font-family-display: var(--font-syne), "Syne", system-ui, -apple-system, sans-serif;
  --font-family-base: var(--font-satoshi), "Satoshi Variable", system-ui, -apple-system, sans-serif;

  /* Fuente base del diseño (Satoshi) por defecto en todo el portal */
  font-family: var(--font-family-base);
}

/* Titulares con la fuente display (Syne) del diseño */
body.theme-icaro h1,
body.theme-icaro h2,
body.theme-icaro h3,
body.theme-icaro h4 {
  font-family: var(--font-family-display);
}

/**
 * NOTA: se eliminaron las clases de conveniencia `.text-xs … .text-9xl`.
 * Duplicaban los nombres de utilidad de Tailwind y, al cargar esta hoja
 * DESPUÉS del CSS de Tailwind, ganaban por orden de cascada (misma
 * especificidad) y ANULABAN las variantes responsive (`md:text-*`,
 * `lg:text-*`) en todo el portal: los tamaños de desktop escritos en el
 * markup nunca se aplicaban. Los tamaños base se sirven ahora desde las
 * utilidades nativas de Tailwind (idénticos px), con sus variantes
 * responsive funcionando. Los tokens `--font-size-*` se conservan por si
 * algún componente los referencia vía var().
 */

/* Font family helpers */
.font-display {
  font-family: var(--font-family-display);
}

.font-base {
  font-family: var(--font-family-base);
}

/* Font weight helpers */
.font-light {
  font-weight: var(--font-weight-light);
}

.font-normal {
  font-weight: var(--font-weight-normal);
}

.font-medium {
  font-weight: var(--font-weight-medium);
}

.font-semibold {
  font-weight: var(--font-weight-semibold);
}

.font-bold {
  font-weight: var(--font-weight-bold);
}

.font-extrabold {
  font-weight: var(--font-weight-extrabold);
}
