/* =========================================================================
   El Camino de Frutillar — Cuaderno de Campo
   base.css  ·  reset, variables compartidas, utilidades
   ========================================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  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;
  }
}

body {
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

button {
  background: none;
  border: none;
  cursor: pointer;
}

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

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- skip link accesible --- */
.skip-link {
  position: absolute;
  top: -48px;
  left: 8px;
  background: #0E1210;
  color: #E8E4DA;
  padding: 8px 14px;
  z-index: 1000;
  border-radius: 4px;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 13px;
}
.skip-link:focus { top: 8px; }

/* ---- WhatsApp flotante (compartido) ---- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #3E4A36;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  z-index: 90;
  transition: transform .3s ease, box-shadow .3s ease;
}
.wa-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,.32);
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

@media (max-width: 640px) {
  .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
}

/* helper sr-only */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
