/* ════════════════════════════════════════════════════════════════════════
   HOREKA — Base
   Reset, variables, tipografia, utilidades.
   ════════════════════════════════════════════════════════════════════════ */

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

/* ── Variables ─────────────────────────────────────────────────────────── */
:root {
  /* Color base */
  --c-white: #FFFFFF;
  --c-warm-white: #FAFAF7;
  --c-ice: #F3F6F6;
  --c-border: #E3E7E6;
  --c-text-soft: #4B4654;
  --c-text: #17141D;
  --c-graphite: #24212B;

  /* Acentos */
  --c-ice-blue: #5FAFC4;        /* Azul hielo principal — acento dominante */
  --c-ice-blue-soft: #8EC9D6;   /* Azul hielo suave */
  --c-ice-blue-dark: #3F8FA6;   /* Azul hielo oscuro (hover/active) */
  --c-vanilla: #D7B85A;          /* Vainilla / dorado premium */
  --c-vanilla-soft: #E8C766;     /* Vainilla suave */
  --c-pistache: #8DBB75;         /* Verde pistache — acento secundario */
  --c-pistache-dark: #6E9C58;
  --c-berry: #C76D82;
  --c-cream: #B79B73;

  /* Tipografia */
  --font-display: "Manrope", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Escala tipografica */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.75rem;
  --fs-4xl: 3.75rem;
  --fs-5xl: 5rem;

  /* Espaciado */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.5rem;
  --sp-8: 3rem;
  --sp-9: 4rem;
  --sp-10: 5rem;
  --sp-12: 7rem;
  --sp-16: 10rem;

  /* Radios */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Sombras */
  --sh-xs: 0 1px 2px rgba(23, 20, 29, 0.04);
  --sh-sm: 0 2px 8px rgba(23, 20, 29, 0.06);
  --sh-md: 0 8px 24px rgba(23, 20, 29, 0.08);
  --sh-lg: 0 24px 60px rgba(23, 20, 29, 0.12);

  /* Transiciones */
  --t-fast: 180ms cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-base: 260ms cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-slow: 460ms cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Layout */
  --container: 1240px;
  --container-narrow: 980px;
  --container-wide: 1400px;
  --header-h: 104px;
}

/* ── Base ──────────────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  /* Red de seguridad: evita scroll horizontal por animaciones reveal y
     cualquier otro elemento que pueda desbordarse en movil. */
  overflow-x: hidden;
}
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ── Tipografia ────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--c-text);
}
h1 { font-size: clamp(2.5rem, 5.2vw, var(--fs-5xl)); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.875rem, 3.4vw, var(--fs-3xl)); letter-spacing: -0.025em; }
h3 { font-size: var(--fs-xl); letter-spacing: -0.015em; }
h4 { font-size: var(--fs-lg); letter-spacing: -0.01em; line-height: 1.25; }

p { color: var(--c-text-soft); line-height: 1.65; }
strong, b { color: var(--c-text); font-weight: 600; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--c-ice-blue-dark);
  font-weight: 600;
}

.lead {
  font-size: var(--fs-md);
  color: var(--c-text-soft);
  line-height: 1.55;
  max-width: 60ch;
}

/* ── Selecciones ───────────────────────────────────────────────────────── */
::selection { background: var(--c-ice-blue); color: var(--c-white); }

/* ── Foco accesible ────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--c-graphite);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Utilidades ────────────────────────────────────────────────────────── */
.container       { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-5); }
.container-narrow{ width: 100%; max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--sp-5); }
.container-wide  { width: 100%; max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--sp-5); }

.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;
}

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