/* ==========================================================================
   AlmeriTERRA BIO — Sistema de diseño
   Light-first · un acento (verde marca) · tipografía + espacio · motion sobria
   ========================================================================== */

/* Inter (variable, 400–800) servida desde /fonts */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Color */
  --bg: #fbfbf8;
  --surface: #ffffff;
  --surface-2: #f2f4ee;
  --surface-3: #e8ede2;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #a1a1a6;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #2a6132;         /* verde "Almeri" del logotipo */
  --accent-hover: #1f4b26;
  --accent-soft: #e9efe3;    /* tinte del acento para fondos */
  --lime: #a0b830;           /* verde lima "TERRA / BIO" del logotipo: solo micro-acentos */
  --dark-bg: #0d1f14;
  --dark-text: #f5f5f7;
  --dark-text-2: #a9b5ac;

  /* Tipografía */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-hero: clamp(2.75rem, 1.5rem + 5.2vw, 6rem);
  --fs-h1: clamp(2.5rem, 1.4rem + 3.8vw, 4.5rem);
  --fs-h2: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
  --fs-h3: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);
  --fs-lead: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-caption: 0.75rem;

  /* Espacio (rejilla 8pt) */
  --s-1: 0.5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem; --s-5: 3rem;
  --s-6: 4rem; --s-7: 6rem; --s-8: 8rem; --s-9: 10rem;
  --section: clamp(5rem, 4rem + 6vw, 10rem);

  /* Forma */
  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --content: 1120px;
  --content-narrow: 760px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h: 64px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }
p + p { margin-top: var(--s-2); }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-soft); color: var(--accent-hover); }

