/* ==========================================================================
   Finca Don Marcos — hoja de estilos única.
   Tokens abajo. Un solo acento (verde brote); los marrones son neutros cálidos.
   ========================================================================== */

@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-latin.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Karla';
  src: url('fonts/karla-latin.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Farmshow';
  src: url('fonts/Farmshow.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* superficie */
  --paper: #f4efe4;
  --paper-2: #efe8da;
  --paper-3: #e7ddcb;
  --ink: #241f19;
  --ink-soft: #4a4238;
  --ink-mute: #6f6555;
  --line: #d8ccb6;
  /* acento */
  --green: #4a7a2f;
  --green-deep: #2f4d1e;
  --bark: #8a6a45;

  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display-accent: 'Farmshow', 'Fraunces', 'Iowan Old Style', Georgia, serif;

  --measure: 64ch;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --shell: 76rem;
  --radius: 14px;
  --radius-sm: 6px; /* foco y elementos chicos: con 14px el anillo queda flotando lejos del borde */

  /* Relieve. Sombras teñidas de --ink, no negro puro: sobre papel cálido el negro
     ensucia. Dos capas — contacto corto + difusa larga — que es lo que da volumen. */
  --shadow: 0 1px 2px rgb(36 31 25 / 0.05), 0 8px 20px -8px rgb(36 31 25 / 0.13);
  --shadow-lift: 0 2px 4px rgb(36 31 25 / 0.05), 0 18px 38px -12px rgb(36 31 25 / 0.18);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 30, 'WONK' 1, 'opsz' 90;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; max-width: var(--measure); }
a { color: inherit; }
img, svg { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-mute);
  margin: 0 0 1rem;
}
.eyebrow--green { color: var(--green-deep); }

