/* =========================================================
   Zona 120 · Drone Consulting
   Paleta extraída del logotipo: fondo #01161E, turquesa #61C2C8,
   salvia #A9C4A4 (transición) y dorado #FCC688.
   ========================================================= */

:root {
  --bg: #01161e;
  --bg-deep: #000e14;
  --surface: #05222d;
  --surface-2: #0a2d3a;
  --line: rgba(115, 200, 207, 0.14);
  --line-strong: rgba(115, 200, 207, 0.32);

  --teal: #61c2c8;
  --teal-soft: #8fd6da;
  --teal-deep: #2b8e97;
  --sage: #a9c4a4;
  --gold: #fcc688;
  --gold-deep: #ccac79;
  --coral: #ff8f7e;

  --text: #eaf3f4;
  --muted: #9ab4b9;
  --faint: #6c898f;

  --grad: linear-gradient(90deg, #61c2c8 0%, #a9c4a4 52%, #fcc688 100%);
  --grad-soft: linear-gradient(135deg, rgba(97, 194, 200, 0.16), rgba(252, 198, 136, 0.12));

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);

  --font-head: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1180px;
  --nav-h: 72px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

a { color: var(--teal-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
.link-negrita { color: inherit; font-weight: 700; text-decoration: none; }

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

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}
.eyebrow--center { justify-content: center; }

.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.tiny { font-size: 0.8rem; color: var(--faint); margin: 14px 0 0; }

/* ---------- Botones ---------- */
.btn {
  --btn-pad: 12px 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--btn-pad);
  border-radius: 999px; border: 1px solid transparent;
  font: 700 0.98rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--primary { background: var(--grad); color: #01161e; box-shadow: 0 10px 30px -12px rgba(97, 194, 200, 0.6); }
.btn--primary svg { fill: none; }
.btn--primary:hover { color: #01161e; transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(252, 198, 136, 0.55); }
.btn--ghost { background: rgba(255, 255, 255, 0.02); color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { color: var(--text); border-color: var(--teal); background: rgba(97, 194, 200, 0.08); }
.btn--sm { --btn-pad: 9px 18px; font-size: 0.9rem; }
.btn--lg { --btn-pad: 15px 28px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--icon { --btn-pad: 0; width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--surface-2); color: var(--teal); border-color: var(--line-strong); }
.btn--icon:hover { color: var(--gold); border-color: var(--gold); }
.btn[disabled] { opacity: 0.65; cursor: progress; transform: none; }

.link-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 4px 0; margin: -4px 0 18px;
  color: var(--teal-soft); font: 600 0.9rem var(--font-body); cursor: pointer;
}
.link-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.link-btn:hover { color: var(--gold); }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(1, 22, 30, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; text-decoration: none; }
.brand__word { height: 19px; width: auto; }
.brand__sub { font: 400 0.56rem/1 var(--font-head); letter-spacing: 0.48em; text-transform: uppercase; color: var(--text); opacity: 0.8; padding-left: 1px; }

.nav__menu { display: flex; align-items: center; gap: 24px; }
.nav__menu a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; opacity: 0.85; transition: opacity 0.2s, color 0.2s; }
.nav__menu a:not(.btn):hover { opacity: 1; color: var(--gold); }

.nav__toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(1, 22, 30, 0.6); cursor: pointer; padding: 0; position: relative; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }
.nav__toggle span:nth-child(1) { top: 14px; }
.nav__toggle span:nth-child(2) { top: 21px; }
.nav__toggle span:nth-child(3) { top: 28px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1000px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(1, 22, 30, 0.97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .nav__menu.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__menu a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__cta { margin-top: 16px; }
  body.menu-open .nav { background: rgba(1, 22, 30, 0.97); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 80px;
  text-align: center;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__glow { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: 0.2; }
.hero__glow--teal { background: var(--teal); left: -25vmax; top: -18vmax; }
.hero__glow--gold { background: var(--gold); right: -28vmax; bottom: -30vmax; opacity: 0.13; }
.hero__rings { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(115, 200, 207, 0.1); stroke-width: 1; stroke-dasharray: 3 7; }
.hero__radar {
  position: absolute; left: 50%; top: 50%; width: 140vmax; height: 140vmax; translate: -50% -50%;
  background: conic-gradient(from 0deg, rgba(97, 194, 200, 0.14), rgba(97, 194, 200, 0) 55deg, transparent 360deg);
  border-radius: 50%;
  -webkit-mask: radial-gradient(circle, #000 0 34%, transparent 50%); mask: radial-gradient(circle, #000 0 34%, transparent 50%);
  animation: radar 9s linear infinite;
}
@keyframes radar { to { rotate: 360deg; } }

.hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero__logo { width: min(540px, 84vw); height: auto; margin-bottom: 26px; filter: drop-shadow(0 20px 50px rgba(97, 194, 200, 0.18)); animation: hover-drone 7s ease-in-out infinite; }

/* Portada con toma aérea real + visor de cámara de dron */
.hero--vuelo { padding: calc(var(--nav-h) + 64px) 0 120px; }
.hero--vuelo .hero__inner { max-width: 860px; }
.hero--vuelo .hero__title { font-size: clamp(1.75rem, 3.3vw, 2.7rem); font-weight: 600; line-height: 1.18; max-width: 24ch; letter-spacing: -0.015em; }
.hero--vuelo .hero__title, .hero--vuelo .hero__lead, .hero--vuelo .eyebrow { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7); }
.hero--vuelo .hero__lead { color: #c3d6d9; max-width: 58ch; }
.hero--vuelo .hero__norms { color: #9ab4b9; }
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #07303d, #01161e 70%); }
/* Vídeo de dron: dos capas para fundir tomas; el contenedor se mueve con el ratón (efecto gimbal) */
.hero__video {
  position: absolute; inset: -6%;
  background: #02161d url("../assets/video/mallorca-poster.jpg") center / cover no-repeat;
  transform: translate3d(var(--gx, 0px), var(--gy, 0px), 0) rotate(var(--gr, 0deg)) scale(1.04);
  will-change: transform;
}
.hero__clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; filter: saturate(0.9) contrast(1.05); }
.hero__clip.is-activo { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 52% 50% at 50% 52%, rgba(1, 22, 30, 0.74) 0%, rgba(1, 22, 30, 0.48) 58%, rgba(1, 22, 30, 0.18) 100%),
    linear-gradient(180deg, rgba(1, 22, 30, 0.85) 0%, rgba(1, 22, 30, 0) 18%, rgba(1, 22, 30, 0) 74%, var(--bg) 100%),
    linear-gradient(135deg, rgba(97, 194, 200, 0.16), rgba(252, 198, 136, 0.1));
}
.hero__shade::after {
  content: ""; position: absolute; inset: 0; opacity: 0.06; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hud { position: absolute; inset: calc(var(--nav-h) + 14px) 22px 22px; z-index: 0; pointer-events: none; text-align: left; font: 600 0.68rem/1.2 var(--font-head); letter-spacing: 0.18em; text-transform: uppercase; color: rgba(234, 243, 244, 0.72); }
.hud p { margin: 0; }
.hud__corner { position: absolute; width: 34px; height: 34px; border: 2px solid rgba(234, 243, 244, 0.5); }
.hud__corner--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hud__corner--tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hud__corner--bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hud__corner--br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hud__rec { position: absolute; top: 12px; left: 48px; display: flex; align-items: center; gap: 8px; }
.hud__rec i { width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 10px #ff4d4d; animation: rec 1s steps(2) infinite; }
.hud__spec { position: absolute; top: 12px; right: 48px; }
.hud__geo { position: absolute; left: 48px; top: 40px; display: grid; gap: 5px; }
.hud__geo strong { color: var(--text); font-weight: 600; }
.hud__geo span { color: var(--teal-soft); letter-spacing: 0.12em; }

/* Altímetro compacto en el margen derecho: regla + indicador + lectura digital debajo */
.hud__alt { position: absolute; right: 20px; top: 50%; translate: 0 -58%; width: 78px; height: min(36vh, 260px); }
.hud__ticks { position: absolute; top: 0; bottom: 0; right: 0; width: 2px; background: rgba(234, 243, 244, 0.45); }
.hud__ticks span { position: absolute; right: 12px; translate: 0 -50%; font-size: 0.6rem; letter-spacing: 0.06em; color: rgba(234, 243, 244, 0.6); }
.hud__ticks span::after { content: ""; position: absolute; right: -12px; top: 50%; width: 8px; height: 2px; background: rgba(234, 243, 244, 0.55); }
.hud__ticks span:nth-child(1) { top: 0%; }
.hud__ticks span:nth-child(2) { top: 20%; color: var(--gold); }
.hud__ticks span:nth-child(3) { top: 40%; }
.hud__ticks span:nth-child(4) { top: 60%; }
.hud__ticks span:nth-child(5) { top: 80%; }
.hud__ticks span:nth-child(6) { top: 100%; }
.hud__limit { position: absolute; left: 30px; right: 0; top: 20%; border-top: 2px dashed var(--gold); opacity: 0.85; }
.hud__marker { position: absolute; right: 5px; bottom: 0%; translate: 0 50%; width: 0; height: 0; border: 7px solid transparent; border-right: 0; border-left: 11px solid var(--teal); filter: drop-shadow(0 0 6px var(--teal)); }
.hud__readout { position: absolute; right: 0; top: calc(100% + 22px); display: grid; justify-items: end; gap: 2px; margin: 0; white-space: nowrap; }
.hud__readout span { font-size: 0.58rem; color: rgba(234, 243, 244, 0.6); }
.hud__readout b { font: 600 1.35rem/1 var(--font-head); color: var(--gold); letter-spacing: 0.02em; }
.hud__readout small { font-size: 0.56rem; color: rgba(234, 243, 244, 0.55); letter-spacing: 0.1em; }
.hud__next { pointer-events: auto; justify-self: start; margin-top: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(1, 22, 30, 0.6); border: 1px solid rgba(234, 243, 244, 0.35); color: var(--text); font: 600 0.62rem var(--font-head); letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.hud__next:hover, .hud__next:focus-visible { border-color: var(--gold); color: var(--gold); }

.hero__scroll { position: absolute; left: 50%; bottom: 30px; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(234, 243, 244, 0.45); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: scroll-cue 1.8s ease-in-out infinite; }
@keyframes scroll-cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 1240px) { .hud__alt { display: none; } }
@media (max-width: 760px) {
  .hud { inset: calc(var(--nav-h) + 8px) 12px 14px; font-size: 0.58rem; }
  .hud__corner { width: 22px; height: 22px; }
  .hud__rec { left: 30px; top: 6px; }
  .hud__geo { left: 30px; top: auto; bottom: 6px; }
  .hud__spec, .hero__scroll { display: none; }
  .hero--vuelo { padding-bottom: 90px; }
}
@keyframes hover-drone { 50% { transform: translateY(-8px); } }

.hero__title { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 600; max-width: 20ch; margin-bottom: 20px; }
.hero__lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 64ch; margin-bottom: 34px; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 42px; }
.hero__norms { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; font: 500 0.82rem var(--font-head); letter-spacing: 0.08em; color: var(--faint); }
.hero__norms li { display: inline-flex; align-items: center; gap: 10px; }
.hero__norms li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }

/* ---------- Carrusel de compromisos ---------- */
.stats { position: relative; border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(5, 34, 45, 0.7), rgba(1, 22, 30, 0.7)); }
.stats__carril {
  overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.stats__carril.is-arrastrando { cursor: grabbing; }
.stats__pista { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; will-change: transform; }
.stats__pista li { flex: none; border-left: 1px solid var(--line); }
.stat {
  display: grid; justify-items: center; align-content: start; gap: 4px;
  min-width: 270px; padding: 30px 34px 32px; text-align: center; text-decoration: none; color: inherit;
  -webkit-user-drag: none; transition: background-color 0.3s ease;
}
.stat:hover, .stat:focus-visible { background: rgba(97, 194, 200, 0.06); color: inherit; }
.stat__icono { width: 42px; height: 42px; margin-bottom: 10px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-strong); transition: transform 0.3s ease, border-color 0.3s ease; }
.stat__icono svg { width: 21px; height: 21px; fill: none; stroke: var(--teal-soft); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stat:hover .stat__icono { transform: translateY(-3px); border-color: var(--gold); }
.stat__valor { font: 600 clamp(1.35rem, 2.2vw, 1.85rem)/1.15 var(--font-head); white-space: nowrap; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__texto { max-width: 24ch; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.stats__pausa {
  position: absolute; right: 14px; bottom: 10px; width: 30px; height: 30px; padding: 0;
  display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: rgba(1, 22, 30, 0.75); border: 1px solid var(--line-strong); color: var(--muted);
}
.stats__pausa:hover { color: var(--gold); border-color: var(--gold); }
.stats__pausa svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.stats__pausa .icono-play { display: none; }
.stats__pausa[aria-pressed="true"] .icono-pausa { display: none; }
.stats__pausa[aria-pressed="true"] .icono-play { display: block; }
@media (max-width: 760px) {
  .stat { min-width: 230px; padding: 24px 22px 28px; }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 11vw, 130px) 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--bg-deep), var(--bg)); border-block: 1px solid var(--line); }
.section__head { margin-bottom: 52px; max-width: 760px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .lead { margin-inline: auto; }
.section__head--center + .plans { margin-top: 18px; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  position: relative; padding: 30px 28px 26px;
  background: linear-gradient(180deg, var(--surface), rgba(5, 34, 45, 0.4));
  border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.service::before { content: ""; position: absolute; inset: 0 24px auto; height: 1px; background: var(--grad); opacity: 0; transition: opacity 0.3s; }
.service:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.service:hover::before { opacity: 1; }
.service__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-strong); margin-bottom: 22px; }
.service__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--teal-soft); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service p { color: var(--muted); font-size: 0.98rem; }
.service__foot { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); display: grid; gap: 4px; }
.service__foot p { margin: 0; font: 600 0.85rem var(--font-head); }
.service__time { color: var(--gold); }
.service__zona { color: var(--teal-soft); font-weight: 400 !important; font-size: 0.82rem !important; }
.service--cta { background: var(--grad-soft), var(--surface); border-color: var(--line-strong); }
.service--cta .service__foot { border-top: 0; }
.tags { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--teal-soft); }
@media (max-width: 980px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } }

/* ---------- Método ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: paso; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong) 12%, var(--line-strong) 88%, transparent); }
.step { position: relative; padding: 0 6px; }
.step__num { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong); font: 600 1rem var(--font-head); margin-bottom: 20px; }
.step__num::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid transparent; background: var(--grad) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.6; }
.step h3 { font-size: 1.12rem; }
.step p { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Analizador ---------- */
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #5fe0a4; box-shadow: 0 0 0 0 rgba(95, 224, 164, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(95, 224, 164, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 224, 164, 0); } }

.analyzer__grid { display: grid; grid-template-columns: 370px 1fr; gap: 22px; align-items: stretch; }
@media (max-width: 980px) { .analyzer__grid { grid-template-columns: 1fr; } }

.panel { background: linear-gradient(180deg, var(--surface), rgba(5, 34, 45, 0.55)); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }

.field { margin-bottom: 18px; min-width: 0; }
.field label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 0.86rem; font-weight: 700; color: var(--text); margin-bottom: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

input:not([type="checkbox"]):not([type="range"]), select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: rgba(0, 14, 20, 0.7); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font: 500 1rem var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(97, 194, 200, 0.18); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2361C2C8' stroke-width='2' stroke-linecap='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; padding-right: 40px; }
select option { background: var(--surface); }
textarea { resize: vertical; min-height: 110px; }
textarea[readonly] { color: var(--muted); font-size: 0.88rem; background: rgba(97, 194, 200, 0.05); }
input[aria-invalid="true"] { border-color: var(--coral); }