.container { width: min(var(--content), 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--narrow { width: min(var(--content-narrow), 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.lead { font-size: var(--fs-lead); color: var(--text-2); line-height: 1.45; text-wrap: pretty; }
.muted { color: var(--text-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent); text-transform: uppercase; margin-bottom: var(--s-3);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--lime); border-radius: 2px; }

/* CTAs — estilo Apple: enlace con chevrón; un botón sólido por vista */
.link { font-weight: 500; white-space: nowrap; }
.link::after { content: " ›"; font-weight: 600; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0 1.375rem;
  border-radius: var(--radius-pill);
  background: var(--accent); color: #fff;
  font-weight: 600; font-size: var(--fs-body);
  transition: background 0.2s var(--ease), transform 0.25s var(--ease-out);
  will-change: transform;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--light { background: #fff; color: var(--accent-hover); }
.btn--light:hover { background: #e9efe9; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); align-items: center; }

/* --------------------------------------------------------------------------
   Navegación (cristal solo en el chrome)
   -------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(251, 251, 248, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
}
.nav.is-scrolled {
  background: rgba(251, 251, 248, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line);
}
.nav.is-dark { color: var(--dark-text); }
.nav.is-dark.is-scrolled { background: rgba(13, 31, 20, 0.72); border-bottom-color: rgba(255, 255, 255, 0.1); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: var(--s-3); }
.nav__logo { display: inline-flex; align-items: center; height: 100%; }
.nav__logo img { height: 46px; width: auto; }
.nav__logo .logo--dark { display: none; }
.nav.is-dark .nav__logo .logo { display: none; }
.nav.is-dark .nav__logo .logo--dark { display: block; }
body.menu-open .nav .nav__logo .logo { display: block; }
body.menu-open .nav .nav__logo .logo--dark { display: none; }
.nav__links { display: flex; align-items: center; gap: 0.25rem; }
.nav__links > li { position: relative; }
.nav__links a, .nav__links button {
  display: inline-flex; align-items: center; gap: 0.3rem;
  min-height: 44px; padding: 0 0.8rem;
  font-size: 0.9375rem; font-weight: 500; color: inherit;
  opacity: 0.8; border-radius: var(--radius-pill);
  transition: opacity 0.15s, background 0.15s;
}
.nav__links a:hover, .nav__links button:hover { opacity: 1; text-decoration: none; background: rgba(0,0,0,0.04); }
.nav.is-dark .nav__links a:hover, .nav.is-dark .nav__links button:hover { background: rgba(255,255,255,0.08); }
.nav__links a[aria-current="page"] { opacity: 1; font-weight: 600; }
.nav__links svg { width: 12px; height: 12px; opacity: 0.6; transition: transform 0.25s var(--ease-out); }
.nav__links li:hover svg, .nav__links li:focus-within svg { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% + 4px); left: 0; min-width: 340px;
  padding: 0.5rem; margin: 0;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.18);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98);
  transform-origin: top left;
  transition: opacity 0.2s var(--ease), transform 0.3s var(--ease-out), visibility 0.2s;
  color: var(--text);
}
.nav__links li:hover .nav__menu, .nav__links li:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu a { min-height: 40px; width: 100%; border-radius: 10px; opacity: 1; padding: 0 0.75rem; white-space: nowrap; }
.nav__menu a:hover { background: var(--surface-2); }
.nav__menu a span { color: var(--text-3); font-size: var(--fs-caption); margin-left: auto; padding-left: 1rem; white-space: nowrap; }
.nav__actions { display: flex; align-items: center; gap: var(--s-2); }
.nav__lang { display: inline-flex; align-items: center; gap: 0.25rem; font-size: var(--fs-small); font-weight: 600; opacity: 0.7; }
.nav__lang a { color: inherit; padding: 0.25rem; }
.nav__lang a[aria-current="true"] { opacity: 0.45; pointer-events: none; }
.nav__lang span { opacity: 0.4; }
.nav__cta { display: inline-flex; min-height: 40px; padding: 0 1.1rem; font-size: var(--fs-small); }
.nav.is-dark .nav__cta { background: #fff; color: var(--accent-hover); }
.nav__burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; }
.nav__burger span { position: relative; display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease-out), background 0.2s; }
.nav__burger span::before, .nav__burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease-out); }
.nav__burger span::before { top: -6px; } .nav__burger span::after { top: 6px; }
body.menu-open .nav__burger span { background: transparent; }
body.menu-open .nav__burger span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav__burger span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 0 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--s-2) var(--gutter) var(--s-6);
    background: rgba(251, 251, 248, 0.94);
    -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
    color: var(--text);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.35s var(--ease-out), visibility 0.25s;
  }
  body.menu-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__links a, .nav__links button { font-size: 1.375rem; font-weight: 600; min-height: 56px; width: 100%; border-radius: 12px; }
  .nav__links li:hover .nav__menu, .nav__links li:focus-within .nav__menu, .nav__menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: 0; box-shadow: none; padding: 0 0 0.5rem 1rem; -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .nav__menu a { font-size: 1.0625rem; font-weight: 500; min-height: 44px; }
  .nav__links svg { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__cta { display: none; }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav { background: rgba(251, 251, 248, 0.94); color: var(--text); }
}

/* --------------------------------------------------------------------------
   El tallo — la marca en gran formato
   -------------------------------------------------------------------------- */
/* La hoja y el tallo del logotipo original en gran formato (img/tallo-*.png, un tono por fondo) */
.tallo { position: absolute; pointer-events: none; will-change: transform; aspect-ratio: 806 / 871; }
.tallo img { width: 100%; height: 100%; object-fit: contain; object-position: center; }

/* --------------------------------------------------------------------------
   Hero (portada)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: grid; align-items: center;
  padding-block: var(--s-6) var(--s-7);
  overflow: clip;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s-5); align-items: center; }
.hero__title { font-size: var(--fs-hero); font-weight: 800; letter-spacing: -0.045em; line-height: 0.98; margin-bottom: var(--s-3); }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__lead { max-width: 34rem; margin-bottom: var(--s-4); }
/* Texto siempre por encima; la hoja vive detrás de las fotos y crece hacia la derecha, nunca hacia el texto */
.hero__text { position: relative; z-index: 2; }
.hero__visual { position: relative; aspect-ratio: 1 / 1; }
.hero__visual .tallo { z-index: 0; inset: -24% -30% -16% -6.5%; width: auto; aspect-ratio: auto; }
.hero__visual .tallo img { object-position: left center; }
.hero__photo {
  position: absolute; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(15, 60, 30, 0.35), 0 0 0 1px rgba(0,0,0,0.04);
  background: var(--surface-2);
  will-change: transform;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo--main { z-index: 2; left: 0; top: 4%; width: 70%; aspect-ratio: 4 / 5; }
.hero__photo--main img { object-position: 62% 50%; }
.hero__photo--side { z-index: 3; right: 0; bottom: 0; width: 42%; aspect-ratio: 3 / 4; }
.hero__photo--side img { object-position: 56% 50%; }
.hero__badge {
  position: absolute; z-index: 4; left: 0; bottom: 12%;
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem 0.75rem 0.75rem;
  background: rgba(255,255,255,0.86);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.2);
  font-size: var(--fs-small); font-weight: 600;
}
.hero__badge img { width: 38px; height: 38px; object-fit: contain; }
.hero__badge small { display: block; font-weight: 500; color: var(--text-2); font-size: var(--fs-caption); }
.hero__scroll { position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); color: var(--text-3); font-size: var(--fs-caption); letter-spacing: 0.1em; text-transform: uppercase; }
.hero__scroll::after { content: ""; display: block; width: 1px; height: 28px; margin: 8px auto 0; background: linear-gradient(var(--text-3), transparent); }

@media (max-width: 900px) {
  .hero { min-height: 0; padding-block: var(--s-5) var(--s-6); }
  .hero__grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .hero__visual { aspect-ratio: 5 / 4; }
  .hero__visual .tallo { inset: 0 -24% -12% 4%; }
  .hero__scroll { display: none; }
}

/* --------------------------------------------------------------------------
   Secciones
   -------------------------------------------------------------------------- */
.section { position: relative; padding-block: var(--section); }
.section--tight { padding-block: var(--s-7); }
.section--surface { background: var(--surface); }
.section--soft { background: var(--surface-2); }
.section__head { max-width: 46rem; margin-bottom: var(--s-6); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head .lead { margin-top: var(--s-3); }
.section__head--center .eyebrow { justify-content: center; }

/* Cifras */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); padding-block: var(--s-6); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat__num { font-size: clamp(2.5rem, 2rem + 2.5vw, 4.25rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat__num sup { font-size: 0.45em; vertical-align: top; top: 0.4em; position: relative; margin-left: 2px; }
.stat__label { margin-top: var(--s-1); color: var(--text-2); font-size: var(--fs-small); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Sobre nosotros — tallo gigante recortado por el borde */
.about { overflow: clip; }
.about .tallo { right: -18vw; top: -8%; width: clamp(420px, 60vw, 900px); color: var(--surface-3); z-index: 0; }
.about__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); align-items: center; }
.about__photos { position: relative; aspect-ratio: 1; }
.about__photo { position: absolute; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -24px rgba(0,0,0,0.3); will-change: transform; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo--a { left: 0; top: 10%; width: 58%; aspect-ratio: 3 / 4; }
.about__photo--a img { object-position: 50% 55%; }
.about__photo--b { right: 0; top: 0; width: 46%; aspect-ratio: 3 / 4; }
.about__photo--b img { object-position: 50% 35%; }
.about__list { margin-top: var(--s-4); display: grid; gap: var(--s-2); }
.about__list li { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--text-2); }
.about__list li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 0.6rem; border-radius: 50%; background: var(--lime); }
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photos { order: 2; }
  .about .tallo { right: -30vw; top: auto; bottom: -10%; width: 90vw; }
}

/* Galería de productos — scroll horizontal nativo con snap */
.products-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); }
.gallery { position: relative; }
.gallery__track {
  display: flex; gap: var(--s-3);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-inline: max(var(--gutter), calc((100% - var(--content)) / 2));
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--content)) / 2));
  padding-block: 0.5rem var(--s-3);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__ctrls { display: flex; gap: 0.5rem; }
