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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 56px;
}

/* Grano premium eliminado en V2 — buscamos look ecommerce limpio sobre blanco puro */

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lh-base);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100dvh;
}

@media (max-width: 1023px) {
  body { padding-bottom: 76px; }
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  min-height: var(--tap-min);
  padding: 0;
}

a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* ============ TIPOGRAFÍA ============ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--color-text);
}

h1 { font-size: var(--text-4xl); letter-spacing: -0.02em; }
h2 { font-size: var(--text-3xl); letter-spacing: -0.015em; }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

em {
  font-style: normal;
  color: var(--color-title-accent);
  font-weight: var(--fw-extrabold);
}

p {
  color: var(--color-text-secondary);
  line-height: var(--lh-base);
  font-size: var(--text-base);
}

strong { font-weight: var(--fw-bold); color: var(--color-text); }

/* ============ LAYOUT ============ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}
.container--narrow { max-width: var(--container-narrow); }
.container--text   { max-width: var(--container-text); }

.section {
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}

/* ============ COMPONENTES TIPOGRÁFICOS ============ */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--s-3);
}
.eyebrow--light { color: var(--color-accent-light); }

.section-header { margin-bottom: var(--s-7); }
.section-header.center { text-align: center; }
.section-header h2 { max-width: 28ch; margin-top: var(--s-2); }
.section-header.center h2 { margin-left: auto; margin-right: auto; }

/* ============ SISTEMA DE ANIMACIONES ============ */
/* Desactivadas: en móviles lentos (campañas) el fade-in retrasaba el
   contenido y la gente abandonaba antes de ver la página. Todo se muestra
   instantáneamente al cargar. Las clases se conservan por compatibilidad. */
[data-animate],
[data-animate="fade-up"],
[data-animate="fade-left"],
[data-animate="fade-right"],
[data-animate="scale"],
[data-animate="blur-in"],
[data-animate].in-view {
  opacity: 1;
  transform: none;
  filter: none;
  transition: none;
}

.stagger-2,
.stagger-3,
.stagger-4 { transition-delay: 0s; }

.hero-enter,
.hero-enter.visible {
  opacity: 1;
  transform: none;
  animation: none;
  transition: none;
}

/* ============ UTILIDADES ============ */
.text-light  { color: var(--color-text-light); }
.text-center { text-align: center; }
[hidden]     { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