section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
section > .shell > h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); max-width: 30ch; }
.title-accent {
  font-family: var(--display-accent);
  font-variation-settings: normal;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  font-size: clamp(2.4rem, 1.6rem + 3vw, 3.8rem);
}
.lede { font-size: clamp(1.06rem, 1rem + 0.4vw, 1.25rem); color: var(--ink-soft); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- ritmo de superficie entre secciones ---------- */
/* mismos tokens de papel, distinta intensidad: la página respira sin sumar color nuevo */
#la-finca { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
#alquileres { background: var(--paper-3); }
#contacto { background: var(--paper); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.35rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-deep); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { padding: 0.55rem 1rem; font-size: 0.875rem; }
.btn:active { transform: translateY(1px); }

/* ---------- emoji ----------
   Los iconos de estación, del strip y del panel del festival son emoji, no SVG.
   La pila de fuentes es explícita: Karla no trae glifos de emoji y sin esto algunos
   (☀, ✨) caen en la variante monocroma de texto en vez de la de color.
   line-height:1 + block evitan que empujen la línea base de la fila. */
.emoji {
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  font-variant-emoji: emoji;
  line-height: 1;
  flex: none;
  display: block;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header > .shell {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 5rem; flex-shrink: 0; }
.brand b {
  font-family: var(--display-accent);
  font-variation-settings: normal;
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.brand__txt { display: block; }
.nav { display: flex; gap: 1.6rem; }
.nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding-block: 0.25rem;
  border-bottom: 1.5px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--green); }

@media (max-width: 860px) {
  .nav { display: none; }
  .site-header > .shell { gap: 0.85rem; }
  .brand img { width: 3.75rem; }
  .brand b { font-size: 1.85rem; white-space: nowrap; }
}
/* pantallas chicas: queda solo el isotipo (ya lleva el nombre dibujado).
   El texto se oculta visualmente pero sigue leyéndose en lectores de pantalla. */
@media (max-width: 620px) {
  .site-header > .shell { height: 4.75rem; }
  .brand img { width: 4.25rem; }
  .brand__txt {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 6vw, 5rem); }
.hero__hyphae {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: clamp(9rem, 22vw, 15rem);
  color: var(--bark);
  opacity: 0.22;
  pointer-events: none;
}
.hero > .shell { position: relative; }
.hero h1 {
  font-size: clamp(2.6rem, 1.5rem + 6.4vw, 5.5rem);
  font-variation-settings: 'SOFT' 20, 'WONK' 1, 'opsz' 144;
  max-width: 18ch;
}
.hero h1 em { font-style: normal; color: var(--green-deep); }
.hero .lede { margin-top: 1.5rem; max-width: 52ch; }
/* Aviso del festival: unico acceso a /festival en movil, donde .nav esta oculto. */
.announce {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem;
  margin-bottom: 1.5rem; padding: 0.5rem 1rem;
  border-radius: 999px;
  background: color-mix(in srgb, #e0a326 22%, var(--paper));
  border: 1px solid color-mix(in srgb, #c9622f 40%, transparent);
  font-size: 0.92rem; color: var(--ink); text-decoration: none;
}
.announce b { color: #8a4a1e; }
.announce:hover { background: color-mix(in srgb, #e0a326 32%, var(--paper)); }
@media (max-width: 640px) { .announce { border-radius: var(--radius); } }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero__note { font-size: 0.85rem; color: var(--ink-mute); margin: 1rem 0 0; }

.strip {
  border-block: 1px solid var(--line);
  background: var(--paper-2);
}
.strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  padding-block: 1.15rem;
  font-size: 0.83rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
}
.strip li { display: flex; align-items: center; gap: 0.5rem; }
.strip .emoji { font-size: 1.05rem; }
@media (max-width: 600px) {
  .strip ul { display: grid; grid-template-columns: 1fr; gap: 0.55rem; padding-block: 1.35rem; }
}

/* ---------- dos columnas ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.card-data {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 3vw, 2rem);
}
.card-data h3 { font-size: 1.2rem; margin-bottom: 1.25rem; }
.data-list { display: grid; gap: 1rem; }
.data-list div { display: grid; gap: 0.15rem; }
.data-list dt, .data-list .k {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-mute);
}
.data-list dd, .data-list .v { margin: 0; font-size: 1rem; }
.data-list a { color: var(--green-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- talleres: una tarjeta por estación ---------- */
/* Las 3 estaciones van SIEMPRE en una fila; abajo de 860px se apilan.
   Nada de auto-fit: dejaba un estado intermedio de 2 + 1 huérfana. */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* las tres iguales */
  gap: 1.25rem;
  /* aire suficiente arriba para que la abeja orbite sin pisar el párrafo */
  margin-top: clamp(3rem, 5vw, 4.25rem);
}
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.taller {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  /* overflow:hidden para que el riel respete la esquina redondeada de la tarjeta */
  overflow: hidden;
  transition: box-shadow 0.22s ease;
}
.taller:hover { box-shadow: var(--shadow-lift); }

/* riel: nombre + ventana estacional, superficie propia por estación (mismos tokens, distinta mezcla) */
.taller__rail {
  position: relative;
  padding: clamp(1.3rem, 2.2vw, 1.6rem) clamp(1.4rem, 2.5vw, 1.9rem) 1.2rem;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
}
.taller--primavera .taller__rail { background: color-mix(in srgb, var(--green) 11%, var(--paper-2)); }
.taller--verano .taller__rail { background: color-mix(in srgb, var(--bark) 15%, var(--paper-2)); }
.taller--otono .taller__rail { background: color-mix(in srgb, var(--ink) 13%, var(--paper-2)); }
.taller__rail-top { display: flex; align-items: center; gap: 0.6rem; }
.taller__rail h3 { font-size: 1.4rem; }
.taller__when {
  margin: 0.55rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-soft); /* ink-mute pierde AA sobre el wash de estación; ink-soft mantiene ≥6:1 */
}
.taller__icon { font-size: 1.75rem; }

.taller__body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.4rem clamp(1.4rem, 2.5vw, 1.9rem) clamp(1.4rem, 2.5vw, 1.9rem);
}
.taller__by { font-size: 0.86rem; color: var(--ink-mute); margin: 0 0 1.1rem; }
@media (min-width: 900px) { .taller__by { min-height: 2.9em; } }
.taller__by b { color: var(--ink-soft); font-weight: 600; }
.taller ul { display: grid; gap: 0.45rem; font-size: 0.94rem; color: var(--ink-soft); margin-bottom: 1.35rem; }
.taller li { display: grid; grid-template-columns: 0.9rem 1fr; gap: 0.6rem; }
.taller li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--bark); margin-top: 0.55em; }
.taller__foot { margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.taller__foot p { font-size: 0.82rem; color: var(--ink-mute); margin: 0 0 0.9rem; }

.season-off {
  max-width: none;
  margin: clamp(1.75rem, 3vw, 2.25rem) 0 0;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line);
  font-size: 0.92rem;
  font-style: italic;
  color: var(--ink-mute);
}

