/* ==========================================================================
   Agroplastic Perú — hoja de estilo única del sitio
   Tokens de color, tipografía, espaciado, radios y movimiento centralizados.
   ========================================================================== */

:root {
  /* Marca (derivada del brochure del cliente: verde agrícola + azul técnico) */
  --brand: #1f7a34;
  --brand-600: #2e8b3d;
  --brand-900: #17502a;
  --brand-050: #edf5ee;
  --brand-100: #d7e9db;
  --blue: #17568f;
  --blue-050: #eaf1f9;

  /* Superficies y texto */
  --bg: #ffffff;
  --surface: #f4f7f4;
  --surface-2: #eaefe9;
  --text: #16211a;
  --muted: #55635a;
  --border: #d8e2da;
  --danger: #b3261e;
  --danger-050: #fdecea;

  /* Forma */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(22, 33, 26, .06), 0 8px 24px rgba(22, 33, 26, .07);
  --shadow-2: 0 2px 6px rgba(22, 33, 26, .08), 0 18px 40px rgba(22, 33, 26, .12);

  /* Ritmo de 8px */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 40px; --s6: 48px; --s7: 64px; --s8: 96px;

  /* Tipografía */
  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Movimiento */
  --dur-fast: 180ms;
  --dur: 260ms;
  --dur-slow: 380ms;
  --ease-out: cubic-bezier(.2, .7, .3, 1);
  --ease-in: cubic-bezier(.5, 0, .8, .3);

  --topbar-h: 40px;
  --bar-h: 72px;
  --header-h: 112px;
  --wrap: 1220px;
}

@media (max-width: 767px) { :root { --header-h: 64px; --bar-h: 64px; } }

/* --------------------------------------------------------------- Base --- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  padding-top: var(--header-h);
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.14; margin: 0; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 1.15rem + 2.1vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); }
h4 { font-size: 1.0625rem; font-weight: 600; }
p { margin: 0 0 var(--s2); max-width: 68ch; }
p:last-child { margin-bottom: 0; }
img { max-width: 100%; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--brand); }
a:hover { color: var(--brand-900); }

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

.skip-link {
  position: absolute; left: var(--s2); top: -100px; z-index: 100;
  background: var(--brand-900); color: #fff; padding: 12px 20px;
  border-radius: var(--radius-sm); text-decoration: none; font-weight: 600;
  transition: top var(--dur) var(--ease-out);
}
.skip-link:focus { top: var(--s2); color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .wrap { padding-inline: 32px; } }

.section { padding-block: var(--s7); }
@media (min-width: 768px) { .section { padding-block: var(--s8); } }
.section--tight { padding-block: var(--s6); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--brand-900); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #d6e6da; }

/* Franja de tierra: separador real recortado del brochure */
.soil-strip {
  height: 26px; background: url("../img/tex-suelo.jpg") repeat-x center / auto 100%;
  border: 0;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: .8125rem;
  letter-spacing: .09em; text-transform: uppercase; color: var(--brand);
  margin-bottom: var(--s2);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand-600); border-radius: 2px; }
