/* ============================================================
   El Camino de Frutillar — base.css
   Reset + variables + utilidades compartidas
   ============================================================ */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--negro, #1A1D1A);
  background: var(--crema, #F5F2ED);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
  margin: 0;
}

ul, ol { padding: 0; margin: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

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

input, textarea, select {
  font: inherit;
  color: inherit;
}

/* ---------- Focus visible ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--verde, #3E4A36);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Variables compartidas ---------- */
:root {
  --crema: #F5F2ED;
  --crema-soft: #EAE6DD;
  --verde: #3E4A36;
  --verde-claro: #8FA386;
  --verde-tinta: #2A3324;
  --ocre: #C89B3A;
  --oro: #C89B3A;
  --tierra: #8B6F47;
  --gris: #999999;
  --negro: #1A1D1A;
  --borde: rgba(62, 74, 54, 0.15);

  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --font-serif: 'Spectral', Georgia, serif;
  --font-display: 'Spectral', Georgia, serif;
  --font-display-italic: 'Spectral', Georgia, serif;
  --font-body: 'Jost', system-ui, sans-serif;

  --topbar-h: 56px;
  --max-w: 1400px;
}

/* ---------- Utilidades ---------- */
.container {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--verde);
}

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

/* ---------- WhatsApp floating ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.3); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- Botones compartidos ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 14px 22px;
  min-height: 44px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--verde);
  color: var(--crema);
}
.btn-primary:hover { background: var(--verde-tinta); }
.btn-outline {
  background: transparent;
  color: var(--verde);
  border-color: var(--verde);
}
.btn-outline:hover { background: var(--verde); color: var(--crema); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