.note-lunch {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-top: clamp(1.5rem, 3vw, 2rem);
  padding: 1.1rem 1.3rem;
  background: var(--paper-3);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 62ch;
}
.note-lunch svg { width: 1.4rem; height: 1.4rem; color: var(--bark); flex: none; }
.note-lunch p { margin: 0; }

/* ---------- biblioteca: la estanteria de guias ---------- */
/* Seis tapas en fila, como los lomos de un estante. Las tapas ya son de papel
   igual que la pagina, asi que sin filete propio se funden con el fondo: el
   borde de 1px no es decoracion, es lo que las hace legibles como objetos. */
.biblio__grid {
  list-style: none;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(2rem, 4vw, 2.75rem);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}
/* De seis a tres y de tres a dos: con menos de ~150px de ancho el titulo de la
   tapa deja de leerse y la estanteria pierde el sentido. */
@media (max-width: 900px) { .biblio__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .biblio__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.biblio__grid a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  border-radius: var(--radius-sm);
}
.biblio__grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.biblio__grid a:hover img {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.biblio__grid span {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.85rem;
  line-height: 1.3;
  font-weight: 500;
  color: var(--ink-mute);
}
.biblio__grid a:hover span { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .biblio__grid img { transition: none; }
  .biblio__grid a:hover img { transform: none; }
}

/* ---------- festival: seccion clara y de fiesta ---------- */
/* Antes era una banda oscura. Ahora es la mas clara de la pagina y lleva banderines:
   el festival tiene que leerse alegre, no solemne. */
.fest {
  position: relative;
  background: linear-gradient(180deg,
    color-mix(in srgb, #e0a326 9%, var(--paper)) 0%,
    color-mix(in srgb, #e0a326 3%, var(--paper)) 100%);
  padding-top: clamp(5rem, 9vw, 7.5rem);
}
/* Los banderines son un SVG de 240x48 repetido en x: manteniendo el tile, los triangulos
   nunca se deforman al cambiar el ancho (estirar un SVG unico si los deformaba). */
.fest::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 48px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='48' viewBox='0 0 240 48'%3E%3Cpath d='M0 6 Q120 18 240 6' fill='none' stroke='%23a8916d' stroke-width='2'/%3E%3Cpath d='M12 7.1L52 10.1L32 42Z' fill='%234a7a2f'/%3E%3Cpath d='M66 10.8L106 11.9L86 44Z' fill='%23c9622f'/%3E%3Cpath d='M134 11.9L174 10.8L154 44Z' fill='%23e0a326'/%3E%3Cpath d='M188 10.1L228 7.1L208 42Z' fill='%237a9e3f'/%3E%3C/svg%3E") repeat-x top center;
  pointer-events: none;
}
.fest .eyebrow { color: var(--ink-mute); }

.program { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.9rem 2rem; margin: 2rem 0; }
.program li { display: grid; grid-template-columns: 0.9rem 1fr; gap: 0.7rem; font-size: 0.96rem; color: var(--ink-soft); }
.program li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-top: 0.55em; }

/* Texto en columna angosta; el panel a ancho completo debajo. El contraste
   angosto/ancho es lo que le da peso al panel. */
.fest__intro { max-width: 68ch; margin-top: 1.5rem; }
/* Cabecera de la edicion de los 10 anos: el mensaje del cumpleanos es la frase grande,
   y la huella con el brote (el logo de la finca) lo acompana a la derecha. */
.fest__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.fest__birthday {
  margin: 1.25rem 0 0.6rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-variation-settings: 'SOFT' 50, 'WONK' 1, 'opsz' 144;
}
.fest__birthday em { font-style: italic; color: var(--green-deep); }
.fest__mark { height: clamp(9rem, 6rem + 12vw, 15rem); width: auto; }
@media (max-width: 640px) {
  .fest__head { grid-template-columns: 1fr; }
  .fest__mark { order: -1; height: 9rem; }
}

/* Panel de la proxima edicion. La fecha grande va en Fraunces: Farmshow no tiene
   acentos y aca hay "anos" y "sabado". */
.fest__next {
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 3.5vw, 2.75rem);
}
.fest__next-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
  padding-bottom: clamp(1.25rem, 2.5vw, 1.6rem);
  border-bottom: 1px solid var(--line);
}
.fest__next-head .eyebrow { margin: 0; }
.fest__next-badge {
  display: inline-block;
  margin: 0;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: color-mix(in srgb, #e0a326 22%, var(--paper));
  border: 1px solid color-mix(in srgb, #c9622f 40%, transparent);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: #8a4a1e;
}
.fest__next-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 820px) { .fest__next-grid { grid-template-columns: 1fr; gap: 2.25rem; } }
.fest__next b {
  display: block;
  font-family: var(--display);
  font-size: clamp(4.5rem, 2.5rem + 8vw, 8.5rem);
  font-weight: 600;
  line-height: 0.82;
  color: var(--green);
  font-variation-settings: 'SOFT' 20, 'WONK' 1, 'opsz' 144;
}
.fest__next b i { font-style: normal; margin: 0 0.06em; color: #e0a326; }
.fest__next strong {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-soft);
}
.fest__next-days { margin: 0.45rem 0 0; font-size: 0.95rem; color: var(--ink-mute); }
.fest__plan { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(0.95rem, 2vw, 1.25rem); }
.fest__plan li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 1.1rem; align-items: center; }
.fest__plan .emoji { font-size: 1.4rem; justify-self: center; }
.fest__plan span { font-size: clamp(1rem, 0.95rem + 0.2vw, 1.12rem); color: var(--ink-soft); }
/* Boton de ancho natural, alineado a la izquierda: a ancho completo entra en la zona
   del WhatsApp flotante (fixed, abajo a la derecha) y el flotante se come el tap. */