.gallery__btn { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; transition: background 0.2s, transform 0.25s var(--ease-out); }
.gallery__btn:hover { background: var(--surface-3); }
.gallery__btn:active { transform: scale(0.94); }
.gallery__btn:disabled { opacity: 0.35; cursor: default; }
.gallery__btn:disabled:hover { background: var(--surface-2); }
.gallery__btn svg { width: 16px; height: 16px; }
.pcard {
  flex: 0 0 clamp(260px, 28vw, 340px);
  scroll-snap-align: start;
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--surface-2);
  color: #fff; display: flex; align-items: flex-end;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.pcard:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -24px rgba(0,0,0,0.35); text-decoration: none; }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.pcard:hover img { transform: scale(1.05); }
.pcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.05) 55%, transparent 100%); }
.pcard__body { position: relative; z-index: 1; padding: var(--s-3); }
.pcard__name { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.pcard__tag { font-size: var(--fs-small); opacity: 0.85; margin-top: 0.15rem; }
.pcard__more { display: inline-block; margin-top: 0.75rem; font-size: var(--fs-small); font-weight: 600; opacity: 0.9; }

/* Rejilla de productos (página) */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
@media (max-width: 900px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pgrid { grid-template-columns: 1fr; } }
.pgrid .pcard { flex: none; }

/* Escena fija — calidad (sticky pinned + tarjetas apiladas) */
.pin { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s-7); align-items: start; }
.pin__sticky { position: sticky; top: calc(var(--nav-h) + 3rem); }
.pin__stack { display: grid; gap: var(--s-3); }
.stack-card {
  position: sticky; top: calc(var(--nav-h) + 3rem);
  background: var(--surface); border-radius: var(--radius-lg); padding: var(--s-4);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -30px rgba(0,0,0,0.25);
  display: grid; grid-template-columns: 64px 1fr; gap: var(--s-3); align-items: start;
  transform-origin: top center;
}
.stack-card:nth-child(2) { top: calc(var(--nav-h) + 4rem); }
.stack-card:nth-child(3) { top: calc(var(--nav-h) + 5rem); }
.stack-card:nth-child(4) { top: calc(var(--nav-h) + 6rem); }
.stack-card__icon { width: 64px; height: 64px; border-radius: 18px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.stack-card__icon svg { width: 28px; height: 28px; }
.stack-card h3 { margin-bottom: 0.5rem; }
.stack-card p { color: var(--text-2); }
.stack-card__img { grid-column: 1 / -1; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 7; }
.stack-card__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .pin { grid-template-columns: 1fr; gap: var(--s-5); }
  .pin__sticky { position: static; }
  .stack-card { grid-template-columns: 48px 1fr; padding: var(--s-3); }
  .stack-card__icon { width: 48px; height: 48px; border-radius: 14px; }
}