.input-group { display: flex; gap: 8px; }

output { font: 600 0.9rem var(--font-head); color: var(--gold); }
input[type="range"] { width: 100%; accent-color: var(--teal); height: 28px; cursor: pointer; }
.range-scale { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--faint); margin-top: 2px; }

.form-msg { margin: 12px 0 0; font-size: 0.9rem; color: var(--muted); min-height: 1.3em; }
.form-msg.is-error { color: var(--coral); }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(1, 22, 30, 0.35); border-top-color: #01161e; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.map-wrap { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.map-box { position: relative; flex: 1; display: flex; isolation: isolate; z-index: 0; }
.map { flex: 1; min-height: 520px; border-radius: var(--radius); border: 1px solid var(--line-strong); overflow: hidden; background: #0b1f27; }
@media (max-width: 980px) { .map { min-height: 420px; } }
.map-hint { position: absolute; bottom: 34px; left: 50%; translate: -50% 0; z-index: 500; margin: 0; padding: 8px 16px; border-radius: 999px; background: rgba(1, 22, 30, 0.88); border: 1px solid var(--line-strong); font-size: 0.85rem; font-weight: 600; pointer-events: none; white-space: nowrap; transition: opacity 0.4s; }
.map-hint.is-hidden { opacity: 0; }
@media (max-width: 520px) { .map-hint { font-size: 0.75rem; } }

.map-layers { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border: 0; padding: 0; margin: 0; }
.map-layers legend { float: left; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-right: 6px; padding: 0; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.82rem; font-weight: 600; color: var(--muted); cursor: pointer; user-select: none; transition: all 0.2s; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); opacity: 0.35; transition: opacity 0.2s; }
.chip:has(input:checked) { color: var(--text); border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.chip:has(input:checked) i { opacity: 1; }
.chip:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Leaflet con la marca */
.leaflet-container { font-family: var(--font-body); background: #0b1f27; }
.leaflet-bar a, .leaflet-control-layers { background: rgba(1, 22, 30, 0.92) !important; color: var(--text) !important; border-color: var(--line-strong) !important; }
.leaflet-bar a:hover { background: var(--surface-2) !important; }
.leaflet-control-layers { border-radius: 12px !important; }
.leaflet-control-layers-expanded { padding: 10px 14px; }
.leaflet-control-layers-toggle { filter: invert(1) hue-rotate(180deg); }
.leaflet-control-attribution { background: rgba(1, 22, 30, 0.78) !important; color: var(--faint) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--teal-soft) !important; }
.base-oscura { filter: invert(1) hue-rotate(185deg) saturate(0.55) brightness(0.82) contrast(0.92); }

.pin { position: relative; }
.pin__dot { position: absolute; inset: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px #01161e, 0 0 18px var(--gold); }
.pin__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold); animation: ping 1.8s ease-out infinite; }
@keyframes ping { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

/* Resultados */
.results { margin-top: 30px; padding: 30px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: linear-gradient(180deg, rgba(10, 45, 58, 0.85), rgba(1, 22, 30, 0.9)); animation: rise 0.5s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.results__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 30px; align-items: flex-end; margin-bottom: 24px; }
.results__head h3 { font-size: 1.5rem; margin-bottom: 4px; }
.results__head .muted { margin: 0; font-size: 0.92rem; }
.results__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.results__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.rstat { padding: 16px 18px; border-radius: var(--radius-sm); background: rgba(0, 14, 20, 0.55); border: 1px solid var(--line); }
.rstat strong { display: block; font: 600 1.6rem/1.1 var(--font-head); color: var(--gold); }
.rstat span { font-size: 0.82rem; color: var(--muted); }
@media (max-width: 760px) { .results__stats { grid-template-columns: repeat(2, 1fr); } .results { padding: 22px; } }

.findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.finding { --c: var(--teal); display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 18px 20px; border-radius: var(--radius-sm); background: rgba(0, 14, 20, 0.5); border: 1px solid var(--line); border-left: 3px solid var(--c); }
.finding.nivel-alto { --c: var(--coral); }
.finding.nivel-medio { --c: var(--gold); }
.finding__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 12%, transparent); }
.finding__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--c); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.finding__cat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 4px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.finding h4 { font-size: 1.08rem; margin: 0 0 6px; }
.finding p { margin: 0 0 6px; font-size: 0.95rem; color: var(--text); }
.finding__meta { color: var(--muted) !important; font-size: 0.86rem !important; overflow-wrap: anywhere; }
.finding details { margin-top: 6px; font-size: 0.86rem; color: var(--muted); }
.finding summary { cursor: pointer; color: var(--teal-soft); font-weight: 600; }
.finding details p { margin-top: 8px; color: var(--muted); font-size: 0.86rem; }
.badge { font-size: 0.68rem; letter-spacing: 0.08em; padding: 3px 9px; border-radius: 999px; color: var(--c); border: 1px solid var(--c); }
.finding--ok { --c: #5fe0a4; }

.disclaimer { margin: 22px 0 0; font-size: 0.8rem; color: var(--faint); }

/* ---------- Equipo ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.member { padding: 30px 28px; border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), rgba(5, 34, 45, 0.45)); border: 1px solid var(--line); }
.member__avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 20px; background: var(--grad); color: #01161e; font: 700 1.2rem var(--font-head); }
.member__avatar--icon { background: var(--grad-soft); border: 1px solid var(--line-strong); }
.member__avatar svg { width: 28px; height: 28px; fill: none; stroke: var(--teal-soft); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.member h3 { margin-bottom: 4px; }
.member__role { font: 600 0.8rem var(--font-head); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.member p:last-child { color: var(--muted); font-size: 0.97rem; margin: 0; }
.team--dos { grid-template-columns: repeat(2, 1fr); max-width: 960px; }
@media (max-width: 900px) { .team, .team--dos { grid-template-columns: 1fr; max-width: 560px; } }

/* ---------- Preguntas frecuentes ---------- */
.faq { max-width: 900px; }
.faq__fecha { display: block; margin-top: 10px; font-size: 0.82rem; color: var(--faint); }
.faq__list { display: grid; gap: 12px; }
.faq__item { border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(5, 34, 45, 0.55); transition: border-color 0.2s; }
.faq__item[open] { border-color: var(--line-strong); background: var(--surface); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 22px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { margin: 0; font-size: 1.05rem; line-height: 1.35; }
.faq__item summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.25s; }
.faq__item[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq__item p { margin: 0; padding: 0 22px 22px; color: var(--muted); }
.faq__mas { margin: 26px 0 0; color: var(--muted); }

/* ---------- Zonas (precios) ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 32px 28px 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), rgba(5, 34, 45, 0.45));
  border: 1px solid var(--line);
}
.plan--featured {
  border: 1px solid transparent;
  background: linear-gradient(180deg, #072a36, #03202a) padding-box, var(--grad) border-box;
  box-shadow: 0 30px 70px -30px rgba(97, 194, 200, 0.45);
}
@media (min-width: 981px) { .plan--featured { translate: 0 -10px; } }
.plan__badge { position: absolute; top: -13px; left: 50%; translate: -50% 0; margin: 0; padding: 5px 14px; border-radius: 999px; background: var(--grad); color: #01161e; font: 700 0.72rem var(--font-head); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.plan__head { text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.plan__name { font: 300 1.5rem/1 var(--font-head); letter-spacing: 0.24em; margin-bottom: 10px; }
.plan__name span { font-weight: 600; letter-spacing: 0.08em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan__for { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; line-height: 1.4; }
.plan__price { margin: 0 0 4px; display: flex; justify-content: center; align-items: baseline; gap: 4px; }
.plan__price strong { font: 600 clamp(2.4rem, 4vw, 3rem)/1 var(--font-head); }
.plan__price span { color: var(--muted); font-weight: 600; }
.plan__year { margin: 0; font-size: 0.82rem; color: var(--faint); }
.plan__ops { margin: 0 0 20px; padding: 12px 16px; border-radius: 12px; background: rgba(97, 194, 200, 0.08); border: 1px solid var(--line-strong); text-align: center; font-size: 0.9rem; font-weight: 600; line-height: 1.3; }
.plan__ops strong { display: block; font: 600 1.7rem/1.1 var(--font-head); color: var(--gold); }
.plan__label { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); margin: 4px 0 10px; }
.plan__list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; font-size: 0.93rem; }
.plan__list li { display: flex; gap: 10px; align-items: flex-start; }
.plan__list li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background-repeat: no-repeat; background-position: center; background-size: 12px; }
.plan__list li.si::before { background-color: rgba(97, 194, 200, 0.16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2361C2C8' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.plan__list li.no { color: var(--faint); }
.plan__list li.no::before { background-color: rgba(255, 255, 255, 0.04); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236C898F' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); }
.plan__list b { font-weight: 700; color: var(--gold); }
.plan__disc { margin: 0 0 18px; display: grid; gap: 6px; font-size: 0.9rem; }
.plan__disc div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.plan__disc dt { color: var(--muted); }
.plan__disc dd { margin: 0; font: 600 0.95rem var(--font-head); color: var(--gold); white-space: nowrap; }
.plan__disc dd.nd { color: var(--faint); }
.plan__extra { margin: auto 0 18px; padding-top: 6px; font-size: 0.9rem; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; }
.plan__extra strong { color: var(--text); font-family: var(--font-head); }
@media (max-width: 980px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; gap: 34px; } }

.sin-zona {
  margin-top: 34px; padding: 28px 30px; border-radius: var(--radius);
  border: 1px dashed var(--line-strong); background: rgba(0, 14, 20, 0.45);
  display: grid; grid-template-columns: 0.8fr 1.4fr 1fr; gap: 28px; align-items: center;
}
.sin-zona__intro h3 { font: 300 1.5rem/1 var(--font-head); letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 10px; }
.sin-zona__intro p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.sin-zona__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sin-zona__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.sin-zona__list li:last-child { border-bottom: 0; }
.sin-zona__list strong { font: 600 1.2rem var(--font-head); color: var(--gold); white-space: nowrap; }
.sin-zona__list small { font: 500 0.75rem var(--font-body); color: var(--faint); margin-right: 4px; }
.sin-zona__cta p { font-size: 0.86rem; color: var(--muted); margin-bottom: 14px; }
@media (max-width: 980px) { .sin-zona { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; gap: 18px; } }

/* ---------- Contacto ---------- */
.contact { background: radial-gradient(ellipse 60% 70% at 85% 30%, rgba(252, 198, 136, 0.08), transparent 70%), radial-gradient(ellipse 50% 60% at 10% 80%, rgba(97, 194, 200, 0.08), transparent 70%); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; gap: 36px; } }
.contact__list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 16px; }
.contact__list li { display: flex; align-items: center; gap: 14px; color: var(--text); }
.contact__list svg { width: 40px; height: 40px; padding: 10px; flex: none; border-radius: 12px; background: var(--grad-soft); border: 1px solid var(--line-strong); fill: none; stroke: var(--teal-soft); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact__list a { color: var(--text); text-decoration: none; font-weight: 600; }
.contact__list a:hover { color: var(--gold); }
.contact__form { padding: 32px; }
.contact__form.is-highlight { animation: glow 1.8s ease 2; }
@keyframes glow { 50% { box-shadow: 0 0 0 3px rgba(252, 198, 136, 0.5), 0 0 60px -10px rgba(252, 198, 136, 0.5); } }

.rgpd { margin: 4px 0 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(0, 14, 20, 0.45); border: 1px solid var(--line); font-size: 0.74rem; line-height: 1.45; color: var(--faint); }
.rgpd__titulo { margin: 0 0 6px; font-weight: 700; color: var(--muted); letter-spacing: 0.02em; }
.rgpd dl { margin: 0; display: grid; gap: 3px; }
.rgpd dl div { display: grid; grid-template-columns: 112px 1fr; gap: 8px; }
.rgpd dt { font-weight: 700; color: var(--muted); }
.rgpd dd { margin: 0; }
@media (max-width: 420px) { .rgpd dl div { grid-template-columns: 1fr; gap: 0; } }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 22px; font-size: 0.9rem; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--teal); }
.hp { position: absolute; left: -9999px; }