.fest__next-cta {
  margin-top: clamp(1.75rem, 3.5vw, 2.25rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.5rem;
}
.fest__next-cta .btn { flex: none; }
.fest__next-note {
  margin: 0;
  flex: 1 1 18rem;
  min-width: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-mute);
}

/* ---------- contacto ---------- */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.contact h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; font-family: var(--sans); font-weight: 700; letter-spacing: 0.02em; margin-bottom: 0.6rem; }
.contact h3 svg { width: 1.05rem; height: 1.05rem; color: var(--green); flex: none; }
.contact a { color: var(--green-deep); }
.contact p { font-size: 0.98rem; }
.socials { display: flex; gap: 0.6rem; margin-top: 0.9rem; }
.socials a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
}
.socials a:hover { border-color: var(--green); color: var(--green-deep); }
.socials svg { width: 1.15rem; height: 1.15rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem; background: var(--paper-2); }
.site-footer > .shell { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; font-size: 0.85rem; color: var(--ink-mute); }
.site-footer a { color: var(--ink-soft); }

/* ---------- wa flotante (móvil) ---------- */
.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgb(36 31 25 / 0.22);
}
.wa-float svg { width: 1.15rem; height: 1.15rem; }
@media (max-width: 860px) { .wa-float { display: inline-flex; } }

/* ==========================================================================
   MULTI-PÁGINA — componentes de /la-finca y /voluntariado
   Todo se apoya en los tokens de arriba: ni un color ni una fuente nuevos.
   ========================================================================== */

/* ---------- nav: página actual ---------- */
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--green); }