.section--dark .eyebrow { color: #a8e0b4; }
.section--dark .eyebrow::before { background: #a8e0b4; }

.section-head { max-width: 64ch; margin-bottom: var(--s5); }
.section-head p { color: var(--muted); font-size: 1.0625rem; }
.section--dark .section-head p { color: #d6e6da; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.head-row { display: grid; gap: var(--s2); align-items: end; margin-bottom: var(--s5); }
@media (min-width: 900px) { .head-row { grid-template-columns: 1fr auto; } }
.head-row .section-head { margin-bottom: 0; }

.lead { font-size: 1.125rem; color: var(--muted); }
.section--dark .lead { color: #d6e6da; }

/* ------------------------------------------------------------- Botones --- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--font-display); font-weight: 600; font-size: .9688rem;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-900); color: #fff; }
.btn--ghost { background: transparent; color: var(--brand); border-color: var(--border); }
.btn--ghost:hover { background: var(--brand-050); border-color: var(--brand-600); color: var(--brand-900); }
.btn--wa { background: var(--blue); color: #fff; }
.btn--wa:hover { background: #10406c; color: #fff; }
.btn--light { background: #fff; color: var(--brand-900); }
.btn--light:hover { background: var(--brand-050); color: var(--brand-900); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-family: var(--font-display); font-weight: 600; font-size: .9375rem;
  color: var(--brand); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: none;
}
.link-arrow svg { transition: transform var(--dur-fast) var(--ease-out); }
@media (hover: hover) { .link-arrow:hover svg { transform: translateX(4px); } }

/* ------------------------------------------------------------ Cabecera --- */

.site-header { position: fixed; inset-inline: 0; top: 0; z-index: 50; }

.topbar {
  background: var(--brand-900); color: #cfe3d4; font-size: .8125rem;
  height: var(--topbar-h); display: flex; align-items: center;
}
.topbar .wrap { display: flex; align-items: center; gap: var(--s3); }
.topbar a { color: #cfe3d4; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__iso { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: #a8e0b4; }
@media (max-width: 767px) { .topbar { display: none; } :root { --header-h: 64px; } }

.mainbar {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur) var(--ease-out);
}
.site-header[data-scrolled="true"] .mainbar { box-shadow: var(--shadow-1); }
.mainbar .wrap { display: flex; align-items: center; gap: var(--s2); min-height: var(--bar-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.brand__mark { flex: none; }
.brand__name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; line-height: 1.1; letter-spacing: -.02em; }
.brand__sub { display: block; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-family: var(--font-display); font-weight: 600; font-size: .9375rem;
  color: var(--text); text-decoration: none; border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
@media (hover: hover) { .nav__link:hover { background: var(--brand-050); color: var(--brand-900); } }
.nav__link[aria-current="page"] { color: var(--brand); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px;
  height: 2px; background: var(--brand-600); border-radius: 2px;
}
.header-cta { flex: none; }
.nav-toggle { display: none; }

@media (max-width: 1023px) {
  .header-cta { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    margin-left: auto; min-width: 44px; min-height: 44px; padding: 0 12px;
    background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-family: var(--font-display); font-weight: 600; font-size: .875rem; color: var(--text); cursor: pointer;
  }
  .nav {
    position: fixed; inset-inline: 0; top: var(--header-h); margin: 0;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-2);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility var(--dur);
  }
  .nav[data-open="true"] { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: var(--s2) 20px var(--s3); }
  .nav__link { min-height: 52px; padding: 0 12px; font-size: 1.0625rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__link[aria-current="page"] { background: var(--brand-050); }
  .nav__cta { margin-top: var(--s2); }
}
@media (min-width: 1024px) { .nav__cta { display: none; } }

/* ---------------------------------------------------------------- Hero ---
   Slider de 3 diapositivas. Fondo sobrio: la foto de cada diapositiva
   desenfocada bajo un velo del color de marca. GSAP y anime.js animan
   el contenido; three.js aporta una capa muy tenue de polen flotando.   */

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s3); }

.hero--slider {
  --c1: #17502a; --accent: #a8e0b4;
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff; background: var(--c1);
  min-height: min(calc(100svh - var(--header-h)), 820px);
  display: grid; grid-template-rows: 1fr auto;
  transition: background-color 1s var(--ease-out);
}
.hero--slider[data-theme="blue"]  { --c1: #133f66; --accent: #b7d6f0; }
.hero--slider[data-theme="earth"] { --c1: #3a3024; --accent: #e3cfa6; }

.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__blur { position: absolute; inset: -6%; }
.hero__blur > div {
  position: absolute; inset: 0; background: center / cover no-repeat;
  filter: blur(28px) saturate(.9); transform: scale(1.1); opacity: 0;
}
.hero__mesh {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--c1) 82%, transparent);
  transition: background-color 1s var(--ease-out);
}
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s var(--ease-out); }
.hero__gl.is-ready { opacity: 1; }
.hero__grain { display: none; }

.hero__slides { display: grid; position: relative; }
.hero__slide { grid-area: 1 / 1; visibility: hidden; opacity: 0; }
.hero__slide.is-active { visibility: visible; opacity: 1; }

.hero--slider .hero__grid {
  position: relative; display: grid; gap: var(--s5); align-items: center;
  padding-block: var(--s6) 150px;
}
@media (min-width: 980px) { .hero--slider .hero__grid { grid-template-columns: 1.08fr .92fr; gap: var(--s7); padding-block: var(--s7) 140px; } }

.hero--slider .eyebrow { color: var(--accent); }
.hero--slider .eyebrow::before { background: var(--accent); }
.hero__title {
  font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.5rem); line-height: 1.08; letter-spacing: -.02em;
  color: #fff; margin-bottom: var(--s2); max-width: 16ch; text-wrap: balance;
}
.hero__title em { font-style: normal; color: var(--accent); }
.hero--slider .lead { color: rgba(255, 255, 255, .85); max-width: 54ch; }
.hero__points { list-style: none; display: grid; gap: 10px; margin-top: var(--s3); }
.hero__points li { display: flex; gap: 10px; align-items: flex-start; font-size: .9688rem; color: rgba(255, 255, 255, .88); }
.hero__points svg { flex: none; margin-top: 3px; color: var(--accent); }
.hero--slider .btn--primary { background: #fff; color: var(--brand-900); }
.hero--slider .btn--primary:hover { background: var(--brand-050); color: var(--brand-900); }
.hero--slider .btn--wa { background: transparent; border-color: rgba(255, 255, 255, .5); }
.hero--slider .btn--wa:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.hero--slider .hero__media { position: relative; display: grid; justify-items: center; align-items: center; }
.hero--slider .hero__photo {
  position: relative; z-index: 1;
  width: min(430px, 78vw); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover;
  border: 6px solid rgba(255, 255, 255, .9); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .55);
}
.hero__orbit { position: absolute; inset: 50% auto auto 50%; width: min(510px, 94vw); aspect-ratio: 1; translate: -50% -50%; pointer-events: none; }
.hero__orbit span { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .3); animation: spin 90s linear infinite; }
.hero__orbit span + span { display: none; }

.hero__stat {
  position: absolute; z-index: 2; top: 4%; right: max(0px, calc(50% - 240px));
  display: grid; place-items: center; text-align: center;
  width: 112px; aspect-ratio: 1; border-radius: 50%;
  background: #fff; color: var(--brand-900);
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .45);
  padding: 14px; line-height: 1.1;
}
.hero__stat b { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--brand); }
.hero__stat span { display: block; font-size: .6875rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

.hero--slider .hero__card {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 12px;
  margin-top: -40px; max-width: 330px; padding: 12px 18px 12px 12px;
  background: #fff; color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .45);
}
.hero--slider .hero__card img { width: 56px; height: 56px; object-fit: contain; flex: none; background: var(--surface); border-radius: 8px; padding: 4px; }
.hero--slider .hero__card b { display: block; font-family: var(--font-display); font-size: .9375rem; }
.hero--slider .hero__card span { display: block; font-size: .8125rem; color: var(--muted); }

@media (max-width: 979px) {
  .hero--slider .hero__grid { padding-bottom: 160px; }
  .hero--slider .hero__photo { width: min(270px, 66vw); }
  .hero__orbit { width: min(330px, 86vw); }
  .hero__stat { width: 88px; right: max(0px, calc(50% - 170px)); }
  .hero__stat b { font-size: 1.5rem; }
  .hero__stat span { font-size: .5625rem; }
}

/* Controles */
.hero__ui { position: absolute; inset-inline: 0; bottom: 48px; z-index: 3; }
.hero__ui-inner { display: flex; align-items: center; gap: var(--s3); }
.hero__count { font-family: var(--font-display); display: flex; align-items: baseline; gap: 6px; color: rgba(255, 255, 255, .6); font-size: .875rem; }
.hero__count b { color: #fff; font-size: 1.375rem; min-width: 2ch; display: inline-block; }
.hero__dots { display: flex; gap: 8px; flex: 1 1 auto; max-width: 320px; }
.hero__dot { flex: 1 1 0; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.hero__dot::before, .hero__dot i {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px;
}
.hero__dot::before { background: rgba(255, 255, 255, .25); }
.hero__dot i { background: #fff; transform-origin: left; transform: scaleX(var(--p, 0)); }
.hero__dot:hover::before { background: rgba(255, 255, 255, .45); }
.hero__arrows { display: flex; gap: 10px; margin-left: auto; }
.hero__arrow {
  width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer;
  border-radius: 50%; color: #fff; background: transparent;
  border: 1px solid rgba(255, 255, 255, .45);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.hero__arrow:hover { background: #fff; color: var(--c1); }
.hero--slider :focus-visible { outline-color: #fff; }

.hero__wave { display: none; }

@media (prefers-reduced-motion: reduce) { .hero__orbit span { animation: none; } }

/* ------------------------------------------------------- Franja de datos --- */

.trust { background: #fff; border-block: 1px solid var(--border); }
.trust__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .trust__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trust__item { display: flex; gap: 12px; align-items: flex-start; padding: var(--s3) var(--s2); }
.trust__item + .trust__item { border-left: 1px solid var(--border); }
@media (max-width: 899px) {
  .trust__item:nth-child(odd) { border-left: 0; }
  .trust__item:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}
.trust__icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-050); color: var(--brand); }
.trust__item b { display: block; font-family: var(--font-display); font-size: .9375rem; }
.trust__item span { display: block; font-size: .8125rem; color: var(--muted); }

/* --------------------------------------------------------- Categorías --- */

.cats { list-style: none; display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.cat {
  position: relative; display: block; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
  color: var(--text); text-decoration: none;
  transition: box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
@media (hover: hover) { .cat:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); color: var(--text); } }
.cat__media { aspect-ratio: 4 / 3; background: var(--surface); position: relative; }
.cat__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat__count {
  position: absolute; top: 12px; left: 12px;
  background: rgba(23, 80, 42, .92); color: #fff; border-radius: var(--radius-pill);
  padding: 4px 12px; font-size: .75rem; font-family: var(--font-display); font-weight: 600;
}
.cat__body { padding: var(--s3); display: grid; gap: 6px; }
.cat__body b { font-family: var(--font-display); font-size: 1.0625rem; }
.cat__body span { font-size: .875rem; color: var(--muted); }
.cat__body .more { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 600; font-size: .875rem; font-family: var(--font-display); margin-top: 4px; }

/* ------------------------------------------------------- Sección partida --- */

.split { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 980px) { .split { grid-template-columns: .95fr 1.05fr; gap: var(--s7); } }
.split--flip .split__media { order: 2; }
@media (max-width: 979px) { .split--flip .split__media { order: 0; } }

.split__media { position: relative; }
.split__media img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-1); display: block; }
.split__media .round { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.split__badge {
  position: absolute; right: 12px; bottom: 12px;
  background: var(--brand-900); color: #fff; border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow-2); max-width: 200px;
}
.split__badge b { display: block; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; }
.split__badge span { display: block; font-size: .8125rem; color: #cfe3d4; margin-top: 2px; }

/* ------------------------------------------------------------- Cifras --- */

.counters { position: relative; background: var(--brand-900); color: #fff; overflow: hidden; }
.counters::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 26px; background: url("../img/tex-suelo.jpg") repeat-x center / auto 100%; opacity: .9; }
.counters__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); padding-bottom: var(--s3); }
@media (min-width: 900px) { .counters__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.counter { text-align: center; }
.counter b {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 2.9rem); line-height: 1.05; color: #fff;
}
.counter b .u { font-size: .55em; margin-left: 2px; }
.counter span { display: block; font-size: .875rem; color: #cfe3d4; margin-top: 6px; }

/* ------------------------------------------------------------ Cultivos --- */

.marquee { overflow: hidden; border-block: 1px solid var(--border); background: var(--brand-050); padding-block: 14px; }
.marquee__track { display: flex; gap: var(--s5); width: max-content; animation: slide 32s linear infinite; }
.marquee__track span {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--brand-900);
  white-space: nowrap;
}
.marquee__track span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-600); }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { padding-inline: 20px; }
  .marquee__track { animation: none; width: auto; flex-wrap: wrap; gap: var(--s3); }
}

.crops { list-style: none; display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.crop {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--s3) var(--s2); display: grid; gap: 6px; justify-items: center; text-align: center;
}
.crop svg { color: var(--brand-600); }
.crop b { font-family: var(--font-display); font-size: .9375rem; }
.crop span { font-size: .8125rem; color: var(--muted); }

/* ----------------------------------------------------------- Productos --- */

.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 4px; margin-bottom: var(--s3); }
.filters::-webkit-scrollbar { display: none; }
.filters button {
  flex: none; min-height: 44px; padding: 0 18px;
  font-family: var(--font-display); font-weight: 600; font-size: .9375rem;
  background: #fff; color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius-pill); cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
@media (hover: hover) { .filters button:hover { border-color: var(--brand-600); background: var(--brand-050); } }
.filters button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.products-count { font-size: .875rem; color: var(--muted); margin: 0 0 var(--s3); }

.products { list-style: none; display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.product {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
@media (hover: hover) { .product:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); border-color: #c4d4c7; } }
.product[hidden] { display: none; }
.product__media {
  position: relative; display: grid; place-items: center; background: var(--surface);
  aspect-ratio: 4 / 3; padding: var(--s3) var(--s2) var(--s2); border-bottom: 1px solid var(--border);
}
.product__media img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.product__chip {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255, 255, 255, .95); border: 1px solid var(--border);
  color: var(--blue); border-radius: var(--radius-pill); padding: 3px 11px;
  font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.product__body { display: flex; flex-direction: column; gap: 12px; padding: var(--s3); flex: 1 1 auto; }
.product__title { font-size: 1.125rem; }
.product__desc { font-size: .9375rem; color: var(--muted); margin: 0; }
.product__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.product__chips li { font-size: .8125rem; background: var(--brand-050); color: var(--brand-900); border-radius: var(--radius-pill); padding: 4px 12px; }
.product__foot { margin-top: auto; padding-top: 4px; }

/* --------------------------------------------------------------- Pasos --- */

.steps { list-style: none; display: grid; gap: var(--s3); counter-reset: paso; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s3); display: grid; gap: 8px; }
.step::before {
  counter-increment: paso; content: counter(paso, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; color: var(--brand-100); line-height: 1;
}
.step b { font-family: var(--font-display); font-size: 1rem; }
.step span { font-size: .9375rem; color: var(--muted); }

/* --------------------------------------------------------------- FAQ --- */

.faq { display: grid; gap: 12px; max-width: 900px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq summary {
  display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none;
  padding: var(--s2) var(--s3); min-height: 60px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { margin-left: auto; flex: none; color: var(--brand); transition: transform var(--dur) var(--ease-out); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
@media (hover: hover) { .faq summary:hover { background: var(--brand-050); } }
.faq .answer { padding: var(--s3); }
.faq .answer p { font-size: .9688rem; color: var(--muted); }

/* ---------------------------------------------------------------- Blog --- */

.posts { list-style: none; display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.post {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
@media (hover: hover) { .post:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); } }
.post__media { aspect-ratio: 16 / 10; background: var(--surface); position: relative; }
.post__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post__cat {
  position: absolute; left: 12px; bottom: 12px;
  background: var(--brand); color: #fff; border-radius: var(--radius-pill);
  padding: 4px 12px; font-size: .6875rem; font-family: var(--font-display);
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.post__body { display: flex; flex-direction: column; gap: 10px; padding: var(--s3); flex: 1 1 auto; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .8125rem; color: var(--muted); }
.post__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border); }
.post__body h3 a { color: var(--text); text-decoration: none; }
.post__body h3 a:hover { color: var(--brand); }
.post__excerpt { font-size: .9375rem; color: var(--muted); margin: 0; }
.post__foot { margin-top: auto; }

/* ------------------------------------------------------ Banda de página --- */

.page-banner { position: relative; background: var(--brand-900); color: #fff; overflow: hidden; }
.page-banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.page-banner__inner { position: relative; padding-block: var(--s6) calc(var(--s6) + 26px); }
@media (min-width: 768px) { .page-banner__inner { padding-block: var(--s7) calc(var(--s7) + 26px); } }
.page-banner h1 { color: #fff; max-width: 20ch; }
.page-banner p { color: #d6e6da; margin-top: var(--s2); }
.page-banner::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 26px; background: url("../img/tex-suelo.jpg") repeat-x center / auto 100%; }

.crumbs { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: var(--s2); font-size: .875rem; }
.crumbs a { color: #a8e0b4; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs li[aria-current="page"] { color: #fff; }
.crumbs .sep { color: rgba(255, 255, 255, .5); }

/* ------------------------------------------------------------- Nosotros --- */

.about__grid { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 980px) { .about__grid { grid-template-columns: 1.1fr .9fr; gap: var(--s7); } }
.about__photo { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-1); display: block; }
.about__caption { margin-top: 12px; font-size: .875rem; color: var(--muted); }

.mv { display: grid; gap: var(--s2); margin-top: var(--s4); }
@media (min-width: 600px) { .mv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mv__card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s3); }
.mv__card h3 { font-size: 1.0625rem; margin-bottom: 8px; color: var(--brand-900); }
.mv__card p { font-size: .9375rem; color: var(--muted); }

.pledges { list-style: none; display: grid; gap: 12px; margin-top: var(--s3); }
.pledges li { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; }
.pledges svg { flex: none; margin-top: 3px; color: var(--brand); }

.values { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s2); margin-top: var(--s3); }
.value { display: grid; gap: 8px; justify-items: center; text-align: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s3) var(--s2); }
.value span { display: block; font-family: var(--font-display); font-weight: 600; font-size: .9375rem; }
.value svg { color: var(--brand-600); }

.timeline { list-style: none; display: grid; gap: var(--s2); margin-top: var(--s3); }
@media (min-width: 640px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.timeline li { background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--brand-600); border-radius: var(--radius); padding: var(--s3); }
.timeline b { display: block; font-family: var(--font-display); font-size: 1.375rem; color: var(--brand); line-height: 1.1; }
.timeline p { font-size: .9375rem; color: var(--muted); margin: 8px 0 0; }

.gallery { list-style: none; display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); display: block; aspect-ratio: 4 / 3; }

.iso-card { display: grid; gap: var(--s2); justify-items: start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s3); margin-top: var(--s3); }
@media (min-width: 600px) { .iso-card { grid-template-columns: auto 1fr; align-items: center; gap: var(--s3); } }
.iso-card img { width: 220px; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.iso-card p { font-size: .9375rem; color: var(--muted); margin: 0; }

/* ------------------------------------------------------------- Contacto --- */

.contact__grid { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 980px) { .contact__grid { grid-template-columns: 1.05fr .95fr; gap: var(--s7); } }

.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s3); box-shadow: var(--shadow-1); }
@media (min-width: 600px) { .card { padding: var(--s4); } }

.form { display: grid; gap: var(--s2); }
.form__row { display: grid; gap: var(--s2); }
@media (min-width: 600px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: .875rem; }
.field .req { color: var(--danger); }
.field .hint { font-size: .8125rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font-family: var(--font-body); font-size: 1rem; color: var(--text);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31, 122, 52, .15); outline: none;
}
.field .error { display: none; align-items: flex-start; gap: 6px; font-size: .8125rem; color: var(--danger); margin: 0; }
.field[data-invalid="true"] input, .field[data-invalid="true"] select, .field[data-invalid="true"] textarea { border-color: var(--danger); background: var(--danger-050); }
.field[data-invalid="true"] .error { display: flex; }

