/* ===========================================================================
   base.css — reset, tokens (§5.1), tipografía (§5.2), espaciado (§5.4), dvh (§5.5)
   =========================================================================== */

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

* { margin: 0; }

html,
body { height: 100%; }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

[hidden] { display: none !important; }

/* ---- Tokens (§5.1) — hortensias sobre arena ---------------------------- */
:root {
  /* Paleta */
  --arena:          #F6EFE3;
  --arena-2:        #EFE5D4;
  --arena-lavada:   #FBF7F0;
  --tinta:          #34313A;
  --tinta-suave:    #7A736C;   /* SOLO decorativo / texto grande (el "0" de la boda). 4.1:1 sobre arena. */
  --tinta-media:    #5A544E;   /* texto secundario legible: pies, rankings, filas. ~6.5:1 sobre arena. */
  --blanco-calido:  #FFFDF9;

  --azul:           #6B8FC7;
  --azul-hondo:     #3F5C8C;
  --lila:           #9887C0;
  --lila-hondo:     #6E5E97;
  --rosa:           #D291A8;
  --rosa-claro:     #EBC9D5;
  --rosa-hondo:     #B56E8A;
  --verde:          #6E8B6A;
  --verde-hondo:    #4F6B4C;

  --sombra:         0 8px 30px rgba(52, 49, 58, 0.10);

  /* Tipografía (§5.2) */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-ui:      'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Espaciado (§5.4): 4 · 8 · 12 · 16 · 24 · 32 · 48 · 64 */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;

  /* Altura de viewport — tercera capa de fallback, la setea main.js (§5.5) */
  --vh: 1vh;

  /* Acento por defecto (cada slide lo pisa con .accent-* en slides.css) */
  --accent: var(--lila);
  --accent-hondo: var(--lila-hondo);
}

/* ---- Base del documento ---------------------------------------------------- */
body {
  font-family: var(--font-ui);
  font-weight: 400;
  color: var(--tinta);
  background: var(--arena);
  overflow: hidden; /* la navegación es por slides, no por scroll del body */
}

#app {
  position: relative;
  width: 100%;
  height: 100dvh;
}
@supports not (height: 100dvh) {
  #app { height: 100vh; height: calc(var(--vh, 1vh) * 100); }
}

/* Números: cifras alineadas y de caja pareja para el count-up */
.count,
.num {
  font-family: var(--font-display);
  font-variant-numeric: lining-nums tabular-nums;
}

/* ---- Utilidades tipográficas compartidas -------------------------------- */
.kicker {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.8125rem;         /* 13px — no es "texto grande", necesita 4.5:1 */
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tinta-media);
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.95;
}

/* ---- Reduced motion: se respeta también en CSS ------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 120ms !important;
  }
}