/* Sección oscura (única, intencional) */
.dark { background: var(--dark-bg); color: var(--dark-text); overflow: clip; }
.dark .eyebrow { color: var(--lime); }
.dark .lead, .dark .muted { color: var(--dark-text-2); }
.dark .tallo { color: rgba(255,255,255,0.05); }
.dark a.link { color: #fff; }
.sust__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); align-items: center; }
.sust__photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6); will-change: transform; }
.sust__photo img { width: 100%; height: 100%; object-fit: cover; }
.sust__points { margin-top: var(--s-5); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-3); }
.sust__points h3 { font-size: 1.125rem; margin-bottom: 0.35rem; display: flex; align-items: center; gap: 0.6rem; }
.sust__points h3 svg { width: 22px; height: 22px; color: var(--lime); flex: none; }
.sust__points p { color: var(--dark-text-2); font-size: var(--fs-small); }
.dark .tallo--big { left: -14vw; bottom: -30%; width: clamp(500px, 62vw, 1000px); color: rgba(124,185,40,0.09); }
@media (max-width: 900px) {
  .sust__grid { grid-template-columns: 1fr; }
  .sust__photo { aspect-ratio: 4 / 3; }
  .sust__points { grid-template-columns: 1fr; }
}

/* Certificaciones — sellos como tipografía, no imágenes falsas */
.seals { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-4) clamp(2rem, 1rem + 4vw, 4.5rem); }
.seal { display: inline-flex; align-items: center; justify-content: center; height: 88px; }
.seal__logo { max-height: 88px; max-width: 132px; width: auto; height: auto; object-fit: contain; }
@media (max-width: 560px) { .seals { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: var(--s-4) var(--s-6); } .seal { height: 64px; } .seal__logo { max-height: 64px; max-width: 110px; } }
.seal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s-3); }
.seal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4); }
.seal-card__logo { height: 96px; display: flex; align-items: center; margin-bottom: var(--s-3); }
.seal-card__logo img { max-height: 96px; max-width: 150px; width: auto; height: auto; object-fit: contain; }
.seal-card h3 { font-size: 1.125rem; margin-bottom: 0.4rem; }
.seal-card p { color: var(--text-2); font-size: var(--fs-small); }