.form__summary { display: none; background: var(--danger-050); border: 1px solid var(--danger); border-radius: var(--radius-sm); padding: 12px 16px; color: var(--danger); font-size: .9375rem; }
.form__summary[data-show="true"] { display: block; }
.form__summary ul { margin: 6px 0 0; padding-left: 18px; list-style: disc; }
.form__summary a { color: var(--danger); }

.form__status { font-size: .9375rem; min-height: 24px; margin: 0; }
.form__status[data-state="ok"] { display: flex; align-items: flex-start; gap: 8px; background: var(--brand-050); border: 1px solid var(--brand-600); border-radius: var(--radius-sm); padding: 12px 16px; color: var(--brand-900); }
.form__status[data-state="error"] { display: flex; align-items: flex-start; gap: 8px; background: var(--danger-050); border: 1px solid var(--danger); border-radius: var(--radius-sm); padding: 12px 16px; color: var(--danger); }
.form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.contact-list { list-style: none; display: grid; gap: var(--s2); }
.contact-item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s2) var(--s3); }
.contact-item .contact-item__icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-050); color: var(--brand); }
.contact-item b { display: block; font-family: var(--font-display); font-size: .9375rem; }
.contact-item a, .contact-item span { display: block; font-size: .9375rem; color: var(--muted); text-decoration: none; }
.contact-item a:hover { color: var(--brand); text-decoration: underline; }
.contact-item .od-nowrap { display: inline-block; }

