/* ============================================
   SmashPlay · Base styles
   Reset moderno + tipografía base + utilidades.
   ============================================ */

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--sp-negro);
  background: var(--sp-blanco);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg, picture, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--transition-base); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

/* ---- TIPOGRAFÍA ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--sp-negro);
  letter-spacing: -0.02em;
}
h1 { font-family: var(--font-display); font-size: var(--fs-h1); font-weight: var(--fw-normal); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { line-height: var(--lh-relaxed); }

/* ---- TIPOGRAFÍA DE IMPACTO ---- */
.sp-hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: var(--fw-normal);
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
  color: var(--sp-negro);
}
.sp-section-title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: var(--fw-normal);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-md);
}
.sp-section-subtitle {
  font-family: var(--font-body);
  font-size: var(--fs-lg);
  font-weight: var(--fw-normal);
  line-height: var(--lh-snug);
  color: var(--sp-gris-600);
  max-width: 720px;
}
.sp-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sp-azul);
  margin-bottom: var(--sp-md);
}

/* ---- CONTAINER ---- */
.sp-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  width: 100%;
}

/* ---- SECCIÓN ---- */
.sp-section {
  padding-top: var(--sp-3xl);
  padding-bottom: var(--sp-3xl);
}
.sp-section--alt { background: var(--sp-gris-100); }
.sp-section--dark { background: var(--sp-negro); color: var(--sp-blanco); }
.sp-section--dark h1, .sp-section--dark h2, .sp-section--dark h3 { color: var(--sp-blanco); }
.sp-section--dark .sp-section-subtitle { color: var(--sp-blanco-alpha-70); }
.sp-section--compact { padding-top: var(--sp-2xl); padding-bottom: var(--sp-2xl); }

/* ---- UTILIDADES ---- */
.sp-text-center { text-align: center; }
.sp-text-left   { text-align: left; }
.sp-text-right  { text-align: right; }
.sp-text-muted  { color: var(--sp-gris-600); }
.sp-text-verde  { color: var(--sp-verde); }
.sp-text-azul   { color: var(--sp-azul); }
.sp-mb-sm       { margin-bottom: var(--sp-sm); }
.sp-mb-md       { margin-bottom: var(--sp-md); }
.sp-mb-lg       { margin-bottom: var(--sp-lg); }
.sp-mb-xl       { margin-bottom: var(--sp-xl); }
.sp-mb-2xl      { margin-bottom: var(--sp-2xl); }
.sp-mb-3xl      { margin-bottom: var(--sp-3xl); }

/* ---- VISIBILIDAD RESPONSIVE ---- */
.sp-hide-mobile  { display: block; }
.sp-show-mobile  { display: none; }
@media (max-width: 768px) {
  .sp-hide-mobile { display: none; }
  .sp-show-mobile { display: block; }
}

/* ---- ACCESIBILIDAD ---- */
.sp-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: 3px solid var(--sp-azul);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
