/* hero.css — Qué hacemos, para quién y el contacto, sobre el corredor productivo.
   El texto ocupa una columna segura a la izquierda; el panorama (3:2) sube por debajo y su cielo
   se funde con el celeste. Sol, corriente y vehículos van a la derecha o debajo del texto, nunca encima. */

.hero {
  position: relative;
  background: var(--celeste);
  color: var(--noche);
  padding-top: clamp(100px, 4vw + 64px, 122px);
  overflow: hidden;
  isolation: isolate;
}

.hero-texto { position: relative; z-index: 8; width: min(100% - 2 * var(--margen), 1500px); margin-inline: auto; }
.hero-rotulo { margin-bottom: clamp(1rem, 2vw, 1.6rem); }

/* El titular corta donde quiera: nunca se fuerza un renglón más ancho que su columna */
.hero-titulo {
  max-width: min(100%, 15.5ch);
  font-size: clamp(2.5rem, 1rem + 5.1vw, 6.6rem);
  font-weight: 860; font-stretch: 94%; line-height: .94; letter-spacing: -.03em;
  text-wrap: balance;
}
/* Lo destacado va marcado en amarillo: contraste alto (azul noche sobre sol), sin texto blanco sobre celeste */
.hero-titulo em { font-weight: 900; font-stretch: 112%; color: var(--noche); background: linear-gradient(transparent 56%, var(--sol) 56%, var(--sol) 90%, transparent 90%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-inline: .04em; }
.hero-titulo .pto { background: var(--electrico); }

.hero-bajada { max-width: 41rem; margin-top: clamp(1.2rem, 2vw, 1.8rem); font-size: var(--t-lead); line-height: 1.45; font-weight: 460; text-wrap: pretty; }
.hero .acciones { margin-top: 1.6rem; }
.hero-correo { margin-top: .7rem; font-size: .95rem; }
.hero-correo a { font-weight: 700; text-underline-offset: 3px; }

/* Entrada: sube una sola vez, sin máscaras que puedan cortar letras */
.js .hero-texto > * { animation: sube .7s var(--entra) both; }
.js .hero-texto > :nth-child(2) { animation-delay: .06s; }
.js .hero-texto > :nth-child(n+3) { animation-delay: .14s; }
@keyframes sube { from { transform: translateY(18px); opacity: .01; } to { transform: none; opacity: 1; } }

/* ── El panorama ── */
.hero-paisaje { position: relative; z-index: 2; margin-top: calc(-50vw / 1.5 + 4.5rem); pointer-events: none; }
.lienzo { position: relative; width: 100%; aspect-ratio: 3 / 2; }
.lienzo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .lienzo-img { -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 26%, #000 46%); mask-image: linear-gradient(to bottom, transparent 0, transparent 26%, #000 46%); }

.sol-grande { position: absolute; left: 77%; top: 33%; width: 15%; aspect-ratio: 1; translate: -50% -50%; z-index: 3; overflow: visible; filter: drop-shadow(.4vw .4vw 0 var(--noche)); }
.sol-grande .sol-rayos { animation: gira 60s linear infinite; }
.js .sol-grande { animation: amanece 1.6s var(--entra) .2s both; }
@keyframes gira { to { transform: rotate(360deg); } }
@keyframes amanece { from { transform: translateY(40%) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* La cosechadora trabaja el lote y la camioneta reparte por el camino */
.obj-cosechadora { left: 14%; top: 66.5%; width: 11.5%; z-index: 4; animation: cosecha 26s ease-in-out infinite alternate; }
.obj-camioneta { left: -12%; top: 82.5%; width: 12%; z-index: 4; animation: reparto 16s linear infinite; }
@keyframes cosecha { from { transform: translateX(-35%); } to { transform: translateX(60%); } }
@keyframes reparto { to { transform: translateX(1050%); } }
.hero.fuera .obj, .hero.fuera .sol-rayos, .hero.fuera .cinta-pista { animation-play-state: paused; }

.hero .corriente { z-index: 5; }
.hero .c-traza { stroke-width: 5; }
.hero .nodo { z-index: 6; }
.hero .nodo-origen { opacity: 0 !important; }

/* La cinta: lo que hacemos, de un vistazo */
.cinta {
  position: relative; z-index: 9;
  margin-top: -6vw; margin-bottom: -1px;
  background: var(--noche); color: var(--blanco);
  border-block: 3px solid var(--sol);
  overflow: hidden;
}
.cinta-pista { display: flex; width: max-content; animation: cinta 44s linear infinite; }
.cinta p { display: flex; padding-block: clamp(.8rem, 1.3vw, 1.15rem); }
.cinta span {
  display: inline-flex; align-items: center; gap: 1.4rem; padding-right: 1.4rem;
  font: 800 clamp(1.2rem, .9rem + 1.4vw, 2.3rem)/1 var(--f-display); font-stretch: 108%; letter-spacing: -.015em; white-space: nowrap; text-transform: uppercase;
}
.cinta span::after { content: ''; width: .5em; height: .5em; border-radius: 50%; background: var(--sol); }
.cinta:hover .cinta-pista { animation-play-state: paused; }
@keyframes cinta { to { transform: translateX(-50%); } }

/* ── Tablet ── */
@media (max-width: 1100px) {
  .hero-titulo { max-width: 14ch; }
  .hero-paisaje { margin-top: -10vw; }
}

/* ── Celular: el panorama se reencuadra sobre el pueblo, el sol y la industria ── */
@media (max-width: 760px) {
  .hero { padding-top: 92px; }
  .hero-titulo { font-size: clamp(2.3rem, .8rem + 8vw, 3.6rem); }
  .hero .acciones { flex-direction: column; align-items: flex-start; gap: .8rem; }
  .hero-paisaje { margin-top: -6vw; overflow: hidden; }
  .hero-paisaje .lienzo { width: 190%; margin-left: -58%; }
  .cinta { margin-top: -12vw; }
}

@media (prefers-reduced-motion: reduce) {
  .obj-cosechadora, .obj-camioneta, .cinta-pista, .sol-grande .sol-rayos { animation: none; }
  .obj-camioneta { left: 58%; }
}
