/* =========================================================
   Leandro Agromarketing — landing
   Paleta oficial (CSS de la web actual): verde #536D32, dorado #EAAC1C.
   Tonos oscuros/claros derivados del verde.
   ========================================================= */
:root {
  /* color */
  --campo: #26331a;          /* fondo oscuro (derivado del verde) */
  --campo-2: #1b2512;        /* más profundo */
  --campo-3: #303f22;        /* superficies sobre oscuro */
  --verde: #536d32;          /* oficial */
  --brote: #9cc25f;          /* verde claro para texto/acentos sobre oscuro */
  --dorado: #eaac1c;         /* oficial */
  --dorado-2: #f3c451;
  --dorado-txt: #835b06;     /* dorado legible sobre claro (5.9:1) */
  --crema: #f9fafa;
  --arena: #f3f2ec;
  --salvia: #dfe6d2;
  --tinta: #1d2318;
  --texto: #3d3d3d;
  --texto-2: #565c52;
  --linea: rgba(38, 51, 26, .12);
  --linea-osc: rgba(249, 250, 250, .12);
  --sobre-osc: rgba(249, 250, 250, .78);
  --sobre-osc-2: rgba(249, 250, 250, .66);

  /* tipografía */
  --f: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --t-xs: .8125rem;
  --t-sm: .9375rem;
  --t-md: 1.0625rem;
  --t-lg: clamp(1.0625rem, .98rem + .4vw, 1.25rem);
  --t-h3: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);
  --t-h2: clamp(2rem, 1.25rem + 3.2vw, 3.75rem);
  --t-h2s: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --t-h2xl: clamp(2.25rem, 1.2rem + 4.2vw, 4.5rem);
  --t-h1: clamp(2.6rem, 1.3rem + 5.6vw, 5.75rem);

  /* espacio (escala 4/8) */
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem;
  --s7: 3rem; --s8: 4rem; --s9: 6rem; --s10: 8rem;
  --sec: clamp(4.5rem, 3rem + 6vw, 8rem);
  --gut: clamp(1.25rem, .8rem + 2vw, 2.5rem);
  --max: 1240px;

  /* forma */
  --r-sm: 12px; --r-md: 18px; --r-lg: 24px; --r-xl: 30px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(27, 37, 18, .06), 0 8px 24px -12px rgba(27, 37, 18, .18);
  --sh-2: 0 30px 60px -30px rgba(27, 37, 18, .45);
  --sh-gold: 0 14px 34px -12px rgba(234, 172, 28, .65);

  /* movimiento */
  --e-out: cubic-bezier(.16, 1, .3, 1);
  --e-io: cubic-bezier(.65, 0, .35, 1);
  --hdr-h: 72px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--f); font-size: var(--t-md); line-height: 1.6;
  color: var(--texto); background: var(--crema);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--tinta); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--dorado); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--dorado); color: var(--tinta); }
section[id], #contenido { scroll-margin-top: calc(var(--hdr-h) + 8px); }

.sr { 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(--max); margin-inline: auto; padding-inline: var(--gut); }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 18px; border-radius: var(--r-sm);
  background: var(--dorado); color: var(--tinta); font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform .2s;
}
.skip:focus { transform: none; }

/* ---------- botones ---------- */
.btn {
  --bg: var(--dorado); --fg: var(--tinta);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; max-width: 100%; padding: .8em 1.5em; border: 1px solid transparent; border-radius: var(--r-pill);
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: var(--t-sm); line-height: 1.2;
  text-align: center; text-decoration: none; cursor: pointer; white-space: normal;
  transition: transform .35s var(--e-out), box-shadow .35s var(--e-out), background-color .25s, border-color .25s, color .25s;
}
.btn .ico { transition: transform .35s var(--e-out); }
.btn:hover .ico { transform: translateX(3px); }
.btn--sm { min-height: 44px; padding: .6em 1.2em; }
.btn--lg { min-height: 56px; padding: 1em 1.8em; font-size: var(--t-md); }
.btn--block { display: flex; width: 100%; }
.btn--gold:hover { background: var(--dorado-2); box-shadow: var(--sh-gold); }
.btn--ghost { --bg: transparent; --fg: var(--crema); border-color: rgba(249, 250, 250, .32); }
.btn--ghost:hover { border-color: var(--crema); background: rgba(249, 250, 250, .06); }
.btn--green { --bg: var(--brote); --fg: var(--campo-2); }
.btn--green:hover { background: #b0d277; box-shadow: 0 14px 34px -12px rgba(156, 194, 95, .6); }
.btn--dark { --bg: var(--campo); --fg: var(--crema); }
.btn--dark:hover { background: var(--verde); box-shadow: var(--sh-2); }
.btn[disabled] { opacity: .7; cursor: progress; }
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-2px); } }

