/* =========================================================
   EAVision EA-J150 · EAVision Chile
   Paleta: azul de marca EAVision (logo #0247a9) sobre blanco
   ========================================================= */

:root {
  --ink: #0b1628;
  --ink-2: #1c2a44;
  --muted: #52607a;
  --line: #e1e7f0;
  --line-2: #cdd7e6;
  --paper: #ffffff;
  --paper-2: #f4f7fc;
  --paper-3: #e9f0fa;

  --brand: #0247a9;
  --brand-d: #013a8c;
  --brand-l: #2f7de1;
  --brand-2: #0a6fd1;
  --brand-soft: #dbe8fb;
  --cyan: #0284c7;
  --signal: #7cc4ff;

  --night: #03112b;
  --night-2: #0a1f45;

  --f-display: "Archivo", system-ui, sans-serif;
  --f-body: "Archivo", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 136px);
  --header-h: 72px;

  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; line-height: 1.02; letter-spacing: -0.025em; font-weight: 800; font-stretch: 118%; }
p { margin: 0; }
:focus-visible { outline: 2.5px solid var(--brand-l); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr, .skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 12px; left: 12px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }

.ico { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ---------- Tipografía utilitaria ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.eyebrow-light { color: var(--signal); }

.section { padding-block: var(--section-y); position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: clamp(38px, 6.2vw, 76px); margin-top: 18px; }
.section-lead { color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); margin-top: 20px; max-width: 60ch; }
.section-head-row { max-width: none; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: end; }
.section-head-row .section-lead { margin-top: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-display); font-weight: 700; font-size: 15px; font-stretch: 108%;
  letter-spacing: -0.005em;
  padding: 11px 18px; border-radius: var(--r-sm);
  border: 1.5px solid transparent; text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-d); box-shadow: 0 8px 24px -8px rgba(2, 71, 169, .6); }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .14); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: box-shadow .3s;
  background: var(--brand);
  color: #fff;
}
.site-header.is-solid { box-shadow: 0 10px 30px -14px rgba(2, 20, 60, .55); }
.site-header .btn-primary { background: #fff; color: var(--brand); }
.site-header .btn-primary:hover { background: var(--paper-3); box-shadow: none; }
.header-in { display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo { height: 44px; width: auto; display: block; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 6px; opacity: .88; transition: opacity .2s, background .2s; }
.nav a:hover { opacity: 1; background: rgba(255, 255, 255, .12); }
.nav a.is-active { opacity: 1; box-shadow: inset 0 -2px 0 var(--signal); border-radius: 0; }
.nav-cta-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(100svh, 1000px); color: #fff; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + 48px);
  background: var(--night) url("../video/hero.jpg") center / cover no-repeat;
  isolation: isolate;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 14, 36, .86) 0%, rgba(3, 14, 36, .55) 42%, rgba(3, 14, 36, .1) 75%),
    linear-gradient(0deg, rgba(3, 14, 36, .92) 0%, rgba(3, 14, 36, 0) 45%),
    linear-gradient(180deg, rgba(3, 14, 36, .55) 0%, rgba(3, 14, 36, 0) 22%);
}
.hud { position: absolute; inset: calc(var(--header-h) + 20px) var(--gutter) 20px; pointer-events: none; z-index: -1; }
.hud-corner { position: absolute; width: 22px; height: 22px; border-color: rgba(124, 196, 255, .55); border-style: solid; border-width: 0; }
.hud-corner.tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.hud-corner.tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.hud-corner.bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.hud-corner.br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.hud-coord, .hud-rec { position: absolute; top: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: rgba(255, 255, 255, .7); }
.hud-coord { right: 34px; }
.hud-rec { left: 34px; display: flex; align-items: center; gap: 8px; }
.hud-rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px var(--signal); animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { to { opacity: .2; } }

