/* ===== Paleta: familia de verdes oliva construida alrededor del Verde EFA ===== */
:root {
  --efa: #567638;          /* Verde EFA (el de la app) */
  --green-900: #1f2b17;    /* oliva profundo: secciones oscuras y footer */
  --green-800: #33481f;    /* oliva oscuro: textos de acento sobre tintes */
  --green-600: var(--efa); /* acentos: etiquetas, íconos, indicador */
  --green-100: #e9eedf;    /* tinte claro del Verde EFA */
  --yellow: #f4d23a;
  --earth: #8b3a1e;
  --cream: #f8f4ea;
  --ink: #1f2a17;
  --muted: #5d6653;
  --white: #fff;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(31, 43, 23, .35);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; font-weight: 700; }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

.eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: .9rem;
}

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--green-900);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--yellow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0,0,0,.4); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { background: transparent; border-color: var(--green-800); color: var(--green-800); }
.btn-outline:hover { background: var(--green-800); color: var(--white); }

/* ===== Header ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--white);
  transition: background .35s, box-shadow .35s, color .35s;
}
/* El fondo borroso va en un pseudo-elemento: si backdrop-filter estuviera en el header,
   el menú móvil (position: fixed) quedaría contenido en la barra y no cubriría la pantalla. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: transparent;
  transition: background .35s, box-shadow .35s;
}
.site-header.scrolled::before {
  background: rgba(248, 244, 234, .55);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 1px 0 rgba(31, 43, 23, .08);
}
.site-header.scrolled { color: var(--green-900); --indicator: var(--green-600); }
/* Sobre secciones oscuras la barra se tiñe de verde para mantener el contraste */
.site-header.scrolled.on-dark::before {
  background: rgba(31, 43, 23, .45);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}
.site-header.scrolled.on-dark { color: var(--white); --indicator: var(--yellow); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; font-family: var(--font-display); font-size: 1.25rem; }
.brand img { width: 30px; height: auto; }
.nav { display: flex; align-items: center; gap: 1.8rem; position: relative; }

/* Indicador de sección activa: se desliza entre los links del menú */
.nav-indicator {
  position: absolute; left: 0; top: var(--ind-y, 100%);
  height: 3px; width: var(--ind-w, 0); border-radius: 3px;
  background: var(--indicator, var(--yellow));
  transform: translateX(var(--ind-x, 0));
  opacity: 0;
  transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s, background .35s;
  pointer-events: none;
}
.nav.has-active .nav-indicator { opacity: 1; }
.nav a.active:not(.btn) { font-weight: 600; }