.link-arrow { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; font-weight: 600; font-size: var(--t-sm); color: var(--dorado); text-decoration: none; }
.link-arrow .ico { transition: transform .35s var(--e-out); }
.link-arrow:hover .ico { transform: translateX(4px); }
.link-arrow--dark { color: var(--verde); }

/* ---------- progreso de lectura ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--dorado), var(--brote)); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr-h);
  transition: background-color .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.hdr.is-scrolled, .menu-open .hdr {
  background: rgba(27, 37, 18, .82); border-bottom-color: var(--linea-osc);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
}
.hdr__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s5); }
.hdr__logo { display: block; flex: none; padding: 6px 0; }
.hdr__logo img { width: clamp(132px, 30vw, 172px); }
.hdr__nav { display: none; }
.hdr__cta { display: none; }
.burger {
  position: relative; width: 48px; height: 48px; flex: none; border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(249, 250, 250, .28); background: rgba(249, 250, 250, .04);
}
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: var(--crema); transition: transform .4s var(--e-out), opacity .2s; }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 23px; } .burger span:nth-child(3) { top: 30px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) {
  :root { --hdr-h: 84px; }
  .hdr__nav { display: block; }
  .hdr__nav ul { display: flex; gap: clamp(1.25rem, 2.4vw, 2.25rem); }
  .hdr__nav a {
    position: relative; display: inline-flex; align-items: center; min-height: 44px;
    color: var(--sobre-osc); text-decoration: none; font-size: var(--t-sm); font-weight: 500; transition: color .25s;
  }
  .hdr__nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; border-radius: 2px;
    background: var(--dorado); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .4s var(--e-out);
  }
  .hdr__nav a:hover, .hdr__nav a[aria-current="true"] { color: var(--crema); }
  .hdr__nav a:hover::after, .hdr__nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: 0 50%; }
  .hdr__cta { display: inline-flex; }
  .burger { display: none; }
}

/* menú móvil */
.mnav {
  position: fixed; inset: 0; z-index: 45; padding: calc(var(--hdr-h) + 16px) var(--gut) calc(24px + env(safe-area-inset-bottom));
  background: var(--campo-2); overflow-y: auto; overscroll-behavior: contain;
}
.mnav[hidden] { display: none; }
.mnav nav { display: flex; flex-direction: column; gap: var(--s3); min-height: 100%; max-width: 560px; margin-inline: auto; }
.mnav ul { display: flex; flex-direction: column; margin-bottom: var(--s5); }
.mnav li { border-bottom: 1px solid var(--linea-osc); }
.mnav li a {
  display: flex; align-items: baseline; gap: var(--s4); padding: 18px 4px; min-height: 56px;
  color: var(--crema); text-decoration: none; font-size: clamp(1.375rem, 1.1rem + 1.5vw, 1.75rem); font-weight: 600; letter-spacing: -.02em;
}
.mnav li a > span:first-child { font-size: var(--t-xs); font-weight: 500; color: var(--dorado); letter-spacing: .06em; }
.mnav.is-open li { animation: mnav-in .6s var(--e-out) both; }
.mnav.is-open li:nth-child(2) { animation-delay: .05s; } .mnav.is-open li:nth-child(3) { animation-delay: .1s; } .mnav.is-open li:nth-child(4) { animation-delay: .15s; }
@keyframes mnav-in { from { opacity: 0; transform: translateY(16px); } }
.menu-open { overflow: hidden; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--campo); color: var(--crema);
  padding: calc(var(--hdr-h) + clamp(2.5rem, 1rem + 6vw, 6rem)) 0 clamp(2.5rem, 2rem + 2vw, 4rem);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 82% 18%, rgba(234, 172, 28, .16), transparent 70%),
    radial-gradient(50% 60% at 8% 92%, rgba(156, 194, 95, .16), transparent 70%);
}
.hero__bg::after { /* grano sutil */
  content: ""; position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}
.furrows { position: absolute; inset: auto 0 0 0; width: 100%; height: 100%; opacity: .32; }
.furrows path { fill: none; stroke: var(--brote); stroke-width: 1.4; }
.furrows .furrows__gold { stroke: var(--dorado); }