/* ---------- hero de página interior ----------
   Más bajo que el de la home y sin hifas: las interiores entran en materia rápido. */
.page-hero {
  padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
  background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.6rem);
  font-variation-settings: 'SOFT' 20, 'WONK' 1, 'opsz' 144;
  max-width: 20ch;
}
.page-hero .lede { margin-top: 1.25rem; max-width: 58ch; }

/* ---------- tres caminos (home) ----------
   Las tres audiencias del sitio, una tarjeta cada una. Grid de 3 fijo por el mismo
   motivo que .cards: auto-fit dejaba 2 + 1 huérfana. */
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 860px) { .doors { grid-template-columns: 1fr; } }
.door {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: box-shadow 0.22s ease, border-color 0.22s ease;
}
.door:hover { box-shadow: var(--shadow-lift); border-color: var(--bark); }
.door .emoji { font-size: 1.9rem; margin-bottom: 0.9rem; }
.door h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.door p { font-size: 0.95rem; color: var(--ink-soft); margin: 0 0 1.35rem; max-width: none; }
.door__go {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-deep);
}
.door:hover .door__go { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- sistemas productivos (/la-finca) ----------
   Un bloque por sistema, texto a la izquierda y la ficha entrada/salida a la derecha.
   La ficha es el punto: deja ver que los sistemas se alimentan entre sí. */
.systems { display: grid; gap: clamp(2.5rem, 5vw, 4rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.system {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
}
.systems > .system:first-child { padding-top: 0; border-top: 0; }
@media (max-width: 820px) { .system { grid-template-columns: 1fr; } }
.system__head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.system__head .emoji { font-size: 2rem; }
.system__head h3 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); }
.system p:last-child { margin-bottom: 0; }

/* ficha entrada → salida */
.io {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 2.5vw, 1.6rem);
}
.io dl { display: grid; gap: 1.05rem; margin: 0; }
.io dt {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-mute);
  margin-bottom: 0.25rem;
}
.io dd { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.io .io__arrow { color: var(--bark); font-weight: 700; }

/* ---------- áreas de trabajo (/voluntariado) ---------- */
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; margin-top: clamp(2rem, 4vw, 2.75rem); }
.area {
  padding: clamp(1.35rem, 2.5vw, 1.75rem);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.area__head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.85rem; }
.area__head .emoji { font-size: 1.6rem; }
.area h3 { font-size: 1.15rem; }
.area p { font-size: 0.94rem; color: var(--ink-soft); margin: 0; max-width: none; }

/* ---------- callout genérico ----------
   Igual de peso que .note-lunch pero sin el icono fijo del bowl. */
.callout {
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  padding: clamp(1.25rem, 2.5vw, 1.6rem) clamp(1.35rem, 3vw, 1.9rem);
  background: var(--paper-3);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 66ch;
}
.callout h3 { font-size: 1.15rem; margin-bottom: 0.65rem; }
.callout p { font-size: 0.96rem; color: var(--ink-soft); }
.callout p:last-child { margin-bottom: 0; }
/* variante de límite: lo que el voluntariado NO es. Borde izquierdo, no color de alarma. */
.callout--edge { background: var(--paper-2); border-left: 3px solid var(--bark); }
/* dos avisos en fila: sueltos y a 66ch dejaban media fila vacía a la derecha */
.callout-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
}
.callout-pair .callout { max-width: none; margin-top: 0; }
@media (max-width: 900px) { .callout-pair { grid-template-columns: 1fr; } }

/* lista de pasos numerados (cómo se postula) */
.steps { counter-reset: step; display: grid; gap: 1.1rem; margin: clamp(1.75rem, 3.5vw, 2.25rem) 0 0; max-width: 62ch; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 1.9rem 1fr; gap: 0.9rem; align-items: start; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}
.steps p { margin: 0; font-size: 0.97rem; color: var(--ink-soft); }
.steps b { color: var(--ink); }