.hero-in { padding-bottom: clamp(32px, 5vw, 56px); }
.hero-title { font-size: clamp(40px, 6.2vw, 92px); font-stretch: 112%; letter-spacing: -0.035em; margin-top: 20px; }
.hero-title span { display: block; color: var(--signal); font-stretch: 125%; }
.hero-lead { font-size: clamp(17px, 1.5vw, 19px); max-width: 52ch; margin-top: 22px; color: rgba(255, 255, 255, .85); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-stats {
  margin: 0 0 clamp(20px, 3vw, 36px); padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .22);
}
.hero-stats > div { padding: 18px 16px 4px 0; border-right: 1px solid rgba(255, 255, 255, .12); padding-left: 16px; }
.hero-stats > div:first-child { padding-left: 0; }
.hero-stats > div:last-child { border-right: 0; }
.hero-stats dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.hero-stats dd { margin: 6px 0 0; display: flex; align-items: baseline; gap: 6px; }
.hero-stats b { font-family: var(--f-display); font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; font-stretch: 110%; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.hero-stats small { font-family: var(--f-mono); font-size: 12px; color: var(--signal); }

/* ---------- Ticker ---------- */
.ticker { background: var(--brand); color: #fff; overflow: hidden; padding: 14px 0; border-block: 1px solid var(--brand-d); }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker ul { list-style: none; margin: 0; padding: 0; display: flex; }
.ticker li { font-family: var(--f-display); font-weight: 700; font-stretch: 125%; font-size: 18px; text-transform: uppercase; letter-spacing: .02em; padding-inline: 28px; display: flex; align-items: center; gap: 56px; white-space: nowrap; }
.ticker li::after { content: ""; width: 7px; height: 7px; background: var(--signal); transform: rotate(45deg); margin-right: -28px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Capacidades (tabs) ---------- */
#capacidades {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(2, 71, 169, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2, 71, 169, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
}
.modes { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 60px -40px rgba(11, 22, 40, .35); }
.modes-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.modes-tabs button {
  appearance: none; border: 0; background: var(--paper-2); cursor: pointer;
  padding: 20px 22px; text-align: left;
  font-family: var(--f-display); font-weight: 700; font-stretch: 112%; font-size: clamp(16px, 1.6vw, 20px);
  display: flex; align-items: center; gap: 14px;
  border-right: 1px solid var(--line); position: relative; color: var(--muted);
  transition: background .25s, color .25s;
}
.modes-tabs button:last-child { border-right: 0; }
.modes-tabs button .n { font-family: var(--f-mono); font-size: 12px; font-weight: 600; color: var(--brand); }
.modes-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.modes-tabs button:hover { color: var(--ink); background: var(--paper-3); }
.modes-tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.modes-tabs button[aria-selected="true"]::after { transform: scaleX(1); }

.mode-panel { display: grid; grid-template-columns: 1.35fr 1fr; min-height: 460px; }
.mode-panel[hidden] { display: none; }
.mode-panel.is-in .mode-body > * { animation: rise .6s var(--ease) both; }
.mode-panel.is-in .mode-body > *:nth-child(2) { animation-delay: .06s; }
.mode-panel.is-in .mode-body > *:nth-child(3) { animation-delay: .12s; }
.mode-media { position: relative; background: var(--night); }
.mode-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mode-body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.mode-body h3 { font-size: clamp(26px, 2.6vw, 36px); font-stretch: 108%; }
.mode-body p { color: var(--muted); margin-top: 16px; }
.mini-stats { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.mini-stats li { background: var(--paper); padding: 14px 16px; }
.mini-stats b { display: block; font-family: var(--f-display); font-size: 22px; font-stretch: 110%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mini-stats span { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Seguridad (oscuro) ---------- */
.section-dark { background: radial-gradient(120% 80% at 85% 0%, #0b3275 0%, var(--night) 55%); color: #e8eef8; overflow: hidden; }
.section-dark .section-lead { color: rgba(232, 238, 248, .72); }
.radar { position: absolute; width: min(900px, 120vw); aspect-ratio: 1; top: -260px; right: -300px; border-radius: 50%; pointer-events: none; opacity: .55; }
.radar i { position: absolute; inset: 0; border: 1px solid rgba(124, 196, 255, .16); border-radius: 50%; }
.radar i:nth-child(3) { inset: 16%; }
.radar i:nth-child(4) { inset: 32%; }
.radar .sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(124, 196, 255, .28), rgba(124, 196, 255, 0) 22%); animation: sweep 6s linear infinite; mask: radial-gradient(circle, #000 0 70%, transparent 71%); }
@keyframes sweep { to { transform: rotate(1turn); } }

.sense-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; position: relative; }
.sense-media { margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; background: #000; border: 1px solid rgba(124, 196, 255, .2); }
.sense-media video { width: 100%; height: 100%; object-fit: cover; }
.sense-media figcaption { position: absolute; left: 16px; bottom: 14px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; background: rgba(3, 14, 36, .7); padding: 6px 10px; border-radius: 6px; backdrop-filter: blur(6px); }
.sense-list { list-style: none; margin: 0; padding: 0; }
.sense-list li { display: grid; grid-template-columns: 112px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid rgba(232, 238, 248, .12); }
.sense-list li:last-child { border-bottom: 1px solid rgba(232, 238, 248, .12); }
.sense-list .k { font-family: var(--f-display); font-weight: 800; font-stretch: 118%; font-size: 36px; letter-spacing: -0.03em; color: var(--signal); line-height: 1; font-variant-numeric: tabular-nums; }
.sense-list h3 { font-size: 20px; font-stretch: 108%; letter-spacing: -0.01em; }
.sense-list p { color: rgba(232, 238, 248, .68); font-size: 15.5px; margin-top: 6px; }

.night { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: 1fr 1.2fr; border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(124, 196, 255, .18); background: rgba(0, 0, 0, .25); }
.night-body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.night-body h3 { font-size: clamp(26px, 2.8vw, 38px); margin-top: 16px; font-stretch: 110%; }
.night-body p:not(.eyebrow) { color: rgba(232, 238, 248, .72); margin-top: 16px; }
.night-tags { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.night-tags li { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; color: var(--signal); border: 1px solid rgba(124, 196, 255, .35); background: rgba(124, 196, 255, .08); padding: 6px 12px; border-radius: 99px; }
.night-tags li:first-child { color: #fff; background: rgba(124, 196, 255, .22); border-color: rgba(124, 196, 255, .6); }
.night-media { position: relative; min-height: 320px; background: #000; }
.night-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Energía / construcción ---------- */
.section-grid { background: var(--paper-2); }
.power { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.power h2 { font-size: clamp(34px, 4.6vw, 60px); margin-top: 18px; }
.big-num { color: var(--brand); font-stretch: 125%; font-variant-numeric: tabular-nums; }
.power-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; background: #0a0d14; box-shadow: 0 30px 60px -36px rgba(11, 22, 40, .45); }
.power-media video { width: 100%; height: 100%; object-fit: cover; }
.charge { margin-top: 32px; max-width: 440px; }
.charge-bar { height: 14px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line-2); overflow: hidden; position: relative; }
.charge-bar span { position: absolute; inset: 2px; right: auto; width: 30%; border-radius: 99px; background: linear-gradient(90deg, var(--brand-2), var(--brand-l)); }
.charge.is-visible .charge-bar span { animation: charge 3.2s var(--ease) .3s forwards; }
@keyframes charge { to { width: calc(95% - 4px); } }
.charge-scale { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; color: var(--muted); margin-top: 8px; }

.build { margin-top: clamp(56px, 8vw, 110px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.build-img { margin: 0; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); padding: 20px; }
.build-img img { mix-blend-mode: multiply; width: 100%; }
.build-copy h3 { font-size: clamp(28px, 3vw, 40px); margin-top: 16px; font-stretch: 110%; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; }
.checks li { padding: 16px 0 16px 0; border-top: 1px solid var(--line-2); color: var(--muted); display: grid; grid-template-columns: 140px 1fr; gap: 16px; font-size: 16px; }
.checks b { font-family: var(--f-display); font-stretch: 112%; color: var(--ink); font-size: 17px; }

/* ---------- En terreno ---------- */
.section-terreno { overflow: hidden; }
.reels {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 24px;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.reel { flex: 0 0 clamp(220px, 24vw, 290px); margin: 0; scroll-snap-align: start; position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 9 / 16; background: var(--ink); }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel figcaption { position: absolute; inset: auto 0 0; padding: 40px 16px 16px; color: #fff; font-size: 14.5px; font-weight: 600; line-height: 1.35; background: linear-gradient(0deg, rgba(0, 0, 0, .75), transparent); }
.reel figcaption span { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--signal); margin-bottom: 4px; }

.crops { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 280px 280px; gap: 16px; }
.crop { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; background: var(--paper-3); }
.crop-lg { grid-row: span 2; }
.crop:nth-child(4) { grid-column: span 2; }
.crop img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.crop:hover img { transform: scale(1.04); }
.crop figcaption { position: absolute; inset: auto 0 0; padding: 48px 20px 18px; color: rgba(255, 255, 255, .85); font-size: 14.5px; background: linear-gradient(0deg, rgba(3, 14, 36, .85), transparent); }
.crop figcaption b { display: block; color: #fff; font-family: var(--f-display); font-stretch: 112%; font-size: 20px; letter-spacing: -0.01em; margin-bottom: 2px; }

/* ---------- Comparativa ---------- */
.section-soft { background: var(--paper-2); }
.table-scroll { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--paper); }
.compare { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; line-height: 1.5; padding-block: 20px; }
.compare thead b { font-family: var(--f-display); font-size: 18px; letter-spacing: -0.01em; text-transform: none; color: var(--ink); font-stretch: 110%; }
.compare tbody th { font-weight: 600; color: var(--ink-2); width: 20%; }
.compare td { color: var(--muted); font-variant-numeric: tabular-nums; }
.compare .hl { background: #eef4fd; color: var(--ink); font-weight: 600; box-shadow: inset 2px 0 0 var(--brand), inset -2px 0 0 var(--brand); }
.compare thead .hl { background: var(--brand); color: rgba(255, 255, 255, .8); }
.compare thead .hl b { color: #fff; }
.compare tbody tr:last-child .hl { box-shadow: inset 2px 0 0 var(--brand), inset -2px 0 0 var(--brand), inset 0 -2px 0 var(--brand); }
.note { font-size: 13.5px; color: var(--muted); margin-top: 16px; max-width: 80ch; }

/* ---------- Ficha ---------- */
.ficha { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.ficha-side { position: sticky; top: calc(var(--header-h) + 24px); }
.ficha-side h2 { font-size: clamp(36px, 4.6vw, 60px); margin-top: 18px; }
.ficha-img { mix-blend-mode: multiply; margin-top: 12px; width: 100%; max-width: 420px; }
.eco { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.eco figure { margin: 0; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.eco img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.eco figcaption { font-size: 13px; color: var(--muted); padding: 10px 12px; line-height: 1.4; }

.spec { border-top: 1px solid var(--line-2); }
.spec:last-child { border-bottom: 1px solid var(--line-2); }
.spec summary {
  list-style: none; cursor: pointer; padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-display); font-weight: 700; font-stretch: 112%; font-size: 22px; letter-spacing: -0.015em;
}
.spec summary::-webkit-details-marker { display: none; }
.spec summary span { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; flex: none; transition: background .2s, border-color .2s; }
.spec summary span::before, .spec summary span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.spec summary span::after { transform: translate(-50%, -50%) rotate(90deg); }
.spec[open] summary span { background: var(--brand); border-color: var(--brand); color: #fff; }
.spec[open] summary span::after { transform: translate(-50%, -50%) rotate(0); }
.spec summary:hover span { border-color: var(--brand); }
.spec dl { margin: 0 0 22px; }
.spec dl div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; padding: 12px 0; border-top: 1px dashed var(--line); font-size: 15.5px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Cotizar ---------- */
.section-cta { background: radial-gradient(90% 90% at 0% 100%, #0b3a8a 0%, var(--night) 60%); color: #fff; }
.cot { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.cot-copy h2 { font-size: clamp(40px, 5.6vw, 72px); margin-top: 18px; }
.cot-copy .section-lead { color: rgba(255, 255, 255, .74); }
.agent { display: flex; align-items: center; gap: 16px; margin-top: 36px; padding: 18px 20px; border: 1px solid rgba(124, 196, 255, .25); border-radius: var(--r); background: rgba(255, 255, 255, .04); max-width: 420px; }
.agent-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; flex: none; }
.agent-ico svg { width: 24px; height: 24px; fill: #fff; }
.agent b { display: block; font-size: 15.5px; }
.agent a { font-family: var(--f-mono); color: var(--signal); text-decoration: none; font-size: 15px; }
.agent a:hover { text-decoration: underline; }

.form { background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 40px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label, .field legend { font-size: 13.5px; font-weight: 600; color: var(--ink-2); padding: 0; }
.field label span { color: var(--brand); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff;
  padding: 12px 14px; font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 88px; }
.field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2355655f' stroke-width='1.6'/%3E%3C/svg%3E") right 14px center no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 125, 225, .2); }
.field input[aria-invalid="true"] { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .15); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 14px; font-weight: 500; transition: background .2s, border-color .2s, color .2s; }
.chips input:checked + span { background: #eef4fd; border-color: var(--brand); color: var(--brand-d); }
.chips input:focus-visible + span { outline: 2.5px solid var(--brand-l); outline-offset: 2px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }
.form-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; padding: 10px 14px; border-radius: var(--r-sm); font-size: 14.5px; margin-bottom: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: #020816; color: rgba(255, 255, 255, .7); padding: 56px 0 28px; font-size: 15px; }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.brand-footer .logo { height: 52px; }
.footer-tag { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, .55); }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: rgba(255, 255, 255, .45); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .45);
  transition: transform .25s var(--ease), opacity .3s;
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float:hover { transform: scale(1.07); }
.wa-float.is-hidden { opacity: 0; pointer-events: none; transform: scale(.8); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-visible { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .hero .reveal { opacity: 1; transform: none; animation: rise .9s var(--ease) both; }
.js .hero .reveal:nth-child(2) { animation-delay: .08s; }
.js .hero .reveal:nth-child(3) { animation-delay: .18s; }
.js .hero .reveal:nth-child(4) { animation-delay: .28s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; gap: 0;
    background: #fff; color: var(--ink); padding: 8px var(--gutter) 20px;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .3);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 17px; }
  .nav a.is-active { box-shadow: none; color: var(--brand); }
  .nav-cta-mobile { display: block; }
  .nav-toggle { display: block; }

  .mode-panel { grid-template-columns: 1fr; min-height: 0; }
  .mode-media { aspect-ratio: 16 / 9; }
  .sense-grid, .power, .build, .ficha, .cot { grid-template-columns: 1fr; }
  .night { grid-template-columns: 1fr; }
  .night-media { min-height: 0; aspect-ratio: 16 / 9; }
  .ficha-side { position: static; }
  .ficha-img { max-width: 300px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .logo { height: 36px; }
  .section-head-row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .hero-stats > div { padding: 14px 10px 12px 0; padding-left: 10px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .hero-stats > div:nth-child(3n+1) { padding-left: 0; }
  .hero-stats > div:nth-child(3n) { border-right: 0; }
  .hero-stats > div:nth-child(n+4) { border-bottom: 0; }
  .hud { display: none; }
  .hero-shade { background: linear-gradient(0deg, rgba(3, 14, 36, .94) 0%, rgba(3, 14, 36, .7) 55%, rgba(3, 14, 36, .35) 100%); }
  .hero-stats b { font-size: 26px; white-space: nowrap; }
  .hero-stats small { font-size: 11px; }
  .modes-tabs { grid-template-columns: repeat(2, 1fr); }
  .modes-tabs button { padding: 16px; border-bottom: 1px solid var(--line); }
  .modes-tabs button:nth-child(2) { border-right: 0; }
  .sense-list li { grid-template-columns: 84px 1fr; gap: 14px; }
  .sense-list .k { font-size: 28px; }
  .crops { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 200px 200px; }
  .crop-lg { grid-row: auto; grid-column: span 2; }
  .crop:nth-child(4) { grid-column: span 2; }
  .checks li { grid-template-columns: 1fr; gap: 4px; }
  .spec dl div { grid-template-columns: 1fr; gap: 2px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-in { grid-template-columns: 1fr; }
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ticker-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}
