:root {
  --verde-noche: #0f2a1d;
  --verde-hondo: #16392a;
  --verde: #2f6b4a;
  --verde-vivo: #9fdc7c;
  --verde-claro: #eaf3e6;
  --verde-suave: #d6e8cf;
  --papel: #ffffff;
  --tinta: #12261b;
  --tenue: #4f6357;
  --linea: #cfe0c8;
  --crema: #f3f7ef;
  --max: 1160px;
  --fuente: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--verde-claro);
  color: var(--tinta);
  font: 18px/1.6 var(--fuente);
}
a { color: var(--verde); }
img { max-width: 100%; height: auto; display: block; }
.ancho { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Portada */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 600px at 85% 110%, rgba(159, 220, 124, .14), transparent 60%),
    var(--verde-noche);
  color: var(--crema);
  position: relative;
  overflow: hidden;
}
.hero > *:not(.topo) { position: relative; z-index: 2; }
/* Relieve visto desde el aire: la imagen es un mosaico que repite sin cortes y baja despacio */
.topo {
  position: absolute;
  left: 0; right: 0;
  top: -1200px;
  bottom: 0;
  background: url("/img/relieve.webp") 50% 0 / 1600px 1200px repeat;
  pointer-events: none;
  animation: vuelo-aereo 90s linear infinite;
  will-change: transform;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15, 42, 29, .92) 0%, rgba(15, 42, 29, .7) 45%, rgba(15, 42, 29, .35) 100%),
    linear-gradient(180deg, rgba(15, 42, 29, .6) 0%, transparent 25%, transparent 75%, rgba(15, 42, 29, .7) 100%);
}
@keyframes vuelo-aereo { to { transform: translateY(1200px); } }
.hero header.barra { border-bottom: 1px solid rgba(255, 255, 255, .08); }
header.barra .ancho { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-weight: 800; font-size: 24px; letter-spacing: -.02em; color: var(--crema); text-decoration: none; }
.logo span { color: var(--verde-vivo); }
nav a { margin-left: 28px; color: rgba(243, 247, 239, .7); text-decoration: none; font-size: 16px; font-weight: 500; }
nav a:hover { color: var(--crema); }

.portada { flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: 64px; padding-bottom: 96px; }
.portada .etiqueta { color: var(--verde-vivo); font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; }
.portada h1 {
  font-size: clamp(48px, 9vw, 128px);
  line-height: .95;
  font-weight: 900;
  letter-spacing: -.015em;
  margin: 20px 0 32px;
  max-width: 12ch;
}
.portada p { font-size: clamp(19px, 2vw, 24px); line-height: 1.5; color: rgba(243, 247, 239, .78); max-width: 40ch; margin: 0; }
.botones { margin-top: 44px; display: flex; gap: 14px; flex-wrap: wrap; }
.boton { display: inline-block; padding: 16px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 17px; transition: transform .15s ease, background .15s ease; }
.boton:hover { transform: translateY(-1px); }
.boton.lleno { background: var(--verde-vivo); color: var(--verde-noche); }
.boton.borde { border: 1.5px solid rgba(243, 247, 239, .35); color: var(--crema); }
.boton.borde:hover { border-color: var(--crema); }

/* Resto de la página */
section { padding: 96px 0; }
section + section { border-top: 1px solid var(--linea); }
section h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.05; font-weight: 800; letter-spacing: -.025em; margin: 0 0 16px; }
section .bajada { color: var(--tenue); font-size: 20px; max-width: 56ch; margin: 0 0 44px; }

.grilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.tarjeta { background: var(--papel); border: 1px solid var(--linea); border-radius: 18px; padding: 30px; }
.tarjeta h3 { margin: 0 0 8px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.tarjeta p { margin: 0; color: var(--tenue); }
.tarjeta .estado { display: inline-block; margin-bottom: 16px; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 99px; background: var(--verde-suave); color: var(--verde); }
.tarjeta .estado.gris { background: transparent; border: 1px solid var(--linea); color: var(--tenue); }
.tarjeta a.mas { display: inline-block; margin-top: 18px; font-weight: 700; text-decoration: none; }

.pasos { counter-reset: paso; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.paso {
  counter-increment: paso;
  position: relative;
  background: var(--papel);
  border: 1px solid var(--linea);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.paso .texto { padding: 24px 26px 26px; }
.paso .texto::before { content: counter(paso, decimal-leading-zero); display: block; font-size: 40px; font-weight: 900; letter-spacing: -.02em; color: var(--verde); opacity: .35; margin-bottom: 4px; transition: opacity .25s ease; }
.paso:not(:has(.texto))::before { content: counter(paso, decimal-leading-zero); display: block; font-size: 40px; font-weight: 900; color: var(--verde); opacity: .35; padding: 24px 26px 0; }
.paso:not(:has(.texto)) { padding-bottom: 24px; }
.paso:not(:has(.texto)) h3, .paso:not(:has(.texto)) p { padding: 0 26px; }
.paso h3 { margin: 0 0 6px; font-size: 21px; font-weight: 700; }
.paso p { margin: 0; color: var(--tenue); font-size: 17px; }
.paso .extra {
  margin-top: 12px;
  opacity: 0;
  transform: translateY(6px);
  color: var(--verde);
  font-weight: 600;
  font-size: 16px;
  transition: opacity .3s ease, transform .3s ease;
}

/* Ilustración de cada paso */
.paso .visual {
  height: 140px;
  background: var(--verde-noche);
  overflow: hidden;
}
.paso .visual svg { width: 100%; height: 100%; display: block; opacity: .3; transform: scale(.94); filter: saturate(.3); transition: opacity .35s ease, transform .45s ease, filter .35s ease; }
.visual .campo { fill: #1d4632; }
.visual .vuelo { fill: none; stroke: var(--verde-vivo); stroke-width: 2.5; stroke-dasharray: 6 6; stroke-linejoin: round; }
.visual .dron { fill: var(--crema); stroke: var(--crema); stroke-width: 2.5; }
.visual .dron circle { fill: none; stroke-width: 2; }
.visual .curva { fill: none; stroke: var(--verde-vivo); stroke-width: 2.5; stroke-linecap: round; opacity: .85; }
.visual .cota { fill: #1d4632; }
.visual .bajo { fill: #3b82a6; opacity: .75; }
.visual .hoja { fill: #1d4632; }
.visual .linea-plano { fill: none; stroke: var(--verde-vivo); stroke-width: 2.5; stroke-linecap: round; opacity: .7; }
.visual .sello { fill: var(--verde-vivo); }
.visual .sello-borde { fill: none; stroke: var(--verde-noche); stroke-width: 2; stroke-dasharray: 3 3; opacity: .5; }
.visual .tilde { fill: none; stroke: var(--verde-noche); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.visual .fila { fill: none; stroke: #234d37; stroke-width: 1.2; }
.visual .sembrado { fill: none; stroke: var(--verde-vivo); stroke-width: 1.6; opacity: .8; }
.visual .barra { fill: #8fb89b; }
.visual .cuerpo { fill: #3d7f58; }
.visual .lanza { stroke: #8fb89b; stroke-width: 2.5; stroke-linecap: round; }
.visual .rueda-sup { fill: #0b1f15; stroke: #4c7a5e; stroke-width: 1; }
.visual .capot { fill: #2f6b4a; }
.visual .cabina { fill: #9fdc7c; opacity: .9; }
.v-procesa .cota, .v-procesa .bajo, .v-revisa .sello-grupo { transform-box: fill-box; }
.v-procesa .cota { transform-origin: 50% 100%; }
.v-procesa .bajo { transform-origin: center; }
.v-revisa .sello-grupo { transform-origin: center; }

@media (hover: hover) {
  .paso:hover { transform: translateY(-4px); border-color: var(--verde); box-shadow: 0 18px 40px -20px rgba(15, 42, 29, .45); }
  .paso:hover .visual svg { opacity: 1; transform: scale(1); filter: none; }
  .paso:hover .texto::before { opacity: .9; }
  .paso:hover .extra { opacity: 1; transform: none; }
  .paso:hover .vuelo { animation: vuelo 1.6s linear infinite; }

  /* 02: el terreno, las curvas y el bajo se arman de cero */
  .paso:hover .v-procesa .cota { animation: crece .45s ease-out both; }
  .paso:hover .v-procesa .curva { animation: trazo .5s ease-out both; }
  .paso:hover .v-procesa .curva:nth-of-type(2) { animation-delay: .15s; }
  .paso:hover .v-procesa .curva:nth-of-type(3) { animation-delay: .25s; }
  .paso:hover .v-procesa .curva:nth-of-type(4) { animation-delay: .35s; }
  .paso:hover .v-procesa .curva:nth-of-type(5) { animation-delay: .45s; }
  .paso:hover .v-procesa .bajo { animation: aparece .4s .7s cubic-bezier(.3, 1.5, .5, 1) both; }

  /* 03: el plano sube como si lo estuvieran leyendo y cae el sello */
  .paso:hover .v-revisa .plano { animation: revisa 1.1s ease-in-out both; }
  .paso:hover .v-revisa .sello-grupo { animation: sellar .35s 1.05s cubic-bezier(.5, 0, .7, 1.4) both; }
  .paso:hover .v-revisa .tilde { stroke-dasharray: 50; animation: tilde .3s 1.35s ease-out both; }

  /* 04: la sembradora recorre las curvas (animación SVG disparada desde index.html) */
}
@keyframes vuelo { to { stroke-dashoffset: -24; } }
@keyframes gira { to { transform: rotate(360deg); } }
@keyframes engancha { from { transform: scale(1.25); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes dato { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: none; } }
@keyframes crece { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes trazo { from { stroke-dasharray: 320; stroke-dashoffset: 320; } to { stroke-dasharray: 320; stroke-dashoffset: 0; } }
@keyframes aparece { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes revisa { from { transform: translateY(70px); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(-20px); } }
@keyframes sellar { from { transform: scale(2.2) rotate(-18deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes tilde { from { stroke-dashoffset: 50; } to { stroke-dashoffset: 0; } }

/* En pantallas táctiles no hay hover: se muestra todo */
@media (hover: none) {
  .paso .visual svg { opacity: 1; transform: none; filter: none; }
  .paso .extra { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .paso, .paso .visual svg, .paso .extra { transition: none; }
  .paso:hover * { animation: none !important; }
  .topo { animation: none; }
}

.dos { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.dos figure { margin: 0; }
.dos figure img { border: 1px solid var(--linea); border-radius: 14px; }
figcaption { color: var(--tenue); font-size: 15px; margin-top: 10px; }
ul.lista { padding-left: 20px; margin: 0; }
ul.lista li { margin-bottom: 10px; }

.contacto { background: var(--verde-noche); color: var(--crema); border-radius: 24px; padding: 56px; }
.contacto h2 { margin-top: 0; color: var(--crema); }
.contacto p { color: rgba(243, 247, 239, .78); font-size: 20px; max-width: 50ch; }
.contacto .boton.lleno { margin-top: 8px; }

footer { padding: 32px 0 48px; color: var(--tenue); font-size: 15px; }

@media (max-width: 760px) {
  header.barra .ancho { height: 64px; }
  nav a { margin-left: 16px; font-size: 15px; }
  .portada { padding-top: 40px; padding-bottom: 64px; }
  section { padding: 64px 0; }
  .dos { grid-template-columns: 1fr; }
  .contacto { padding: 36px 24px; }
}

/* Tarjetas de productos con imagen a la izquierda */
.tarjeta.producto { display: grid; grid-template-columns: 42% 1fr; padding: 0; overflow: hidden; }
.producto-img { background: var(--verde-noche); min-height: 220px; }
.producto-img svg { width: 100%; height: 100%; display: block; }
.producto-texto { padding: 28px; }
.img-arvista { background: #0b1f15; }
.img-arvista .ruta { fill: none; stroke: var(--verde-vivo); stroke-width: .6; stroke-dasharray: 3 3; opacity: .45; }
.img-arvista .huella { fill: none; stroke: var(--crema); stroke-width: 1.4; stroke-linecap: round; opacity: .85; }
.img-arvista .sombra-dron { fill: rgba(0, 0, 0, .35); stroke: rgba(0, 0, 0, .35); stroke-width: 2.4; stroke-linecap: round; filter: blur(1.2px); }
.img-arvista .brazo { stroke: #c9d6cc; stroke-width: 2.4; stroke-linecap: round; }
.img-arvista .helice { fill: rgba(243, 247, 239, .14); stroke: rgba(243, 247, 239, .35); stroke-width: .5; }
.img-arvista .pala { stroke: rgba(243, 247, 239, .55); stroke-width: .9; stroke-linecap: round; }
.img-arvista .cuerpo-dron { fill: #dfe7e1; }
.img-arvista .rtk { fill: #6d7f74; }
.img-arvista .camara-dron { fill: #1a2a21; stroke: #dfe7e1; stroke-width: .6; }
.img-arvista .lectura circle { fill: var(--verde-vivo); }
.img-arvista .lectura polyline { fill: none; stroke: var(--verde-vivo); stroke-width: .8; opacity: .7; }
.img-arvista .lectura .et { fill: rgba(243, 247, 239, .65); font: 600 5px var(--fuente); letter-spacing: .08em; }
.img-arvista .lectura .val { fill: var(--crema); font: 800 9px var(--fuente); }
.img-arpeso { background: #0b1f15; }
.img-arpeso .escaneo { fill: var(--verde-vivo); opacity: 0; transition: opacity .3s ease; filter: drop-shadow(0 0 3px rgba(159, 220, 124, .9)); }
.img-arpeso .caja { fill: none; stroke: var(--crema); stroke-width: 2.5; stroke-linecap: round; }
.img-arpeso .lectura circle { fill: var(--verde-vivo); }
.img-arpeso .lectura polyline { fill: none; stroke: var(--verde-vivo); stroke-width: .8; opacity: .7; }
.img-arpeso .lectura .et { fill: rgba(243, 247, 239, .6); font: 600 5px var(--fuente); letter-spacing: .08em; }
.img-arpeso .lectura .val { fill: var(--crema); font: 800 9px var(--fuente); }
@media (hover: hover) {
  .tarjeta.producto .producto-img svg { transition: transform .4s ease; }
  .tarjeta.producto:hover .producto-img svg { transform: scale(1.04); }
  .tarjeta.producto:hover .ruta { animation: vuelo 1.6s linear infinite; }
  /* Arpeso: el sensor barre al animal, el recuadro lo engancha y aparecen las lecturas */
  .tarjeta.producto:hover .escaneo { opacity: .85; }
  .tarjeta.producto:hover .caja { animation: engancha .5s ease-out both; transform-box: fill-box; transform-origin: center; }
  .tarjeta.producto:hover .dato { animation: dato .4s ease-out both; }
  .tarjeta.producto:hover .dato.d1 { animation-delay: .5s; }
  .tarjeta.producto:hover .dato.d2 { animation-delay: .8s; }
  .tarjeta.producto:hover .dato.d3 { animation-delay: 1.1s; }
  .tarjeta.producto:hover .pala { animation: gira .15s linear infinite; transform-box: fill-box; transform-origin: center; }
}
@media (max-width: 760px) {
  .tarjeta.producto { grid-template-columns: 1fr; }
  .producto-img { min-height: 180px; height: 180px; }
}

/* Cifras y notas de fuente */
.tarjeta.cifra strong { display: block; font-size: clamp(44px, 5vw, 60px); line-height: 1; font-weight: 900; letter-spacing: -.02em; color: var(--verde); margin-bottom: 12px; }
.fuente { color: var(--tenue); font-size: 14px; margin: 20px 0 0; }
.grilla.modulos { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Portada de Arvista: caso real que pasa por vuelo, relieve y trazado */
.portada-dos { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.portada-dos h1 { font-size: clamp(44px, 6vw, 84px); }
.demo-lienzo { position: relative; border-radius: 18px; overflow: hidden; background: #0b1f15; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .08); }
.demo-lienzo img, .demo-lienzo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo .capa-color { opacity: 0; transition: opacity 1s ease; }
.demo[data-paso="2"] .capa-color, .demo[data-paso="3"] .capa-color { opacity: 1; }
.d-limite { fill: none; stroke: var(--crema); stroke-width: 2.5; opacity: .9; }
.d-vuelo { fill: none; stroke: var(--verde-vivo); stroke-width: 2; stroke-dasharray: 8 8; opacity: 0; transition: opacity .6s ease; }
.demo[data-paso="1"] .d-vuelo { opacity: .8; animation: vuelo 1.2s linear infinite; }
.d-via path { fill: rgba(91, 168, 214, .55); stroke: #8cc6e8; stroke-width: 1.5; opacity: 0; transition: opacity .6s ease .8s; }
.demo[data-paso="3"] .d-via path { opacity: 1; }
.d-lineas path { fill: none; stroke: var(--verde-vivo); stroke-width: 2.6; stroke-linecap: round; stroke-dashoffset: var(--largo, 1000); }
.demo[data-paso="3"] .d-lineas path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s ease-out; }
.demo-dato { position: absolute; left: 16px; bottom: 14px; padding: 8px 12px; border-radius: 10px; background: rgba(11, 31, 21, .78); backdrop-filter: blur(4px); opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease; }
.demo-dato span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em; color: rgba(243, 247, 239, .6); }
.demo-dato strong { font-size: 17px; color: var(--crema); }
.demo[data-paso="1"] [data-para="1"], .demo[data-paso="2"] [data-para="2"], .demo[data-paso="3"] [data-para="3"] { opacity: 1; transform: none; }
.demo-pasos { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.demo-pasos button { font: 600 14px var(--fuente); color: rgba(243, 247, 239, .7); background: transparent; border: 1px solid rgba(243, 247, 239, .2); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.demo-pasos button[aria-selected="true"] { background: var(--verde-vivo); border-color: var(--verde-vivo); color: var(--verde-noche); }
.demo-nota { font-size: 13px !important; color: rgba(243, 247, 239, .55) !important; margin-top: 12px !important; max-width: none !important; }
@media (max-width: 900px) {
  .portada-dos { grid-template-columns: 1fr; gap: 36px; }
}

/* "Ar" de las marcas en las tarjetas de productos */
.producto h3 .ar { color: #4f9a6b; }
