/* =========================================================
   VOLTAIKA — estilos del sitio
   ========================================================= */

:root {
  --ink: #0A0E13;
  --ink-2: #0F151C;
  --ink-3: #161E28;
  --ink-4: #222C38;
  --paper: #F4F4F0;
  --paper-2: #EBECE6;
  --white: #FFFFFF;

  --text: #0A0E13;
  --text-2: #465161;
  --text-3: #6B7684;
  --on-dark: #EEF1F4;
  --on-dark-2: #A9B4C1;
  --on-dark-3: #74818F;

  --line: rgba(10, 14, 19, .12);
  --line-2: rgba(10, 14, 19, .07);
  --line-dark: rgba(255, 255, 255, .09);
  --line-dark-2: rgba(255, 255, 255, .16);

  --volt: #FFC21A;
  --volt-hi: #FFD55C;
  --volt-ink: #1A1400;
  --volt-soft: rgba(255, 194, 26, .16);
  --ok: #3DDC97;
  --alert: #FF6B4A;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(10, 14, 19, .05), 0 10px 30px rgba(10, 14, 19, .08);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .45);

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 750; font-stretch: 108%; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
abbr { text-decoration: none; }
section[id], [id^="curso-"] { scroll-margin-top: calc(var(--header-h) + 8px); }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: 0; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--volt); color: var(--volt-ink); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 650;
}
.skip-link:focus { top: 12px; }

.hl {
  color: var(--volt);
  background-image: linear-gradient(transparent 88%, rgba(255, 194, 26, .35) 88%);
}

/* ---------- Botones ---------- */
.btn {
  --pad-y: .85em; --pad-x: 1.3em;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 650; font-size: 15px; line-height: 1.2;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn .i { transition: transform .2s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--sm { --pad-y: .62em; --pad-x: 1em; font-size: 14px; }
.btn--lg { --pad-y: 1em; --pad-x: 1.5em; font-size: 16px; }
.btn--block { width: 100%; }

.btn--volt { background: var(--volt); color: var(--volt-ink); }
.btn--volt:hover { background: var(--volt-hi); box-shadow: 0 8px 28px rgba(255, 194, 26, .28); transform: translateY(-1px); }
.btn--ghost { color: var(--on-dark); border-color: var(--line-dark-2); background: rgba(255, 255, 255, .02); }
.btn--ghost:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .3); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-4); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(10, 14, 19, .22); }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-weight: 650; font-size: 14px; color: var(--text);
  border-bottom: 1.5px solid var(--volt);
  transition: color .2s;
}
.link-btn:hover { color: #8a6700; }

/* ---------- Etiquetas ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .65em;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--volt); border-radius: 2px; flex: none; }
.eyebrow .mono { color: var(--text); }
.eyebrow--dark { color: var(--on-dark-2); }
.eyebrow--dark .mono { color: var(--on-dark); }

.badge {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: 12.5px; font-weight: 650; line-height: 1;
  padding: .55em .85em; border-radius: 999px;
}
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(61, 220, 151, .18); }
.badge--open { background: rgba(61, 220, 151, .12); color: #9ff0cb; }
.badge--soon { background: var(--volt); color: var(--volt-ink); }
.badge--outline { border: 1px solid var(--line-dark-2); color: var(--on-dark); }
.tag {
  font-family: var(--mono); font-size: 11.5px; color: var(--text-3);
  border: 1px dashed var(--line); padding: .35em .7em; border-radius: 6px;
}

.voltages { display: flex; flex-wrap: wrap; gap: 8px; }
.voltages li {
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  color: var(--on-dark);
  padding: .45em .8em;
  border: 1px solid var(--line-dark-2);
  border-radius: 6px;
  background: rgba(255, 255, 255, .03);
}
.voltages li:first-child { border-color: rgba(255, 194, 26, .5); color: var(--volt); }
.voltages--sm li { font-size: 11.5px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(10, 14, 19, .78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line-dark); background: rgba(10, 14, 19, .9); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 26px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 4px; }
.nav__link {
  position: relative; display: block;
  padding: 8px 12px; border-radius: 8px;
  font-size: 15px; font-weight: 550; color: var(--on-dark-2);
  transition: color .2s, background-color .2s;
}
.nav__link:hover { color: var(--white); background: rgba(255, 255, 255, .05); }
.nav__link.is-active { color: var(--white); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--volt); border-radius: 2px;
}

.burger {
  display: none;
  width: 44px; height: 44px; border-radius: 10px;
  background: transparent; border: 1px solid var(--line-dark-2); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { width: 18px; height: 2px; background: var(--on-dark); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 919px) {
  .burger { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px var(--gutter) 24px;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
    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__list { flex-direction: column; }
  .nav__link { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  .nav__link.is-active::after { display: none; }
  .nav__cta { --pad-y: 1em; font-size: 16px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: var(--on-dark);
  padding-block: clamp(48px, 8vw, 104px) clamp(72px, 9vw, 120px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
  opacity: .7;
}
.hero::after {
  content: ""; position: absolute; z-index: -1;
  width: 720px; height: 720px; right: -200px; top: -260px;
  background: radial-gradient(circle, rgba(255, 194, 26, .13), transparent 62%);
}
.hero__grid { display: grid; gap: 56px; align-items: center; }
.hero__title { font-size: clamp(2.3rem, 4.4vw, 4rem); line-height: 1.03; font-weight: 780; font-stretch: 110%; letter-spacing: -.03em; color: var(--white); }
.hero__lead { margin-top: 24px; font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--on-dark-2); max-width: 56ch; }
.hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .voltages { margin-top: 36px; }

@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 64px; }
}

/* Visor de cámara del dron */
.vf { position: relative; margin: 0; }
.vf__screen {
  position: relative; overflow: hidden;
  aspect-ratio: 640 / 440;
  border-radius: 18px;
  background: #111923;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: var(--shadow-lg), 0 0 0 6px rgba(255, 255, 255, .025);
}
.vf__scene { width: 100%; height: 100%; --tw-base: rgba(206, 217, 229, .62); --tw-conductor: rgba(206, 217, 229, .42); --tw-guarda: rgba(206, 217, 229, .38); }
.vf__scan {
  position: absolute; left: 0; right: 0; top: 0; height: 40%;
  background: linear-gradient(to bottom, transparent, rgba(255, 194, 26, .05) 85%, rgba(255, 194, 26, .22) 100%);
  border-bottom: 1px solid rgba(255, 194, 26, .3);
  animation: scan 6s linear infinite;
  pointer-events: none;
}
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(250%); } }

.vf__corner { position: absolute; width: 20px; height: 20px; border: 2px solid rgba(255, 255, 255, .55); }
.vf__corner--tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-top-left-radius: 4px; }
.vf__corner--tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; border-top-right-radius: 4px; }
.vf__corner--bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; border-bottom-left-radius: 4px; }
.vf__corner--br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-bottom-right-radius: 4px; }

.vf__hud {
  position: absolute; left: 0; right: 0;
  display: flex; justify-content: space-between; gap: 12px;
  padding: 16px 40px;
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .04em;
  color: rgba(238, 241, 244, .82);
  pointer-events: none;
}
.vf__hud--top { top: 0; background: linear-gradient(to bottom, rgba(5, 8, 12, .55), transparent); }
.vf__hud--bottom { bottom: 0; background: linear-gradient(to top, rgba(5, 8, 12, .6), transparent); }
.vf__hud span { display: inline-flex; align-items: center; gap: 6px; }
.vf__hud .ok { color: var(--ok); }
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--alert); animation: blink 1.4s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

.vf-target__frame { fill: none; stroke: var(--volt); stroke-width: 2.4; stroke-linecap: round; }
.vf-target__cross { fill: none; stroke: var(--volt); stroke-width: 1.4; }
.vf-target { animation: lock 3.2s var(--ease) infinite; transform-origin: 440px 185px; transform-box: view-box; }
@keyframes lock { 0%, 100% { transform: scale(1); } 8% { transform: scale(1.06); } 16% { transform: scale(1); } }
.vf-label-box { fill: rgba(8, 11, 16, .86); stroke: rgba(255, 194, 26, .55); }
.vf-label-sm { font-family: var(--mono); font-size: 10.5px; fill: var(--volt); letter-spacing: .06em; }
.vf-label { font-family: var(--font); font-size: 13.5px; font-weight: 600; fill: #fff; }
.vf-finding circle { fill: rgba(255, 107, 74, .15); stroke: var(--alert); stroke-width: 1.6; }
.vf-finding path { fill: none; stroke: var(--alert); stroke-width: 1.2; }
.vf-finding text { font-family: var(--mono); font-size: 11px; fill: var(--alert); font-weight: 600; }

.vf__card {
  margin-top: 14px;
  background: rgba(15, 21, 28, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line-dark-2);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .4);
}
.vf__card-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 650; color: var(--white); margin-bottom: 12px; }
.vf__card-head .mono { font-size: 11px; color: var(--volt); }
.seq { display: grid; gap: 8px; counter-reset: seq; }
.seq li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--on-dark-3); }
.seq li::before {
  content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--on-dark-3);
}
.seq li.done { color: var(--on-dark-2); }
.seq li.done::before {
  border-color: var(--ok); background: var(--ok)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0E13' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.seq li.now { color: var(--white); font-weight: 600; }
.seq li.now::before { border-color: var(--volt); background: radial-gradient(circle, var(--volt) 40%, transparent 45%); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(255, 194, 26, .18); } }
.vf__progress { margin-top: 14px; height: 4px; background: rgba(255, 255, 255, .08); border-radius: 4px; overflow: hidden; }
.vf__progress span { display: block; height: 100%; background: var(--volt); border-radius: 4px; }
.vf__card-foot { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 11.5px; color: var(--on-dark-3); }
.vf__quality { display: inline-flex; align-items: center; gap: 7px; color: var(--ok); font-weight: 600; font-size: 12px; }
.vf__quality i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(61, 220, 151, .2); }

@keyframes float { 50% { transform: translateY(-6px); } }

.vf__hud--bottom { justify-content: flex-start; gap: 18px; }
@media (max-width: 539px) {
  .vf__hud { padding: 12px 34px; font-size: 10px; }
  .vf__hud--bottom { gap: 12px; }
  .hide-sm { display: none !important; }
}
@media (min-width: 720px) {
  .vf { padding: 0 0 150px 0; }
  .vf__card { position: absolute; right: -20px; bottom: 0; width: 268px; margin: 0; animation: float 7s ease-in-out infinite; }
  .vf__hud .hide-md { display: none; }
  .seq { gap: 7px; }
  .seq li { font-size: 12.5px; }
}
@media (min-width: 720px) and (max-width: 1023px) {
  .vf__card { right: 16px; }
}

/* ---------- Franja de alcance ---------- */
.strip { background: var(--ink-2); color: var(--on-dark); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.strip__inner { display: grid; gap: 14px; padding-block: 22px; align-items: center; }
.strip__title { font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--on-dark-3); }
.strip__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.strip__list li { display: flex; align-items: baseline; gap: 10px; font-weight: 600; font-size: 15px; }
.strip__list .mono { font-size: 11px; color: var(--volt); }
@media (min-width: 640px) { .strip__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .strip__inner { grid-template-columns: auto 1fr; gap: 40px; }
  .strip__list { grid-template-columns: repeat(5, auto); justify-content: space-between; }
}

/* ---------- Secciones ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--ink { background: var(--ink); color: var(--on-dark); }
.section h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
.section--ink h2 { color: var(--white); }

.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--split { align-items: end; }
@media (min-width: 960px) { .section-head--split { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.section-lead { font-size: 1.075rem; color: var(--text-2); max-width: 60ch; }
.section-lead--dark { color: var(--on-dark-2); }
.audience {
  margin-top: 16px; font-size: 15px; color: var(--text-2);
  padding-left: 14px; border-left: 2px solid var(--volt);
}
.audience strong { color: var(--text); }
.h3-lg { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 26px; }

/* Servicios */
.services {
  display: grid; grid-template-columns: 1fr;
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.service {
  position: relative; background: var(--white);
  padding: 28px 26px 30px;
  transition: background-color .25s;
}
.service:hover { background: #FBFBF8; }
@media (min-width: 600px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .services { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.service__num { position: absolute; top: 24px; right: 24px; font-size: 12px; color: var(--text-3); }
.service__icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: var(--paper); color: var(--text); margin-bottom: 22px;
  transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.service__icon .i { width: 24px; height: 24px; }
.service:hover .service__icon { background: var(--volt); color: var(--volt-ink); transform: rotate(-4deg); }
.service h3 { font-size: 1.12rem; font-stretch: 104%; margin-bottom: 10px; letter-spacing: -.01em; }
.service p { font-size: 15px; color: var(--text-2); line-height: 1.55; }

/* Alcance técnico interactivo */
.scope {
  margin-top: clamp(56px, 7vw, 88px);
  display: grid; overflow: hidden;
  background: var(--ink); color: var(--on-dark);
  border-radius: var(--radius-lg);
}
.scope__text { padding: clamp(28px, 4vw, 48px); }
.scope__title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: var(--white); }
.scope__lead { margin-top: 12px; color: var(--on-dark-2); font-size: 15px; }
.scope__list { margin-top: 26px; display: grid; gap: 4px; }
.scope__item {
  width: 100%; display: flex; align-items: flex-start; gap: 14px;
  text-align: left; cursor: pointer;
  background: transparent; border: 1px solid transparent; border-radius: 12px;
  padding: 12px 14px;
  transition: background-color .2s, border-color .2s;
}
.scope__item strong { display: block; font-size: 15.5px; font-weight: 650; color: var(--on-dark); }
.scope__item small { display: block; font-size: 13.5px; color: var(--on-dark-3); margin-top: 2px; }
.scope__n {
  display: grid; place-items: center; flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  border: 1.5px solid var(--line-dark-2); color: var(--on-dark-2);
  transition: background-color .2s, color .2s, border-color .2s;
}
.scope__item:hover, .scope__item.is-active { background: rgba(255, 255, 255, .045); border-color: var(--line-dark); }
.scope__item.is-active .scope__n { background: var(--volt); color: var(--volt-ink); border-color: var(--volt); }
.scope__item.is-active small { color: var(--on-dark-2); }

.scope__figure {
  margin: 0; position: relative;
  display: grid; place-items: center;
  padding: clamp(16px, 3vw, 32px);
  background:
    radial-gradient(ellipse at 70% 20%, rgba(255, 194, 26, .08), transparent 60%),
    var(--ink-2);
  border-top: 1px solid var(--line-dark);
  --tw-base: rgba(206, 217, 229, .55);
}
.scope__figure::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 32px 32px; opacity: .5; pointer-events: none;
}
.scope__figure svg { position: relative; width: 100%; height: auto; }
@media (max-width: 959px) {
  .scope__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 20px; }
  .scope__item { align-items: center; gap: 10px; padding: 10px; border-color: var(--line-dark); }
  .scope__item small { display: none; }
  .scope__item strong { font-size: 14px; line-height: 1.25; }
  .scope__n { width: 24px; height: 24px; font-size: 11.5px; }
  .scope__text { padding-bottom: 24px; }
}
@media (min-width: 960px) {
  .scope { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .scope__figure { border-top: 0; border-left: 1px solid var(--line-dark); }
}

/* Torre SVG: los colores llegan por variables para poder resaltar cada parte */
.tw { fill: none; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s, opacity .3s; }
.tw-estructura { stroke: var(--tw-estructura, var(--tw-base)); stroke-width: var(--tw-estructura-w, 1.5); }
.tw-aislacion { stroke: var(--tw-aislacion, var(--tw-base)); stroke-width: var(--tw-aislacion-w, 1.5); }
.tw-herrajes { stroke: var(--tw-herrajes, var(--tw-base)); stroke-width: var(--tw-herrajes-w, 1.6); }
.tw-conductor { stroke: var(--tw-conductor, var(--tw-base)); stroke-width: var(--tw-conductor-w, 1.6); }
.tw-guarda { stroke: var(--tw-guarda, var(--tw-base)); stroke-width: var(--tw-guarda-w, 1.2); }

.scope__figure[data-active] { --tw-base: rgba(206, 217, 229, .2); }
.scope__figure[data-active="estructura"] { --tw-estructura: var(--volt); --tw-estructura-w: 2; }
.scope__figure[data-active="aislacion"] { --tw-aislacion: var(--volt); --tw-aislacion-w: 2.2; }
.scope__figure[data-active="herrajes"] { --tw-herrajes: var(--volt); --tw-herrajes-w: 3; }
.scope__figure[data-active="conductor"] { --tw-conductor: var(--volt); --tw-conductor-w: 2.4; }
.scope__figure[data-active="guarda"] { --tw-guarda: var(--volt); --tw-guarda-w: 2.2; }

.callout path { fill: none; stroke: rgba(238, 241, 244, .5); stroke-width: 1.2; }
.callout circle { fill: var(--ink); stroke: rgba(238, 241, 244, .6); stroke-width: 1.4; transition: fill .2s, stroke .2s; }
.callout text { font-family: var(--mono); font-size: 12.5px; font-weight: 600; text-anchor: middle; fill: var(--on-dark); transition: fill .2s; }
.callout { cursor: pointer; }
.callout.is-active circle { fill: var(--volt); stroke: var(--volt); }
.callout.is-active text { fill: var(--volt-ink); }
.callout.is-active path { stroke: var(--volt); }

/* Beneficios y pasos */
.split { margin-top: clamp(64px, 8vw, 104px); display: grid; gap: 56px; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; } }

.checks { display: grid; gap: 16px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-2); font-size: 16px; }
.checks li strong { color: var(--text); font-weight: 650; }
.checks .i {
  width: 26px; height: 26px; padding: 5px; margin-top: -1px;
  border-radius: 50%; background: var(--volt); color: var(--volt-ink); stroke-width: 2.6;
}
.checks--sm li { font-size: 15px; }
.checks--sm .i { width: 22px; height: 22px; padding: 4px; }

.steps { position: relative; display: grid; gap: 4px; }
.steps li { position: relative; display: flex; gap: 20px; padding-bottom: 22px; }
.steps li:not(:last-child)::before {
  content: ""; position: absolute; left: 21px; top: 46px; bottom: 2px; width: 1px;
  background: repeating-linear-gradient(to bottom, var(--text-3) 0 4px, transparent 4px 8px);
  opacity: .5;
}
.steps__n {
  display: grid; place-items: center; flex: none;
  width: 43px; height: 43px; border-radius: 12px;
  background: var(--ink); color: var(--volt); font-size: 13px;
}
.steps strong { display: block; font-size: 17px; font-weight: 700; margin-top: 2px; }
.steps p { color: var(--text-2); font-size: 15px; margin-top: 2px; }

.cta-band {
  margin-top: clamp(56px, 7vw, 88px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(28px, 4vw, 44px);
  background: var(--volt); color: var(--volt-ink);
  border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -40px; top: -60px; width: 260px; height: 260px;
  border: 40px solid rgba(255, 255, 255, .18); border-radius: 50%; pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h3 { font-size: clamp(1.35rem, 2.3vw, 1.8rem); max-width: 30ch; }
.cta-band p { margin-top: 8px; opacity: .8; }

/* Declaración */
.statement {
  background: var(--ink); color: var(--white);
  padding-block: clamp(72px, 10vw, 128px);
  position: relative; overflow: hidden;
}
.statement::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 30%, #000 70%, transparent);
  opacity: .6;
}
.statement__text {
  position: relative;
  font-size: clamp(1.7rem, 3.8vw, 3rem); line-height: 1.15;
  font-weight: 650; font-stretch: 106%; letter-spacing: -.025em;
  max-width: 24ch;
}

/* ---------- Cursos ---------- */
.course {
  display: grid; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--paper);
}
.course__main {
  background: var(--ink); color: var(--on-dark);
  padding: clamp(28px, 4vw, 48px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
  position: relative; overflow: hidden;
}
.course__main::after {
  content: ""; position: absolute; right: -120px; bottom: -120px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255, 194, 26, .12), transparent 65%);
  pointer-events: none;
}
.course__title { font-size: clamp(1.6rem, 2.6vw, 2.15rem); color: var(--white); }
.course__desc { color: var(--on-dark-2); }
.course__meta {
  margin: 4px 0 6px; width: 100%;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: 12px; overflow: hidden;
}
.course__meta div { background: var(--ink); padding: 12px 14px; }
.course__meta dt { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--on-dark-3); }
.course__meta dd { margin: 4px 0 0; font-size: 14.5px; font-weight: 600; color: var(--on-dark); }

.course__levels {
  display: grid; gap: 16px; align-content: start;
  padding: clamp(20px, 3vw, 36px);
}
.level {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
}
.level--alt { background: var(--white); }
.level__head { display: flex; align-items: center; gap: 12px; }
.level__tag {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  padding: .4em .7em; border-radius: 6px;
  background: var(--paper); color: var(--text-2);
}
.level--alt .level__tag { background: var(--ink); color: var(--volt); }
.level h4 { font-size: 1.3rem; }
.level__list { display: grid; gap: 10px; width: 100%; }
.level__list li { position: relative; padding-left: 22px; font-size: 15px; color: var(--text-2); }
.level__list li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 2px; background: var(--volt);
}
.course__note {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13.5px; color: var(--text-2); line-height: 1.5;
  padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--line);
}
.course__note .i { color: var(--text-3); margin-top: 1px; }
@media (min-width: 720px) and (max-width: 1099px) {
  .course__levels { grid-template-columns: 1fr 1fr; }
  .course__note { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .course { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .level__list { grid-template-columns: 1fr 1fr; gap: 10px 24px; }
}

.course-grid { margin-top: 24px; display: grid; gap: 24px; }
@media (min-width: 900px) { .course-grid { grid-template-columns: 1.2fr 1fr; } }

.card-course {
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  padding: clamp(26px, 3.5vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--paper); border: 1px solid var(--line);
}
.card-course__top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.card-course h3 { font-size: clamp(1.35rem, 2.1vw, 1.7rem); }
.card-course p { color: var(--text-2); }
.card-course .btn { margin-top: auto; }
.card-course--dark { background: var(--ink-3); border-color: var(--ink-3); color: var(--on-dark); }
.card-course--dark h3 { color: var(--white); }
.card-course--dark p { color: var(--on-dark-2); }
.card-course--dark .mini-list li { color: var(--on-dark-2); }

.instructor { display: flex; align-items: center; gap: 14px; }
.instructor__avatar {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: var(--volt); font-family: var(--mono); font-weight: 600; font-size: 15px;
}
.instructor strong { display: block; font-size: 15.5px; }
.instructor small { display: block; font-size: 13.5px; color: var(--text-3); }

.mini-list { display: grid; gap: 8px; }
.mini-list li { position: relative; padding-left: 22px; font-size: 15px; color: var(--text-2); }
.mini-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 2px; background: var(--volt); }
.fine { font-size: 13px; color: var(--text-3); line-height: 1.5; }

/* ---------- Pilotos DGAC ---------- */
.pilots { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1024px) { .pilots { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; } }
.pilots__info { display: grid; gap: 28px; }

.roles { display: grid; gap: 12px; align-items: stretch; }
@media (min-width: 640px) { .roles { grid-template-columns: 1fr auto 1fr; } }
.role {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.role--ally { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.role--ally h3 { color: var(--white); }
.role--ally .checks li { color: var(--on-dark-2); }
.role__who { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: 8px; }
.role--ally .role__who { color: var(--volt); }
.role h3 { font-size: 1.25rem; margin-bottom: 16px; }
.roles__arrow { display: grid; place-items: center; color: var(--text-3); }
.roles__arrow .i { width: 22px; height: 22px; }
@media (max-width: 639px) { .roles__arrow .i { transform: rotate(90deg); } }
.roles__fine { margin-top: -12px; }

.allies__title { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); margin-bottom: 12px; }
.allies__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 12px; }
.ally {
  display: flex; align-items: center; gap: 14px;
  min-height: 76px; padding: 14px 16px;
  border-radius: var(--radius); border: 1.5px dashed rgba(10, 14, 19, .2);
  background: rgba(255, 255, 255, .5);
}
.ally__logo {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 10px;
  background: var(--paper-2); color: var(--text-3);
}
.ally__logo img { max-width: 36px; max-height: 36px; object-fit: contain; }
.ally strong { display: block; font-size: 15px; }
.ally small { display: block; font-size: 12.5px; color: var(--text-3); }
.ally.is-published { border-style: solid; border-color: var(--line); background: var(--white); }

.notice {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px; border-radius: var(--radius);
  background: var(--volt-soft); border: 1px solid rgba(255, 194, 26, .45);
}
.notice .i { width: 22px; height: 22px; color: #8a6700; margin-top: 2px; }
.notice strong { display: block; margin-bottom: 4px; }
.notice p { font-size: 14.5px; color: var(--text-2); line-height: 1.55; }

/* ---------- Formularios ---------- */
.form-card {
  background: var(--white); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 36px);
  box-shadow: var(--shadow);
}
.form-card h3 { font-size: 1.45rem; }
.form-card__lead { margin-top: 6px; color: var(--text-2); font-size: 15px; margin-bottom: 22px; }
.form-card--raised { box-shadow: 0 30px 80px rgba(0, 0, 0, .4); border-color: transparent; }
@media (min-width: 1024px) { #pilotos .form-card { position: sticky; top: calc(var(--header-h) + 24px); } }

.lead-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend { font-size: 13.5px; font-weight: 600; color: var(--text); padding: 0; }
.field legend { margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--text-3); }
.field-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(10, 14, 19, .18);
  border-radius: 10px;
  background: var(--white);
  font-size: 15.5px; line-height: 1.4;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23465161' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.field input::placeholder, .field textarea::placeholder { color: #9AA3AE; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(10, 14, 19, .32); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 194, 26, .35);
}
.field [aria-invalid="true"] { border-color: var(--alert); box-shadow: 0 0 0 3px rgba(255, 107, 74, .15); }
.field-error { font-size: 13px; color: #C2412A; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-block; padding: 9px 14px; border-radius: 999px;
  border: 1px solid rgba(10, 14, 19, .18); font-size: 14px; font-weight: 550;
  transition: background-color .2s, border-color .2s, color .2s;
}
.choice:hover span { border-color: rgba(10, 14, 19, .35); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.choice input:focus-visible + span { outline: 2px solid var(--volt); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { font-size: 14px; min-height: 0; }
.form-status:empty { display: none; }
.form-status.is-error { color: #C2412A; }

.form-success { text-align: left; display: grid; gap: 12px; justify-items: start; padding: 8px 0; }
.form-success__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(61, 220, 151, .16); color: #13915C;
}
.form-success__icon .i { width: 26px; height: 26px; stroke-width: 2.4; }
.form-success h4 { font-size: 1.3rem; }
.form-success p { color: var(--text-2); font-size: 15px; }

/* ---------- Contacto ---------- */
.contact { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1024px) { .contact { grid-template-columns: 1fr 1fr; gap: 72px; } }
.contact__info h2 { margin-bottom: 18px; }
.next { margin-top: 32px; display: grid; gap: 14px; }
.next li { display: flex; align-items: center; gap: 14px; color: var(--on-dark); font-size: 16px; }
.next .mono {
  display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%;
  border: 1px solid var(--line-dark-2); color: var(--volt); font-size: 12.5px;
}
.channels {
  margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
}
.channels:empty { display: none; }
.channels .person { flex: 1 0 100%; display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.person__avatar {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%;
  background: var(--volt); color: var(--volt-ink); font-family: var(--mono); font-weight: 600; font-size: 15px;
}
.person small { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--on-dark-3); }
.person strong { display: block; font-size: 17px; color: var(--white); font-weight: 650; }
.channel {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-radius: 10px;
  border: 1px solid var(--line-dark-2); color: var(--on-dark); font-weight: 600; font-size: 15px;
  transition: background-color .2s, border-color .2s, color .2s;
}
a.channel:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .3); }
.channel .i { color: var(--volt); }
.channel--wa { background: #1FAF5A; border-color: #1FAF5A; color: #fff; }
.channel--wa .i { color: #fff; }
a.channel--wa:hover { background: #22c063; border-color: #22c063; }
.channel--plain { border-color: transparent; padding-inline: 4px; color: var(--on-dark-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-2); border-top: 1px solid var(--line-dark); }
.footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  padding-block: 48px 32px;
}
.footer__brand img { width: 280px; max-width: 100%; height: auto; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__nav a { font-weight: 550; color: var(--on-dark-2); transition: color .2s; }
.footer__nav a:hover { color: var(--white); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-block: 20px 32px; border-top: 1px solid var(--line-dark);
  font-size: 13.5px; color: var(--on-dark-3);
}
.to-top:hover { color: var(--volt); }

/* ---------- Modal ---------- */
.modal {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--white); color: var(--text);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .5);
  overflow: auto;
}
.modal::backdrop { background: rgba(5, 8, 12, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .3s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal__box { position: relative; padding: clamp(24px, 4vw, 36px); }
.modal h3 { font-size: 1.5rem; margin-bottom: 22px; padding-right: 36px; }
.modal__close {
  position: absolute; top: 16px; right: 16px;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: var(--paper); border: 0; cursor: pointer; color: var(--text);
  transition: background-color .2s;
}
.modal__close:hover { background: var(--paper-2); }

/* ---------- Animación de aparición ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
