/* ==========================================================================
   ALVACOLOR DESIGN // BRAND DESIGN SYSTEM (SINGLE-SCREEN ZERO SCROLL)
   COLORS: AZUL (#007AFF), NARANJA (#FF8500), BLANCO (#FFFFFF), NEGRO (#000000)
   FONTS: Outfit (Headings), Plus Jakarta Sans (Body), JetBrains Mono (Tech)
   THEMES: Dark (Default) & Light (Pure White Background + Pure Black Text)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand Core Colors */
  --alva-blue: #007AFF;
  --alva-blue-light: #3898ff;
  --alva-blue-dark: #0056b3;
  --alva-orange: #FF8500;
  --alva-orange-light: #ffa133;
  --alva-orange-dark: #cc6a00;

  /* Dark Theme Variables (Default) */
  --bg-dark: #040711;
  --bg-surface: #080d1d;
  --bg-card: rgba(12, 19, 38, 0.7);
  --bg-card-hover: rgba(18, 28, 56, 0.85);
  --header-bg: rgba(4, 7, 17, 0.88);
  --arcade-bg: #03060d;

  /* Typography Colors (Dark Mode) */
  --text-white: #ffffff;
  --text-slate: #94a3b8;
  --text-muted: #64748b;
  --theme-icon-color: #ffffff;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Borders & Glows */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-blue: rgba(0, 122, 255, 0.35);
  --border-orange: rgba(255, 133, 0, 0.35);
  --glow-orange: 0 0 25px rgba(255, 133, 0, 0.4);
  --glow-blue: 0 0 25px rgba(0, 122, 255, 0.4);
  --grid-line-color: rgba(255, 255, 255, 0.02);
  --chip-bg: rgba(255, 255, 255, 0.04);

  /* Gradients */
  --grad-alva: linear-gradient(135deg, #FF8500 0%, #007AFF 100%);
  --grad-orange: linear-gradient(135deg, #FF8500 0%, #ff5500 100%);
  --grad-blue: linear-gradient(135deg, #007AFF 0%, #0052cc 100%);

  /* Ambient Glows */
  --ambient-orange: rgba(255, 133, 0, 0.09);
  --ambient-blue: rgba(0, 122, 255, 0.11);

  /* Layout */
  --max-w: 1100px;
  --header-h: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   LIGHT THEME (FONDO BLANCO PURO & TEXTOS EN NEGRO PURO - CERO GRIS)
   ========================================================================== */
[data-theme="light"] {
  --bg-dark: #ffffff;
  --bg-surface: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.94);
  --arcade-bg: #000000;

  /* Textos en negro puro absoluto en modo claro */
  --text-white: #000000;
  --text-slate: #000000;
  --text-muted: #000000;
  --theme-icon-color: #000000;

  --border-subtle: rgba(0, 0, 0, 0.12);
  --border-blue: rgba(0, 122, 255, 0.5);
  --border-orange: rgba(255, 133, 0, 0.55);
  --glow-orange: 0 10px 30px rgba(255, 133, 0, 0.15);
  --glow-blue: 0 10px 30px rgba(0, 122, 255, 0.15);
  --grid-line-color: rgba(0, 0, 0, 0.04);
  --chip-bg: rgba(0, 0, 0, 0.05);

  --ambient-orange: rgba(255, 133, 0, 0.05);
  --ambient-blue: rgba(0, 122, 255, 0.05);
}

/* STRICT ZERO SCROLL RESETS */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.5;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden !important;
  font-size: 14px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body.single-screen-app {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden !important;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 10% 20%, var(--ambient-orange) 0%, transparent 45%),
    radial-gradient(circle at 90% 30%, var(--ambient-blue) 0%, transparent 50%),
    radial-gradient(circle at 50% 85%, var(--ambient-blue) 0%, transparent 60%);
  color: var(--text-white);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Digital Grid Background */
body.single-screen-app::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, var(--grid-line-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-color) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 1;
}

@media (min-width: 768px) {
  body.single-screen-app::before {
    background-size: 48px 48px;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* Typography Classes */
.font-heading {
  font-family: var(--font-heading);
}

.text-gradient {
  background: var(--grad-alva);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-orange {
  color: var(--alva-orange);
}

.text-blue {
  color: var(--alva-blue);
}

.text-mono {
  font-family: var(--font-mono);
}

/* Unicolor SVG Icon Utility */
.unicolor-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.unicolor-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Buttons (Tap Targets) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-height: 46px;
  text-align: center;
  box-sizing: border-box;
}

@media (min-width: 480px) {
  .btn {
    font-size: 0.95rem;
    padding: 13px 26px;
  }
}

.btn-orange {
  background: var(--grad-orange);
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(255, 133, 0, 0.35);
}

.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 133, 0, 0.55);
}

.btn-blue {
  background: var(--grad-blue);
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(0, 122, 255, 0.35);
}

.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 122, 255, 0.55);
}

.btn-secondary {
  background: var(--chip-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 133, 0, 0.1);
  border-color: var(--alva-orange);
  box-shadow: var(--glow-orange);
  transform: translateY(-2px);
}

/* ==========================================================================
   FLOATING RIGHT-EDGE THEME SWITCHER
   ========================================================================== */
.floating-theme-edge-btn {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-right: none;
  border-radius: 12px 0 0 12px;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: var(--transition);
  color: var(--theme-icon-color);
  box-sizing: border-box;
}

.floating-theme-edge-btn:hover {
  width: 44px;
  background: var(--alva-orange);
  color: #ffffff;
}

.theme-svg-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease, stroke 0.25s ease;
}

.floating-theme-edge-btn:hover .theme-svg-icon {
  transform: rotate(30deg);
  stroke: #ffffff;
}
