/* Interfruvex — estilos */
@font-face {
  font-family: "Archivo";
  src: url("archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --bg: #080b06;
  --bg-2: #0e130b;
  --ink: #f1f5e8;
  --mute: #98a38a;
  --lime: #a9d939;
  --lime-2: #86b52a;
  --deep: #35590f;
  --cream: #f6f4e6;
  --line: rgba(241, 245, 232, 0.12);
  --radius: 22px;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--lime); color: #0a0d08; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.display {
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-stretch: 112%; font-weight: 600; font-size: 12.5px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--lime);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 0 rgba(169, 217, 57, 0.7);
  animation: pulso 2.2s infinite;
}
@keyframes pulso {
  70% { box-shadow: 0 0 0 12px rgba(169, 217, 57, 0); }
  100% { box-shadow: 0 0 0 0 rgba(169, 217, 57, 0); }
}
.lime { color: var(--lime); }

/* ---------- Botones ---------- */
.btn {
  --bx: 0px; --by: 0px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; border-radius: 999px;
  font-stretch: 112%; font-weight: 700; font-size: 14px;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--line); color: var(--ink); background: transparent;
  transform: translate(var(--bx), var(--by));
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.25s cubic-bezier(.2,.8,.2,1);
  cursor: pointer;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.3s; }
.btn:hover svg { transform: translate(3px, -3px); }
.btn:hover { border-color: var(--lime); color: var(--lime); }
.btn--lime { background: var(--lime); border-color: var(--lime); color: #0a0d08; }
.btn--lime:hover { background: var(--ink); border-color: var(--ink); color: #0a0d08; }
.btn--dark { background: #0f1f0a; border-color: #0f1f0a; color: var(--cream); }
.btn--dark:hover { background: var(--lime-2); border-color: var(--lime-2); color: #0a0d08; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8, 11, 6, 0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.nav__logo img { height: 17px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a:not(.btn) {
  font-size: 13.5px; font-weight: 600; font-stretch: 110%; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none; color: var(--ink); opacity: 0.8;
  position: relative; padding: 6px 0;
}
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--lime); transform: scaleX(0); transform-origin: right; transition: transform 0.35s;
}
.nav__links a:not(.btn):hover { opacity: 1; }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__links .btn { padding: 11px 20px; font-size: 12.5px; }
.nav__burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav__burger span { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: transform 0.3s, opacity 0.3s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%;
  background: linear-gradient(to top, var(--bg), transparent); pointer-events: none;
}
.hero__in { position: relative; z-index: 2; padding-top: 130px; padding-bottom: clamp(36px, 6vh, 70px); }
.hero h1 { font-size: clamp(44px, 9.2vw, 148px); margin: 22px 0 28px; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .ln > span { display: inline-block; transform: translateY(110%); animation: sube 1.1s cubic-bezier(.16,1,.3,1) forwards; }
.hero h1 .ln:nth-child(2) > span { animation-delay: 0.12s; }
.hero h1 .ln:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes sube { to { transform: translateY(0); } }
.hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.hero__lead { max-width: 560px; font-size: clamp(17px, 1.5vw, 21px); color: #d5dcc8; margin: 0; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__meta {
  display: flex; justify-content: space-between; gap: 20px; margin-top: clamp(30px, 5vh, 56px);
  padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); font-stretch: 110%;
}
.fade-in { opacity: 0; animation: aparece 1s 0.6s forwards; }
@keyframes aparece { to { opacity: 1; } }

.listo .hero h1 .ln > span { animation: none; transform: none; }
.listo .fade-in { animation: none; opacity: 1; }

/* ---------- Cinta ---------- */
.cinta { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--bg-2); }
.cinta__pista { display: flex; width: max-content; animation: corre 38s linear infinite; }
.cinta:hover .cinta__pista { animation-play-state: paused; }
.cinta__pista span {
  font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(22px, 3.2vw, 44px); letter-spacing: -0.01em; white-space: nowrap; padding-right: 0.6em;
}
.cinta__pista span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--lime); }
.cinta__pista span::after { content: "✦"; color: var(--lime); -webkit-text-stroke: 0; padding-left: 0.6em; font-size: 0.6em; vertical-align: middle; }
@keyframes corre { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.sec { padding: clamp(80px, 12vw, 170px) 0; position: relative; }
.sec__cab { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 70px); }
.sec__cab h2 { font-size: clamp(34px, 6vw, 92px); margin-top: 16px; }
.sec__cab p { max-width: 420px; color: var(--mute); margin: 0; }

