/* =========================================================
   AGROTECH GANADERA — hoja de estilos
   Colores tomados del logo y el manual de marca
   ========================================================= */
:root {
  --brown: #432615;
  --brown-900: #2a1a10;
  --green: #68a44a;
  --green-600: #4f8a36;
  --green-700: #2a5a27;
  --green-900: #1b3d1a;
  --lime: #d4ec3b;
  --lime-soft: #eefcae;
  --sage: #dfe8d2;
  --cream: #f7f5ee;
  --ink: #1f2a1c;
  --muted: #5d6b58;
  --white: #fff;

  --f-head: "Montserrat", system-ui, sans-serif;
  --f-body: "Raleway", system-ui, sans-serif;
  --f-fun: "Fredoka", "Montserrat", sans-serif;

  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(27, 61, 26, .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }
body {
  margin: 0;
  font: 500 17px/1.65 var(--f-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, .h1 { font-family: var(--f-head); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 800; color: var(--green-900); }
h3 { font-size: 1.3rem; font-weight: 800; }
p { margin: 0 0 1em; }
svg { width: 1em; height: 1em; flex: none; }
button { font: inherit; cursor: pointer; }

.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 10px; background: var(--lime); padding: 10px 16px; z-index: 999; border-radius: 8px; }
.skip:focus { left: 10px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  font: 700 .8rem/1 var(--f-head); letter-spacing: .22em; text-transform: uppercase;
  color: var(--green); margin-bottom: 1rem; display: inline-flex; align-items: center; gap: .7em;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; border-radius: 3px; }
.eyebrow--lime { color: var(--lime); }
.hl { color: var(--green); }
.hl--lime { color: var(--lime); }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--green); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.6em; border-radius: 999px; border: 2px solid transparent;
  background: var(--bg); color: var(--fg); font: 700 .95rem/1 var(--f-head);
  text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s;
}
.btn svg { width: 1.15em; height: 1.15em; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn--lime { --bg: var(--lime); --fg: var(--green-900); }
.btn--brown { --bg: var(--brown); }
.btn--green { --bg: var(--green-700); }
.btn--ghost { --bg: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); backdrop-filter: blur(6px); }
.btn--ghost:hover { --bg: #fff; --fg: var(--green-900); }
.btn--outline { --bg: transparent; --fg: var(--brown); border-color: var(--brown); }
.btn--outline:hover { --bg: var(--brown); --fg: #fff; }
.btn--block { width: 100%; }
.link { display: inline-flex; align-items: center; gap: .5em; font: 700 .95rem var(--f-head); color: var(--green-700); text-decoration: none; }
.link svg { transition: transform .3s var(--ease); }
.link:hover svg { transform: translateX(5px); }

/* ---------- Topbar ---------- */
.topbar { background: var(--green-700); color: #e8f3dc; font-size: .82rem; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.topbar__claim strong { color: var(--lime); }
.topbar__links { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.topbar__links a { display: inline-flex; gap: .45em; align-items: center; text-decoration: none; opacity: .9; }
.topbar__links a:hover { opacity: 1; color: var(--lime); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(42,90,39,.08); transition: box-shadow .3s, height .3s;
}
.header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0,0,0,.35); --header-h: 70px; }
.header__in { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand img { height: calc(var(--header-h) - 8px); width: auto; transition: height .3s; }
.nav { display: flex; align-items: center; gap: .3rem; }
.nav a {
  position: relative; padding: .6em .9em; font: 600 .92rem var(--f-head); text-decoration: none; color: var(--ink); border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav a:not(.nav__cta)::after {
  content: ""; position: absolute; left: .9em; right: .9em; bottom: .3em; height: 2px; background: var(--green);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); }
.nav a.is-current { color: var(--green-700); }
.nav__cta { background: var(--brown); color: #fff !important; padding-inline: 1.3em !important; margin-left: .5rem; }
.nav__cta:hover { background: var(--green-700); }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; }
.burger span { display: block; height: 3px; background: var(--green-700); border-radius: 3px; margin: 5px 0; transition: transform .3s, opacity .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(92vh, 860px); color: #fff; overflow: hidden;
  display: grid; grid-template-rows: 1fr auto; isolation: isolate;
}
.hero__slides, .hero__shade { position: absolute; inset: 0; z-index: -1; }
.hero__slide {
  position: absolute; inset: 0; margin: 0; background: var(--img) center/cover no-repeat;
  opacity: 0; transform: scale(1.12); transition: opacity 1.4s ease, transform 8s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__shade {
  background:
    linear-gradient(90deg, rgba(20,40,18,.88) 0%, rgba(20,40,18,.55) 45%, rgba(20,40,18,.05) 80%),
    linear-gradient(0deg, rgba(20,40,18,.55), transparent 35%);
}
.hero__content { align-self: center; padding-block: 90px 40px; }
.hero__texts { display: grid; max-width: 780px; }
.hero__text { grid-area: 1 / 1; opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s var(--ease); pointer-events: none; }
.hero__text.is-active { opacity: 1; transform: none; pointer-events: auto; transition-delay: .25s; }
.hero .h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); font-weight: 900; color: #fff; }
.hero .h1 em { font-style: normal; color: var(--lime); }
.hero .lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 560px; color: #eaf3e2; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.hero__controls { display: flex; justify-content: space-between; align-items: center; padding-bottom: 70px; position: relative; z-index: 2; }
.hero__dots { display: flex; gap: .6rem; }
.hero__dots button {
  width: 46px; height: 5px; border: 0; padding: 0; border-radius: 5px; background: rgba(255,255,255,.35); position: relative; overflow: hidden;
}
.hero__dots button[aria-selected="true"]::after {
  content: ""; position: absolute; inset: 0; background: var(--lime); transform-origin: left; animation: fill 7s linear forwards;
}
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__scroll { width: 28px; height: 46px; border: 2px solid rgba(255,255,255,.7); border-radius: 20px; display: grid; justify-items: center; padding-top: 8px; }
.hero__scroll span { width: 4px; height: 9px; background: #fff; border-radius: 4px; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
.hero__grass { position: absolute; right: -40px; bottom: -40px; width: min(720px, 70vw); height: auto; aspect-ratio: 600/260; z-index: 1; pointer-events: none; animation: sway 7s ease-in-out infinite alternate; transform-origin: bottom; }
@keyframes sway { from { transform: skewX(-2deg); } to { transform: skewX(3deg); } }

/* ---------- Banda ---------- */
.band {
  position: relative; z-index: 3; margin-top: -34px; background: linear-gradient(90deg, var(--green-700), var(--green) 70%, #8cc63f);
  color: #fff; padding: 22px 0; transform: skewY(-1.6deg); box-shadow: var(--shadow); overflow: hidden;
}
.band__track { display: flex; width: max-content; gap: 2rem; animation: marquee 38s linear infinite; transform: skewY(1.6deg); }
.band span { font: 800 clamp(1.1rem, 2vw, 1.5rem) var(--f-head); white-space: nowrap; }
.band i { font-style: normal; color: var(--lime); }
@keyframes marquee { to { transform: translateX(-50%) skewY(1.6deg); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 10vw, 130px) 0; }
.sec-head { margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head.center { text-align: center; max-width: 760px; margin-inline: auto; }
.sec-head.center .eyebrow::after { content: ""; width: 28px; height: 3px; background: currentColor; border-radius: 3px; }
.sec-head.split { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.sec-head.split h2 { margin: 0; }
.sec-head__sub { color: var(--muted); font-size: 1.08rem; max-width: 520px; margin: 0; }
.sec-head.center .sec-head__sub { margin-inline: auto; }

/* ---------- Unidades ---------- */
.units { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.unit {
  background: var(--sage); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .45s var(--ease), box-shadow .45s;
}
.unit:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.unit__img { aspect-ratio: 4/3; overflow: hidden; }
.unit__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.unit:hover .unit__img img { transform: scale(1.07); }
.unit__body { position: relative; padding: 30px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.unit__num {
  position: absolute; top: -32px; right: 24px; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--green-700); font: 900 1.2rem var(--f-head); box-shadow: 0 10px 20px -10px rgba(0,0,0,.3);
}
.unit__kicker { font: 700 .78rem var(--f-head); letter-spacing: .2em; text-transform: uppercase; color: var(--green); margin: 0 0 .2rem; }
.unit h3 { font-size: 1.65rem; color: var(--green-900); }
.unit ul { list-style: none; padding: 0; margin: .3rem 0 1.4rem; flex: 1; }
.unit li { padding: .42em 0 .42em 1.7em; position: relative; border-top: 1px solid rgba(42,90,39,.12); font-size: .96rem; }
.unit li::before { content: ""; position: absolute; left: 0; top: .95em; width: .8em; height: .8em; border-radius: 50%; background: var(--green); box-shadow: inset 0 0 0 3px var(--sage); outline: 2px solid var(--green); outline-offset: -2px; }
.unit--feature { background: var(--green-700); color: #e9f2df; }
.unit--feature h3 { color: #fff; }
.unit--feature .unit__kicker, .unit--feature .link { color: var(--lime); }
.unit--feature li { border-color: rgba(255,255,255,.15); }
.unit--feature li::before { background: var(--lime); box-shadow: inset 0 0 0 3px var(--green-700); outline-color: var(--lime); }
.unit--feature .unit__num { background: var(--lime); color: var(--green-900); }

/* ---------- Nosotros ---------- */
.about { background: var(--cream); position: relative; overflow: hidden; }
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about__media { position: relative; min-height: 600px; }
.about__blob { position: absolute; inset: 8% 6% 4% 14%; background: var(--green); border-radius: 46% 54% 42% 58% / 52% 40% 60% 48%; animation: morph 12s ease-in-out infinite alternate; }
@keyframes morph { to { border-radius: 58% 42% 55% 45% / 42% 58% 42% 58%; } }
.about__main { position: relative; width: 72%; aspect-ratio: 2/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); margin-left: 4%; }
.about__sec { position: absolute; right: 0; bottom: 4%; width: 52%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); border: 8px solid var(--cream); box-shadow: var(--shadow); }
.sticker {
  position: absolute; top: 10%; right: 6%; background: #fff; color: var(--green-700); font: 700 1.35rem var(--f-fun);
  padding: .35em .9em; border-radius: 14px; box-shadow: var(--shadow); transform: rotate(-6deg); animation: bob 3.2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: rotate(-3deg) translateY(-8px); } }
.about__text > p { color: #3e4a3a; }
.tabs { margin: 1.8rem 0 2rem; background: #fff; border-radius: var(--radius); padding: 8px; box-shadow: 0 10px 30px -20px rgba(0,0,0,.3); }
.tabs__list { display: flex; gap: 6px; background: var(--sage); border-radius: 16px; padding: 5px; }
.tabs__list button { flex: 1; border: 0; background: none; padding: .75em .5em; border-radius: 12px; font: 700 .9rem var(--f-head); color: var(--green-700); transition: background .3s, color .3s; }
.tabs__list button[aria-selected="true"] { background: var(--green-700); color: #fff; }
.tabs__panel { padding: 20px 18px 10px; animation: fadeUp .5s var(--ease); }
.tabs__panel p { margin: 0 0 .6em; font-size: 1.02rem; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }

/* ---------- MUUU ---------- */
.moo { padding: clamp(60px, 8vw, 110px) 0 clamp(50px, 6vw, 90px); text-align: center; overflow: hidden; background: #fff; }
.moo__word { font: 700 clamp(5rem, 19vw, 17rem)/.85 var(--f-fun); color: var(--green); margin: 0; display: flex; justify-content: center; align-items: flex-end; letter-spacing: -.02em; }
.moo__word span { display: inline-block; transform-origin: bottom; transition: transform .8s var(--ease); }
.moo__word span:nth-child(1) { font-size: 1em; }
.moo__word span:nth-child(2) { font-size: .86em; }
.moo__word span:nth-child(3) { font-size: .76em; }
.moo__word span:nth-child(4) { font-size: .66em; }
.moo__word span:nth-child(5) { font-size: .56em; }
.moo__word span:nth-child(6) { font-size: .46em; }
.moo__word span:nth-child(7) { font-size: .38em; }
.moo.is-in .moo__word span { animation: moo 1.6s var(--ease) both; }
.moo.is-in .moo__word span:nth-child(2) { animation-delay: .06s; }
.moo.is-in .moo__word span:nth-child(3) { animation-delay: .12s; }
.moo.is-in .moo__word span:nth-child(4) { animation-delay: .18s; }
.moo.is-in .moo__word span:nth-child(5) { animation-delay: .24s; }
.moo.is-in .moo__word span:nth-child(6) { animation-delay: .30s; }
.moo.is-in .moo__word span:nth-child(7) { animation-delay: .36s; }
@keyframes moo { 0% { transform: scaleY(.2) translateY(40%); opacity: 0; } 55% { transform: scaleY(1.12); opacity: 1; } 100% { transform: none; } }
.moo__tag { font: 700 clamp(1.1rem, 2.2vw, 1.6rem) var(--f-head); color: var(--brown); margin-top: 1.2rem; }

/* ---------- Servicios ---------- */
.services { background: var(--white); padding-top: 0; }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 330px; gap: 20px; }
.svc {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; border-radius: var(--radius);
  color: #fff; text-decoration: none; overflow: hidden; isolation: isolate; background: var(--green-900);
}
.svc::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--img) center/cover; transition: transform 1s var(--ease); }
.svc::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(27,61,26,0) 25%, rgba(27,61,26,.92) 100%); transition: background .5s; }
.svc:hover::before { transform: scale(1.08); }
.svc:hover::after { background: linear-gradient(180deg, rgba(27,61,26,.25) 0%, rgba(27,61,26,.95) 85%); }
.svc--wide { grid-column: span 2; }
.svc__tag { align-self: flex-start; background: var(--lime); color: var(--green-900); font: 800 .72rem var(--f-head); letter-spacing: .12em; text-transform: uppercase; padding: .45em .9em; border-radius: 999px; margin-bottom: auto; }
.svc h3 { font-size: 1.4rem; margin: 0 0 .3em; }
.svc p { margin: 0; font-size: .95rem; color: #dfeacf; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s; }
.svc:hover p, .svc:focus-visible p { max-height: 6em; opacity: 1; }

/* ---------- Bloque verde ---------- */
.green { position: relative; background: var(--green-700); color: #e9f2df; padding: clamp(90px, 10vw, 140px) 0 60px; overflow: hidden; }
.green__edge { position: absolute; top: 0; left: 0; right: 0; height: 14px; background: linear-gradient(90deg, var(--green), #8cc63f); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 30%); }
.green__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.green__media { position: relative; display: grid; place-items: center; }
.green__circle { width: min(460px, 80vw); aspect-ratio: 1; border-radius: 50%; background: var(--green); overflow: hidden; box-shadow: 0 0 0 14px rgba(255,255,255,.06), 0 0 0 28px rgba(255,255,255,.03); }
.green__circle img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.green__grass { position: absolute; left: -12%; bottom: -12%; width: 85%; height: auto; aspect-ratio: 600/260; animation: sway 6s ease-in-out infinite alternate; transform-origin: bottom; }
.green__text h2 { color: #fff; font-size: clamp(2.8rem, 6vw, 4.8rem); margin-bottom: .1em; }
.green__text h2 span { color: #8cc63f; font-weight: 500; }
.green__sub { font: 800 1.35rem var(--f-head); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 2rem 0 2.2rem; }
.stats div { border-left: 3px solid var(--lime); padding-left: 14px; }
.stats dt { font: 800 clamp(2rem, 3.6vw, 2.8rem)/1 var(--f-head); color: var(--lime); }
.stats dd { margin: .4em 0 0; font-size: .9rem; color: #cfe0c0; }
.strip { margin-top: clamp(60px, 8vw, 100px); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.strip__track { display: flex; gap: 18px; width: max-content; animation: marquee2 60s linear infinite; }
.strip:hover .strip__track { animation-play-state: paused; }
@keyframes marquee2 { to { transform: translateX(-50%); } }
.strip figure { margin: 0; position: relative; width: 300px; aspect-ratio: 4/3; border-radius: 16px; overflow: hidden; flex: none; }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.strip figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(27,61,26,.85); backdrop-filter: blur(4px); padding: .35em .8em; border-radius: 999px; font: 700 .8rem var(--f-head); color: #fff; }

/* ---------- Valores ---------- */
.values { background: var(--white); }
.vals { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.val { background: var(--sage); border-radius: var(--radius); padding: 28px 24px; transition: background .35s, color .35s, transform .35s var(--ease); }
.val:hover { background: var(--green); color: #fff; transform: translateY(-5px); }
.val:hover h3 { color: #fff; }
.val:hover .val__ic { background: #fff; color: var(--green-700); }
.val__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--green-700); font: 900 1rem var(--f-head); margin-bottom: 1.1rem; box-shadow: 0 6px 16px -8px rgba(0,0,0,.3); transition: inherit; }
.val h3 { font-size: 1.12rem; color: var(--green-900); }
.val p { font-size: .94rem; margin: 0; }
.val--cta { background: var(--brown); color: #fff; display: grid; place-items: center; text-align: center; }
.val--cta img { width: 120px; filter: brightness(0) invert(1); }
.val--cta p { font: 700 .85rem var(--f-head); letter-spacing: .3em; text-transform: uppercase; color: var(--lime); margin-top: .6rem; }
.val--cta:hover { background: var(--brown-900); }

/* ---------- Rumbo 2030 ---------- */
.road { position: relative; color: #fff; padding: clamp(90px, 11vw, 150px) 0; isolation: isolate; overflow: hidden; }
.road__bg { position: absolute; inset: -10% 0; z-index: -1; background: linear-gradient(90deg, rgba(42,26,16,.92), rgba(42,26,16,.75)), var(--img) center/cover; will-change: transform; }
.road h2 { color: #fff; }
.road__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: r; border-top: 1px solid rgba(255,255,255,.18); }
.road__list li { counter-increment: r; padding: 28px 26px 30px 0; border-bottom: 1px solid rgba(255,255,255,.18); display: grid; gap: .4rem; }
.road__list li:not(:nth-child(3n+1)) { padding-left: 26px; border-left: 1px solid rgba(255,255,255,.18); }
.road__list li::before { content: "0" counter(r); font: 900 2.4rem var(--f-head); color: var(--lime); line-height: 1; }
.road__list b { font: 800 1.2rem var(--f-head); }
.road__list span { color: #e4d9cf; font-size: .96rem; }

/* ---------- Galería ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { border: 2px solid var(--sage); background: #fff; color: var(--green-700); padding: .55em 1.1em; border-radius: 999px; font: 700 .85rem var(--f-head); transition: all .25s; }
.filters button:hover { border-color: var(--green); }
.filters button.is-on { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.gallery { columns: 4 260px; column-gap: 16px; }
.gallery button {
  display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; border-radius: 16px; overflow: hidden; position: relative; break-inside: avoid; background: var(--sage);
  animation: fadeUp .6s var(--ease) both;
}
.gallery img { width: 100%; height: auto; transition: transform .8s var(--ease), filter .5s; }
.gallery button::after { content: "+"; position: absolute; inset: auto 14px 14px auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--green-900); font: 700 1.5rem/1 var(--f-head); transform: scale(0); transition: transform .35s var(--ease); }
.gallery button:hover img { transform: scale(1.06); }
.gallery button:hover::after { transform: scale(1); }
.gallery button[hidden] { display: none; }

/* ---------- Lightbox ---------- */
.lb { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(15,25,13,.94); color: #fff; }
.lb[open] { display: grid; place-items: center; }
.lb::backdrop { background: transparent; }
.lb img { max-width: min(92vw, 1500px); max-height: 82vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb__close, .lb__nav { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 54px; height: 54px; border-radius: 50%; font-size: 2rem; line-height: 1; transition: background .2s; }
.lb__close:hover, .lb__nav:hover { background: var(--lime); color: var(--green-900); }
.lb__close { top: 20px; right: 20px; }
.lb__prev { left: 20px; top: 50%; translate: 0 -50%; }
.lb__next { right: 20px; top: 50%; translate: 0 -50%; }
.lb__cap { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font: 600 .95rem var(--f-head); color: #cfe0c0; }

/* ---------- Redes ---------- */
.social { background: var(--sage); padding: clamp(80px, 9vw, 120px) 0; overflow: hidden; }
.social__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.social__btns { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.posts img { border-radius: 16px; box-shadow: var(--shadow); aspect-ratio: 3/4; object-fit: cover; transition: transform .5s var(--ease); }
.posts img:nth-child(2) { transform: translateY(30px); }
.posts img:hover { transform: translateY(-8px) rotate(-1deg); }
.posts img:nth-child(2):hover { transform: translateY(22px) rotate(1deg); }

/* ---------- Contacto ---------- */
.contact { background: var(--cream); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.clist { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; gap: 18px; }
.clist li { display: flex; gap: 14px; align-items: flex-start; }
.clist li > svg { width: 46px; height: 46px; padding: 12px; background: var(--green-700); color: var(--lime); border-radius: 14px; }
.clist b { display: block; font: 800 .95rem var(--f-head); color: var(--green-900); }
.clist span, .clist a { color: #3e4a3a; text-decoration: none; }
.clist a:hover { color: var(--green); }
.map { border-radius: var(--radius); overflow: hidden; height: 240px; box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.85); }
.form { background: #fff; padding: clamp(26px, 4vw, 44px); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 20px); }
.form h3 { font-size: 1.7rem; color: var(--green-900); margin: 0 0 .2em; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font: 700 .85rem var(--f-head); color: var(--green-900); }
.form input, .form select, .form textarea {
  font: 500 1rem var(--f-body); color: var(--ink); padding: .85em 1em; border: 2px solid var(--sage); border-radius: 12px; background: #fbfcf8; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(104,164,74,.18); }
.form .is-invalid { border-color: #c0392b; }
.form textarea { resize: vertical; }
.form__note { font-size: .82rem; color: var(--muted); text-align: center; margin: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--brown-900); color: #e8dccf; }
.footer__hero { position: relative; min-height: 300px; display: grid; align-items: center; background: linear-gradient(90deg, rgba(42,26,16,.85), rgba(42,26,16,.2)), var(--img) center 60%/cover; }
.footer__hero p { font: 800 clamp(1.5rem, 3.4vw, 2.6rem)/1.2 var(--f-head); color: #fff; margin: 0; max-width: 680px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 40px; padding: 70px 0 50px; }
.footer__brand img { width: 170px; height: auto; }
.footer__claim { margin-top: .8rem; font: 700 .8rem var(--f-head); letter-spacing: .3em; text-transform: uppercase; display: inline-block; background: var(--green); color: #fff; padding: .45em .9em; }
.footer h4 { font: 800 1rem var(--f-head); color: #fff; margin-bottom: 1.1rem; letter-spacing: .02em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .95rem; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--lime); }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); }
.footer__social a:hover { background: var(--green); color: #fff; }
.footer__social svg { width: 20px; height: 20px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 22px 0 30px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: #b9a99a; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; align-items: center; gap: .6em;
  background: #25d366; color: #fff; text-decoration: none; padding: 14px; border-radius: 999px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.45);
  font: 700 .92rem var(--f-head); transition: padding .3s var(--ease), transform .3s;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .4s var(--ease); }
.wa-float:hover { transform: translateY(-3px); padding-right: 22px; }
.wa-float:hover span { max-width: 200px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25d366; animation: ping 2.4s infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- Animación de entrada ---------- */
.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.pre:not(.is-in) { opacity: 0; transform: translateY(36px); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav a { padding: .6em .6em; font-size: .86rem; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .vals { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 10px 20px 24px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.3);
    transform: translateY(-120%); transition: transform .45s var(--ease); z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 1em .4em; font-size: 1.05rem; border-bottom: 1px solid var(--sage); border-radius: 0; }
  .nav a::after { display: none; }
  .nav__cta { margin: 14px 0 0; text-align: center; border-radius: 999px !important; border: 0 !important; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .units { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .about__grid, .green__grid, .social__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media { min-height: 0; max-width: 520px; margin: 0 auto; width: 100%; }
  .about__main { width: 70%; }
  .road__list { grid-template-columns: 1fr 1fr; }
  .road__list li, .road__list li:not(:nth-child(3n+1)) { padding: 24px 18px 24px 0; border-left: 0; }
  .road__list li:nth-child(even) { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.18); }
  .form { position: static; }
  .hide-sm { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .topbar__claim { display: none; }
  .topbar__in { justify-content: center; }
  .hero { min-height: 88vh; }
  .hero__shade { background: linear-gradient(0deg, rgba(20,40,18,.92) 10%, rgba(20,40,18,.45) 70%, rgba(20,40,18,.3)); }
  .hero__content { align-self: end; padding-bottom: 20px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__scroll { display: none; }
  .svc-grid { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .svc--wide { grid-column: auto; }
  .svc p { max-height: none; opacity: 1; }
  .vals { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .stats dd { font-size: .8rem; }
  .road__list { grid-template-columns: 1fr; }
  .road__list li:nth-child(even) { padding-left: 0; border-left: 0; }
  .posts { gap: 10px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .gallery { columns: 2; column-gap: 10px; }
  .gallery button { margin-bottom: 10px; }
  .strip figure { width: 230px; }
  .tabs__list button { font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Selector de idioma ---------- */
.lang { display: flex; align-items: center; gap: 2px; margin-left: 14px; padding: 4px 4px 4px 10px; border-radius: 999px; background: var(--sage); color: var(--green-700); }
.lang svg { width: 16px; height: 16px; margin-right: 4px; }
.lang button { border: 0; background: none; padding: .42em .75em; border-radius: 999px; font: 800 .78rem/1 var(--f-head); color: var(--green-700); letter-spacing: .04em; transition: background .25s, color .25s; }
.lang button:hover { background: rgba(255,255,255,.7); }
.lang button[aria-pressed="true"] { background: var(--green-700); color: #fff; }
@media (max-width: 900px) {
  .lang { margin-left: auto; margin-right: 8px; }
}

/* Etiqueta "Al por mayor" en la unidad Comercial */
.unit__badge { display: inline-block; vertical-align: middle; margin-left: .35em; padding: .35em .75em; border-radius: 999px; background: var(--brown); color: var(--lime); font: 800 .7rem/1 var(--f-head); letter-spacing: .12em; text-transform: uppercase; }