/* Banda CTA */
.cta-band { position: relative; overflow: clip; background: var(--accent); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.5rem, 2rem + 4vw, 5rem); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: var(--s-4); align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.8); margin-top: var(--s-2); max-width: 36rem; }
.cta-band .tallo { right: -6%; top: -34%; width: 40%; color: rgba(255,255,255,0.1); }
.cta-band > :not(.tallo) { position: relative; z-index: 1; }
@media (max-width: 720px) { .cta-band { grid-template-columns: 1fr; } }

/* Bento (una vez, donde lo merece) */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-3); }
.bento__item { position: relative; background: var(--surface); border-radius: var(--radius); padding: var(--s-4); border: 1px solid var(--line); min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.bento__item h3 { margin-bottom: 0.4rem; }
.bento__item p { color: var(--text-2); font-size: var(--fs-small); }
.bento__item--wide { grid-column: span 4; }
.bento__item--half { grid-column: span 3; }
.bento__item--third { grid-column: span 2; }
.bento__item--photo { padding: 0; color: #fff; min-height: 320px; }
.bento__item--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento__item--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 60%); }
.bento__item--photo .bento__body { position: relative; z-index: 1; padding: var(--s-4); }
.bento__item--photo p { color: rgba(255,255,255,0.85); }
.bento__num { font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); font-weight: 800; letter-spacing: -0.04em; color: var(--accent); line-height: 1; margin-bottom: auto; }
@media (max-width: 900px) { .bento__item--wide, .bento__item--half, .bento__item--third { grid-column: span 6; } .bento__item { min-height: 200px; } }

/* Timeline (empresa) */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 1px; background: var(--line); }
.tl__year { position: relative; padding-top: var(--s-4); font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; color: var(--accent); }
.tl__year::before { content: ""; position: absolute; top: 4px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px var(--bg); }
.tl__text { margin-top: 0.5rem; color: var(--text-2); font-size: var(--fs-small); }
@media (max-width: 800px) { .timeline { grid-template-columns: 1fr 1fr; } }

/* Feature alternado (una idea por sección) */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); align-items: center; }
.feature + .feature { margin-top: var(--section); }
.feature:nth-child(even) .feature__media { order: -1; }
.feature__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.3); will-change: transform; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature .lead { margin-top: var(--s-3); }
.feature .link { display: inline-block; margin-top: var(--s-3); }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; gap: var(--s-4); } .feature:nth-child(even) .feature__media { order: 0; } }

