/* =========================
   BASE STYLES (MOBILE FIRST)
   - Estilos estructurales
   - Sin lógica
   - Sin animación
   ========================= */

html,
body {
  width: 100%;
  height: 100%;
  background-color: var(--color-black);
  color: var(--color-light-gray);
  font-family: var(--font-primary);

  /* Mobile: permitir scroll natural */
  overflow-y: auto;

  /* Permitir gesto vertical */
  touch-action: pan-y;
}

/* =========================
   EXPERIENCE CONTAINER
   - Contenedor maestro
   - Referencia para bloques apilados
   ========================= */

.experience {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

/* =========================
   MOBILE SCROLL SNAP
   - Solo mobile
   - Traducción editorial
   ========================= */

@media (max-width: 767px) {
  .experience {
    scroll-snap-type: y mandatory;
  }
}

/* =========================
   BLOCKS
   - Pantallas apiladas
   ========================= */

.block {
  position: relative;
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 1;
  pointer-events: auto;
}

/* =========================
   MOBILE SNAP POINTS
   ========================= */

@media (max-width: 767px) {
  .block {
    scroll-snap-align: start;
  }
}

/* =========================
   CONTENT
   - Contenedor editorial
   ========================= */

.content {
  width: 90%;
  max-width: 480px;
  text-align: center;
}

/* =========================
   TYPOGRAPHY
   ========================= */

h1 {
  font-size: 2.5rem;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

h2 {
  font-size: 1.8rem;
  margin-bottom: var(--space-sm);
}

h3 {
  font-family: var(--font-secondary);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-gray);
}

/* =========================
   DESKTOP BREAKPOINT
   - Scroll editorial controlado por JS
   ========================= */

@media (min-width: 768px) {

  html,
  body {
    overflow: hidden;
    /* Desktop controlado por scroll.js */
  }

  .experience {
    height: 100vh;
  }

  .block {
    position: absolute;
    inset: 0;

    opacity: 0;
    pointer-events: none;
  }

  .block.active {
    opacity: 1;
    pointer-events: auto;
  }

  .content {
    max-width: 720px;
  }

  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.4rem;
  }

  p {
    font-size: 1.1rem;
  }
}