/* ---------- banda de cierre de página interior ---------- */
.cta-band { background: var(--paper-3); border-top: 1px solid var(--line); }
.cta-band h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); max-width: 24ch; }
.cta-band .lede { margin-top: 1rem; max-width: 56ch; }
.cta-band__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ---------- hueco de foto ----------
   NO se pone en el HTML hasta que exista el archivo: un .ph vacío es un rectángulo
   tostado, o sea un hueco visible. El aspect-ratio reserva el espacio para que la
   imagen no empuje el layout al cargar. Markup listo para pegar en el README. */
.ph {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper-3);
  box-shadow: var(--shadow);
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph--3x2 { aspect-ratio: 3 / 2; }
.ph--4x3 { aspect-ratio: 4 / 3; }
.ph--sq  { aspect-ratio: 1 / 1; }
.ph figcaption {
  padding: 0.7rem 0.9rem;
  font-size: 0.82rem;
  color: var(--ink-mute);
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   BESTIARIO — grabados entomológicos vectorizados (assets/bestiario/)
   Quietos por defecto: el movimiento arranca al pasar el mouse por la tarjeta
   de la estación (o su sección, en el caso de las hormigas).
   Todo muere igual con el prefers-reduced-motion global de arriba.
   ========================================================================== */

/* ---- hormigas: recorren los bordes de sección, a escala real ---- */
/* overflow:visible es obligatorio: el UA stylesheet le pone overflow:hidden a <hr>,
   y eso recortaba la hormiga a la franja de 1px de la línea. */
.rule, .strip { position: relative; }
.rule { overflow: visible; }
.rule::after, .strip::after {
  content: '';
  position: absolute;
  width: 19px;
  height: 25px;
  background: url('bestiario/ant.svg') center / contain no-repeat;
  opacity: 0.5;
  pointer-events: none;
  z-index: 2;
  animation-play-state: paused;
}
.rule::after  { top: 50%;  margin-top: -12.5px; }
.strip::after { top: 100%; margin-top: -12.5px; }

.rule:nth-of-type(1)::after {
  animation: ant-scurry 19s linear infinite, ant-step 0.17s ease-in-out infinite;
}
.rule:nth-of-type(2)::after {
  animation: ant-scurry 24s linear infinite reverse, ant-step-back 0.2s ease-in-out infinite;
  animation-delay: -7s, 0s;
}
.strip::after {
  animation: ant-scurry 27s linear infinite, ant-step 0.22s ease-in-out infinite;
  animation-delay: -16s, 0s;
}
/* cada hormiga despierta con la sección que bordea (o con la línea misma) */
.strip:hover::after,
.rule:hover::after,
#la-finca:hover + .rule::after,
#talleres:hover + .rule::after,
#alquileres:hover + .rule::after,
.rule:has(+ section:hover)::after { animation-play-state: running; }
@media (hover: none) { .rule::after, .strip::after { animation-play-state: running; } }

/* correteo con parones: la hormiga dispara, frena a revisar algo, y sigue */
@keyframes ant-scurry {
  0%   { left: -4%; }
  18%  { left: 22%;  animation-timing-function: steps(1, end); }
  24%  { left: 22%; }
  46%  { left: 51%;  animation-timing-function: steps(1, end); }
  53%  { left: 51%; }
  78%  { left: 83%;  animation-timing-function: steps(1, end); }
  84%  { left: 83%; }
  100% { left: 104%; }
}
/* el cabeceo va DESPUÉS del rotate: así el translateX empuja en vertical en pantalla */
@keyframes ant-step {
  0%, 100% { transform: rotate(90deg) translateX(0); }
  50%      { transform: rotate(90deg) translateX(1.2px); }
}
@keyframes ant-step-back {
  0%, 100% { transform: rotate(-90deg) translateX(0); }
  50%      { transform: rotate(-90deg) translateX(1.2px); }
}

/* congelados por reduced-motion: posición decente en vez de left:auto */
@media (prefers-reduced-motion: reduce) {
  .rule:nth-of-type(1)::after { left: 22%; transform: rotate(90deg); }
  .rule:nth-of-type(2)::after { left: 68%; transform: rotate(-90deg); }
  .strip::after { left: 46%; transform: rotate(90deg); }
}