.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.5rem, 2rem + 3vw, 4rem); align-items: center; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s5); min-width: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  padding: 8px 16px; border: 1px solid rgba(234, 172, 28, .45); border-radius: var(--r-pill);
  background: rgba(234, 172, 28, .07); color: var(--dorado-2); font-size: var(--t-xs); font-weight: 500; line-height: 1.35;
}
.pill__dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--brote); box-shadow: 0 0 0 0 rgba(156, 194, 95, .6); animation: dot 2.4s ease-out infinite; }
@keyframes dot { 70% { box-shadow: 0 0 0 10px rgba(156, 194, 95, 0); } 100% { box-shadow: 0 0 0 0 rgba(156, 194, 95, 0); } }
.hero__title { color: var(--crema); font-size: var(--t-h1); font-weight: 800; line-height: 1; letter-spacing: -.04em; max-width: 13ch; }
.hero__title em, .contact em { font-style: normal; color: var(--dorado); }
.hero__lead { font-size: var(--t-lg); line-height: 1.6; color: var(--sobre-osc); max-width: 36rem; }
.hero__ctas { display: flex; flex-direction: column; gap: var(--s3); width: 100%; margin-top: var(--s2); }
.hero__ctas .btn { width: 100%; }

.hero__media { position: relative; margin: 0; min-width: 0; }
.hero__photo {
  position: relative; overflow: hidden; border-radius: var(--r-xl); aspect-ratio: 4 / 3.4;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); border: 1px solid var(--linea-osc); background: var(--campo-3);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; transform: scale(1.06); transform-origin: 50% 60%; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(27, 37, 18, .55)); }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--r-pill);
  font-size: var(--t-xs); font-weight: 600; white-space: nowrap; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6);
}
.chip b { color: var(--dorado-txt); }
.chip--a { left: 12px; bottom: 14px; background: var(--crema); color: var(--tinta); }
.chip--b { right: 12px; top: 14px; background: var(--dorado); color: var(--tinta); }

.hero__photo picture { position: absolute; inset: 0; }

.stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s5); margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  border-top: 1px solid var(--linea-osc);
}
.stats li { display: flex; flex-direction: column; gap: 6px; padding: var(--s5) 0 0; min-width: 0; }
.stats strong { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .35em; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); font-weight: 700; line-height: 1; letter-spacing: -.04em; color: var(--dorado); }
.stats strong span { font-variant-numeric: tabular-nums; }
.stats strong small { font-size: clamp(.9375rem, .85rem + .4vw, 1.125rem); font-weight: 600; letter-spacing: -.01em; color: var(--crema); }
.stats li > span { font-size: var(--t-sm); color: var(--sobre-osc-2); line-height: 1.4; }

@media (min-width: 600px) {
  .hero__ctas { flex-direction: row; flex-wrap: wrap; width: auto; }
  .hero__ctas .btn { width: auto; }
}
@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .stats li { padding: var(--s6) var(--s5) 0 0; }
  .stats li + li { padding-left: var(--s5); border-left: 1px solid var(--linea-osc); }
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); }
  .hero__photo { aspect-ratio: 4 / 4.9; }
  .chip--a { left: -28px; bottom: 44px; }
  .chip--b { right: -20px; top: 40px; }
}