.note { display: flex; gap: 10px; align-items: flex-start; margin-top: var(--s2); font-size: .8125rem; color: var(--muted); }
.note svg { flex: none; margin-top: 2px; }

/* ------------------------------------------------------------------ CTA --- */

.cta { position: relative; background: var(--brand-900); color: #fff; overflow: hidden; }
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.cta__inner { position: relative; display: grid; gap: var(--s3); align-items: center; }
@media (min-width: 880px) { .cta__inner { grid-template-columns: 1.2fr auto; gap: var(--s5); } }
.cta h2 { color: #fff; }
.cta p { color: #d6e6da; margin: 8px 0 0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------------- Footer --- */

.site-footer { background: var(--brand-900); color: #d6e6da; }
.site-footer__top { height: 26px; background: url("../img/tex-suelo.jpg") repeat-x center / auto 100%; }
.site-footer__inner { padding-block: var(--s6) var(--s3); }
.site-footer .brand { color: #fff; }
.site-footer .brand__name, .site-footer h4 { color: #fff; }
.site-footer .brand__sub { color: #a8c4ae; }
.footer__grid { display: grid; gap: var(--s4); }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--s4); } }
.footer__grid p { font-size: .9375rem; color: #c3d8c8; margin-top: var(--s2); }
.footer__list { list-style: none; display: grid; gap: 8px; margin-top: var(--s2); }
.footer__list a, .footer__list span { color: #c3d8c8; text-decoration: none; font-size: .9375rem; }
.footer__list a:hover { color: #fff; text-decoration: underline; }
.footer__bottom {
  margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid rgba(255, 255, 255, .16);
  display: flex; flex-wrap: wrap; gap: 8px var(--s3); justify-content: space-between;
  font-size: .8125rem; color: #a8c4ae;
}

/* --------------------------------------------------------------- Modal --- */

.modal {
  width: min(780px, calc(100vw - 32px)); max-height: min(86dvh, 900px);
  padding: 0; border: 0; border-radius: var(--radius);
  background: #fff; color: var(--text); box-shadow: var(--shadow-2); overflow: hidden;
}
.modal::backdrop { background: rgba(14, 30, 18, .62); }
.modal[open] { display: flex; flex-direction: column; animation: modal-in var(--dur) var(--ease-out); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.modal__head { display: flex; align-items: flex-start; gap: var(--s2); padding: var(--s3); border-bottom: 1px solid var(--border); background: #fff; }
.modal__head h2 { font-size: 1.25rem; }
.modal__head p { font-size: .875rem; color: var(--muted); margin: 4px 0 0; }
.modal__close { flex: none; width: 44px; height: 44px; margin-left: auto; display: grid; place-items: center; cursor: pointer; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); }
@media (hover: hover) { .modal__close:hover { background: var(--surface-2); } }
.modal__body { padding: var(--s3); overflow-y: auto; overscroll-behavior: contain; }
.modal__body > * + * { margin-top: var(--s3); }
.modal__body h3 { font-size: 1.0625rem; color: var(--brand-900); margin-bottom: 10px; }
.modal__body p { font-size: .9688rem; }
.modal__body .rich > * + * { margin-top: var(--s2); }
.modal__hero { display: grid; gap: var(--s2); align-items: center; }
@media (min-width: 620px) { .modal__hero { grid-template-columns: 200px 1fr; } }
.modal__hero .shot { display: grid; place-items: center; background: var(--surface); border-radius: var(--radius); padding: var(--s2); }
.modal__hero .shot img { width: auto; height: auto; max-width: 100%; max-height: 190px; object-fit: contain; }
.modal__photo { display: block; width: min(320px, 72%); aspect-ratio: 1; margin-inline: auto; border-radius: 50%; object-fit: cover; }

/* ------------------------------------------------------------- Listados --- */

.checklist { list-style: none; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; }
.checklist svg { flex: none; margin-top: 3px; color: var(--brand); }
.checklist--blue svg { color: var(--blue); }

.bullets { list-style: none; display: grid; gap: 8px; }
.bullets li { position: relative; padding-left: 18px; font-size: .9375rem; color: var(--muted); }
.bullets li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-600); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
caption { text-align: left; font-size: .8125rem; color: var(--muted); padding: 10px 14px 8px; }
th, td { padding: 10px 14px; text-align: left; white-space: nowrap; }
thead th { background: var(--brand-600); color: #fff; font-family: var(--font-display); font-size: .875rem; }
tbody tr:nth-child(even) { background: var(--surface); }
tbody th { font-weight: 600; }
thead td + td, thead th + th { border-left: 1px solid rgba(255, 255, 255, .25); }
tbody td, tbody th { border-left: 1px solid var(--border); }
tbody tr + tr td, tbody tr + tr th { border-top: 1px solid var(--border); }
tbody td:first-child, tbody th:first-child { border-left: 0; }

/* ------------------------------------------------------------ Artículo --- */

.article-layout { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 980px) { .article-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s7); } }
.article__cover { width: 100%; height: auto; border-radius: var(--radius); display: block; margin-bottom: var(--s3); }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .875rem; color: var(--muted); margin-bottom: var(--s2); }
.article__lead { font-size: 1.125rem; color: var(--muted); }
.article h2 { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.7rem); margin-top: var(--s5); }
.article > * + * { margin-top: var(--s2); }
.article ul { list-style: none; display: grid; gap: 8px; }
.article ul li { position: relative; padding-left: 18px; font-size: .9688rem; }
.article ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-600); }
.article__source { font-size: .8125rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: var(--s2); margin-top: var(--s5); }

.sidebar { display: grid; gap: var(--s3); position: sticky; top: calc(var(--header-h) + 16px); }
.sidebar__card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s3); }
.sidebar__card h3 { font-size: 1rem; margin-bottom: var(--s2); }
.sidebar__list { list-style: none; display: grid; gap: 12px; }
.sidebar__list a { display: grid; gap: 2px; text-decoration: none; color: var(--text); font-size: .9375rem; font-weight: 500; }
.sidebar__list a:hover { color: var(--brand); }
.sidebar__list span { font-size: .8125rem; color: var(--muted); font-weight: 400; }
.sidebar__card--dark { background: var(--brand-900); border-color: var(--brand-900); color: #fff; }
.sidebar__card--dark h3 { color: #fff; }
.sidebar__card--dark p { color: #d6e6da; font-size: .9375rem; margin-bottom: var(--s2); }
@media (max-width: 979px) { .sidebar { position: static; } }

/* ------------------------------------------------------------ Movimiento --- */

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: var(--delay, 0ms); }

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

/* ------------------------------------------------------------ Utilidades --- */

.mt-2 { margin-top: var(--s2); }
.mt-3 { margin-top: var(--s3); }
.mt-4 { margin-top: var(--s4); }
.mt-6 { margin-top: var(--s6); }

/* --------------------------------------- Legibilidad sobre fotografía ---
   Las fotos de banda son claras (film blanco, cielo, mulch), así que el
   texto se apoya en una capa de color con contraste garantizado.          */

.page-banner__bg { opacity: .45; z-index: 0; }
.page-banner::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(23, 80, 42, .92) 0%, rgba(23, 80, 42, .84) 55%, rgba(23, 80, 42, .74) 100%);
}
.page-banner__inner { z-index: 2; }
.page-banner::after { z-index: 3; }
.crumbs a { color: #ffffff; }
.crumbs a:hover { color: #ffffff; text-decoration: underline; }
.crumbs li[aria-current="page"] { color: #cfe3d4; }

.cta__bg { opacity: .22; z-index: 0; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: rgba(23, 80, 42, .78);
}
.cta__inner { z-index: 2; }

/* ==========================================================================
   Capa de dinamismo — sobria: fondos con textura suave, apariciones al
   hacer scroll y transiciones cortas. Colores planos de marca.
   GSAP (ScrollTrigger) y anime.js se cargan desde assets/vendor/.
   ========================================================================== */

:root {
  --leaf-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%231f7a34' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M20 90c0-30 20-50 50-50-2 30-22 50-50 50z'/%3E%3Cpath d='M20 90 60 50'/%3E%3C/g%3E%3C/svg%3E");
}

/* Barra de progreso de lectura */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: var(--brand-600); transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}

/* Cabecera */
.mainbar { background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand__mark { transition: transform .5s var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(-8deg); }

/* Eyebrow: la línea se dibuja al entrar */
.eyebrow::before { transform-origin: left; transition: transform .8s var(--ease-out) .1s; }
.has-gsap .eyebrow:not(.is-in)::before { transform: scaleX(0); }
.fx-word { display: inline-block; }

/* Fondos de sección */
.section { position: relative; isolation: isolate; overflow-x: clip; }
.section--surface { background: var(--leaf-pattern), var(--surface); }

/* Franja de respaldo */
.trust__icon { transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out); }
.trust__item:hover .trust__icon { background: var(--brand); color: #fff; }

/* Tarjetas: sólo la imagen reacciona al pasar el puntero */
.cat__media, .post__media, .product__media { overflow: hidden; }
.cat__media img, .post__media img, .product__media img { transition: transform .8s var(--ease-out); }
@media (hover: hover) {
  .cat:hover .cat__media img, .post:hover .post__media img { transform: scale(1.06); }
  .product:hover .product__media img { transform: scale(1.04); }
}
.cat__count, .post__cat { z-index: 1; }
.crop svg, .value svg { transition: transform .5s var(--ease-out); }
.crop:hover svg, .value:hover svg { transform: translateY(-3px); }

/* Fotos redondas con un anillo discreto */
.split__media:has(.round) { display: grid; place-items: center; }
.split__media:has(.round)::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 110%; aspect-ratio: 1; border-radius: 50%;
  translate: -50% -50%; border: 1px dashed rgba(31, 122, 52, .3); pointer-events: none;
  animation: spin 80s linear infinite;
}
.split__media .round { position: relative; }

/* Cifras */
.counters::after { display: none; }
.counters .counter b { color: #fff; }
.counter b span { display: inline; font-size: inherit; color: inherit; margin: 0; }
.counter b .u { font-size: .55em; }

/* Cinta de cultivos: bucle infinito continuo */
.marquee { background: var(--brand); border: 0; padding-block: 16px; }
.marquee__track { gap: 0; animation-duration: 40s; }
.marquee__track span { color: #fff; padding-right: var(--s5); }
.marquee__track span::before { background: #a8e0b4; }

/* FAQ */
.faq details { transition: border-color var(--dur) var(--ease-out); }
.faq details[open] { border-color: var(--brand-600); }

/* Banda de página y CTA */
.page-banner__bg, .cta__bg { will-change: transform; }
.page-banner__bg { transform: scale(1.12); }
.page-banner .eyebrow { color: #a8e0b4; }
.page-banner .eyebrow::before { background: #a8e0b4; }
.page-banner::after { display: none; }

.fx-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.fx-particles i { position: absolute; display: block; border-radius: 50% 0 50% 0; background: #a8e0b4; opacity: 0; }

/* CTA como tarjeta: se separa del pie de página en todas las páginas */
.cta.section--tight {
  width: calc(100% - 40px); max-width: calc(var(--wrap) - 64px);
  margin: 0 auto var(--s7); border-radius: 20px;
  padding-block: var(--s6);
}
@media (min-width: 768px) { .cta.section--tight { padding-block: var(--s7); padding-inline: var(--s3); } }
.cta::before { background: rgba(23, 80, 42, .88); }
.cta .eyebrow { color: #a8e0b4; }
.cta .eyebrow::before { background: #a8e0b4; }
.site-footer__top { display: none; }
.site-footer { border-top: 4px solid var(--brand); }

/* Estados iniciales cuando GSAP gestiona las apariciones */
.has-gsap .reveal { opacity: 0; transform: translateY(32px); transition: none; }

@media (prefers-reduced-motion: reduce) {
  .split__media:has(.round)::before { animation: none; }
  .has-gsap .reveal { opacity: 1; transform: none; }
  .fx-particles { display: none; }
}

/* Correcciones */
/* Icono de respaldo centrado: la regla genérica de span no debe pisar la cuadrícula */
.trust__item .trust__icon { display: grid; place-items: center; }

/* Imagen de producto contenida en su caja: al acercarse no invade el título */
.product__media { display: block; position: relative; overflow: hidden; isolation: isolate; }
.product__media img {
  position: absolute; inset: 44px 16px 16px; width: calc(100% - 32px); height: calc(100% - 60px);
  max-width: none; max-height: none; object-fit: contain;
}
.product__chip { z-index: 1; }

/* CTA: recorte limpio de las esquinas y foto más alta que la caja para el paralaje */
.cta.section--tight { clip-path: inset(0 round 20px); }
.cta__bg, .page-banner__bg { top: -15%; bottom: auto; height: 130%; }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 55;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff; text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover { transform: scale(1.07); box-shadow: 0 8px 26px rgba(0, 0, 0, .28); color: #fff; }
.wa-float:focus-visible { outline: 3px solid #128c7e; outline-offset: 3px; }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #25d366; z-index: -1; animation: wa-pulse 2.4s ease-out infinite;
}
.wa-float__label {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  white-space: nowrap; background: #fff; color: var(--text); font-size: .875rem; font-weight: 600;
  padding: 8px 12px; border-radius: 8px; box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
@media (hover: hover) { .wa-float:hover .wa-float__label { opacity: 1; } }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.6); opacity: 0; } }
@media (max-width: 767px) { .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; } .wa-float svg { width: 30px; height: 30px; } }
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } .wa-float { transition: none; } }
@media print { .wa-float { display: none; } }