.form-ok { text-align: center; padding: 30px 10px; }
.form-ok:focus { outline: none; }
.form-ok__icon { width: 70px; height: 70px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #01161e; font-size: 2rem; font-weight: 700; }
.form-ok p { color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding: 70px 0 96px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 0.8fr; gap: 40px; }
.footer__brand img { width: 220px; height: auto; margin-bottom: 18px; }
.footer__brand p { color: var(--muted); font-size: 0.93rem; max-width: 36ch; }
.footer h4 { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer li, .footer address { color: var(--muted); font-size: 0.93rem; font-style: normal; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--gold); }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-strong); }
.social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--faint); }
.footer__bottom p { margin: 0; }
.footer__bottom a { color: var(--faint); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } .footer { padding-bottom: 100px; } }

/* ---------- Botones flotantes (WhatsApp; aquí se pueden añadir más redes) ---------- */
.float-social { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.float-btn {
  position: relative; display: flex; align-items: center; justify-content: flex-end;
  height: 56px; min-width: 56px; padding: 0 14px; border-radius: 999px;
  color: #fff; text-decoration: none;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6), 0 0 0 4px rgba(1, 22, 30, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.float-btn svg { width: 28px; height: 28px; flex: none; }
.float-btn__label { font-weight: 700; font-size: 0.95rem; max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width 0.35s ease, margin 0.35s ease; }
.float-btn:hover, .float-btn:focus-visible { color: #fff; transform: translateY(-3px); }
.float-btn:hover .float-btn__label, .float-btn:focus-visible .float-btn__label { max-width: 120px; margin-right: 10px; }
.float-btn--wa { height: 60px; min-width: 60px; padding: 0 16px; background: #25d366; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.55), 0 0 0 4px rgba(1, 22, 30, 0.6); }
.float-btn--wa svg { fill: currentColor; }
.float-btn--wa::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25d366; animation: wa-ping 2.6s ease-out infinite; }
@keyframes wa-ping { from { transform: scale(1); opacity: 0.7; } to { transform: scale(1.35); opacity: 0; } }
@media (max-width: 520px) {
  .float-social { right: 16px; bottom: 16px; gap: 10px; }
  .float-btn { height: 50px; min-width: 50px; padding: 0 13px; }
  .float-btn--wa { height: 56px; min-width: 56px; padding: 0 14px; }
}

/* ---------- Revelado al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   TRÁILER
   ========================================================= */
.trailer {
  position: fixed; inset: 0; z-index: 1000;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, #06303d 0%, #01161e 45%, #000 100%);
  color: var(--text); overflow: hidden;
  opacity: 0; transition: opacity 0.5s ease;
}
.trailer.is-open { opacity: 1; }
.trailer__bar { position: absolute; left: 0; right: 0; height: 0; background: #000; z-index: 3; transition: height 0.9s cubic-bezier(0.7, 0, 0.2, 1); }
.trailer__bar--top { top: 0; }
.trailer__bar--bottom { bottom: 0; }
.trailer.is-open .trailer__bar { height: 9vh; }
.trailer__bar { transition-duration: 0.6s; }
.trailer__grain {
  position: absolute; inset: -50%; z-index: 4; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.8s steps(4) infinite;
}
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }

/* Fondo aéreo real (ortofoto PNOA del punto analizado o vídeo propio) */
.trailer__aereo { position: absolute; inset: 0; z-index: 1; overflow: hidden; opacity: 0; transition: opacity 0.9s ease; }
.trailer.is-open .trailer__aereo { opacity: 1; }
.trailer.is-open .trailer__aereo.is-dim { opacity: 0.3; }
.trailer__aereo::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 46% at 50% 47%, rgba(1, 22, 30, 0.82) 0%, rgba(1, 22, 30, 0.55) 62%, rgba(0, 0, 0, 0.78) 100%),
    linear-gradient(135deg, rgba(97, 194, 200, 0.16), rgba(252, 198, 136, 0.12));
}
.aereo { position: absolute; inset: 0; filter: saturate(0.85) contrast(1.06); }
.aereo__mosaico { position: absolute; display: grid; grid-template-columns: repeat(8, 256px); transform: scale(var(--s, 1)); will-change: transform; }
.aereo__mosaico img { display: block; width: 256px; height: 256px; opacity: 0; transition: opacity 0.6s ease; }
.aereo__mosaico img.is-ok { opacity: 1; }
.aereo.is-flying .aereo__mosaico { animation: vuelo-dron 20s linear forwards; }
@keyframes vuelo-dron {
  from { transform: scale(var(--s, 1)) rotate(-4deg) translate(1.5%, 1%); }
  to { transform: scale(calc(var(--s, 1) * 1.4)) rotate(3deg) translate(-1.5%, -1%); }
}
.aereo__video { width: 100%; height: 100%; object-fit: cover; }

.trailer__rec { position: absolute; z-index: 6; top: calc(4.5vh - 9px); left: 22px; margin: 0; display: flex; align-items: center; gap: 8px; font: 600 0.72rem/18px var(--font-head); letter-spacing: 0.18em; color: rgba(234, 243, 244, 0.75); }
.trailer__rec i { width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; animation: rec 1s steps(2) infinite; }
@keyframes rec { 50% { opacity: 0.2; } }
.trailer__credito { position: absolute; z-index: 6; right: 18px; bottom: calc(4.5vh - 7px); margin: 0; font-size: 0.66rem; line-height: 14px; color: rgba(234, 243, 244, 0.45); }

.trailer__stage { position: absolute; inset: 9vh 0; z-index: 2; display: grid; place-items: center; padding: 20px 24px 120px; cursor: pointer; }
.trailer__stage.is-final { cursor: default; }

.scene { grid-area: 1 / 1; width: 100%; max-width: 900px; text-align: center; opacity: 0; transform: scale(1.05); filter: blur(5px); transition: opacity 0.4s ease, transform 1.6s cubic-bezier(0.2, 0.6, 0.2, 1), filter 0.4s ease; }
.scene.is-in { opacity: 1; transform: scale(1); filter: none; }
.scene.is-out { opacity: 0; transform: scale(0.97); filter: blur(4px); transition-duration: 0.3s; }
.scene__kicker, .scene__title, .scene__sub, .scene__coords, .scene__text { text-shadow: 0 2px 22px rgba(0, 0, 0, 0.6); }

.scene__kicker { font: 600 clamp(0.72rem, 1.3vw, 0.85rem) var(--font-head); letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.scene__title { font: 300 clamp(2rem, 6vw, 4.6rem)/1.08 var(--font-head); letter-spacing: 0.01em; margin: 0 0 18px; }
.scene__title strong { font-weight: 600; }
.scene__title em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }
.scene__sub { font-size: clamp(1rem, 2vw, 1.35rem); color: var(--muted); margin: 0; }
.scene__coords { font: 400 clamp(0.95rem, 2vw, 1.25rem) var(--font-head); letter-spacing: 0.22em; color: var(--teal-soft); margin: 0 0 24px; }
.scene__mark { width: min(230px, 50vw); height: auto; margin: 0 auto 26px; opacity: 0.95; }

.scene--hallazgo { --c: var(--teal); }
.scene--hallazgo.nivel-alto { --c: var(--coral); }
.scene--hallazgo.nivel-medio { --c: var(--gold); }
.scene__icon { width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); box-shadow: 0 0 60px -10px var(--c); }
.scene__icon svg { width: 34px; height: 34px; fill: none; stroke: var(--c); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.scene--hallazgo .scene__kicker { color: var(--c); }
.scene--hallazgo .scene__title { font-size: clamp(1.8rem, 5vw, 3.8rem); }
.scene__text { font-size: clamp(1rem, 1.9vw, 1.3rem); color: var(--text); max-width: 46ch; margin: 0 auto 22px; opacity: 0.9; }
.scene__org { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; margin: 0; padding: 10px 20px; border-radius: 22px; border: 1px solid var(--line-strong); font-weight: 700; }
.scene__org span { font-weight: 500; color: var(--muted); }

.scene__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px auto 0; max-width: 720px; list-style: none; padding: 0; }
.scene__chips li { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(97, 194, 200, 0.06); font-weight: 600; opacity: 0; transform: translateY(10px); animation: chip-in 0.35s ease forwards; animation-delay: calc(0.15s + var(--i) * 0.12s); }
@keyframes chip-in { to { opacity: 1; transform: none; } }