/* ---------- clientes ---------- */
.clients { padding: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0; background: var(--crema); border-bottom: 1px solid var(--linea); overflow: hidden; }
.clients__title {
  margin: 0 auto var(--s6); padding-inline: var(--gut); text-align: center; font-size: var(--t-xs); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--texto-2);
}
.marquee { position: relative; max-width: 100%; overflow: hidden; }
.marquee__track { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s6) clamp(2rem, 1rem + 3vw, 4rem); padding-inline: var(--gut); }
.marquee__track li { flex: none; }
.marquee__track img { height: clamp(34px, 2.6vw + 22px, 48px); width: auto; filter: grayscale(1) contrast(1.05); opacity: .7; transition: filter .4s, opacity .4s, transform .4s var(--e-out); }
.marquee__track li:hover img { filter: none; opacity: 1; transform: scale(1.06); }
/* con JS: cinta infinita */
.is-marquee .marquee {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.is-marquee .marquee__track { flex-wrap: nowrap; justify-content: flex-start; width: max-content; padding-inline: 0; animation: marquee var(--marquee-dur, 45s) linear infinite; }
.is-marquee .marquee__track li { padding-right: clamp(2.5rem, 1rem + 3vw, 4.5rem); }
.is-marquee .marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- secciones ---------- */
.sec { padding-block: var(--sec); }
.dark { position: relative; background: var(--campo); color: var(--crema); isolation: isolate; }
.dark h2, .dark h3 { color: var(--crema); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--s5);
  font-size: var(--t-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--verde);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow--gold { color: var(--dorado); }
.h2 { font-size: var(--t-h2); letter-spacing: -.035em; line-height: 1.04; }
.h2--sm { font-size: var(--t-h2s); }
.h2--xl { font-size: var(--t-h2xl); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.lead { margin-top: var(--s5); font-size: var(--t-lg); line-height: 1.6; color: var(--sobre-osc); max-width: 36rem; }
.lead--dark { color: var(--texto-2); }
.muted { color: rgba(38, 51, 26, .4); }
.sec__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s5); margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.sec__aside { max-width: 22rem; font-size: var(--t-md); color: var(--texto-2); }

/* ---------- el reto ---------- */
.challenge { padding-bottom: clamp(2rem, 1rem + 4vw, 6rem); }
.challenge__title { max-width: 19ch; }
.cards3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); margin-top: clamp(2.5rem, 2rem + 3vw, 4rem); }
.pcard {
  position: relative; display: flex; flex-direction: column; gap: var(--s3); min-width: 0;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--linea);
  box-shadow: var(--sh-1);
}
.pcard__n { font-size: var(--t-sm); font-weight: 700; color: var(--dorado-txt); }
.pcard h3 { font-size: var(--t-h3); font-weight: 600; letter-spacing: -.015em; }
.pcard p { font-size: var(--t-sm); color: var(--texto-2); }
.pcard .pcard__fix {
  display: flex; gap: 8px; align-items: flex-start; margin-top: auto; padding-top: var(--s4); border-top: 1px dashed var(--linea);
  color: var(--verde); font-weight: 600;
}
.pcard__fix .ico { margin-top: .15em; }
@media (min-width: 768px) { .cards3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); } }

/* ---------- servicios (bento) ---------- */
.services { padding-top: clamp(3rem, 2rem + 3vw, 5rem); }
.bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
.svc {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: var(--s4); min-width: 0;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--linea);
  transition: transform .5s var(--e-out), box-shadow .5s var(--e-out), border-color .4s;
}
.svc::before { /* brillo que sigue al cursor */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(156, 194, 95, .22), transparent 60%);
}
.svc h3 { font-size: clamp(1.25rem, 1.15rem + .4vw, 1.375rem); font-weight: 600; letter-spacing: -.015em; }
.svc p { font-size: var(--t-sm); color: var(--texto-2); }
.svc__ico {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--salvia); color: var(--campo);
  transition: transform .5s var(--e-out), background-color .3s;
}
.svc__ico .ico { width: 26px; height: 26px; stroke-width: 1.7; }
.svc__ico--gold { background: var(--dorado); color: var(--tinta); }
@media (hover: hover) and (pointer: fine) {
  .svc:hover { transform: translateY(-6px); box-shadow: var(--sh-2); border-color: rgba(83, 109, 50, .45); }
  .svc:hover::before { opacity: 1; }
  .svc:hover .svc__ico { transform: rotate(-6deg) scale(1.06); }
}

