/* ============================================================
   El Hornito — Base (reset, tipografía, utilidades, botones)
   ============================================================ */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  color: var(--eh-text);
  background: var(--eh-cream);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* clip (no hidden): recorta el desborde horizontal del full-bleed SIN crear un
     contenedor de scroll, así no rompe position:sticky (mapa de sucursales). */
  overflow-x: clip;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, textarea { font: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--eh-gold); outline-offset: 2px; border-radius: 4px; }

/* ---- Tipografía ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  color: var(--eh-ink);
  font-weight: 400;
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.eyebrow {
  font-family: var(--ff-cond);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--eh-gold-ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--eh-gold);
}
.section-title {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
}
.lead { font-size: 1.075rem; color: var(--eh-text); max-width: 60ch; }
.text-gold { color: var(--eh-gold-ink); }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head .lead { margin-top: 16px; }

/* ---- Botones ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--ff-cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  transition: background-color .25s var(--ease), color .25s var(--ease),
              transform .15s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--gold {
  background: var(--eh-gold);
  color: var(--eh-gold-ink);
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover { background: var(--eh-gold-hover); }
.btn--red {
  background: var(--eh-red);
  color: #fff;
  box-shadow: 0 10px 24px rgba(195, 49, 48, .28);
}
.btn--red:hover { background: var(--eh-red-hover); }
.btn--green {
  background: var(--eh-green);
  color: #fff;
}
.btn--green:hover { background: var(--eh-green-hover); }
.btn--white {
  background: var(--eh-white);
  color: var(--eh-ink);
}
.btn--white:hover { background: var(--eh-gold); color: var(--eh-gold-ink); }
.btn--ghost {
  background: transparent;
  color: var(--eh-ink);
  border: 2px solid var(--eh-ink);
}
.btn--ghost:hover { background: var(--eh-ink); color: var(--eh-cream); }
.btn--dark {
  background: var(--eh-ink);
  color: var(--eh-cream);
}
.btn--dark:hover { background: var(--eh-gold); color: var(--eh-gold-ink); }
.btn--sm { padding: 10px 20px; font-size: 0.85rem; }
.btn--block { width: 100%; }

/* ---- Estrellas ---- */
.stars { display: inline-flex; align-items: center; gap: 2px; color: var(--eh-star); }
.stars svg { width: 16px; height: 16px; }
.stars .rating-num { margin-left: 6px; font-family: var(--ff-body); font-size: .85rem; color: var(--eh-text-soft); }

/* ---- Helpers ---- */
.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;
}
.no-scroll { overflow: hidden; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