/* Página de producto */
.phero { position: relative; overflow: clip; padding-block: var(--s-6) var(--s-7); }
.phero .tallo { right: -14vw; top: -20%; width: clamp(400px, 52vw, 820px); color: var(--surface-3); }
.phero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); align-items: center; }
.phero__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.35); }
.phero__media img { width: 100%; height: 100%; object-fit: cover; }
.phero__title { font-size: var(--fs-hero); font-weight: 800; letter-spacing: -0.045em; line-height: 0.98; }
.phero .lead { margin-top: var(--s-3); }
.phero__note { margin-top: var(--s-2); color: var(--text-2); font-size: var(--fs-body); line-height: 1.6; max-width: 36rem; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s-3); }
.spec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4); }
.spec h3 { font-size: var(--fs-small); color: var(--text-2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: var(--s-2); }
.spec p { font-size: 1.125rem; font-weight: 500; }
.spec ul { display: grid; gap: 0.4rem; }
.spec li { font-weight: 500; }
.calendar { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-top: var(--s-2); }
.calendar span { display: grid; place-items: center; height: 40px; border-radius: 8px; font-size: var(--fs-caption); font-weight: 600; background: var(--surface-2); color: var(--text-3); }
.calendar span.on { background: var(--accent); color: #fff; }
.calendar span.mid { background: var(--accent-soft); color: var(--accent); }
.legend { display: flex; gap: var(--s-3); margin-top: var(--s-2); font-size: var(--fs-caption); color: var(--text-2); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 0.35rem; vertical-align: -1px; }
.gallery2 { display: grid; grid-template-columns: 2fr 1fr; gap: var(--s-3); }
.gallery2 > div { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; }
.gallery2 > div:last-child { aspect-ratio: auto; }
.gallery2 img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .phero__grid { grid-template-columns: 1fr; } .phero__media { aspect-ratio: 4 / 3; } .specs { grid-template-columns: 1fr; } .gallery2 { grid-template-columns: 1fr; } .gallery2 > div:last-child { aspect-ratio: 16 / 10; } .calendar span { height: 32px; font-size: 0.6rem; letter-spacing: -0.02em; } }

/* Cabecera de página interior */
.page-hero { position: relative; overflow: clip; padding-block: var(--s-7) var(--s-6); }
.page-hero .tallo { right: -4vw; top: -6%; width: clamp(360px, 42vw, 660px); color: var(--surface-3); }
.page-hero--short { padding-bottom: var(--s-5); }
/* Contacto: hoja grande que baja por detrás del formulario */
.page-hero--short { overflow-x: clip; overflow-y: visible; z-index: 0; }
.page-hero--short .tallo { top: 2%; right: -2vw; width: clamp(380px, 46vw, 720px); aspect-ratio: 806 / 871; }
.contact-section { position: relative; z-index: 1; }
@media (max-width: 900px) { .page-hero--short .tallo { top: 4%; right: -12vw; width: 88vw; } }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: var(--fs-hero); font-weight: 800; letter-spacing: -0.045em; line-height: 0.98; max-width: 14ch; }
.page-hero .lead { margin-top: var(--s-3); max-width: 40rem; }
.page-hero__media { position: relative; z-index: 1; margin-top: var(--s-6); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 9; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.3); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) { .page-hero__media { aspect-ratio: 4 / 3; } }

/* Valores */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5) var(--s-4); }
.value h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.value p { color: var(--text-2); }
.value__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: var(--s-3); }
.value__icon svg { width: 22px; height: 22px; }
@media (max-width: 800px) { .values { grid-template-columns: 1fr; } }