.svc--feature { background: var(--campo); border-color: var(--campo); color: var(--crema); justify-content: space-between; min-height: 300px; }
.svc--feature::before { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(234, 172, 28, .18), transparent 60%); }
.svc--feature h3 { color: var(--crema); font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.375rem); font-weight: 700; letter-spacing: -.03em; margin-bottom: var(--s3); }
.svc--feature p { color: var(--sobre-osc); font-size: var(--t-md); max-width: 34rem; }
.svc--feature .link-arrow { margin-top: var(--s3); }
.svc__body { position: relative; display: flex; flex-direction: column; gap: var(--s2); }
.tag {
  align-self: flex-start; padding: 6px 12px; border-radius: var(--r-pill); background: var(--dorado); color: var(--tinta);
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.svc__arc { position: absolute; right: -60px; bottom: -40px; width: min(460px, 90%); opacity: .4; z-index: -1; }
.svc__arc path { fill: none; stroke: var(--dorado); stroke-width: 2; stroke-dasharray: 6 9; animation: dash 30s linear infinite; }
.svc__arc circle { fill: var(--dorado); }
@keyframes dash { to { stroke-dashoffset: -300; } }

.svc--photo { justify-content: flex-end; min-height: 320px; background: var(--campo-2); border-color: var(--campo-2); color: var(--crema); }
.svc--photo h3 { color: var(--crema); }
.svc--photo p { color: var(--sobre-osc); max-width: 30rem; }
.svc__bg { position: absolute; inset: 0; z-index: -2; }
.svc__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 1.2s var(--e-out); }
.svc--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(27, 37, 18, .15) 0%, rgba(27, 37, 18, .55) 45%, rgba(27, 37, 18, .94) 100%); }
.svc--photo .svc__ico { position: absolute; top: clamp(1.5rem, 1.2rem + 1vw, 2rem); left: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
@media (hover: hover) and (pointer: fine) { .svc--photo:hover .svc__bg img { transform: scale(1.05); } }

@media (max-width: 699.98px) {
  .bento { gap: var(--s3); }
  .svc:not(.svc--feature):not(.svc--photo) {
    display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px var(--s4); align-items: start; padding: 1.25rem;
  }
  .svc:not(.svc--feature):not(.svc--photo) .svc__ico { grid-row: span 2; width: 48px; height: 48px; }
  .svc:not(.svc--feature):not(.svc--photo) h3 { font-size: 1.125rem; line-height: 1.3; }
}
@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc--feature, .svc--photo { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s5); }
  .svc { grid-column: span 2; }
  .svc--photo { grid-column: span 4; min-height: 340px; padding: 2.5rem; }
  .svc:nth-last-child(-n+2) { grid-column: span 3; }
  .svc--photo .svc__ico { top: 2.5rem; left: 2.5rem; }
}

/* ---------- proceso ---------- */
.timeline { position: relative; margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.timeline ol { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
.timeline__rail { position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: var(--linea); border-radius: 2px; }
.timeline__rail span { position: absolute; inset: 0; background: linear-gradient(180deg, var(--verde), var(--dorado)); transform-origin: 50% 0; transform: scaleY(var(--p, 1)); border-radius: 2px; }
.tstep { position: relative; padding-left: 64px; min-width: 0; }
.tstep__n {
  position: absolute; left: 0; top: -4px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--crema); border: 2px solid var(--verde); color: var(--verde); font-size: var(--t-xs); font-weight: 700;
  transition: background-color .4s, color .4s, border-color .4s, transform .5s var(--e-out);
}
.tstep h3 { font-size: var(--t-h3); font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.tstep p { margin-top: 6px; font-size: var(--t-sm); color: var(--texto-2); }
.tstep.is-on .tstep__n { background: var(--verde); color: var(--crema); transform: scale(1.08); }
.tstep--gold .tstep__n { border-color: var(--dorado-txt); color: var(--dorado-txt); }
.tstep--gold.is-on .tstep__n { background: var(--dorado); border-color: var(--dorado); color: var(--tinta); }
@media (min-width: 900px) {
  .timeline ol { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s5); }
  .timeline__rail { left: 0; right: 0; top: 21px; bottom: auto; width: auto; height: 2px; }
  .timeline__rail span { transform-origin: 0 50%; transform: scaleX(var(--p, 1)); background: linear-gradient(90deg, var(--verde), var(--dorado)); }
  .tstep { padding-left: 0; padding-top: 68px; }
  .tstep__n { top: 0; }
}

/* ---------- quiénes somos ---------- */
.about { padding-top: 0; }
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
.about__photo { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-xl); min-height: 320px; background: var(--campo-2); }
.about__photo picture, .about__photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.about__photo img { object-fit: cover; object-position: 50% 55%; }
.about__photo figcaption {
  position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: var(--r-pill);
  background: rgba(27, 37, 18, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--crema); font-size: var(--t-xs);
}
.about__card {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); min-width: 0;
  padding: clamp(1.75rem, 1.2rem + 2vw, 3rem); border-radius: var(--r-xl); background: #fff; border: 1px solid var(--linea); box-shadow: var(--sh-1);
}
.about__card .eyebrow { margin-bottom: var(--s3); }
.about__card .lead { margin-top: var(--s3); }
.tags { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s5) 0 var(--s3); }
.tags li { padding: 8px 14px; border-radius: var(--r-pill); background: var(--arena); border: 1px solid var(--linea); font-size: var(--t-xs); font-weight: 500; color: var(--campo); }
@media (min-width: 900px) {
  .about__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); }
  .about__photo { min-height: 480px; }
}

