/* =========================================================
   WowLab · global.css
   Design tokens, reset, tipografía, botones, Hero y reveal
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces */
  --color-bg:       #121213;   /* fondo principal */
  --color-elevated: #252526;   /* tarjetas, contenedores elevados */
  --color-border:   #1D1F24;   /* divisores, bordes de inputs */

  /* Text */
  --color-text:     #FFFFFF;   /* títulos, cuerpo */
  --color-muted:    #6F6F7A;   /* captions, texto secundario */

  /* Brand */
  --color-primary:  #DD3513;   /* CTAs, botones primarios, links */
  --color-accent:   #E45D42;   /* highlights, hover states */
  --color-chat:     #25D366;   /* botón flotante de chat */

  /* Light surfaces */
  --color-light-bg: #F0F0F3;
  --color-light-bd: #C4C4D1;

  /* Bandas inversas (footer, CTA, ticker gigante) */
  --color-band:      #0A0A0A;
  --color-band-text: #FFFFFF;

  /* Navbar scrolled */
  --navbar-bg: rgba(18, 18, 19, 0.95);

  /* Hero fantasma */
  --hero-ghost-stroke: rgba(255, 255, 255, 0.06);

  /* Theme toggle */
  --toggle-bg:    var(--color-elevated);
  --toggle-border: var(--color-border);
  --toggle-color: var(--color-text);

  /* Typography */
  --font-heading: 'Bricolage Grotesque', sans-serif;
  --font-body:    'Kumbh Sans', sans-serif;

  /* Border radius vocabulary */
  --radius-btn:  30px;   /* botones, inputs, pills */
  --radius-card: 16px;   /* tarjetas, contenedores de imagen */
  --radius-sm:    8px;   /* chips, badges pequeños */
}

/* =========================================================
   Tema claro (toggle)
   ========================================================= */
[data-theme="light"] {
  /* Surfaces */
  --color-bg:       #F5F5F7;
  --color-elevated: #FFFFFF;
  --color-border:   #E4E4EA;

  /* Text */
  --color-text:     #121213;
  --color-muted:    #6F6F7A;

  /* Brand (se mantiene) */
  --color-primary:  #DD3513;
  --color-accent:   #E45D42;
  --color-chat:     #25D366;

  /* Light surfaces: en tema claro pasan a ser superficies de contraste */
  --color-light-bg: #121213;
  --color-light-bd: #3A3A44;

  /* Bandas inversas: en tema claro se vuelven claras */
  --color-band:      #FFFFFF;
  --color-band-text: #121213;

  /* Navbar scrolled */
  --navbar-bg: rgba(245, 245, 247, 0.92);

  /* Hero fantasma */
  --hero-ghost-stroke: rgba(18, 18, 19, 0.08);

  /* Theme toggle */
  --toggle-bg:    var(--color-elevated);
  --toggle-border: var(--color-border);
  --toggle-color: var(--color-text);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.63;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

/* ---------- Tipografía ---------- */
h1 {
  font-family: var(--font-heading);
  font-size: clamp(48px, 8vw, 137px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -1.37px;
  color: var(--color-text);
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.72px;
  color: var(--color-text);
}

h3 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 35px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.35px;
  color: var(--color-text);
}

p, li, span {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.63;
  color: var(--color-muted);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ---------- Botones ---------- */
.btn-primary {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  background: var(--color-primary);
  color: #FFFFFF;
  padding: 18px 40px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  padding: 16px 36px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}

.btn-circle:hover {
  background: var(--color-accent);
  transform: scale(1.1);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }