/* AgroAtom · estilos del sitio
   Oscuro por defecto (verde bosque + lima). Modo claro con data-theme="light".
   La portada va siempre sobre foto oscura. */

:root {
  --bg: #0F1A13;
  --bg-alt: #0B140F;
  --surface: #142019;
  --surface-2: #1A2820;
  --line: rgba(246, 237, 218, .09);
  --line-2: rgba(246, 237, 218, .17);
  --text: #F3F1EA;
  --text-2: #B3BCAD;
  --text-3: #8E9A88;
  --lima: #A0DA68;
  --lima-2: #B3E383;
  --on-lima: #0A2410;
  --accent: #A0DA68;
  --mark: #A0DA68;
  --mark-2: #E9E4D4;
  --mark-soft: rgba(160, 218, 104, .14);
  --oliva: #526337;
  --crema: #FDF1DB;
  --focus: #A0DA68;
  --nav-bg: rgba(11, 20, 15, .82);
  --uv-1: #6DBE5C; --uv-2: #E2C449; --uv-3: #E8933D; --uv-4: #DC5A4B; --uv-5: #A779D9;
  --ok: #5FC48A; --warn: #E8B44A; --bad: #E8695B;

  --f-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(16px, 4.5vw, 72px);
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F6F1E4;
  --bg-alt: #EFE8D7;
  --surface: #FFFCF4;
  --surface-2: #F7F1E3;
  --line: rgba(6, 38, 54, .10);
  --line-2: rgba(6, 38, 54, .18);
  --text: #0E2A24;
  --text-2: #475A4D;
  --text-3: #5F6F63;
  --accent: #3F6A1E;
  --mark: #5A8F2A;
  --mark-2: #34495A;
  --mark-soft: rgba(90, 143, 42, .14);
  --focus: #3F6A1E;
  --nav-bg: rgba(246, 241, 228, .88);
  --uv-1: #4E9A3E; --uv-2: #B7951C; --uv-3: #C46A16; --uv-4: #B8382B; --uv-5: #7D4FB4;
  --ok: #2E8A55; --warn: #A87400; --bad: #B83A2E;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.65 var(--f-sans);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 60; background: var(--lima); color: var(--on-lima); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 12px; }
.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { max-width: 1240px; margin: 0 auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1.2;
  transition: background-color .18s var(--ease-out), border-color .18s var(--ease-out), transform .12s var(--ease-out);
}
.btn .i { width: 20px; height: 20px; stroke-width: 1.9; transition: transform .18s var(--ease-out); }
.btn--lima { background: var(--lima); color: var(--on-lima); }
.btn--lima:hover { background: var(--lima-2); }
.btn--lima:hover .i:last-child { transform: translateX(3px); }
.btn--ghost { border: 1px solid var(--line-2); }
.btn--ghost:hover { border-color: var(--accent); }
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 48px; padding: 0 24px; }
.icon-btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(249, 248, 244, .28); transition: border-color .18s var(--ease-out);
}
.icon-btn:hover { border-color: var(--lima); }
.icon-btn .i { width: 21px; height: 21px; }
.theme-btn .sun, [data-theme-toggle] .sun { display: none; }
:root[data-theme="light"] [data-theme-toggle] .sun { display: block; }
:root[data-theme="light"] [data-theme-toggle] .moon { display: none; }

/* ---------- Barra ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  height: calc(96px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  color: #F9F8F4;
  transition: height .25s var(--ease-out), background-color .25s var(--ease-out), border-color .25s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  height: calc(72px + env(safe-area-inset-top, 0px)); color: var(--text);
  background: var(--nav-bg); border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.nav.is-scrolled .icon-btn { border-color: var(--line-2); }
.brand { display: flex; align-items: center; gap: 12px; border-radius: 999px; }
.seal {
  position: relative; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none;
  background: var(--crema); box-shadow: 0 0 0 1px rgba(253, 241, 219, .25);
}
/* Recorte del logo en JPEG dentro del sello circular */
.seal img { position: absolute; width: 122%; height: auto; max-width: none; left: -12%; top: -6.4%; }
.seal--lg { width: 64px; height: 64px; }
.brand__text { display: grid; line-height: 1.05; }
.brand__name { font-weight: 700; font-size: 1.55rem; letter-spacing: -.02em; }
.brand__name span { color: var(--lima); }
:root[data-theme="light"] .nav.is-scrolled .brand__name span, :root[data-theme="light"] .foot .brand__name span { color: var(--accent); }
.brand__sub { font-weight: 500; font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; opacity: .78; margin-top: 5px; }
.nav__links { display: flex; gap: clamp(22px, 2.6vw, 40px); margin: 0 auto; font-weight: 500; font-size: .98rem; }
.nav__links a { position: relative; padding: 8px 0; opacity: .9; transition: opacity .18s var(--ease-out); }
.nav__links a:hover { opacity: 1; }
.nav__links a[aria-current="true"] { opacity: 1; }
.nav__links a[aria-current="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; border-radius: 2px; background: var(--lima);
}
.nav__actions { display: flex; align-items: center; gap: 14px; }
.menu-btn { display: none; }

/* Menú en celular */
.menu {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column;
  padding: calc(16px + env(safe-area-inset-top, 0px)) var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
  background: var(--bg); color: var(--text);
}
.menu__top { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.menu__top .icon-btn { border-color: var(--line-2); }
.menu__links { display: grid; margin-top: 32px; }
.menu__links a { padding: 14px 0; font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; border-bottom: 1px solid var(--line); }
.menu__foot { display: grid; gap: 12px; margin-top: auto; }

/* ---------- Portada ---------- */
.hero {
  --text: #F9F8F4; --line-2: rgba(249, 248, 244, .28); --focus: #A0DA68;
  position: relative; isolation: isolate;
  min-height: max(100svh, 640px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px var(--gutter) 120px;
  color: #F9F8F4; background: #06110E;
}
.hero__photo { position: absolute; inset: 0; z-index: -2; overflow: hidden; display: block; }
.hero__photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 72% 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 14, 18, .6) 0, rgba(4, 14, 18, 0) 150px),
    linear-gradient(90deg, rgba(3, 12, 10, .45) 0%, rgba(3, 12, 10, .22) 40%, rgba(3, 12, 10, 0) 60%),
    linear-gradient(0deg, var(--bg) 0, rgba(3, 12, 10, .35) 14%, rgba(3, 12, 10, 0) 34%);
}
.hero__copy { max-width: 820px; }
.eyebrow {
  display: flex; align-items: center; gap: 16px; margin: 0 0 22px;
  font-weight: 600; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 36px; height: 2px; border-radius: 2px; background: var(--lima); flex: none; }
.hero h1 {
  margin: 0; font-weight: 600; letter-spacing: -.025em; line-height: 1.08;
  font-size: clamp(2.5rem, .9rem + 3.6vw, 4.25rem);
}
.hero h1 span { display: block; text-wrap: balance; }
.hero h1 .l2 { color: var(--lima); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 40px; }

/* ---------- Secciones ---------- */
.section { position: relative; padding: clamp(88px, 10vw, 136px) var(--gutter); overflow: clip; }
.section--alt { background: var(--bg-alt); }
.head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 24px 56px; align-items: end; margin-bottom: 56px; }
.h2 { margin: 0; font-size: clamp(2rem, 1.25rem + 2.3vw, 3.1rem); font-weight: 600; letter-spacing: -.028em; line-height: 1.08; }
.h2 span { display: block; text-wrap: balance; }
.h2 .l2 { color: var(--accent); }
.h3 { margin: 0 0 12px; font-size: 1.4rem; font-weight: 600; letter-spacing: -.015em; }
.head__p { margin: 0; max-width: 34em; color: var(--text-2); }
.tec__text .head__p, .faq .head__p { margin-top: 22px; }
.note { margin: 28px 0 0; font-size: .82rem; color: var(--text-3); }
.lomas { position: absolute; right: -40px; top: 0; width: min(520px, 70vw); height: auto; pointer-events: none; }
.lomas path { fill: none; stroke: var(--oliva); stroke-width: 1.2; opacity: .7; vector-effect: non-scaling-stroke; }
.lomas .lomas__lima { stroke: var(--lima); opacity: .25; }

/* ---------- Servicios ---------- */
.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 56px; padding: 0; list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.perks li { display: flex; align-items: center; gap: 18px; padding: 24px 28px 24px 0; }
.perks li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.perks .i { width: 38px; height: 38px; stroke-width: 1.4; color: var(--accent); }
.perks b { display: block; font-weight: 600; }
.perks span { display: block; font-size: .9rem; color: var(--text-2); }
.svc-index { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.svc-index a { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .92rem; font-weight: 500; color: var(--text-2); transition: border-color .18s var(--ease-out), color .18s var(--ease-out); }
.svc-index a:hover { border-color: var(--accent); color: var(--text); }

.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.svc--flip .svc__art { order: 2; }
.svc__art {
  position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, var(--mark-soft), transparent 60%), var(--surface);
  border: 1px solid var(--line);
}
.svc__art svg { width: 100%; height: auto; }
.svc__art svg * { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.art-rows path { stroke: var(--line-2); stroke-width: 1.2; }
.art-rows .art-horizon { stroke: var(--line); }
.art-drone use { stroke: var(--text); stroke-width: 1.6; }
.art-spray path { stroke: var(--mark); stroke-width: 1; stroke-dasharray: 2 6; opacity: .8; }
.art-fan { stroke: var(--mark); stroke-width: 1; stroke-dasharray: 2 6; opacity: .55; }
.art-drops circle, .art-mist circle, .art-grains circle { fill: var(--mark) !important; stroke: none; }
.art-seeds ellipse { fill: var(--mark-2) !important; stroke: none; }
.art-leaves path, .art-sprouts path { stroke: var(--mark); stroke-width: 1.5; }
.art-tag { position: absolute; left: 18px; bottom: 16px; padding: 6px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: .78rem; color: var(--text-2); }
.kicker { margin: 0 0 6px; font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.svc h3 { margin: 0 0 14px; font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
.svc__body > p { margin: 0; color: var(--text-2); max-width: 34em; }
.svc h4 { margin: 26px 0 10px; font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 26px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 6px; border-left: 1.8px solid var(--accent); border-bottom: 1.8px solid var(--accent); transform: rotate(-45deg); }
.specs { margin: 26px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.specs div { padding: 14px 16px; background: var(--bg); }
.section--alt .specs div { background: var(--bg-alt); }
.specs div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.specs dt { font-size: .78rem; color: var(--text-3); }
.specs dd { margin: 2px 0 0; font-weight: 600; font-size: .98rem; font-variant-numeric: tabular-nums; }
.link-wa { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-weight: 600; color: var(--accent); border-bottom: 1px solid transparent; padding-bottom: 2px; transition: border-color .18s var(--ease-out); }
.link-wa .i { width: 18px; height: 18px; transition: transform .18s var(--ease-out); }
.link-wa:hover { border-color: currentColor; }
.link-wa:hover .i { transform: translateX(3px); }

/* ---------- Tecnología ---------- */
.tec { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.ticks { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; }
.ticks .i { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--lima); color: var(--on-lima); stroke-width: 2.4; margin-top: 2px; }

.board { display: flex; margin: 0; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--surface); overflow: hidden; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .55); }
.board__side { display: grid; align-content: start; gap: 16px; padding: 22px 14px; border-right: 1px solid var(--line); background: var(--bg-alt); }
.board__dot { width: 10px; height: 10px; border-radius: 3px; border: 1.5px solid var(--text-3); }
.board__dot.is-on { background: var(--lima); border-color: var(--lima); }
.board__main { flex: 1; min-width: 0; padding: 20px; display: grid; gap: 16px; }
.board__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.board__eyebrow { margin: 0; font-size: .74rem; color: var(--text-3); }
.board__title { margin: 2px 0 0; font-weight: 600; }
.tag-ejemplo { flex: none; padding: 5px 11px; border-radius: 999px; border: 1px dashed var(--accent); color: var(--accent); font-size: .74rem; font-weight: 600; }
.board__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mini { padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); }
.mini span { display: block; font-size: .74rem; color: var(--text-3); }
.mini b { font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; }
.mini small { font-size: .78rem; color: var(--text-2); font-weight: 500; }
.board__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; }
.map { padding: 12px; border-radius: var(--r-sm); background: var(--bg-alt); border: 1px solid var(--line); }
.map svg { width: 100%; height: auto; }
.map__lot { fill: var(--mark-soft); stroke: var(--line-2); stroke-width: 1.2; }
.map__power { fill: none; stroke: var(--uv-3); stroke-width: 1.4; stroke-dasharray: 6 5; }
.map__poles circle { fill: var(--surface); stroke: var(--uv-3); stroke-width: 1.4; }
.map__trees circle { fill: rgba(82, 99, 55, .55); stroke: var(--oliva); stroke-width: 1.2; }
.map__done { fill: none; stroke: var(--mark); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.map__todo { fill: none; stroke: var(--text-3); stroke-width: 1.4; stroke-dasharray: 2 5; stroke-linecap: round; }
.map__drone circle:first-child { fill: var(--mark); }
.map__drone circle:last-child { fill: none; stroke: var(--mark); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; }
.map__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 2px 0; padding: 0; list-style: none; font-size: .74rem; color: var(--text-2); }
.map__legend li { display: flex; align-items: center; gap: 6px; }
.k { display: inline-block; width: 14px; height: 2px; border-radius: 2px; }
.k--done { background: var(--mark); }
.k--todo { background: repeating-linear-gradient(90deg, var(--text-3) 0 2px, transparent 2px 5px); }
.k--tree { width: 9px; height: 9px; border-radius: 50%; background: rgba(82, 99, 55, .55); border: 1px solid var(--oliva); }
.k--power { background: repeating-linear-gradient(90deg, var(--uv-3) 0 5px, transparent 5px 8px); }
.board__col { display: grid; gap: 12px; align-content: start; }
.ring { position: relative; padding: 14px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; }
.ring svg { width: 116px; height: 116px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring__track { stroke: var(--line-2); }
.ring__fill { stroke: var(--mark); stroke-linecap: round; stroke-dasharray: 64 100; }
.ring__label { position: absolute; display: grid; text-align: center; line-height: 1.15; }
.ring__label b { font-size: 1.5rem; font-weight: 600; }
.ring__label span { font-size: .72rem; color: var(--text-3); }
.activity { margin: 0; padding: 12px 14px; list-style: none; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 10px; }
.activity li { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; }
.activity__dot { width: 7px; height: 7px; margin-top: 7px; border-radius: 50%; background: var(--text-3); flex: none; }
.activity li:first-child .activity__dot { background: var(--mark); box-shadow: 0 0 0 4px var(--mark-soft); }
.activity b { display: block; font-weight: 600; }
.activity span { color: var(--text-3); font-size: .76rem; }
.board__wx { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); font-size: .84rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.board__wx span { display: inline-flex; align-items: center; gap: 6px; }
.board__wx .i { width: 16px; height: 16px; }

/* ---------- Cómo trabajamos ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.steps::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 1px; background: var(--line-2); }
.steps li { position: relative; }
.steps__n { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); border: 1px solid var(--accent); color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.steps h3 { margin: 20px 0 8px; font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.steps p { margin: 0; color: var(--text-2); font-size: .98rem; }

/* ---------- Nosotros ---------- */
.head .head__p + .head__p { margin-top: 14px; }
.head__p--grande { font-size: clamp(1.15rem, 1rem + .45vw, 1.3rem); line-height: 1.6; }
/* etiqueta arriba de todo; título y texto centrados entre sí en altura (el texto es más largo) */
.head--centro { align-items: center; }
.head--centro > .eyebrow { grid-column: 1 / -1; margin: 0; }

/* ---------- Trabajo real: tarjetas por tipo de trabajo + galería en carrusel ---------- */
/* arranca del mismo fondo que Nosotros y se aclara hacia abajo, sin corte */
.section--trabajos { background: linear-gradient(180deg, var(--bg) 0, var(--surface) clamp(220px, 30%, 380px)); border-bottom: 1px solid var(--line); }
.wrap > .head:last-child { margin-bottom: 0; }
/* la zona de cobertura va como sección propia, después de los videos */
.section--zona .zone { margin-top: 0; padding-top: 0; border-top: 0; }
.trab { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: clamp(32px, 4.5vw, 64px); align-items: center; }
.trab__text .head__p { margin-top: 22px; }
.trab__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.cat {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  aspect-ratio: 3 / 5; padding: 18px 16px; border-radius: var(--r-lg);
  background: #0B120E; color: #FFF;
}
.cat img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.cat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(3, 10, 8, .25) 0, rgba(3, 10, 8, 0) 22%, rgba(3, 10, 8, 0) 42%, rgba(3, 10, 8, .9) 100%); }
.cat__n { position: absolute; top: 14px; left: 14px; padding: 4px 11px; border-radius: 999px; font-size: .74rem; font-weight: 600; line-height: 1.3; background: rgba(6, 14, 10, .5); border: 1px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cat__ico {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .38);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.cat__ico .i { width: 21px; height: 21px; }
.cat b { font-size: 1.12rem; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.cat__d { font-size: .84rem; line-height: 1.45; color: rgba(255, 255, 255, .8); }
.cat:hover img { transform: scale(1.05); }
.cat:hover .cat__ico, .cat:focus-visible .cat__ico { background: var(--lima); color: var(--on-lima); border-color: var(--lima); }

.galeria { margin-top: clamp(64px, 8vw, 104px); scroll-margin-top: 96px; }
.galeria__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 26px; }
.filtros { display: flex; flex-wrap: wrap; gap: 8px; }
.filtros button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 17px;
  border-radius: 999px; border: 1px solid var(--line-2); font-size: .92rem; font-weight: 600;
  transition: background .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.filtros button span { font-size: .78rem; font-weight: 500; color: var(--text-3); font-variant-numeric: tabular-nums; }
.filtros button:hover { border-color: var(--accent); }
.filtros button[aria-pressed="true"] { background: var(--lima); border-color: var(--lima); color: var(--on-lima); }
.filtros button[aria-pressed="true"] span { color: var(--on-lima); opacity: .7; }
.galeria__flechas { display: flex; gap: 10px; }
.flecha { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-2); transition: border-color .2s var(--ease-out), background .2s var(--ease-out), opacity .2s var(--ease-out); }
.flecha:hover:not(:disabled) { border-color: var(--accent); background: var(--mark-soft); }
.flecha:disabled { opacity: .3; cursor: default; }
.flecha .i { width: 20px; height: 20px; }
.flecha--prev .i { rotate: 180deg; }
.pista {
  --card: clamp(232px, 21vw, 278px); --gap: 18px;
  display: flex; align-items: flex-start; gap: var(--gap); margin: 0; padding: 4px 4px 10px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scroll-padding-inline: 4px;
  overscroll-behavior-x: contain; scrollbar-width: none;
}
.pista::-webkit-scrollbar { display: none; }
.pista > li { flex: none; width: var(--card); scroll-snap-align: start; }
.pista > li.es-ancho { width: calc(var(--card) * 2 + var(--gap)); }
.obra { display: grid; gap: 4px; border-radius: var(--r-md); }
.obra__img { position: relative; display: block; overflow: hidden; isolation: isolate; height: calc(var(--card) * 1.25); margin-bottom: 10px; border-radius: var(--r-md); background: #0B120E; color: #FFF; }
.obra__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.obra__img::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(3, 10, 8, .3) 0, rgba(3, 10, 8, 0) 20%, rgba(3, 10, 8, 0) 70%, rgba(3, 10, 8, .55) 100%); }
.obra__chip, .obra__dur {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px; font-size: .74rem; font-weight: 600; line-height: 1.3;
  background: rgba(6, 14, 10, .5); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.obra__chip { left: 12px; bottom: 12px; }
.obra__dur { top: 12px; right: 12px; font-variant-numeric: tabular-nums; }
.obra__dur .i { width: 13px; height: 13px; margin-left: -3px; }
.obra__t { font-size: 1rem; font-weight: 600; line-height: 1.3; }
.obra__d { font-size: .86rem; line-height: 1.45; color: var(--text-2); }
.obra:hover .obra__img img { transform: scale(1.04); }
.obra:hover .obra__dur, .obra:focus-visible .obra__dur { background: var(--lima); color: var(--on-lima); border-color: var(--lima); }
.galeria__cta { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 48px); }
.galeria.is-filtrando .pista > li:not([hidden]) { animation: aparecer .35s var(--ease-out) both; }
@keyframes aparecer { from { opacity: 0; translate: 0 8px; } }
.svc__links { display: flex; flex-wrap: wrap; align-items: center; column-gap: 28px; }
.link-real { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-weight: 600; color: var(--text-2); border-bottom: 1px solid transparent; padding-bottom: 2px; transition: color .18s var(--ease-out), border-color .18s var(--ease-out); }
.link-real .i { width: 15px; height: 15px; }
.link-real:hover { color: var(--text); border-color: currentColor; }
@media (prefers-reduced-motion: reduce) {
  .pista { scroll-behavior: auto; }
  .galeria.is-filtrando .pista > li:not([hidden]) { animation: none; }
  .cat img, .obra__img img { transition: none; }
}

/* Visor: el video nunca se agranda más que su tamaño original */
.vbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #F3EFE6; overflow: hidden; }
.vbox[open] { display: grid; place-items: center; }
.vbox::backdrop { background: rgba(3, 9, 7, .92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vbox__in { --w: 720; --h: 1280; display: grid; gap: 14px; width: min(calc(100vw - 32px), calc(var(--w) * 1px), calc((100svh - 170px) * var(--w) / var(--h))); }
.vbox__video, .vbox__img { display: block; width: 100%; height: auto; aspect-ratio: var(--w) / var(--h); border-radius: 14px; background: #000; }
.vbox__img { object-fit: contain; }
.vbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.vbox__cap { margin: 0; display: grid; gap: 2px; min-width: 0; }
.vbox__cap b { font-weight: 600; }
.vbox__cap span { font-size: .86rem; color: rgba(243, 239, 230, .7); }
.vbox__nav { display: flex; gap: 8px; flex: none; }
.vbox__btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .06); color: #FFF; cursor: pointer; transition: background .2s var(--ease-out), border-color .2s var(--ease-out); }
.vbox__btn:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); }
.vbox__btn .i { width: 20px; height: 20px; }
.vbox__prev .i { rotate: 180deg; }
.vbox__close { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; }
html:has(.vbox[open]) { overflow: hidden; }

.zone { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: clamp(72px, 9vw, 120px); padding-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line); }
.zone__text p { margin: 0; color: var(--text-2); }
.towns { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.towns button { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: inherit; font: inherit; font-size: .88rem; cursor: pointer; transition: border-color .2s var(--ease-out), background .2s var(--ease-out), color .2s var(--ease-out); }
.towns button:hover { border-color: var(--accent); }
.towns button[aria-pressed="true"] { border-color: var(--lima); background: var(--lima); color: var(--on-lima); }

/* Mapa de cobertura: OpenStreetMap con los colores del sitio */
.mapa { position: relative; margin: 0; }
.mapa__lienzo { position: absolute; inset: 0 0 auto; height: clamp(380px, 46vw, 520px); border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg-alt); overflow: hidden; opacity: 0; transition: opacity .5s var(--ease-out); }
.mapa.is-listo .mapa__lienzo { position: relative; opacity: 1; z-index: 0; }
.mapa.is-listo .mapa__respaldo { display: none; }
.mapa figcaption { margin-top: 10px; text-align: center; font-size: .8rem; color: var(--text-3); }
.mapa .leaflet-container { font: inherit; background: var(--bg-alt); }
.mapa .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.86) saturate(.5); }
[data-theme="light"] .mapa .leaflet-tile-pane { filter: saturate(.55) sepia(.12) contrast(.95); }
.mapa .leaflet-container.leaflet-grab { cursor: crosshair; }
.mapa .leaflet-bar.leaflet-control-zoom, .mapa .leaflet-bar.mapa__ctl { border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; box-shadow: none; }
.mapa .leaflet-bar.leaflet-control-zoom a, .mapa .leaflet-bar.mapa__ctl button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 0; background: var(--surface); color: var(--text); font: 600 1.15rem/1 var(--f-sans); text-indent: 0; cursor: pointer; }
.mapa .leaflet-bar.leaflet-control-zoom a:hover, .mapa .leaflet-bar.mapa__ctl button:hover { background: var(--bg); color: var(--accent); }
.mapa .leaflet-bar.leaflet-control-zoom a.leaflet-control-zoom-in { border-bottom: 1px solid var(--line); }
.mapa .leaflet-bar.leaflet-control-zoom a.leaflet-disabled { color: var(--text-3); background: var(--surface); }
.mapa .mapa__ctl .i { width: 18px; height: 18px; }
.mapa__zona { stroke: var(--mark); stroke-width: 2; fill: var(--mark); fill-opacity: .07; }
.mapa__anillo { stroke: var(--mark); stroke-opacity: .4; stroke-width: 1; stroke-dasharray: 3 6; fill: none; }
.mapa__pto { stroke: var(--bg); stroke-width: 2; fill: var(--text); fill-opacity: 1; cursor: pointer; }
.mapa__pto--centro { fill: var(--mark); }
.mapa__pto--base { fill: var(--bg); stroke: var(--mark); stroke-width: 3; }
.mapa__pto--lote { fill: var(--lima); stroke: #0A2410; stroke-width: 3; }
.mapa__km span { position: absolute; transform: translate(-50%, -50%); padding: 2px 8px; border-radius: 999px; background: var(--mark); color: var(--bg); font-size: .68rem; font-weight: 700; white-space: nowrap; }
.mapa .leaflet-control-attribution { background: rgba(0, 0, 0, .45); color: rgba(255, 255, 255, .8); font-size: .66rem; border-radius: 8px 0 0 0; }
.mapa .leaflet-control-attribution a { color: #FFF; }
[data-theme="light"] .mapa .leaflet-control-attribution { background: rgba(255, 255, 255, .75); color: #333; }
[data-theme="light"] .mapa .leaflet-control-attribution a { color: #0A2410; }
.mapa__lbl.leaflet-tooltip { padding: 0; border: 0; background: none; box-shadow: none; color: var(--text); font-size: .76rem; font-weight: 600; text-shadow: 0 0 3px var(--bg), 0 0 6px var(--bg), 0 0 10px var(--bg); }
.mapa__lbl.leaflet-tooltip::before { display: none; }
.mapa .leaflet-popup-content-wrapper { border-radius: 14px; background: var(--surface); color: var(--text); border: 1px solid var(--line-2); box-shadow: 0 14px 40px rgba(0, 0, 0, .35); }
.mapa .leaflet-popup-tip { background: var(--surface); }
.mapa .leaflet-popup-content { margin: 14px 16px; font-size: .88rem; line-height: 1.45; }
.mapa .leaflet-popup-content b { display: block; font-size: 1rem; }
.mapa .leaflet-popup-content .mapa__dist { display: block; color: var(--text-2); }
.mapa .leaflet-popup-content .mapa__fuera { color: var(--warn); }
.mapa .leaflet-popup-content a.link-wa { margin-top: 8px; gap: 6px; font-size: .86rem; color: var(--accent); }
.mapa .leaflet-popup-content a.link-wa .i { width: 16px; height: 16px; }
.mapa .leaflet-container a.leaflet-popup-close-button { color: var(--text-3); }
.radar { margin: 0; }
.radar svg { width: 100%; max-width: 560px; height: auto; margin-inline: auto; overflow: visible; }
.radar__ring { fill: none; stroke: var(--line-2); stroke-width: .5; }
.radar__ring--max { stroke: var(--mark); stroke-width: .9; fill: var(--mark-soft); }
.radar__cross { stroke: var(--line); stroke-width: .4; }
.radar__river { fill: none; stroke: rgba(110, 160, 190, .55); stroke-width: 2.2; stroke-linecap: round; }
.radar__river-label { fill: var(--text-3); font-size: 4.2px; font-style: italic; }
.radar__km { fill: var(--text-3); font-size: 4px; font-variant-numeric: tabular-nums; }
.radar__towns circle { fill: var(--text-2); }
.radar__towns text { fill: var(--text); font-size: 4.6px; font-weight: 500; }
.radar__center { fill: var(--mark) !important; }
.radar__base { fill: var(--bg) !important; stroke: var(--mark); stroke-width: 1.2; }
.radar__sweep { fill: none; stroke: var(--mark); stroke-width: .6; opacity: 0; }

/* ---------- Clima ---------- */
.wx { border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--surface); padding: clamp(18px, 2.6vw, 30px); }
.wx__status { margin: 0; padding: 40px 0; text-align: center; color: var(--text-2); }
.wx__now { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(5, minmax(0, 1fr)); gap: 12px; }
.now-main, .now-tile { padding: 16px 18px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.now-label { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.now-temp { display: flex; align-items: flex-start; gap: 4px; margin-top: 4px; }
.now-temp b { font-size: 3.4rem; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.now-temp span { font-size: 1.1rem; color: var(--text-2); margin-top: 6px; }
.now-cond { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; color: var(--text-2); font-size: .92rem; }
.now-cond .i { width: 22px; height: 22px; }
.now-tile { display: grid; align-content: space-between; gap: 6px; }
.now-tile__l { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--text-2); }
.now-tile__l .i { width: 18px; height: 18px; }
.now-tile b { font-size: 1.7rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.now-tile b small { font-size: .82rem; color: var(--text-2); font-weight: 500; letter-spacing: 0; }
.now-tile__s { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .78rem; color: var(--text-3); }
.now-tile--inv b { font-size: 1.25rem; }
.now-tile--inv b[data-on="1"] { color: var(--warn); }
.dir { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: rotate .3s var(--ease-out); }
.dir path:first-child { fill: currentColor; stroke: none; }
.uv-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .74rem; color: var(--text-2); }
.uv-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--uv, var(--text-3)); }

/* Estado para aplicar: color + símbolo + texto */
.estado { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 7px; border-radius: 999px; font-size: .78rem; font-weight: 600; line-height: 1.3; color: var(--text); background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); white-space: nowrap; }
.estado::before { display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--c); color: var(--surface); font-size: .62rem; font-weight: 800; line-height: 1; }
.estado--0 { --c: var(--ok); } .estado--0::before { content: "✓"; }
.estado--1 { --c: var(--warn); } .estado--1::before { content: "!"; }
.estado--2 { --c: var(--bad); } .estado--2::before { content: "✕"; }
.estado--x { --c: var(--text-3); } .estado--x::before { content: "–"; }
.verdict { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px 24px; align-items: center; padding: 18px 20px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--c, var(--line-2)); }
.verdict[data-nivel="0"] { --c: var(--ok); } .verdict[data-nivel="1"] { --c: var(--warn); } .verdict[data-nivel="2"] { --c: var(--bad); }
.verdict__l { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.verdict__state { margin: 8px 0 0; }
.verdict__state .estado { font-size: 1rem; padding: 6px 14px 6px 9px; }
.verdict__state .estado::before { width: 20px; height: 20px; font-size: .78rem; }
.verdict__why { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .92rem; color: var(--text-2); }
.por { position: relative; padding-left: 16px; }
.por::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.por--1::before { background: var(--warn); } .por--2::before { background: var(--bad); }

.week { margin-top: 22px; }
.week__head, .day { display: grid; grid-template-columns: 1fr .45fr 1.7fr 1.25fr 1.4fr 1fr .6fr 1.1fr 1.45fr; gap: 14px; align-items: center; }
.apl, .inv { display: grid; gap: 4px; justify-items: start; }
.apl small, .inv small { font-size: .74rem; color: var(--text-3); }
.inv__no { font-size: .84rem; color: var(--text-3); }
.inv small span { white-space: nowrap; }
.week__head { padding: 0 16px 10px; font-size: .74rem; color: var(--text-3); border-bottom: 1px solid var(--line); }
.week__list { margin: 0; padding: 0; list-style: none; }
.day {
  width: 100%; text-align: left; padding: 12px 16px; border-radius: var(--r-sm); border: 1px solid transparent;
  transition: background-color .18s var(--ease-out), border-color .18s var(--ease-out);
  font-variant-numeric: tabular-nums;
}
.week__list li + li .day { margin-top: 2px; }
.day:hover { background: var(--surface-2); }
.day[aria-pressed="true"] { background: var(--surface-2); border-color: var(--line-2); }
.day__name b { display: block; font-weight: 600; font-size: .98rem; }
.day__name span { font-size: .78rem; color: var(--text-3); }
.day .i { width: 26px; height: 26px; color: var(--text-2); }
.range { display: grid; grid-template-columns: 2.6em 1fr 2.6em; align-items: center; gap: 8px; font-size: .9rem; }
.range span:first-child { color: var(--text-3); text-align: right; }
.range span:last-child { font-weight: 600; }
.range__track { position: relative; height: 6px; border-radius: 6px; background: var(--line); }
.range__fill { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: var(--mark); }
.range--hum .range__fill { background: var(--mark-2); opacity: .75; }
.wind { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.wind b { font-weight: 600; }
.wind small { display: block; font-size: .74rem; color: var(--text-3); }
.uv { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.uv b { font-weight: 600; min-width: 2.2em; }
.rain { font-size: .9rem; color: var(--text-2); }

.hours { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.hours__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 8px; }
.hours__title { margin: 0; font-weight: 600; }
.hours__read { margin: 0; font-size: .9rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.hours__read b { color: var(--text); font-weight: 600; }
.hours__charts { position: relative; border-radius: var(--r-sm); touch-action: pan-y; }
.hours__charts svg { width: 100%; height: auto; overflow: visible; }
.ch-title { fill: var(--text-2); font-size: 12px; font-weight: 600; }
.ch-unit { fill: var(--text-3); font-size: 11px; }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-axis { fill: var(--text-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.ch-line { fill: none; stroke: var(--mark); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-line--2 { stroke: var(--mark-2); }
.ch-area { fill: var(--mark); opacity: .1; }
.ch-bar { fill: var(--mark); }
.ch-gust { fill: var(--mark-2); stroke: var(--surface); stroke-width: 2; }
.ch-cross { stroke: var(--text-2); stroke-width: 1; }
.ch-dot { fill: var(--mark); stroke: var(--surface); stroke-width: 2; }
.ch-legend { fill: var(--text-2); font-size: 11px; }
.ch-estado--0 { fill: var(--ok); } .ch-estado--1 { fill: var(--warn); } .ch-estado--2 { fill: var(--bad); }
rect.ch-estado[data-e] { opacity: .85; }
.ch-sel { fill: none; stroke: var(--text); stroke-width: 1.5; }
.hours__read { line-height: 1.7; }
.hours__read .estado { margin: 0 6px; vertical-align: 1px; }
.crit { margin-top: 18px; border-top: 1px solid var(--line); }
.crit summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 2px; font-weight: 600; cursor: pointer; list-style: none; }
.crit summary::-webkit-details-marker { display: none; }
.crit summary .i { width: 18px; height: 18px; color: var(--accent); transition: rotate .2s var(--ease-out); }
.crit[open] summary .i { rotate: 45deg; }
.crit__body { padding: 0 2px 8px; font-size: .9rem; color: var(--text-2); }
.crit__body p { margin: 0 0 12px; max-width: 70ch; }
.crit__body { overflow-x: auto; }
.crit__table { width: 100%; min-width: 560px; border-collapse: collapse; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.crit__table th, .crit__table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); font-weight: 400; }
.crit__table thead th { font-weight: 600; }
.crit__table tbody th { color: var(--text); font-weight: 600; }
.wx__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 18px 0 0; font-size: .8rem; color: var(--text-3); }
.wx__foot a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Preguntas ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 2px; font-weight: 600; font-size: 1.06rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 20px; height: 20px; color: var(--accent); transition: rotate .2s var(--ease-out); }
.faq details[open] summary .i { rotate: 45deg; }
.faq details p { margin: 0; padding: 0 40px 24px 2px; color: var(--text-2); }

/* ---------- Contacto ---------- */
.banner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); }
.banner__photo { position: relative; display: block; min-height: 300px; }
.banner__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 76% 38%; }
.banner__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, var(--surface)); }
.banner__text { padding: clamp(28px, 4vw, 56px); display: grid; align-content: center; justify-items: start; gap: 16px; }
.banner__text p { margin: 0; color: var(--text-2); max-width: 30em; }
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); margin-top: clamp(48px, 6vw, 80px); align-items: start; }
.contact__list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.contact__list li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact__list .i { width: 22px; height: 22px; color: var(--accent); }
.contact__list span { display: block; font-size: .8rem; color: var(--text-3); }
.contact__list b { font-weight: 600; }
.form { padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--surface); }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0 22px; }
.field { display: grid; gap: 6px; font-size: .86rem; color: var(--text-2); }
.field--full { grid-column: 1 / -1; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font-size: 1rem;
  transition: border-color .18s var(--ease-out);
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--mark-soft); }
.field [aria-invalid="true"] { border-color: var(--uv-4); }
.form__msg { margin: 14px 0 0; font-size: .9rem; color: var(--text-2); min-height: 1.4em; }
.form__note { margin: 6px 0 0; font-size: .78rem; color: var(--text-3); }

/* ---------- Pie ---------- */
.foot { padding: 72px var(--gutter) 28px; border-top: 1px solid var(--line); background: var(--bg-alt); font-size: .92rem; color: var(--text-2); }
.foot__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot__brand { display: flex; gap: 16px; align-items: flex-start; }
.foot__brand p { margin: 0; }
.foot__brand .brand__name { font-size: 1.3rem; color: var(--text); }
.foot__h { margin: 0 0 12px; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.foot a:hover { color: var(--text); }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--text-3); }

/* ---------- Páginas legales y 404 ---------- */
.nav--fija { color: var(--text); background: var(--nav-bg); border-bottom-color: var(--line); height: calc(72px + env(safe-area-inset-top, 0px)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav--fija .icon-btn, .nav--fija .btn--ghost { border-color: var(--line-2); }
.nav--fija .nav__actions { margin-left: auto; }
:root[data-theme="light"] .nav--fija .brand__name span { color: var(--accent); }
.pagina { padding: calc(128px + env(safe-area-inset-top, 0px)) var(--gutter) 96px; }
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { margin: 0 0 8px; font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
.legal .actualizado { margin: 0 0 36px; color: var(--text-3); font-size: .9rem; }
.legal h2 { margin: 40px 0 12px; font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--text-2); }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 22px; margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.legal dt { color: var(--text-3); }
.legal dd { margin: 0; color: var(--text); font-weight: 500; }
.legal .leyenda { margin-top: 36px; padding: 18px 20px; border-left: 3px solid var(--accent); border-radius: var(--r-sm); background: var(--surface); font-size: .92rem; }
.foot--simple { padding-top: 28px; }
.foot--simple .foot__bottom { margin-top: 0; border-top: 0; padding-top: 0; }
.foot__bottom a { text-decoration: underline; text-underline-offset: 2px; }
.e404 { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(110px + env(safe-area-inset-top, 0px)) var(--gutter) 72px; position: relative; overflow: clip; }
.e404__radar { width: min(340px, 70vw); height: auto; margin: 0 auto 28px; }
.e404__radar circle { fill: none; stroke: var(--line-2); stroke-width: 1; }
.e404__radar .max { stroke: var(--accent); stroke-dasharray: 4 6; }
.e404__radar .x { stroke: var(--uv-4); stroke-width: 2.4; stroke-linecap: round; }
.e404 .cod { margin: 0; font-size: .82rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.e404 h1 { margin: 10px 0 12px; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
.e404 p { margin: 0 auto; max-width: 30em; color: var(--text-2); }
.e404 .cta { justify-content: center; margin-top: 30px; }
@media (max-width: 600px) {
  .legal dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .legal dd + dt { margin-top: 10px; }
}

/* ---------- WhatsApp flotante y video ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  display: none; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--lima); color: var(--on-lima); box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  opacity: 0; translate: 0 12px; pointer-events: none; transition: opacity .2s var(--ease-out), translate .2s var(--ease-out);
}
.wa-float .i { width: 28px; height: 28px; }
.wa-float.is-on { opacity: 1; translate: 0 0; pointer-events: auto; }

/* ---------- Movimiento ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .7s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 90ms + 150ms); }
  .hero__photo img { animation: settle 1.8s var(--ease-out) both; }
  .js .map__done { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .map.is-in .map__done { transition: stroke-dashoffset 2.4s cubic-bezier(.65, 0, .35, 1) .2s; stroke-dashoffset: 0; }
  .map__drone circle:last-child { animation: ping 2.4s var(--ease-out) infinite; }
  .js .ring__fill { stroke-dasharray: 0 100; }
  .js .ring.is-in .ring__fill { transition: stroke-dasharray 1.4s var(--ease-out) .3s; stroke-dasharray: 64 100; }
  .svc__art.is-in .art-drops circle, .svc__art.is-in .art-mist circle, .svc__art.is-in .art-grains circle, .svc__art.is-in .art-seeds ellipse { animation: fall 2.8s linear infinite; }
  .svc__art.is-in :is(.art-drops, .art-mist, .art-grains, .art-seeds) > :nth-child(2n) { animation-delay: -1.1s; }
  .svc__art.is-in :is(.art-drops, .art-mist, .art-grains, .art-seeds) > :nth-child(3n) { animation-delay: -1.9s; }
  .radar__sweep { animation: sweep 3.6s var(--ease-out) infinite; transform-origin: 0 0; }
  @supports (animation-timeline: view()) {
    .head, .svc__body, .tec__text, .steps li, .zone__text { animation: up linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes up { from { opacity: 0; transform: translateY(22px); } }
@keyframes settle { from { transform: scale(1.04); } }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 80%, 100% { transform: scale(3); opacity: 0; } }
@keyframes fall { 0% { transform: translateY(-14px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(34px); opacity: 0; } }
@keyframes sweep { 0% { r: 4; opacity: .7; } 100% { r: 100; opacity: 0; } }

/* ---------- Responsive ---------- */
/* Barra en pantallas medianas: mismas secciones, más compactas */
@media (max-width: 1240px) {
  .nav { gap: 16px; }
  .nav__links { gap: clamp(14px, 1.7vw, 24px); font-size: .9rem; }
  .nav .btn--sm { padding: 0 18px; }
}
@media (max-width: 1060px) {
  .nav { gap: 12px; }
  .brand { gap: 10px; }
  .seal { width: 40px; height: 40px; }
  .brand__name { font-size: 1.3rem; }
  .brand__sub { font-size: .55rem; letter-spacing: .16em; margin-top: 4px; }
  .nav__links { gap: 14px; font-size: .84rem; }
  .nav__actions { gap: 8px; }
  .nav .icon-btn { width: 44px; height: 44px; }
  .nav .btn--sm { min-height: 44px; padding: 0 16px; }
  .nav .btn--sm .i { display: none; }
}
@media (max-width: 940px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .menu-btn { display: grid; }
}
@media (max-width: 1100px) {
  .tec, .zone, .faq, .contact, .trab { grid-template-columns: minmax(0, 1fr); }
  .trab__text { max-width: 640px; }
  .board { max-width: 760px; }
  .wx__now { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .now-main, .now-tile--inv { grid-column: 1 / -1; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  /* pronóstico de 7 días en tarjetas: con 9 columnas la tabla no entra */
  .week__head { display: none; }
  .day { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "name icon rain" "apl apl apl" "inv inv inv" "temp temp temp" "hum hum hum" "wind wind uv"; gap: 10px 14px; padding: 14px; border-color: var(--line); }
  .apl { grid-area: apl; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
  .inv { grid-area: inv; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
  .inv::before { content: "Inversión térmica"; font-size: .74rem; color: var(--text-3); }
  .week__list li + li .day { margin-top: 8px; }
  .day__name { grid-area: name; } .day__icon { grid-area: icon; } .rain { grid-area: rain; }
  .range--temp { grid-area: temp; } .wind { grid-area: wind; } .range--hum { grid-area: hum; } .uv { grid-area: uv; }
  .range--temp, .range--hum { grid-template-columns: 6.4em 2.6em minmax(0, 1fr) 2.8em; }
  .range--temp::before, .range--hum::before, .rain::before { font-size: .74rem; color: var(--text-3); }
  .range--temp::before { content: "Temperatura"; }
  .range--hum::before { content: "Humedad"; }
  .rain::before { content: "Lluvia "; }
}
@media (max-width: 900px) {
  .head { grid-template-columns: minmax(0, 1fr); }
  .svc { grid-template-columns: minmax(0, 1fr); }
  .svc--flip .svc__art { order: 0; }
  .steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .reel { gap: 12px; }
  .verdict { grid-template-columns: minmax(0, 1fr); }
  .banner { grid-template-columns: minmax(0, 1fr); }
  .banner__photo { min-height: 220px; }
  .banner__photo::after { background: linear-gradient(180deg, transparent 50%, var(--surface)); }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 72px; }
  .nav { height: calc(72px + env(safe-area-inset-top, 0px)); gap: 10px; }
  .seal { width: 40px; height: 40px; }
  .brand { gap: 10px; }
  .brand__name { font-size: 1.22rem; }
  .brand__sub { font-size: .55rem; letter-spacing: .2em; margin-top: 4px; }
  .nav__actions { gap: 8px; }
  .icon-btn { width: 44px; height: 44px; }
  .nav .theme-btn { display: none; }
  .nav .btn--sm { min-height: 44px; padding: 0 18px; }
  .nav .btn--sm .i { display: none; }

  .hero { min-height: 100svh; justify-content: flex-end; padding: 0 var(--gutter) 72px; }
  /* imagen propia para celular: recorte del drone ya ampliado con buena calidad */
  .hero__photo img {
    position: absolute; left: 0; top: 0;
    width: 100%; height: auto; object-fit: fill;
    -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent 100%); mask-image: linear-gradient(180deg, #000 74%, transparent 100%);
  }
  .hero::before { background: linear-gradient(180deg, rgba(4, 14, 18, .7) 0, rgba(4, 14, 18, .05) 110px, rgba(3, 12, 10, .05) 230px, rgba(3, 12, 10, .45) 340px, rgba(3, 12, 10, .5) 70%, var(--bg) 100%); }
  .hero h1 { font-size: clamp(2.3rem, 10.4vw, 3.1rem); letter-spacing: -.03em; }
  .cta { margin-top: 28px; }
  .cta .btn { flex: 1 1 100%; }

  .perks { grid-template-columns: minmax(0, 1fr); }
  .perks li, .perks li + li { padding: 18px 0; border-left: 0; }
  .perks li + li { border-top: 1px solid var(--line); }
  .specs { grid-template-columns: minmax(0, 1fr); }
  .board { flex-direction: column; }
  .board__side { display: none; }
  .board__main { padding: 14px; }
  .board__stats { gap: 8px; }
  .mini { padding: 10px; }
  .mini b { font-size: 1.1rem; }
  .board__grid { grid-template-columns: minmax(0, 1fr); }
  .board__col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .board__wx { grid-column: 1 / -1; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .mapa__lbl.leaflet-tooltip { font-size: .7rem; }
  /* trabajo real: tarjetas de a dos y galería que se desliza de borde a borde */
  .trab__cta .btn, .galeria__cta .btn { flex: 1 1 100%; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat { aspect-ratio: 3 / 4.2; padding: 14px 12px; border-radius: var(--r-md); }
  .cat__ico { width: 40px; height: 40px; margin-bottom: 6px; }
  .cat b { font-size: 1rem; }
  .cat__d { font-size: .78rem; }
  .cat__n { top: 10px; left: 10px; font-size: .7rem; padding: 3px 9px; }
  .galeria__bar { display: block; margin-bottom: 20px; }
  .galeria__flechas { display: none; }
  .filtros { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter); scrollbar-width: none; }
  .filtros::-webkit-scrollbar { display: none; }
  .filtros button { flex: none; }
  .pista { --card: min(66vw, 270px); --gap: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .pista > li.es-ancho { width: min(84vw, 520px); }
  .es-ancho .obra__img { height: auto; aspect-ratio: 8 / 5; }
  .vbox__in { width: min(calc(100vw - 24px), calc(var(--w) * 1px), calc((100svh - 210px) * var(--w) / var(--h))); padding-top: 56px; }
  .wx__now { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .now-main, .now-tile { padding: 14px; }
  .now-tile b { font-size: 1.4rem; }
  .form__grid { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .wa-float { display: grid; }
}