/* ---------- contacto ---------- */
.contact { overflow: hidden; }
.contact__glow {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(45% 50% at 10% 10%, rgba(234, 172, 28, .14), transparent 70%), radial-gradient(40% 50% at 95% 90%, rgba(156, 194, 95, .12), transparent 70%);
}
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(3rem, 2rem + 3vw, 4rem); align-items: start; }
.contact__copy { min-width: 0; }
.contact__copy .lead { margin-bottom: var(--s6); }
.contact__copy .btn { width: 100%; }
.contact__list { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s6); }
.contact__list li { display: flex; align-items: center; gap: var(--s3); color: var(--sobre-osc); min-width: 0; }
.contact__list .ico { color: var(--dorado); }
.contact__list a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; overflow-wrap: anywhere; background: linear-gradient(var(--dorado), var(--dorado)) 0 85% / 0 2px no-repeat; transition: background-size .4s var(--e-out), color .3s; }
.contact__list a:hover { color: var(--crema); background-size: 100% 2px; }
@media (min-width: 600px) { .contact__copy .btn { width: auto; } }
@media (min-width: 1024px) { .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s8); } }

/* formulario */
.form {
  display: flex; flex-direction: column; gap: var(--s4); min-width: 0;
  padding: clamp(1.25rem, .8rem + 2vw, 2.5rem); border-radius: var(--r-xl); background: var(--crema); color: var(--texto);
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .8);
}
.form__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
@media (min-width: 600px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: var(--t-sm); font-weight: 500; color: var(--tinta); }
.req { color: #a3460f; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--r-sm);
  border: 1px solid rgba(38, 51, 26, .22); background: #fff; color: var(--tinta); font-size: 1rem;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #767c72; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(38, 51, 26, .4); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 4px rgba(83, 109, 50, .18); }
.field [aria-invalid="true"] { border-color: #b3261e; box-shadow: 0 0 0 4px rgba(179, 38, 30, .1); }
.field__err { min-height: 0; font-size: var(--t-xs); color: #b3261e; }
.field__err:empty { display: none; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--verde); border-bottom: 2px solid var(--verde); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field--check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start; }
.field--check input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: var(--verde); cursor: pointer; }
.field--check label { font-size: var(--t-xs); font-weight: 400; line-height: 1.5; color: var(--texto-2); }
.field--check label a { color: var(--verde); font-weight: 600; }
.field--check .field__err { grid-column: 2; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { margin-top: var(--s2); }
.spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(249, 250, 250, .35); border-top-color: var(--crema); border-radius: 50%; animation: spin .8s linear infinite; }
.is-sending .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__status { font-size: var(--t-sm); line-height: 1.5; }
.form__status:empty { display: none; }
.form__status.is-ok { padding: 14px 16px; border-radius: var(--r-sm); background: #e5efd8; color: #2c3d17; animation: pop .6s var(--e-out); }
.form__status.is-err { padding: 14px 16px; border-radius: var(--r-sm); background: #fbe9e7; color: #7a1d16; }
.form__status a { color: inherit; font-weight: 600; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.form__note { font-size: var(--t-xs); color: var(--texto-2); text-align: center; }

/* ---------- footer ---------- */
.ftr { background: var(--campo-2); color: var(--sobre-osc-2); font-size: var(--t-sm); padding-bottom: env(safe-area-inset-bottom); }
.ftr__top { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem); }
.ftr__brand img { width: 180px; }
.ftr__brand p { margin-top: var(--s4); max-width: 22rem; }
.ftr__col h2 { margin-bottom: var(--s3); font-size: var(--t-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--dorado); }
.ftr__col ul { display: flex; flex-direction: column; }
.ftr a { display: inline-flex; align-items: center; min-height: 44px; color: var(--sobre-osc); text-decoration: none; overflow-wrap: anywhere; transition: color .25s; }
.ftr a:hover { color: var(--dorado); }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s3) var(--s5); padding-block: var(--s5) calc(var(--s5) + 64px); border-top: 1px solid var(--linea-osc); }
.ftr__bottom ul { display: flex; flex-wrap: wrap; gap: 0 var(--s5); }
.ftr__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ftr__brand, .ftr__col:last-child { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .ftr__top { grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr) minmax(0, .8fr) minmax(0, 1.3fr); }
  .ftr__brand, .ftr__col:last-child { grid-column: auto; }

  .ftr__bottom { padding-bottom: var(--s5); }
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; z-index: 40; right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #0b2a14; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45);
  transition: transform .5s var(--e-out), opacity .4s;
}
.wa-float svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.wa-float:hover { transform: scale(1.08); }
.js .wa-float { opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; }
.js .wa-float.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.menu-open .wa-float { opacity: 0 !important; pointer-events: none !important; }