.final-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 auto 34px; max-width: 820px; }
.final-stats div { padding: 16px 10px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(0, 14, 20, 0.55); }
.final-stats strong { display: block; font: 600 clamp(1.5rem, 3.6vw, 2.4rem)/1.1 var(--font-head); color: var(--gold); }
.final-stats span { font-size: 0.82rem; color: var(--muted); }
@media (max-width: 640px) { .final-stats { grid-template-columns: repeat(2, 1fr); } }
.scene__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

.trailer__hud { position: absolute; left: 0; right: 0; bottom: calc(9vh + 18px); z-index: 5; display: grid; gap: 14px; padding: 0 24px; max-width: 760px; margin: 0 auto; }
.pereza { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; font: 600 0.78rem var(--font-head); letter-spacing: 0.16em; text-transform: uppercase; }
.pereza__label { color: var(--muted); }
.pereza__track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.pereza__fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--gold) 60%, var(--coral)); transition: width 0.6s cubic-bezier(0.3, 0.7, 0.2, 1); }
.pereza__value { color: var(--gold); min-width: 9ch; text-align: right; }
@media (max-width: 520px) { .pereza { grid-template-columns: 1fr auto; } .pereza__track { grid-column: 1 / -1; grid-row: 2; } }

.trailer__progress { display: flex; gap: 5px; }
.trailer__progress span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.trailer__progress span::after { content: ""; display: block; height: 100%; width: 0; background: var(--text); }
.trailer__progress span.is-done::after { width: 100%; }
.trailer__progress span.is-active::after { animation: fill-seg var(--dur, 3s) linear forwards; }
@keyframes fill-seg { to { width: 100%; } }

.trailer__skip { position: absolute; top: calc(9vh + 18px); right: 22px; z-index: 6; padding: 9px 18px; border-radius: 999px; background: rgba(0, 0, 0, 0.45); border: 1px solid var(--line-strong); color: var(--text); font: 600 0.85rem var(--font-body); cursor: pointer; }
.trailer__skip:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .scene { filter: none; transform: none; }
  .scene__chips li { opacity: 1; transform: none; }
}

/* ---------- Página legal ---------- */
.legal { padding: calc(var(--nav-h) + 60px) 0 90px; }
.legal article { max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.5rem; margin-top: 2.2em; }
.legal h3 { font-size: 1.08rem; margin: 1.8em 0 0.6em; color: var(--text); }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; }
.legal__fecha { font-size: 0.85rem; color: var(--faint) !important; }
.legal__indice { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 10px; }
.legal__indice a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.legal__datos { list-style: none; padding: 18px 20px !important; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.legal__volver { margin-top: 40px; }

/* =========================================================
   Páginas de servicio (coordinacion-vuelos-dron, earo-dron, sora-dron,
   sts-pdra-dron, certificaciones-dron). Sin JavaScript: todo es HTML y CSS.
   ========================================================= */
.srv-nav { display: flex; align-items: center; gap: 24px; }
.srv-nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; opacity: 0.85; transition: opacity 0.2s, color 0.2s; }
.srv-nav a:not(.btn):hover { opacity: 1; color: var(--gold); }
@media (max-width: 760px) { .srv-nav a:not(.btn) { display: none; } }