/* Manifiesto */
.manifiesto p {
  font-stretch: 112%; font-weight: 700; font-size: clamp(26px, 4.3vw, 66px);
  line-height: 1.12; letter-spacing: -0.02em; margin: 26px 0 0; max-width: 1150px;
}
.manifiesto .w { opacity: 0.14; transition: opacity 0.35s, color 0.35s; }
.manifiesto .w.on { opacity: 1; }
.manifiesto .w.k.on { color: var(--lime); }

/* Servicios */
.servs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.serv {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line);
  padding: clamp(26px, 3vw, 44px); min-height: 400px; display: flex; flex-direction: column;
  transition: border-color 0.4s, transform 0.5s cubic-bezier(.2,.8,.2,1);
}
.serv::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s; pointer-events: none;
  background: radial-gradient(480px circle at var(--mx) var(--my), rgba(169, 217, 57, 0.16), transparent 60%);
}
.serv:hover { border-color: rgba(169, 217, 57, 0.55); transform: translateY(-6px); }
.serv:hover::before { opacity: 1; }
.serv__n { font-stretch: 125%; font-weight: 800; font-size: 13px; letter-spacing: 0.16em; color: var(--lime); }
.serv__viz { height: 120px; margin: 22px 0 26px; position: relative; }
.serv__viz svg { width: 100%; height: 100%; overflow: visible; }
.serv h3 { font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(24px, 2.6vw, 38px); line-height: 1; margin: 0 0 14px; letter-spacing: -0.01em; }
.serv p { color: #c3cbb5; margin: 0 0 22px; max-width: 520px; }
.serv ul { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.serv li { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--mute); }

/* visualizaciones de servicios */
.viz-bar rect { fill: var(--lime); transform-origin: bottom; transform-box: fill-box; animation: barra 2.6s ease-in-out infinite alternate; }
.viz-bar rect:nth-child(2n) { animation-delay: -0.9s; fill: var(--lime-2); }
.viz-bar rect:nth-child(3n) { animation-delay: -1.7s; }
@keyframes barra { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }
.viz-onda circle { fill: none; stroke: var(--lime); stroke-width: 1.5; transform-origin: center; transform-box: fill-box; animation: onda 3s linear infinite; opacity: 0; }
.viz-onda circle:nth-child(2) { animation-delay: 1s; }
.viz-onda circle:nth-child(3) { animation-delay: 2s; }
.viz-onda .nucleo { fill: var(--lime); stroke: none; opacity: 1; animation: none; }
@keyframes onda { 0% { transform: scale(0.15); opacity: 0.9; } 100% { transform: scale(1); opacity: 0; } }
.viz-film rect.marco { fill: none; stroke: var(--line); stroke-width: 1.5; }
.viz-film .play { fill: var(--lime); transform-origin: center; transform-box: fill-box; animation: late 1.8s ease-in-out infinite; }
.viz-film .tira { stroke: var(--lime); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 300; animation: tira 4s linear infinite; }
@keyframes late { 50% { transform: scale(1.18); } }
@keyframes tira { from { stroke-dashoffset: 300; } to { stroke-dashoffset: 0; } }
.viz-red line { stroke: var(--lime-2); stroke-width: 1.2; stroke-dasharray: 5 6; animation: fluye 1.6s linear infinite; }
.viz-red circle { fill: var(--bg-2); stroke: var(--lime); stroke-width: 2; }
.viz-red circle.c { fill: var(--lime); }
@keyframes fluye { to { stroke-dashoffset: -22; } }

/* Cultivot */
.cultivot { background: var(--cream); color: #12240c; border-radius: clamp(26px, 4vw, 56px); padding: clamp(28px, 5vw, 80px); position: relative; overflow: hidden; }
.cultivot::before {
  content: ""; position: absolute; width: 620px; height: 620px; right: -180px; top: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(134, 181, 42, 0.38), transparent 65%); pointer-events: none;
}
.cultivot .eyebrow { color: #2f6b12; }
.cultivot .eyebrow::before { background: #2f6b12; }
.cultivot__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; position: relative; }
.cultivot__logo { width: min(340px, 70%); margin: 24px 0 26px; }
.cultivot h2 { font-size: clamp(30px, 4.4vw, 64px); color: #12240c; }
.cultivot p.lead { font-size: clamp(17px, 1.4vw, 20px); color: #36482d; max-width: 520px; margin: 22px 0 30px; }
.cifras { display: grid; grid-template-columns: repeat(3, auto); gap: 14px clamp(20px, 3vw, 46px); justify-content: start; margin: 0 0 34px; }
.cifras div b { display: block; font-stretch: 125%; font-weight: 800; font-size: clamp(34px, 4vw, 60px); line-height: 1; color: #1f4d0e; font-variant-numeric: tabular-nums; }
.cifras div span { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: #5c6d52; }
.cultivot small { display: block; margin-top: 22px; color: #6a7960; font-size: 12.5px; }

.pizarra { background: #fff; border-radius: 22px; box-shadow: 0 30px 70px -30px rgba(18, 36, 12, 0.45); border: 1px solid #e3e6d2; overflow: hidden; transform: rotate(1.6deg); transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
.pizarra:hover { transform: rotate(0) scale(1.015); }
.pizarra__cab { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: #1f4d0e; color: #f6f4e6; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
.pizarra__cab i { width: 8px; height: 8px; background: #b6e24a; border-radius: 50%; display: inline-block; margin-right: 8px; animation: pulso 2.2s infinite; }
.pizarra svg { display: block; width: 100%; height: 150px; }
.pizarra .linea { fill: none; stroke: #2e7d32; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; }
.pizarra .area { fill: url(#gArea); opacity: 0; transition: opacity 1.2s 1.2s; }
.is-in .pizarra .linea { animation: traza 2.4s cubic-bezier(.4,0,.2,1) forwards; }
.is-in .pizarra .area { opacity: 1; }
@keyframes traza { to { stroke-dashoffset: 0; } }
.pizarra table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.pizarra td { padding: 11px 20px; border-top: 1px solid #edf0e0; }
.pizarra td:nth-child(2) { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.pizarra td:nth-child(3) { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; width: 96px; white-space: nowrap; }
.pizarra td { white-space: nowrap; }
.pizarra td:first-child { white-space: normal; }
.pizarra .up { color: #2e7d32; } .pizarra .dn { color: #c0392b; } .pizarra .eq { color: #8a927f; }
.pizarra tr { opacity: 0; transform: translateX(14px); transition: opacity 0.5s, transform 0.5s; }
.is-in .pizarra tr { opacity: 1; transform: none; }
.is-in .pizarra tr:nth-child(1) { transition-delay: 0.5s; } .is-in .pizarra tr:nth-child(2) { transition-delay: 0.62s; }
.is-in .pizarra tr:nth-child(3) { transition-delay: 0.74s; } .is-in .pizarra tr:nth-child(4) { transition-delay: 0.86s; }
.is-in .pizarra tr:nth-child(5) { transition-delay: 0.98s; } .is-in .pizarra tr:nth-child(6) { transition-delay: 1.1s; }
.pizarra__pie { padding: 10px 20px 14px; font-size: 11.5px; color: #8a927f; border-top: 1px solid #edf0e0; }

/* Proceso */
.pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.paso { padding: 34px 28px 10px 0; border-right: 1px solid var(--line); position: relative; }
.paso + .paso { padding-left: 28px; }
.paso:last-child { border-right: 0; }
.paso::before { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: var(--lime); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.paso.is-in::before { width: 100%; }
.paso b { font-stretch: 125%; font-weight: 800; font-size: clamp(54px, 7vw, 110px); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--lime); display: block; }
.paso h3 { font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(20px, 2vw, 28px); margin: 18px 0 10px; }
.paso p { color: var(--mute); margin: 0; }

/* Contacto */
.contacto { text-align: center; overflow: hidden; }
.contacto h2 { font-size: clamp(40px, 10.5vw, 190px); margin: 20px 0 10px; }
.contacto h2 a { text-decoration: none; background: linear-gradient(100deg, var(--lime) 0%, #e9f7c2 45%, var(--lime) 60%, var(--lime-2) 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: brillo 6s linear infinite; }
@keyframes brillo { to { background-position: -220% 0; } }
.contacto p { color: var(--mute); max-width: 560px; margin: 0 auto 36px; }
.datos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 60px; text-align: left; }
.dato { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-decoration: none; background: var(--bg-2); transition: border-color 0.3s, transform 0.4s; display: block; }
a.dato:hover { border-color: var(--lime); transform: translateY(-4px); }
.dato span { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
.dato b { display: block; font-stretch: 112%; font-size: clamp(17px, 1.6vw, 22px); margin-top: 8px; word-break: break-word; }

/* Pie */
.pie { border-top: 1px solid var(--line); padding: 44px 0 36px; font-size: 14px; color: var(--mute); }
.pie__in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.pie img { height: 15px; width: auto; }
.pie nav { display: flex; gap: 26px; flex-wrap: wrap; }
.pie a { text-decoration: none; }
.pie a:hover { color: var(--lime); }
.pie__legal { margin-top: 26px; font-size: 12.5px; opacity: 0.75; }

/* Aparición al hacer scroll */
.rv { opacity: 0; transform: translateY(40px); transition: opacity 0.9s cubic-bezier(.2,.8,.2,1), transform 0.9s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.rv.is-in { opacity: 1; transform: none; }

/* Barra de progreso */
.progreso { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--lime); transform: scaleX(0); transform-origin: left; z-index: 60; }

/* ---------- Páginas legales ---------- */
.legal { padding: 150px 0 90px; }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: clamp(34px, 6vw, 72px); margin: 16px 0 14px; }
.legal .fecha { color: var(--mute); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-stretch: 112%; font-weight: 800; font-size: 22px; margin: 44px 0 12px; color: var(--lime); }
.legal p, .legal li { color: #cfd6c2; }
.legal a { color: var(--lime); }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15.5px; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border: 1px solid var(--line); vertical-align: top; }
.legal th { width: 34%; color: var(--ink); background: var(--bg-2); font-weight: 600; }

/* ---------- Adaptación ---------- */
@media (max-width: 980px) {
  .servs { grid-template-columns: 1fr; }
  .serv { min-height: 0; }
  .cultivot__grid { grid-template-columns: 1fr; }
  .pasos { grid-template-columns: 1fr; }
  .paso, .paso + .paso { padding: 30px 0 26px; border-right: 0; border-bottom: 1px solid var(--line); }
  .datos { grid-template-columns: 1fr; }
  .nav__burger { display: block; position: relative; z-index: 2; }
  .nav__links {
    position: fixed; inset: 0; background: rgba(8, 11, 6, 0.97); flex-direction: column; justify-content: center; gap: 30px;
    opacity: 0; pointer-events: none; transition: opacity 0.35s;
  }
  .nav__links a:not(.btn) { font-size: 22px; }
  .nav.is-open .nav__links { opacity: 1; pointer-events: auto; }
  .nav.is-open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .hero__meta span:nth-child(2) { display: none; }
}
@media (max-width: 560px) {
  .cifras { grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 14px 12px; }
  .cifras div b { font-size: clamp(22px, 7.4vw, 34px); }
  .cifras div span { font-size: 11px; letter-spacing: 0.08em; }
  .pizarra table { font-size: 13px; }
  .pizarra td { padding: 10px 6px; }
  .pizarra td:first-child { padding-left: 14px; }
  .pizarra td:nth-child(3) { width: auto; padding-right: 14px; }
  .pizarra__cab { font-size: clamp(9.5px, 2.9vw, 11px); letter-spacing: 0.05em; padding: 14px 14px; white-space: nowrap; gap: 8px; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .hero { justify-content: flex-start; }
  .hero__in { padding-top: 102px; flex: 1; display: flex; flex-direction: column; width: 100%; }
  .hero h1 { margin: 16px 0 22px; }
  .hero__row { flex: 1; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0; }
  .hero__cta { margin-top: auto; padding-top: 28px; width: 100%; }
  .hero__meta { margin-top: 28px; }
  .pizarra { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
  .manifiesto .w { opacity: 1; }
  .hero h1 .ln > span { transform: none; }
  .pizarra .linea { stroke-dashoffset: 0; }
}