/* Nombre de la sección actual (solo celular) */
.current-section { display: none; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 2px;
  background: var(--indicator, var(--yellow)); opacity: .5; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.menu-toggle { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero-mosaic {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px;
  background: var(--green-900);
}
.hero-tile { position: relative; overflow: hidden; }
.hero-clip {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transition: opacity .9s var(--ease);
}
.hero-clip.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(31,43,23,.85) 0%, rgba(31,43,23,.55) 45%, rgba(31,43,23,0) 75%),
    linear-gradient(180deg, rgba(31,43,23,.5) 0%, rgba(31,43,23,0) 25%, rgba(31,43,23,.7) 100%);
}
.hero-content { position: relative; padding-block: 8rem 5rem; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); max-width: 14ch; font-weight: 500; }
.hero h1 em { font-style: italic; color: var(--yellow); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 46ch; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* ===== Cifras ===== */
.stats { background: var(--efa); color: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat { padding: 2.2rem 1rem; text-align: center; border-left: 1px solid rgba(255,255,255,.12); }
.stat:first-child { border-left: 0; }
.stat-num { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--yellow); line-height: 1.1; }
.stat-label { font-size: .85rem; opacity: .8; }

/* ===== Secciones ===== */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-head { max-width: 680px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-dark { background: var(--green-900); color: var(--white); }
.section-dark .eyebrow { color: var(--yellow); }
.section-accent { background: var(--green-100); }
.section-accent .eyebrow { color: var(--green-800); }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.split-reverse .split-text { order: 2; }
.split-reverse .split-media { order: 1; }

.logo-figure { margin: 0; display: grid; place-items: center; }
.logo-figure img { max-height: 560px; max-width: 100%; width: auto; filter: drop-shadow(0 30px 40px rgba(31,43,23,.25)); }

.photo-figure { margin: 0; }
.photo-figure img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.photo-figure .slideshow { aspect-ratio: 4/5; border-radius: var(--radius); box-shadow: var(--shadow); }
.photo-figure figcaption { font-size: .85rem; color: var(--muted); margin-top: .8rem; }

.pillars { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.pillars li { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.2rem; background: var(--white); border-radius: var(--radius-sm); box-shadow: 0 2px 0 rgba(31,43,23,.05); }
.pillars strong { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.pill-icon { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--green-100); color: var(--green-600); }
.pill-icon svg { width: 22px; height: 22px; }

/* Hojas interactivas del logo: el título flota sobre cada hoja y el texto aparece al pasar el mouse */
.leaf-stage { position: relative; display: inline-block; line-height: 0; }
.leaf-stage img { display: block; }
.leaf { position: absolute; inset: 0; pointer-events: none; line-height: 1.4; }
.leaf-hit {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h);
  pointer-events: auto; cursor: pointer; background: transparent; border: 0; padding: 0; border-radius: 40%;
  -webkit-tap-highlight-color: transparent;
}
.leaf-hit:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.leaf-tag {
  position: absolute; left: 50%; top: var(--ty); transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
  padding: .4rem .8rem; border-radius: 999px;
  background: rgba(248, 244, 234, .92); color: var(--green-800);
  font: 600 .85rem var(--font-body); box-shadow: 0 6px 16px -6px rgba(31, 43, 23, .45);
  animation: leaf-float 4s ease-in-out infinite;
  transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.leaf-tag svg { width: 16px; height: 16px; }
.leaf-trabajo .leaf-tag { animation-delay: -1.3s; }
.leaf-familia .leaf-tag { animation-delay: -2.6s; }
.leaf-hit:hover .leaf-tag, .leaf-hit:focus-visible .leaf-tag, .leaf-hit[aria-expanded="true"] .leaf-tag {
  background: var(--yellow); color: var(--green-900); box-shadow: 0 10px 22px -8px rgba(31, 43, 23, .6);
}
/* translate y no margin-top: así la animación no recalcula la posición de toda la página en cada cuadro */
@keyframes leaf-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
.leaf-trabajo .leaf-hit { --x: 6.6%; --y: 24.5%; --w: 34.4%; --h: 27.6%; --ty: 72%; }
.leaf-educacion .leaf-hit { --x: 55.9%; --y: 12%; --w: 41.4%; --h: 25.5%; --ty: 84%; }
.leaf-familia .leaf-hit { --x: 60.9%; --y: 43.2%; --w: 34.8%; --h: 28.1%; --ty: 76%; }
.leaf-card {
  position: absolute; width: 64%; padding: .8rem 1rem; display: grid; gap: .15rem;
  background: var(--white); color: var(--ink); border-radius: var(--radius-sm);
  box-shadow: 0 16px 36px -12px rgba(31, 43, 23, .55);
  opacity: 0; transform: translateY(8px); pointer-events: none; z-index: 5;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.leaf-card strong { font-family: var(--font-display); font-size: 1.05rem; }
.leaf-card span { color: var(--muted); font-size: .9rem; }
.leaf-trabajo .leaf-card { left: 0; top: 53%; }
.leaf-educacion .leaf-card { right: 0; top: 38.5%; }
.leaf-familia .leaf-card { right: 0; top: 72%; }
.leaf-hit:hover + .leaf-card, .leaf-hit:focus-visible + .leaf-card, .leaf-hit[aria-expanded="true"] + .leaf-card { opacity: 1; transform: none; }

/* La imagen acompaña la lectura (solo dentro de Quiénes somos) para que no salte cuando se abren los desplegables */
@media (min-width: 761px) {
  #nosotros .logo-figure { align-self: start; position: sticky; top: calc(var(--header-h) + 1.5rem); }
  #nosotros .logo-figure img { max-height: min(560px, calc(100vh - var(--header-h) - 3rem)); }
}

/* Bloques expandibles: Identidad, Visión y Misión */
.pillars li:has(.pillar-more) { display: block; padding: 0; }
.pillar-more summary {
  display: flex; gap: 1rem; align-items: center; padding: 1rem 1.2rem; cursor: pointer; list-style: none;
  border-radius: var(--radius-sm); transition: background .25s var(--ease);
}
.pillar-more summary::-webkit-details-marker { display: none; }
.pillar-more summary strong { flex: 1; }
.pillar-more summary:hover { background: var(--green-100); }
.pillar-more summary:focus-visible { outline: 3px solid var(--green-600); outline-offset: 2px; }
.pillar-more summary:hover .pill-icon, .pillar-more.is-open .pill-icon { background: var(--yellow); }
.pillar-chevron { flex: none; width: 22px; height: 22px; color: var(--green-600); transition: transform .3s var(--ease); }
.pillar-more.is-open .pillar-chevron { transform: rotate(180deg); }
.pillar-body { padding: .2rem 1.2rem 1.2rem calc(1.2rem + 48px + 1rem); }
.pillar-more .pillar-body { overflow: hidden; }
.pillar-body p { margin: 0 0 .7rem; color: var(--muted); font-size: .95rem; }
.pillar-body p:last-child { margin-bottom: 0; }
.pillar-body strong { display: inline; font-family: inherit; font-size: inherit; }
.pillar-body strong, .pillar-body .pillar-lead { color: var(--ink); }
.pillar-body .pillar-lead { font-weight: 600; }
@media (max-width: 760px) {
  .pillar-body { padding-left: 1.2rem; }
  .leaf-stage { width: min(100%, 330px); }
  .logo-figure .leaf-stage img { width: 100%; height: auto; max-height: none; }
  .leaf-tag { font-size: .78rem; padding: .35rem .65rem; }
}
@media (prefers-reduced-motion: reduce) { .leaf-tag { animation: none; } }

/* ===== Alternancia ===== */
.cycle { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; align-items: center; }
.cycle-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 2.2rem;
}
.cycle-card p { opacity: .82; margin: 0; }
.cycle-days { display: inline-block; font-family: var(--font-display); font-size: 2.6rem; color: var(--yellow); line-height: 1; margin-bottom: 1rem; }
.cycle-arrow { width: 56px; color: var(--yellow); animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.school-life { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.school-life figure { margin: 0; }
.school-life img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.school-life figcaption { margin-top: .7rem; font-size: .9rem; opacity: .8; }
/* Escritorio: la foto se agranda por encima de las vecinas al pasar el mouse (solo transform: no recalcula la página).
   Las de los extremos crecen hacia adentro para no salirse del contenedor */
@media (hover: hover) and (min-width: 761px) {
  .school-life figure { position: relative; }
  .school-life figure:hover { z-index: 2; }
  .school-life img { transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
  .school-life figure:hover img { transform: scale(1.45); box-shadow: 0 24px 50px -12px rgba(0, 0, 0, .6); }
  /* el epígrafe quedaría dibujado encima de la foto agrandada */
  .school-life figcaption { transition: opacity .3s var(--ease); }
  .school-life figure:hover figcaption { opacity: 0; }
  .school-life figure:first-child img { transform-origin: left center; }
  .school-life figure:last-child img { transform-origin: right center; }
}
.cycle-note { max-width: 720px; margin: 3rem auto 0; text-align: center; font-size: 1.1rem; opacity: .85; }

/* ===== Talleres ===== */
.workshops { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.workshop {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 180px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.workshop:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.workshop h3 { margin: 0; font-size: 1.2rem; }
.workshop-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--green-100); color: var(--green-600); margin-bottom: auto; transition: background .3s, color .3s; }
.workshop-icon svg { width: 26px; height: 26px; }
.workshop:hover .workshop-icon { background: var(--yellow); color: var(--green-900); }
.workshop-photo { grid-column: span 2; grid-row: span 2; padding: 0; overflow: hidden; position: relative; min-height: 380px; color: var(--white); }
.workshop-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.workshop-photo:hover img { transform: scale(1.05); }
.workshop-photo .slideshow { position: absolute; inset: 0; }
.workshop-body { position: relative; padding: 1.8rem; background: linear-gradient(transparent, rgba(31,43,23,.9)); padding-top: 5rem; }
.workshop-body p { margin: .4rem 0 0; opacity: .9; font-size: .95rem; }

/* ===== Formación profesional ===== */
.fp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.fp-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 2px 0 rgba(31,43,23,.05);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.fp-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.fp-media { aspect-ratio: 16/10; overflow: hidden; }
.fp-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.fp-card:hover .fp-media img { transform: scale(1.05); }
.fp-body { padding: clamp(1.5rem, 3vw, 2.2rem); }
.fp-body h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .4rem; }
.fp-body p { color: var(--muted); margin: 0; }
.fp-year {
  display: inline-block; margin-bottom: 1rem;
  padding: .35rem .9rem; border-radius: 999px;
  background: var(--yellow); color: var(--green-900);
  font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}

/* ===== Slideshow (fotos que se alternan con fundido) ===== */
.slideshow { position: relative; overflow: hidden; }
.slideshow > img, .slideshow > video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1s var(--ease), transform .8s var(--ease);
}
.slideshow > .active { opacity: 1; }
.fp-card:hover .fp-media video { transform: scale(1.05); }
.slide-dots { position: absolute; left: 50%; bottom: .6rem; transform: translateX(-50%); display: flex; z-index: 2; }
.workshop-photo .slide-dots { left: auto; right: .8rem; top: .8rem; bottom: auto; transform: none; }
.slide-dots button { height: 24px; padding: 0 4px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.slide-dots button::before {
  content: ""; width: 8px; height: 8px; border-radius: 999px;
  background: rgba(255,255,255,.6); box-shadow: 0 1px 3px rgba(31,43,23,.4);
  transition: width .3s var(--ease), background .3s;
}
.slide-dots button[aria-current="true"]::before { width: 22px; background: var(--yellow); }

/* ===== Recuadro para fotos que faltan ===== */
.ph {
  width: 100%; height: 100%; min-height: 220px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  background: repeating-linear-gradient(-45deg, var(--green-100) 0 14px, #f1f4ea 14px 28px);
  color: var(--green-600); font-size: .85rem; font-weight: 500;
}
.ph svg { width: 40px; height: 40px; opacity: .7; }
.ph-dark { background: repeating-linear-gradient(-45deg, #26341c 0 14px, #2c3c20 14px 28px); color: rgba(255,255,255,.6); }
.photo-figure .ph { aspect-ratio: 4/5; border-radius: var(--radius); }
#comunidad .photo-figure img { object-position: 40% center; }

.section-tight { padding-top: 0; }

/* ===== Autosustentación ===== */
.produce { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.produce-item .slideshow { position: absolute; inset: 0; }
.produce-item .slide-dots { left: auto; right: .8rem; top: .8rem; bottom: auto; transform: none; }
.produce-item { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; }
.produce-item img, .produce-item .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.produce-item:hover img { transform: scale(1.06); }
.produce-item figcaption {
  position: absolute; inset: auto 0 0; padding: 3.5rem 1.3rem 1.3rem;
  background: linear-gradient(transparent, rgba(31,43,23,.92));
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-size: 1.5rem; color: var(--white);
}
.produce-item figcaption svg { width: 22px; height: 22px; color: var(--yellow); flex: none; }

/* ===== Comunidad ===== */
.values { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; gap: .8rem; }
.values li { font-family: var(--font-display); font-size: 1.3rem; padding-bottom: .8rem; border-bottom: 1px solid rgba(31,43,23,.12); }
.partners-title { font-weight: 600; margin-top: 2rem; }
.partners { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.partners li { padding: .45rem 1rem; border-radius: 999px; background: var(--white); border: 1px solid rgba(31,43,23,.12); font-size: .9rem; }

/* ===== Institucional ===== */
.facts dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(31,43,23,.12); border-radius: var(--radius); overflow: hidden; }
.facts dl div { background: var(--white); padding: 1.5rem; }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--green-600); font-weight: 600; margin-bottom: .4rem; }
.facts dd { margin: 0; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.3; }

/* ===== Mapa ===== */
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.map #map-efa { width: 100%; height: 100%; background: var(--green-900); font-family: var(--font-body); }
.map-pin { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--yellow); border: 3px solid var(--white); box-shadow: 0 6px 14px rgba(31, 43, 23, .55); }
.map-pin::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green-900); }
.map-label { background: var(--cream); color: var(--green-900); border: 0; border-radius: 999px; padding: .3rem .7rem;
  font-weight: 600; font-size: .8rem; box-shadow: 0 4px 12px rgba(31, 43, 23, .4); }
.map-label::before { display: none; }

/* ===== Footer ===== */
.site-footer { background: var(--green-900); color: rgba(255,255,255,.85); padding-top: 4rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; padding-bottom: 3rem; }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand img { width: 44px; height: auto; flex: none; }
.footer-name { font-family: var(--font-display); font-size: 1.15rem; color: var(--white); line-height: 1.3; }
.footer-title { font: 700 .8rem/1.4 var(--font-body); color: var(--yellow); text-transform: uppercase; letter-spacing: .14em; margin: 0 0 1rem; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.todo { background: rgba(244,210,58,.15); color: var(--yellow); padding: 0 .4rem; border-radius: 4px; font-size: .85em; }
.footer-bottom { display: flex; justify-content: space-between; padding-block: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { text-decoration: none; }

/* ===== Animación de aparición ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cycle-arrow { animation: none; }
  .slideshow > img, .slideshow > video, .hero-clip { transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:nth-child(4) { border-left: 0; }
  .stat { border-top: 1px solid rgba(255,255,255,.12); }
  .split { grid-template-columns: 1fr; }
  .produce { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 5 tarjetas en 2 columnas: la última (Carnes) ocupa todo el ancho, encuadrada en los animales */
  .produce-item:last-child { grid-column: 1 / -1; aspect-ratio: 4/3; }
  .produce-item:last-child :is(img, video) { object-position: center 62%; }
  .split-reverse .split-text, .split-reverse .split-media { order: 0; }
  .logo-figure img { max-height: 380px; }
  .workshops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .hero-mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-tile:nth-child(n+5) { display: none; }
}

@media (max-width: 760px) {
  .nav-indicator { display: none; }
  .brand { font-size: 1.08rem; gap: .5rem; }
  .brand img { width: 26px; }
  .menu-toggle { margin-right: -8px; }
  .current-section {
    display: block; flex: 1; min-width: 0;
    margin-left: .7rem; padding-left: .7rem;
    border-left: 1px solid currentColor;
    font-size: .68rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    opacity: 0; transform: translateY(6px);
    transition: opacity .35s var(--ease), transform .35s var(--ease);
  }
  .site-header.scrolled .current-section.visible { opacity: .85; transform: none; }
  body.menu-open .current-section { opacity: 0; }
  .menu-toggle {
    display: grid; place-content: center; gap: 6px;
    width: 44px; height: 44px; border: 0; background: transparent; color: inherit; cursor: pointer; z-index: 60;
  }
  .menu-toggle span { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 1.6rem;
    background: var(--green-900); color: var(--white);
    clip-path: circle(0 at calc(100% - 42px) 36px);
    transition: clip-path .6s var(--ease);
  }
  .nav.open { clip-path: circle(150% at calc(100% - 42px) 36px); }
  .nav a:not(.btn) { font-family: var(--font-display); font-size: 1.8rem; }
  body.menu-open .site-header { color: var(--white); }
  body.menu-open .site-header::before { background: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: none !important; }
  .cycle { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-tile:nth-child(n+4) { display: none; }
  .school-life {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%;
    /* overflow-y hidden: la animación de aparición baja las fotos 28px y sin esto la tira scrollea en vertical */
    overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; gap: .8rem; margin-top: 2rem;
    margin-inline: -20px; padding-inline: 20px; scroll-padding-inline: 20px; scrollbar-width: none;
  }
  .school-life figure { scroll-snap-align: start; }
  .hero-content { padding-block: calc(var(--header-h) + 2.5rem) 3rem; }
  .hero-actions { margin-top: 1.5rem; }
  .section { padding-block: 3.5rem; }
  .section-tight { padding-top: 0; }
  .logo-figure img { max-height: 300px; }
  .photo-figure .ph { aspect-ratio: 4/3; min-height: 0; }
  .cycle-note { margin-top: 2rem; }
  .pillars { margin-top: 1.5rem; }
  .fp-grid { grid-template-columns: 1fr; }
  .produce { gap: .7rem; }
  .produce-item figcaption { font-size: 1.2rem; padding: 2.5rem 1rem 1rem; }
  .cycle-arrow { margin-inline: auto; transform: rotate(90deg); animation: none; }
  .workshops { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .workshop-photo { grid-row: auto; min-height: 300px; }
  .workshop { min-height: 140px; padding: 1.2rem; }
  .workshop-photo { padding: 0; } /* sin esto el degradado del texto queda más angosto que la foto */
  .workshop h3 { font-size: 1.05rem; }
  .facts dl { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-left: 0; padding: 1.2rem .5rem; }
  .stat:last-child { grid-column: 1 / -1; }
}