/* =========================================================
   Animaciones: los estados ocultos solo existen con JS y sin
   "reducir movimiento". Sin JS se ve todo.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .js:not(.no-anim) [data-reveal] { opacity: 0; transform: translate3d(0, 24px, 0); }
  .js:not(.no-anim) [data-reveal].is-in {
    opacity: 1; transform: none;
    transition: opacity .8s var(--e-out) var(--d, 0s), transform .9s var(--e-out) var(--d, 0s);
  }
  .js:not(.no-anim) .hero__media[data-reveal] { transform: translate3d(0, 40px, 0) scale(.96); }
  .js:not(.no-anim) .hero__media.is-in { transform: none; }
  .js:not(.no-anim) .hero__media.is-in .hero__photo img { transform: scale(1); transition: transform 2.4s var(--e-out); }

  /* titular por palabras con máscara */
  .js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
  .js [data-split] .w > span { display: inline-block; transform: translate3d(0, 105%, 0); }
  .js [data-split].is-in .w > span { transform: none; transition: transform 1s var(--e-out) calc(.08s + var(--i) * .06s); }
  .no-anim [data-split] .w > span { transform: none !important; }

  /* surcos que se dibujan */
  .js .furrows path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .furrows.is-in path { stroke-dashoffset: 0; transition: stroke-dashoffset 2.8s var(--e-io); }
  .js .furrows.is-in path:nth-child(2) { transition-delay: .1s; } .js .furrows.is-in path:nth-child(3) { transition-delay: .2s; }
  .js .furrows.is-in path:nth-child(4) { transition-delay: .3s; } .js .furrows.is-in path:nth-child(5) { transition-delay: .4s; }
  .js .furrows.is-in path:nth-child(6) { transition-delay: .5s; }
  .no-anim .furrows path { stroke-dashoffset: 0 !important; }

  /* flotación suave de los chips */
  .chip--a { animation: float 7s ease-in-out infinite; }
  .chip--b { animation: float 8s ease-in-out -3s infinite; }
  @keyframes float { 50% { transform: translateY(-8px); } }

  /* frase del reto que se ilumina con el scroll */
  .js [data-scrub] .sw { opacity: var(--o, 1); transition: opacity .2s linear; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .is-marquee .marquee__track { animation: none; }
}
@media (min-width: 1024px) { .ftr__col:last-child a { overflow-wrap: normal; white-space: nowrap; } }

/* proceso sobre fondo oscuro */
.process.dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(45% 60% at 85% 0%, rgba(234, 172, 28, .1), transparent 70%); }
.process.dark .timeline__rail { background: var(--linea-osc); }
.process.dark .timeline__rail span { background: linear-gradient(180deg, var(--brote), var(--dorado)); }
.process.dark .tstep p { color: var(--sobre-osc-2); }
.process.dark .tstep__n { background: var(--campo); border-color: var(--brote); color: var(--brote); }
.process.dark .tstep.is-on .tstep__n { background: var(--brote); color: var(--campo-2); }
.process.dark .tstep--gold .tstep__n { border-color: var(--dorado); color: var(--dorado); }
.process.dark .tstep--gold.is-on .tstep__n { background: var(--dorado); color: var(--tinta); }
@media (min-width: 900px) { .process.dark .timeline__rail span { background: linear-gradient(90deg, var(--brote), var(--dorado)); } }

/* barra de administración de WordPress (solo cuando hay sesión iniciada) */
.admin-bar .hdr { top: 32px; }
.admin-bar .mnav { padding-top: calc(var(--hdr-h) + 48px); }
.admin-bar .progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .hdr, .admin-bar .progress { top: 46px; } .admin-bar .mnav { padding-top: calc(var(--hdr-h) + 62px); } }

/* botón «volver arriba» del tema (sin sus estilos se vería como texto suelto) */
#ast-scroll-top, .ast-scroll-top-icon, #scroll-to-top, .scroll-to-top { display: none !important; }