.srv-hero {
  padding: calc(var(--nav-h) + 48px) 0 60px;
  background: radial-gradient(900px 420px at 88% -10%, rgba(97, 194, 200, 0.16), transparent 65%), linear-gradient(180deg, var(--bg-deep), var(--bg));
  border-bottom: 1px solid var(--line);
}
.migas { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.85rem; color: var(--faint); }
.migas li + li::before { content: "/"; margin-right: 6px; }
.migas a { color: var(--muted); text-decoration: none; }
.migas a:hover { color: var(--gold); }
.srv-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 600; max-width: 22ch; }
.srv-hero .lead { margin-bottom: 30px; }
.srv-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.srv-datos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 44px 0 0; max-width: 900px; }
.srv-datos div { padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(5, 34, 45, 0.55); }
.srv-datos dt { font: 600 0.7rem var(--font-head); letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.srv-datos dd { margin: 0; font: 600 1.02rem/1.35 var(--font-head); color: var(--text); }
@media (max-width: 760px) { .srv-datos { grid-template-columns: 1fr; } }

.srv-cuerpo { padding: clamp(56px, 8vw, 90px) 0; }
.srv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; }
.srv-texto { max-width: 720px; }
.srv-texto h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin-top: 1.9em; }
.srv-texto > h2:first-child { margin-top: 0; }
.srv-texto p, .srv-texto li { color: var(--muted); }
.srv-texto strong { color: var(--text); }
.srv-texto ul, .srv-texto ol { padding-left: 1.2em; margin: 0 0 1.2em; display: grid; gap: 10px; }
.srv-lista { list-style: none; padding-left: 0 !important; }
.srv-lista li { position: relative; padding-left: 30px; }
.srv-lista li::before { content: ""; position: absolute; left: 3px; top: 0.5em; width: 12px; height: 7px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.srv-pasos { list-style: none; padding-left: 0 !important; counter-reset: paso; gap: 14px !important; }
.srv-pasos li { counter-increment: paso; position: relative; padding: 16px 18px 16px 64px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(5, 34, 45, 0.55); }
.srv-pasos li::before { content: counter(paso, decimal-leading-zero); position: absolute; left: 16px; top: 15px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); font: 600 0.8rem var(--font-head); color: var(--teal-soft); }
.srv-nota { padding: 20px 22px; margin: 1.8em 0; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--grad-soft), var(--surface); }
.srv-nota p { margin: 0; }
.srv-precios { list-style: none; padding: 0 !important; gap: 0 !important; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.srv-precios li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.srv-precios li:last-child { border-bottom: 0; }
.srv-precios strong { font: 600 1.05rem var(--font-head); white-space: nowrap; }
.srv-precios small { color: var(--faint); font-weight: 400; margin-right: 4px; }

.srv-aside { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 14px; }
.srv-card { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: linear-gradient(180deg, var(--surface), rgba(5, 34, 45, 0.55)); }
.srv-card__titulo { font-size: 1.2rem; margin-bottom: 0.5em; }
.srv-card p { color: var(--muted); font-size: 0.95rem; }
.srv-card__contacto { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; font-size: 0.92rem; }
.srv-card__contacto a { color: var(--muted); text-decoration: none; }
.srv-card__contacto a:hover { color: var(--gold); }
.srv-indice { display: grid; gap: 4px; padding: 20px 24px; }
.srv-indice__titulo { font: 600 0.7rem var(--font-head) !important; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal) !important; margin-bottom: 6px !important; }
.srv-indice a { color: var(--muted); text-decoration: none; font-size: 0.93rem; padding: 3px 0; }
.srv-indice a:hover { color: var(--gold); }
@media (max-width: 980px) {
  .srv-grid { grid-template-columns: 1fr; gap: 40px; }
  .srv-aside { position: static; }
  .srv-indice { display: none; }
}

.srv-relacionados .services { grid-template-columns: repeat(3, 1fr); }
.service--link { color: inherit; text-decoration: none; }
.service--link:hover { color: inherit; }
.service--link h3 { color: var(--text); }
.service__mas { margin-top: 10px; font: 600 0.9rem var(--font-head); color: var(--teal-soft); text-decoration: none; }
.service__mas:hover { color: var(--gold); }
.service--link .service__mas { margin-top: auto; padding-top: 14px; }
@media (max-width: 980px) { .srv-relacionados .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .srv-relacionados .services { grid-template-columns: 1fr; } }
