/* ============================================
   BASE.CSS — Design tokens & global resets
   Mobile first: 390px base, min-width breakpoints
   ============================================ */

/* --- Tokens --- */
:root {
  /* Colors */
  --color-negro:   #0D0D0B;
  --color-carbon:  #1A1A17;
  --color-oro:     #A8935A;
  --color-arena:   #C8B89A;
  --color-crema:   #F5F2ED;

  /* Typography */
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body:    'Unbounded', system-ui, sans-serif;

  /* Scale — mobile base */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Breakpoints (reference only — use in @media min-width) */
  /* sm: 480px | md: 768px | lg: 1024px | xl: 1280px */

  /* Glass */
  --glass-bg:     rgba(26, 26, 23, 0.55);
  --glass-border: rgba(200, 184, 154, 0.12);
  --glass-blur:   12px;
  --glass-radius: 6px;

  /* Transitions */
  --transition-step: 400ms ease;
  --transition-fast: 180ms ease;

  /* Touch targets */
  --tap-min: 48px;

  /* Progress bar */
  --progress-h: 2px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
  overflow: hidden;
  height: 100dvh;
  height: -webkit-fill-available;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-negro);
  color: var(--color-crema);
  line-height: 1.5;
  overflow: hidden;
  width: 100%;
  height: 100dvh;
  height: -webkit-fill-available;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* --- Step layout --- */
.step__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--space-8) var(--space-6);
  text-align: center;
  gap: var(--space-4);
}

.step__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  color: var(--color-oro);
  text-transform: uppercase;
}

.step__placeholder {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-arena);
  opacity: 0.4;
}

.step__footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  padding-bottom: calc(var(--space-6) + 28px); /* clear progress dots */
}

img, video {
  display: block;
  max-width: 100%;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

/* --- Utility --- */
/* --- WhatsApp floating bubble --- */
.wa-bubble {
  position: fixed;
  top: var(--space-5);
  right: var(--space-4);
  z-index: 10000;
  width: 60px;
  height: 60px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--color-oro);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  color: var(--color-negro);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.wa-bubble:active {
  transform: scale(0.92);
}

.wa-bubble svg {
  width: 30px;
  height: 30px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- Desktop scale overrides --- */
@media (min-width: 768px) {
  :root {
    --text-3xl:  2.25rem;
    --text-4xl:  3rem;
    --text-5xl:  4rem;
    --text-6xl:  5rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --text-5xl:  4.5rem;
    --text-6xl:  6rem;
  }
}