/* Proceso (calidad) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4); counter-increment: step; }
.step::before { content: "0" counter(step); display: block; font-size: var(--fs-small); font-weight: 700; color: var(--lime); letter-spacing: 0.06em; margin-bottom: var(--s-3); }
.step h3 { font-size: 1.125rem; margin-bottom: 0.4rem; }
.step p { color: var(--text-2); font-size: var(--fs-small); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Contacto */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s-7); align-items: start; }
.contact__info dl { display: grid; gap: var(--s-3); margin: var(--s-4) 0 0; }
.contact__info dt { font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 0.25rem; }
.contact__info dd { margin: 0; font-size: 1.125rem; font-weight: 500; }
.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.form label { display: grid; gap: 0.4rem; min-width: 0; font-size: var(--fs-small); font-weight: 600; color: var(--text-2); }
.form input, .form textarea, .form select {
  font: inherit; font-size: 1rem; color: var(--text);
  min-height: 48px; padding: 0.7rem 0.9rem;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form input:not([type="checkbox"]), .form textarea, .form select { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form .full { grid-column: 1 / -1; }
.form .check { display: flex; grid-template-columns: none; align-items: flex-start; gap: 0.6rem; font-weight: 400; }
.form .check input { min-height: 0; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.form__note { font-size: var(--fs-caption); color: var(--text-3); }
.map { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 9; border: 1px solid var(--line); background: var(--surface-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: var(--s-5); } .form { grid-template-columns: 1fr; } .map { aspect-ratio: 4 / 3; } }

/* Página legal */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.5rem; margin-top: var(--s-5); margin-bottom: var(--s-2); }
.prose p { color: var(--text-2); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--surface-2); border-top: 1px solid var(--line); padding-block: var(--s-7) var(--s-4); font-size: var(--fs-small); color: var(--text-2); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--s-5) var(--s-4); }
.footer__brand img { height: 72px; width: auto; margin-bottom: var(--s-3); }
.footer__brand .logo--dark { display: none; }
.footer__brand p { max-width: 30ch; }
.footer h4 { font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--s-2); }
.footer ul { display: grid; gap: 0.5rem; }
.footer a { color: var(--text-2); }
.footer a:hover { color: var(--text); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-4); margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: var(--fs-caption); color: var(--text-3); }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.footer__social { display: flex; gap: 0.5rem; margin-top: var(--s-3); }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); }
.footer__social a:hover { color: var(--accent); border-color: var(--accent); }
.footer__social svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Motion — reveals, flotación ambiente, progreso de scroll
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--wipe { transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-out), opacity 0.6s; }
.reveal--wipe.is-in { clip-path: inset(0 0 0 0); }

@keyframes float-a { from { transform: translateY(0); } to { transform: translateY(-10px); } }
@keyframes float-b { from { transform: translateY(0) rotate(0.001deg); } to { transform: translateY(8px); } }
.float-a { animation: float-a 5.5s ease-in-out infinite alternate; }
.float-b { animation: float-b 6.5s ease-in-out infinite alternate; }

[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal--wipe { opacity: 1; transform: none; clip-path: none; }
  [data-parallax] { transform: none !important; }
  .float-a, .float-b { animation: none; }
}
@media (max-width: 560px) { .calendar { grid-template-columns: repeat(6, 1fr); gap: 6px; } .calendar span { height: 34px; font-size: 0.75rem; letter-spacing: 0; } }

/* Equipo (página Empresa) */
.team-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s-6); align-items: center; }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4); text-align: center; }
.person__ini { width: 56px; height: 56px; margin: 0 auto var(--s-3); border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 1.5rem; font-weight: 800; }
.person h3 { font-size: 1.125rem; margin-bottom: 0.25rem; }
.person p { color: var(--text-2); font-size: var(--fs-small); }
.timeline--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr; gap: var(--s-5); } .timeline--3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .people { grid-template-columns: 1fr; } }

/* Formulario: trampa antispam invisible y mensaje de resultado */
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__msg { margin: 0; font-size: var(--fs-small); font-weight: 500; }
.form__msg:empty { display: none; }
.form__msg.is-ok { color: var(--accent); }
.form__msg.is-err { color: #b3261e; }
