/* ═══════════════════════════════════════════════
   27 TECNOLOGÍA INDUSTRIAL — SHARED STYLES
   Inspired by godaylight.com architecture
═══════════════════════════════════════════════ */


@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@400;500;600;700;800&display=swap');

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:        #FFF7E9;
  --cream-card:   #F5E8D0;
  --dark:         #0D0D0D;
  --accent:       #AAFF00;
  --text-dark:    #111111;
  --text-lite:    #FFFFFF;
  --card-dark:    #1A1A1A;
  --gray:         #6B7280;
  --nav-h:        86px;  /* 14px top offset + ~58px pill height + 14px bottom clearance */
  --max-w:        1160px;
  --pad-x:        clamp(20px, 5vw, 80px);
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
}

html { scroll-behavior: auto; } /* Lenis handles smooth scroll */

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--dark);
  color: var(--text-lite);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; }

/* ── NAVBAR — floating pill style ── */
@keyframes navSlideIn {
  from { transform: translateX(-50%) translateY(-120%); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);     opacity: 1; }
}

.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 760px;
  height: auto;
  z-index: 500;
  background: rgba(16, 16, 16, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 28px rgba(0,0,0,0.45);
  animation: navSlideIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.96);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 8px 40px rgba(0,0,0,0.65);
}

.nav-inner {
  padding: 8px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Logo — blank image placeholder */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo-img {
  display: block;
  height: 38px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}
.footer-logo-img {
  display: block;
  height: 156px;
  width: auto;
  margin-top: -29px;
}
/* Fallback placeholder when no image is loaded */
.nav-logo-placeholder {
  height: 30px;
  width: 100px;
  background: rgba(255,255,255,0.05);
  border: 1.5px dashed rgba(255,255,255,0.12);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
}

/* ── Nav links ── */
.nav-links {
  display: contents; /* unwraps ul so each li is a direct flex child of nav-inner */
  list-style: none;
}
.nav-links > li { position: relative; }
.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 18px;
  border-radius: 100px;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
.nav-link:hover { color: #fff; }
.nav-link.nav-active { color: #fff; }
.nav-link svg { transition: transform 0.2s; }
.nav-links > li:hover .nav-link svg { transform: rotate(180deg); }

/* ── Tubelight highlight pill (relative to nav-inner) ── */
.tube-highlight {
  position: absolute;
  height: calc(100% - 10px);
  top: 5px;
  background: rgba(170,255,0,0.08);
  border-radius: 100px;
  border: 1px solid rgba(170,255,0,0.18);
  transition: left 0.4s cubic-bezier(0.34,1.4,0.64,1),
              width 0.4s cubic-bezier(0.34,1.4,0.64,1),
              opacity 0.25s ease;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}
/* Glow bar at top */
.tube-highlight::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 2px;
  background: var(--accent);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 0 8px 2px rgba(170,255,0,0.7),
              0 0 20px 4px rgba(170,255,0,0.35);
}
/* Radial glow beneath the bar */
.tube-highlight::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 28px;
  background: radial-gradient(ellipse at top, rgba(170,255,0,0.22) 0%, transparent 70%);
  border-radius: 50%;
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #141414;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 16px 8px 8px;
  min-width: 240px;
  opacity: 0;
  pointer-events: none;
  /* 2s delay before hiding, instant show */
  transition: opacity 0.2s 1s, transform 0.2s 1s, pointer-events 0s 1s;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.nav-links > li:hover .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  /* No delay when showing */
  transition: opacity 0.2s 0s, transform 0.2s 0s, pointer-events 0s 0s;
}
.dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.dropdown a:hover { background: rgba(255,255,255,0.07); color: var(--accent); }
.dropdown-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  padding: 8px 16px 4px;
}

/* CTA — Agendar Demo: "Get started" style */
.nav-cta {
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, #AAFF00 0%, #88DD00 100%);
  color: #000;
  padding: 9px 20px;
  border-radius: 100px;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  flex-shrink: 0;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: 0 2px 14px rgba(170,255,0,0.2);
}
.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 5px 20px rgba(170,255,0,0.32);
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.06); }
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: 0.3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 490;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 22px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 26px;
  color: rgba(255,255,255,0.6);
  background: none;
  line-height: 1;
  transition: color 0.2s;
}
.mobile-menu-close:hover { color: var(--text-lite); }

/* ── DRONE SCROLL INDICATOR ── */
.scroll-drone {
  position: fixed;
  right: 20px;
  top: var(--nav-h);
  bottom: 80px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.scroll-drone-track {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: rgba(170,255,0,0.2);
}
.scroll-drone-icon {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  width: 28px;
  height: 28px;
  will-change: transform;
}

/* ── SECTIONS ── */
.section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(100px, 14vh, 200px) var(--pad-x);
  position: relative;
  overflow: hidden;
}
.section.dark { background: var(--dark); color: var(--text-lite); }
.section.cream { background: var(--cream); color: var(--text-dark); }
.section.dark-card { background: var(--card-dark); color: var(--text-lite); }

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

/* ── HERO SECTION ── */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 100px;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.hero.hero-sm {
  min-height: 52vh;
}
.hero-arrow-down {
  animation: arrowBounce 2s ease-in-out infinite;
}
@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(10px); }
}
/* ── TYPOGRAPHY ── */
.eyebrow {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.section.cream .eyebrow { color: var(--accent); }

h1.display {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 96px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin-bottom: 40px;
}
h2.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 68px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 28px;
}
h3.card-title {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--accent);
}
.subtitle {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--gray);
  line-height: 1.8;
  max-width: 560px;
}
.section.dark .subtitle { color: rgba(255,255,255,0.55); }

/* ── BUTTONS ── */
.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #000;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 100px;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-accent:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text-lite);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-row {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* ── IMAGE PLACEHOLDER ── */
.img-placeholder {
  width: 100%;
  border: 2px dashed var(--accent);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 20px;
  color: var(--gray);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  min-height: 240px;
}
.section.dark .img-placeholder { background: #111; }
.section.cream .img-placeholder { background: var(--cream-card); }
.img-placeholder svg { opacity: 0.4; }

/* Foto de equipo en nosotros */
.equipo-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}
.equipo-foto {
  width: 100%;
  min-height: 400px;
  object-fit: cover;
  display: block;
}
.equipo-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,13,13,0.15) 0%,
    rgba(13,13,13,0.0) 40%,
    rgba(13,13,13,0.55) 100%
  );
  pointer-events: none;
}

/* ── SPLIT LAYOUT (text + image) ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

/* ── FEATURE SECTION (cinematic 45/55 split) ── */
.feature-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 45% 55%;
  overflow: hidden;
  position: relative;
}
.feature-section.reverse {
  direction: rtl;
}
.feature-section.reverse > * { direction: ltr; }
.feature-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(80px, 10vw, 160px) clamp(40px, 5vw, 80px);
}
.feature-section.dark { background: var(--dark); color: var(--text-lite); }
.feature-section.cream { background: var(--cream); color: var(--text-dark); }
.feature-section.dark .feature-text .subtitle { color: rgba(255,255,255,0.55); }
.feature-section.cream .feature-text .subtitle { color: var(--gray); }
.feature-visual {
  position: relative;
  min-height: 600px;
}
.feature-visual .img-placeholder {
  position: absolute;
  inset: 0;
  border: none;
  border-radius: 0;
  min-height: 100%;
  height: 100%;
  padding: 0;
}
.feature-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feature-section.dark .feature-visual .img-placeholder {
  background: #111;
  border-color: transparent;
}
.feature-section.cream .feature-visual .img-placeholder {
  background: #E8D4B0;
  border-color: transparent;
}

/* ── HOW SECTION (sticky scroll) ── */
.how-section {
  background: var(--dark);
  color: var(--text-lite);
}
.how-new-header {
  text-align: center;
  max-width: min(1200px, 90vw);
  margin: 0 auto;
  padding: clamp(72px, 7vw, 96px) var(--pad-x) clamp(8px, 1vw, 16px);
  flex-shrink: 0;
}
.how-new-header .section-title { margin-bottom: 0; }

/* ── 3D Gallery (desktop) ── */
.how-gallery-scroll {
  height: 420vh;
  position: relative;
}
.how-gallery-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  perspective: 2000px;
  overflow: hidden;
}
.how-gallery-scene {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.how-gallery-ring {
  position: relative;
  transform-style: preserve-3d;
  width: 0;
  height: 0;
}
.how-gcard {
  position: absolute;
  width: 480px;
  height: 440px;
  margin-left: -240px;
  margin-top: -220px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
  background: var(--card-dark);
  transition: opacity 0.3s linear;
}
.how-gcard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.how-gcard-overlay {
  position: absolute;
  inset: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(to bottom, rgba(15,15,15,0.95) 0%, rgba(0,0,0,0.6) 30%, transparent 55%),
    linear-gradient(to top,    rgba(15,15,15,0.95) 0%, rgba(0,0,0,0.6) 30%, transparent 55%);
  color: #fff;
}
.how-gcard-num {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.how-gcard-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.15;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}
.how-gcard-desc {
  font-size: 21px;
  color: #fff;
  line-height: 1.55;
  margin-top: auto;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

/* ── Mobile fallback ── */
.how-steps-mobile {
  display: none;
}
.how-mobile-header {
  text-align: center;
  padding: 48px var(--pad-x) 32px;
}
.how-step-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--card-dark);
}
.how-step-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.how-step-card-body {
  padding: 20px;
}
.how-step-card-body h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 8px 0 6px;
}
.how-step-card-body p {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}
@media (max-width: 1023px) {
  .how-gallery-scroll { display: none; }
  .how-steps-mobile   { display: block; }
}
.how-text {
  padding: clamp(100px, 12vw, 160px) clamp(40px, 5vw, 80px);
}
.how-text .steps { margin-top: 56px; }
.how-text .step-item {
  cursor: pointer;
  transition: opacity 0.35s ease, background 0.25s ease, border-color 0.25s ease;
  border-left: 3px solid transparent;
  padding-left: 20px;
  margin-left: -23px;
  border-radius: 0 10px 10px 0;
}
.how-text .step-item:hover {
  opacity: 0.85;
  background: rgba(169, 240, 15, 0.05);
  border-left-color: rgba(169, 240, 15, 0.45);
}
.how-text .step-item.how-active {
  opacity: 1;
  background: rgba(169, 240, 15, 0.07);
  border-left-color: var(--accent);
}
.how-text .step-item:not(.how-active) { opacity: 0.4; }
.how-sticky {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow: hidden;
}
.how-img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
}
.how-img.active { opacity: 1; }
.how-img .img-placeholder {
  position: absolute;
  inset: 0;
  border: none;
  border-radius: 0;
  min-height: 100%;
  height: 100%;
  background: #111;
  padding: 0;
}
.how-step-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.step-mobile-photo { display: none; }

/* ── HOW MOBILE CAROUSEL ── */
.how-mobile-carousel { display: none; }
@media (max-width: 768px) {
  .how-mobile-carousel {
    display: block;
    margin-top: 32px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
  }
  .how-carousel-track {
    display: flex;
    width: 400%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
  }
  .how-carousel-slide {
    flex: 0 0 25%;
    overflow: hidden;
  }
  .how-carousel-slide img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
  }
  .how-carousel-slide .how-step-card-body {
    padding: 20px var(--pad-x) 24px 28px;
  }
  .how-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 14px 0 0;
  }
  .how-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: background 0.3s, width 0.3s;
  }
  .how-dot.active {
    background: #AAFF00;
    width: 20px;
    border-radius: 3px;
  }
}

/* ── 3-COLUMN PROBLEM BLOCKS ── */
.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
}
.col-block { border-top: 1px solid rgba(0,0,0,0.12); padding-top: 24px; }
.section.dark .col-block { border-top-color: rgba(255,255,255,0.1); }
.col-block h4 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.col-block p { font-size: 16px; color: var(--gray); line-height: 1.7; }
.section.dark .col-block p { color: rgba(255,255,255,0.5); }
.col-block-num {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ── CAPACIDADES: imagen izquierda / texto derecha ── */
.cap-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.cap-item:first-of-type { border-top: none; }
.cap-item--reverse { direction: rtl; }
.cap-item--reverse > * { direction: ltr; }
.cap-icon {
  margin-bottom: 20px;
}
.cap-visual { position: relative; }
.cap-photo {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.cap-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.cap-text h3 {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;
  color: var(--text-lite);
  line-height: 1.2;
  margin-bottom: 6px;
}
.cap-sub {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 24px;
  opacity: 0.8;
}
.cap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cap-list li {
  font-size: 15px;
  color: #fff;
  line-height: 1.65;
  padding-left: 20px;
  position: relative;
}
.cap-list li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
  top: 2px;
}
@media (max-width: 768px) {
  .cap-item { grid-template-columns: 1fr; gap: 32px; }
}

/* ── FLUJO GRID 4×1 (inspecciones) ── */
.flujo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid rgba(170,255,0,0.15);
}

/* ── FLUJO WAVE ── */
/* ── Flujo wave scroll animation ── */
.flujo-path-anim {
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
}
.flujo-step-hidden {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1), transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.flujo-step-hidden.flujo-step-vis {
  opacity: 1;
  transform: translateY(0);
}
/* flujo-wave-step past classes override flujo-step-vis transform on mobile */
@media (max-width: 768px) {
  /* overflow:hidden en .section rompe position:sticky — lo removemos para las secciones con sticky cards */
  #flujo-section { overflow: visible; }
  #como-funciona-section { overflow: visible; padding-top: 60px; }
  /* Como-steps sticky cards en móvil */
  #como-funciona-section .como-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    padding-bottom: 40px;
    overflow: visible;
    margin-top: 16px;
    border: none;
    border-radius: 0;
  }
  #como-funciona-section .como-step {
    position: sticky;
    top: 252px;
    background: var(--card-dark);
    border-radius: 16px;
    margin-bottom: 12px;
    padding: 20px 20px 24px;
    border-right: none !important;
    border-bottom: none !important;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 4px 32px rgba(0,0,0,0.4);
  }
  #como-funciona-section .como-step:nth-child(1) { z-index: 1; }
  #como-funciona-section .como-step:nth-child(2) { z-index: 2; }
  #como-funciona-section .como-step:nth-child(3) { z-index: 3; }
  #como-funciona-section .como-step.past-1 { transform: scale(0.92); transform-origin: top center; }
  #como-funciona-section .como-step.past-2 { transform: scale(0.84); transform-origin: top center; }
  /* Header sticky — se queda visible mientras las cards hacen transición */
  .flujo-header {
    position: sticky;
    top: 82px;
    z-index: 10;
    padding-bottom: 20px;
    background: var(--dark);
  }
  .flujo-wave-step.flujo-step-vis.past-1 { transform: scale(0.92); transform-origin: top center; }
  .flujo-wave-step.flujo-step-vis.past-2 { transform: scale(0.84); transform-origin: top center; }
  .flujo-wave-step.flujo-step-vis.past-3 { transform: scale(0.76); transform-origin: top center; }
}

.flujo-wave-wrap {
  position: relative;
  margin-top: 64px;
  left: 50%;
  margin-left: -50vw;
  width: 100vw;
}
.flujo-wave-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 190px;
  pointer-events: none;
  overflow: visible;
}
.flujo-wave-steps {
  display: flex;
  gap: 0;
}
.flujo-wave-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px 40px;
}
.flujo-icon-bubble {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #111;
  border: 1.5px solid rgba(170,255,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--icon-mt, 0px);
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 18px rgba(170,255,0,0.18), 0 0 40px rgba(170,255,0,0.07);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .flujo-wave-wrap {
    left: 0;
    margin-left: 0;
    width: 100%;
  }
  .flujo-wave-svg { display: none; }
  .flujo-wave-steps {
    flex-direction: column;
    gap: 0;
    padding: 0 var(--pad-x);
    padding-bottom: 40px;
  }
  .flujo-wave-step {
    --icon-mt: 0px !important;
    padding: 20px 20px 24px;
    align-items: flex-start;
    text-align: left;
    background: var(--card-dark);
    border-radius: 16px;
    margin-bottom: 12px;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 4px 32px rgba(0,0,0,0.4);
  }
  .flujo-wave-step:nth-child(1) { top: 370px; z-index: 1; }
  .flujo-wave-step:nth-child(2) { top: 370px; z-index: 2; }
  .flujo-wave-step:nth-child(3) { top: 370px; z-index: 3; }
  .flujo-wave-step:nth-child(4) { top: 370px; z-index: 4; }
  .flujo-wave-step .flujo-icon-bubble { margin-top: 0 !important; margin-bottom: 4px; }
  .flujo-num { font-size: 11px; }
  .flujo-title { font-size: 15px; font-weight: 700; margin: 0; }
  .flujo-desc { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.5; margin: 0; }
}
.flujo-step {
  padding: 40px 28px 40px;
  border-right: 1px solid rgba(170,255,0,0.15);
  text-align: center;
}
.flujo-step:last-child { border-right: none; }
.flujo-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.flujo-num {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(170,255,0,0.4);
  margin-bottom: 12px;
}
.flujo-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-lite);
  line-height: 1.3;
  margin-bottom: 12px;
}
.flujo-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}
@media (max-width: 768px) {
  .flujo-grid { grid-template-columns: repeat(2, 1fr); }
  .flujo-step:nth-child(2) { border-right: none; }
  .flujo-step:nth-child(3) { border-top: 1px solid rgba(170,255,0,0.15); }
  .flujo-step:nth-child(4) { border-top: 1px solid rgba(170,255,0,0.15); }
}

/* ── SOLUCIÓN GRID 2×2 ── */
.solucion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 0;
}
.solucion-card {
  padding: 40px 36px;
  background: var(--card-dark);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.solucion-card:hover {
  background: rgba(170,255,0,0.04);
  border-color: rgba(170,255,0,0.2);
}
.solucion-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
}
.solucion-icon svg { width: 100%; height: 100%; }
.solucion-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-lite);
  margin-bottom: 12px;
  line-height: 1.35;
}
.solucion-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
}
@media (max-width: 768px) {
  .solucion-grid { grid-template-columns: 1fr; }
}

/* ── PASOS LIST (5-step vertical) ── */
.pasos-list {
  display: flex;
  flex-direction: column;
  margin-top: 48px;
}
.paso-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0 28px;
  position: relative;
}
.paso-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.paso-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(170,255,0,0.08);
  border: 1px solid rgba(170,255,0,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.paso-icon-wrap svg {
  width: 26px;
  height: 26px;
}
.paso-line {
  width: 1px;
  flex: 1;
  min-height: 32px;
  background: linear-gradient(to bottom, rgba(170,255,0,0.25) 0%, rgba(170,255,0,0.04) 100%);
  margin: 8px 0;
}
.paso-item:last-child .paso-line { display: none; }
.paso-content {
  padding-bottom: 52px;
}
.paso-item:last-child .paso-content { padding-bottom: 0; }
.paso-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.paso-title {
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 14px;
}
.paso-desc {
  color: rgba(255,255,255,0.55);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 680px;
}
/* Example box */
.paso-example {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 16px;
  max-width: 680px;
}
.paso-example-label {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.paso-example-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}
.paso-example-row:last-child { margin-bottom: 0; }
.paso-dot {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  flex-shrink: 0;
}
/* Tags */
.paso-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.paso-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(170,255,0,0.07);
  border: 1px solid rgba(170,255,0,0.18);
  border-radius: 100px;
  padding: 5px 14px;
  white-space: nowrap;
}
/* Detection grid */
.paso-detect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  max-width: 680px;
}
.paso-detect-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.3;
}
.paso-detect-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: rgba(255,255,255,0.45);
}
/* Alert cards */
.paso-alerts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  max-width: 680px;
}
.paso-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: 10px;
  padding: 13px 18px;
}
.paso-alert.critical {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
}
.paso-alert.warning {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
}
.paso-alert.info {
  background: rgba(96,165,250,0.08);
  border: 1px solid rgba(96,165,250,0.18);
}
.paso-alert-icon { flex-shrink: 0; margin-top: 2px; }
.paso-alert-icon svg { width: 16px; height: 16px; }
.paso-alert strong {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 2px;
}
.paso-alert span {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
@media (max-width: 768px) {
  .paso-item { grid-template-columns: 44px 1fr; gap: 0 16px; }
  .paso-icon-wrap { width: 44px; height: 44px; }
  .paso-detect-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .paso-detect-grid { grid-template-columns: 1fr; }
}

/* ── FLOW SCROLL STICKY WRAPPER ── */
.flow-scroll-outer {
  height: 580vh; /* 100vh sticky + 5 pasos × 80vh + 80vh buffer final */
  background: var(--dark);
}
.flow-scroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.flow-scroll-sticky .section {
  padding-top: 0;
  padding-bottom: 0;
}

/* ── FLOW ROW HIGHLIGHT (scroll-driven) ── */
.flow-grid.hl-ready .flow-row {
  opacity: 0.2;
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
              background 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.flow-grid.hl-ready .flow-row.flow-active {
  opacity: 1;
  background: rgba(170,255,0,0.04);
}
.flow-grid.hl-ready .flow-row.flow-active .flow-num {
  color: var(--accent);
}
.flow-grid.hl-ready .flow-row .flow-icon-wrap {
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1),
              background 1.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.flow-grid.hl-ready .flow-row.flow-active .flow-icon-wrap {
  background: rgba(170,255,0,0.14);
  border-color: rgba(170,255,0,0.4);
  transform: scale(1.1);
}
@media (max-width: 900px) {
  .flow-scroll-outer { height: auto; }
  .flow-scroll-sticky { position: static; height: auto; }
  .flow-grid.hl-ready .flow-row { opacity: 1; }
}

/* ── FLUJO OPERATIVO (1×5 subgrid — alineación perfecta) ── */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  transition: grid-template-columns 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  /* 5 filas compartidas: num · icono · título · descripción · badge */
  grid-template-rows: auto auto auto 1fr auto;
  margin-top: 48px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  overflow: hidden;
}
.flow-row {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 5;
  padding: 32px 24px;
  border-right: 1px solid rgba(255,255,255,0.07);
  transition: background 0.2s ease;
  align-items: start;
  gap: 0;
}
.flow-row:last-child { border-right: none; }
.flow-row:hover { background: rgba(170,255,0,0.03); }
.flow-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  padding-bottom: 20px;
}
.flow-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.flow-icon-wrap svg { width: 20px; height: 20px; }
.flow-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.3;
}
.flow-desc {
  font-size: 13px;
  color: #fff;
  line-height: 1.65;
}
.flow-badge {
  display: inline-block;
  align-self: end;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(170,255,0,0.07);
  border-radius: 4px;
  padding: 3px 8px;
  margin-top: 16px;
  line-height: 1.4;
}
@media (max-width: 900px) {
  .flow-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto 1fr auto
                        auto auto auto 1fr auto;
  }
  .flow-row:nth-child(3) { border-right: none; }
  .flow-row:nth-child(4), .flow-row:nth-child(5) {
    border-top: 1px solid rgba(255,255,255,0.07);
  }
  .flow-row:nth-child(4) { grid-row: span 5; }
  .flow-row:nth-child(5) { grid-row: span 5; }
}
@media (max-width: 768px) {
  .flow-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 600px) {
  .flow-grid {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto !important;
  }
  .flow-row {
    display: flex !important;
    flex-direction: column;
    grid-row: auto !important;
    border-top: none !important;
    border-right: 1px solid rgba(255,255,255,0.07);
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .flow-row .flow-badge { margin-top: auto; padding-top: 16px; }
  .flow-row:nth-child(3) { border-right: 1px solid rgba(255,255,255,0.07); }
  .flow-row:nth-child(even) { border-right: none; }
  .flow-row:nth-child(5) {
    grid-column: 1 / -1;
    border-right: none;
  }
}

/* ── STEPS (How it works) ── */
.steps { display: flex; flex-direction: column; gap: 0; margin-top: 56px; }
.step-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  align-items: start;
}
.section.cream .step-item { border-bottom-color: rgba(0,0,0,0.07); }
.step-item:last-child { border-bottom: none; }
.step-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  padding-top: 4px;
}
.step-content h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.02em; }
.step-content p { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.7; }
.section.cream .step-content p { color: var(--gray); }

/* ── CARDS GRID (3-up) ── */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.section.cream .cards-3 {
  background: none;
  border-color: transparent;
}
.card {
  background: var(--card-dark);
  padding: 44px 36px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.07);
  transition: background 0.2s, border-color 0.2s;
}
.card.card-has-img {
  padding: 0;
  display: flex;
  flex-direction: column;
}
.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
  flex-shrink: 0;
}
.card.card-has-img .card-content {
  padding: 16px 36px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card.card-has-img .card-content:first-child {
  padding-bottom: 8px;
}
.card.card-has-img .card-content:last-child {
  padding-top: 8px;
  padding-bottom: 24px;
}
.section.cream .card { background: var(--cream-card); }
.card:hover { background: #222; border-color: rgba(255,255,255,0.12); }
.section.cream .card:hover { background: #EAD9BA; }
.card-icon {
  margin-bottom: 20px;
}
.card-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.card-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.card-body {
  font-size: 16px;
  color: #fff;
  line-height: 1.7;
  margin-bottom: 20px;
}
.section.cream .card-body { color: var(--gray); }
.card-specs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
  margin-top: 20px;
}
.section.cream .card-specs { border-top-color: rgba(0,0,0,0.08); }
.spec-item {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section.cream .spec-item { color: var(--gray); }
.spec-item::before {
  content: '';
  display: block;
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── CARDS 2x2 GRID ── */
.cards-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
}
.section.cream .cards-2x2 {
  background: none;
}

/* ── CARDS 2x3 GRID ── */
.cards-2x3 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, auto 220px auto);
  column-gap: 16px;
  row-gap: 0;
  margin-top: 48px;
}
.cards-2x3 .card.card-has-img {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  margin-bottom: 16px;
}

/* ── CASE STUDIES ── */
.cases-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 56px;
}
.case-card {
  background: var(--card-dark);
  border-radius: 16px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.case-card-body {
  padding: 32px 40px 40px;
}
.section.cream .case-card { background: var(--cream-card); border-color: rgba(0,0,0,0.06); }
.case-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.case-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.02em; }
.case-photo {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.case-card .case-meta { font-size: 12px; color: var(--gray); margin-bottom: 16px; }
.case-card p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.75; margin-bottom: 20px; }
.section.cream .case-card p { color: var(--gray); }
.case-results { display: flex; flex-direction: column; gap: 8px; }
.case-result {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.section.cream .case-result { color: var(--gray); border-bottom-color: rgba(0,0,0,0.07); }
.case-result::before { content: '\2192'; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ── CTA FINAL SECTION ── */
.cta-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(100px, 14vh, 200px) var(--pad-x);
}
.cta-section.dark { background: var(--dark); }
.cta-section.cream { background: var(--cream); }
.cta-inner { max-width: 640px; }
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.cta-inner .cta-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 40px;
}
.cta-section.cream .cta-inner .cta-sub { color: var(--gray); }

/* ── CONTACT FORM ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 80px;
  align-items: start;
}
.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}
.field input,
.field select,
.field textarea {
  background: var(--card-dark);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: var(--text-lite);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}
.section.cream .field input,
.section.cream .field select,
.section.cream .field textarea {
  background: #EDEAE5;
  border-color: rgba(0,0,0,0.1);
  color: var(--text-dark);
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(255,255,255,0.25); }
.section.cream .field input::placeholder,
.section.cream .field textarea::placeholder { color: var(--gray); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent); }
.field select option { background: #1a1a1a; }

.contact-info { padding-top: 40px; }
.contact-info h3 { font-size: 20px; font-weight: 700; margin-bottom: 28px; letter-spacing: -0.02em; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}
.section.cream .contact-item { border-bottom-color: rgba(0,0,0,0.07); color: var(--gray); }
.contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px var(--pad-x) 32px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.85); line-height: 1.75; margin-top: 0px; max-width: 260px; }
.footer-col h5 { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.25); margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li { list-style: none; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.25); }
.social-links { display: flex; gap: 16px; }
.social-links a { font-size: 12px; color: rgba(255,255,255,0.35); transition: color 0.2s; }
.social-links a:hover { color: var(--accent); }

/* ── ANIMATIONS ── */
/* Elements are VISIBLE by default — JS adds .js-ready to body to enable animations */
.anim {
  transition: opacity 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Only hide elements when JS has confirmed it's running */
.js-ready .anim         { opacity: 0; transform: translateY(40px); }
.js-ready .anim.from-left  { transform: translateX(-40px); }
.js-ready .anim.from-right { transform: translateX(40px); }
.js-ready .anim.visible {
  opacity: 1;
  transform: none;
}
.anim-delay-1 { transition-delay: 0.12s; }
.anim-delay-2 { transition-delay: 0.24s; }
.anim-delay-3 { transition-delay: 0.36s; }
.anim-delay-4 { transition-delay: 0.5s; }
.anim-delay-5 { transition-delay: 0.65s; }

/* ── ACCENTS / DECORATIVE ── */
.accent-dot { color: var(--accent); }
.divider { width: 40px; height: 2px; background: var(--accent); margin-bottom: 28px; }
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section.cream .section-label { color: rgba(0,0,0,0.3); }
.hero .section-label { color: #fff; }
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent);
}

/* ── HIGHLIGHT CARD ── */
.highlight-card {
  background: rgba(170,255,0,0.06);
  border: 1px solid rgba(170,255,0,0.2);
  border-radius: 16px;
  padding: 44px 40px;
  margin-top: 24px;
}
.section.cream .highlight-card { background: rgba(170,255,0,0.08); border-color: rgba(170,255,0,0.25); }
.highlight-card p { font-size: 16px; line-height: 1.8; color: rgba(255,255,255,0.75); }
.section.cream .highlight-card p { color: var(--text-dark); }
.highlight-card strong { color: var(--accent); font-weight: 700; }

/* ── HERO FALL-IN ANIMATION ── */
/* El título cae despacio desde arriba */
@keyframes heroFallIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes heroFadeDown {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.intro-hero-title {
  animation: heroFallIn 0.9s ease 0.5s both;
  animation-play-state: paused;
}
.intro-fade {
  animation: heroFadeDown 0.9s ease 0.5s both;
  animation-play-state: paused;
}
/* JS añade .video-ready al hero cuando el video puede reproducirse */
.hero.video-ready .intro-hero-title,
.hero.video-ready .intro-fade {
  animation-play-state: running;
}

/* ── GRID LINES — via ::before pseudo-element (no DOM nodes needed) ── */
.section.cream::before,
.feature-section.cream::before,
.cta-section.cream::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.045) 1px, transparent 1px),
    linear-gradient(to right, rgba(0,0,0,0.045) 1px, transparent 1px),
    linear-gradient(to right, rgba(0,0,0,0.045) 1px, transparent 1px);
  background-size:   25% 100%, 50% 100%, 75% 100%;
  background-position: 25% 0, 50% 0, 75% 0;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}
/* Ensure content inside cream sections sits above grid lines */
.section.cream > .section-inner,
.feature-section.cream > .feature-text,
/* ── STACK SECTION ── */
.stack-section {
  background: var(--dark);
  color: var(--text-lite);
  padding: clamp(80px, 10vw, 140px) var(--pad-x) 0;
}
.stack-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(48px, 6vw, 80px);
}
.stack-header .section-title { color: var(--text-lite); margin-bottom: 0; }
.stack-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
}
.stack-card {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: var(--card-dark);
  box-shadow: 0 4px 60px rgba(0,0,0,0.5);
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  min-height: 560px;
}
@media (min-width: 1024px) {
  .stack-card {
    position: sticky;
    height: 600px;
    flex-direction: row;
    align-items: stretch;
    min-height: unset;
  }
  .stack-card:nth-child(1) { top: 96px;  z-index: 1; }
  .stack-card:nth-child(2) { top: 172px; z-index: 2; }
  .stack-card:nth-child(3) { top: 248px; z-index: 3; }
  .stack-card:nth-child(4) { top: 324px; z-index: 4; }

  /* extra height so cards stay stacked until user scrolls to next section */
  .stack-cards {
    padding-bottom: 12vh;
  }
}
.stack-card.past-1,
.flujo-wave-step.past-1 {
  transform: scale(0.92);
  transform-origin: top center;
}
.stack-card.past-2,
.flujo-wave-step.past-2 {
  transform: scale(0.84);
  transform-origin: top center;
}
.stack-card.past-3,
.flujo-wave-step.past-3 {
  transform: scale(0.76);
  transform-origin: top center;
}
.stack-card-text {
  flex: 1;
  padding: clamp(48px, 6vw, 80px) clamp(40px, 5vw, 72px) clamp(40px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.card-eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.card-eyebrow-row .eyebrow {
  margin-bottom: 0;
}
.btn-accent-sm {
  font-size: 12px;
  padding: 8px 16px;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .card-eyebrow-row {
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
  }
  .card-eyebrow-row .eyebrow {
    flex: 1;
    min-width: 0;
  }
  .btn-accent-sm {
    font-size: 11px;
    padding: 7px 12px;
    margin-top: 2px;
  }
  /* ── Stack cards sticky en móvil ── */
  .stack-card {
    position: sticky;
    height: 480px;
    min-height: unset;
  }
  .stack-card:nth-child(1) { top: 80px;  z-index: 1; }
  .stack-card:nth-child(2) { top: 100px; z-index: 2; }
  .stack-card:nth-child(3) { top: 120px; z-index: 3; }
  .stack-card:nth-child(4) { top: 140px; z-index: 4; }
  .stack-cards { padding-bottom: 10vh; }
  .stack-card-text {
    padding: 28px 24px 16px;
    flex: 0 0 auto;
  }
  .stack-card-text .section-title {
    font-size: clamp(22px, 6vw, 32px);
    margin-bottom: 12px;
  }
  .stack-card-visual {
    flex: 1;
    min-height: 160px;
  }
}
.stack-card-text .section-title {
  font-size: clamp(30px, 3.8vw, 58px);
  margin-bottom: 20px;
}
.stack-card-text .subtitle {
  color: rgba(255,255,255,0.55);
  margin-bottom: 32px;
}
.stack-card-visual {
  flex: 1;
  position: relative;
  min-height: 280px;
}
/* ── Overrides móvil para stack cards (van después de las reglas generales) ── */
@media (max-width: 767px) {
  .stack-card-text .section-title {
    font-size: clamp(20px, 5.5vw, 26px);
    margin-bottom: 10px;
  }
  .stack-card-text .subtitle {
    font-size: 13px;
    margin-bottom: 0;
  }
  .stack-card-visual {
    min-height: 160px;
  }
}
.stack-card-visual .stack-card-radar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.stack-card-visual video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-section.cream > .feature-visual {
  position: relative;
  z-index: 1;
}

/* ── CTA ACCENT (lime green flash) ── */
.cta-section.accent {
  background: var(--accent);
  color: var(--dark);
}
.cta-section.accent .cta-inner h2 { color: var(--dark); }
.cta-section.accent .cta-inner .cta-sub { color: rgba(0,0,0,0.5); }
.cta-section.accent .eyebrow { color: rgba(0,0,0,0.45); }
.cta-section.accent .btn-accent {
  background: var(--dark);
  color: var(--accent);
}
.cta-section.accent .btn-accent:hover { background: #1A1A1A; }

/* ── FILM GRAIN FOOTER ── */
footer {
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.055;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}
footer > * { position: relative; z-index: 1; }

/* ── HOW SECTION — STYLED MOCK VISUALS ── */
/* Base panel backgrounds */
.how-img[data-for="0"] { background: #060E06; }
.how-img[data-for="1"] { background: #07070F; }
.how-img[data-for="2"] { background: #040404; }
.how-img[data-for="3"] { background: #0A0806; }

/* Mock UI container inside each how panel */
.how-mock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 48px;
  overflow: hidden;
}
.how-mock-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}
.how-mock-dots {
  display: flex;
  gap: 6px;
}
.how-mock-dots span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.how-mock-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}
.how-mock-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── MAP GRID (Step 0 — Configuras) ── */
.map-grid {
  flex: 1;
  position: relative;
  border: 1px solid rgba(170,255,0,0.12);
  border-radius: 8px;
  overflow: hidden;
  background: #060E06;
}
.map-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(170,255,0,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(170,255,0,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map-zone {
  position: absolute;
  top: 25%;
  left: 20%;
  width: 55%;
  height: 50%;
  border: 1.5px solid rgba(170,255,0,0.5);
  background: rgba(170,255,0,0.04);
  border-radius: 4px;
}
.map-drone {
  position: absolute;
  top: 38%;
  left: 40%;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(170,255,0,0.15), 0 0 0 12px rgba(170,255,0,0.06);
}
.map-path {
  position: absolute;
  top: 30%;
  left: 25%;
  width: 45%;
  height: 35%;
  border: 1px dashed rgba(170,255,0,0.25);
  border-right: none;
  border-bottom: none;
}
.map-stats {
  display: flex;
  gap: 12px;
}
.map-stat {
  flex: 1;
  background: rgba(170,255,0,0.04);
  border: 1px solid rgba(170,255,0,0.1);
  border-radius: 8px;
  padding: 14px 16px;
}
.map-stat-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  margin-bottom: 2px;
}
.map-stat-lbl {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

/* ── SCHEDULE GRID (Step 1 — Programa) ── */
.sched-header {
  display: grid;
  grid-template-columns: 60px repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 8px;
}
.sched-day {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  text-align: center;
  padding: 6px 0;
}
.sched-body {
  display: grid;
  grid-template-columns: 60px repeat(7, 1fr);
  gap: 2px;
  flex: 1;
}
.sched-time {
  font-size: 9px;
  color: rgba(255,255,255,0.2);
  padding-top: 2px;
  text-align: right;
  padding-right: 8px;
}
.sched-cell {
  background: rgba(255,255,255,0.03);
  border-radius: 3px;
  height: 28px;
}
.sched-cell.mission {
  background: rgba(170,255,0,0.18);
  border-left: 2px solid var(--accent);
  display: flex;
  align-items: center;
  padding: 0 6px;
  font-size: 8px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.sched-cell.mission-alt {
  background: rgba(170,255,0,0.08);
  border-left: 2px solid rgba(170,255,0,0.4);
}

/* ── FLIGHT TELEMETRY (Step 2 — Opera) ── */
.telem-ring {
  width: 180px;
  height: 180px;
  margin: 0 auto 24px;
  position: relative;
  flex-shrink: 0;
}
.telem-ring svg { width: 100%; height: 100%; }
.telem-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.telem-val {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
}
.telem-unit {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}
.telem-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.telem-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 14px;
}
.telem-stat-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-lite);
  letter-spacing: -0.03em;
}
.telem-stat-lbl {
  font-size: 10px;
  color: rgba(255,255,255,0.25);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* ── REPORT DASHBOARD (Step 3 — Reporta) ── */
.report-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(170,255,0,0.07);
  border: 1px solid rgba(170,255,0,0.25);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 16px;
}
.report-alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(170,255,0,0.2);
}
.report-alert-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  flex: 1;
}
.report-alert-time {
  font-size: 11px;
  color: rgba(170,255,0,0.5);
}
.report-chart {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.report-chart-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 4px;
}
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.chart-bar {
  flex: 1;
  background: rgba(170,255,0,0.15);
  border-radius: 3px 3px 0 0;
  min-height: 4px;
  transition: background 0.2s;
}
.chart-bar.accent { background: var(--accent); }
.report-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.report-stat {
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}
.report-stat-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-lite);
  letter-spacing: -0.03em;
}
.report-stat-lbl {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-top: 3px;
}

/* ── FEATURE DRONE PANELS ── */
.feature-drone-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #080808;
  padding: clamp(24px, 4vw, 60px);
  overflow: hidden;
}
.feature-drone-panel svg {
  width: 100%;
  max-width: 480px;
  height: auto;
  overflow: visible;
}
/* Patrol drone (feature S2) */
@keyframes featurePatrolFlight {
  from { offset-distance: 0%; }
  to   { offset-distance: 100%; }
}
.f-patrol-drone {
  offset-path: path("M 440,295 A 195,122 0 0 1 245,173 A 195,122 0 0 1 50,295 A 195,122 0 0 1 245,417 A 195,122 0 0 1 440,295");
  offset-rotate: auto;
  animation: featurePatrolFlight 9s linear infinite;
}
/* Thermal scan line (feature S3) */
@keyframes featureThermalScan {
  0%   { transform: translateY(0px);   opacity: 0.35; }
  85%  { transform: translateY(225px); opacity: 0.15; }
  100% { transform: translateY(225px); opacity: 0; }
}
.f-thermal-scan { animation: featureThermalScan 4s ease-in-out infinite; }
/* Mapping drone grid (feature S4) */
@keyframes featureMappingScan {
  0%   { transform: translate(0px,  0px); }
  12%  { transform: translate(90px, 0px); }
  25%  { transform: translate(90px, 18px); }
  37%  { transform: translate(0px,  18px); }
  50%  { transform: translate(0px,  36px); }
  62%  { transform: translate(90px, 36px); }
  75%  { transform: translate(90px, 54px); }
  87%  { transform: translate(0px,  54px); }
  100% { transform: translate(0px,  0px); }
}
.f-mapping-path { animation: featureMappingScan 14s linear infinite; }


/* ── HERO — VIDEO DE FONDO, TEXTO CENTRADO ── */
.hero.hero-bg-video {
  position: relative;
  min-height: 100vh;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Video de fondo — cubre todo */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Overlay oscuro — empieza en 0.3s, texto entra en 0.5s */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.35) 40%,
    rgba(0,0,0,0.65) 100%
  );
  opacity: 0;
  animation: overlayFadeIn 1.2s ease 0.3s forwards;
}
@keyframes overlayFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Contenido sobre el video */
.hero-center {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: calc(var(--nav-h) + 40px) var(--pad-x) 80px;
}
.hero-center .subtitle {
  margin: 0 auto;
  max-width: 640px;
}
.hero-center h1.display {
  color: #fff;
  text-shadow: 0 2px 32px rgba(0,0,0,0.4);
}
.hero-center .eyebrow {
  color: var(--accent);
}
.hero-center .subtitle {
  color: #fff;
  font-size: clamp(16px, 1.4vw, 20px);
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  white-space: normal;
}

/* Texto empieza invisible y hace fade igual que el overlay */
.hero-center .intro-fade,
.hero-center .intro-hero-title,
.hero-center .btn-row {
  /* Las animaciones de intro se retrasan al mismo tiempo que el overlay */
}

/* hero-center (index.html) — fade in tras video */
.hero-center .intro-hero-title {
  animation: heroFallIn 0.9s ease 0.5s both;
}
.hero-center .intro-fade {
  animation: heroFadeDown 0.9s ease 0.5s both;
}

#droneSVG {
  width: 100%;
  max-width: 540px;
  height: auto;
  overflow: visible;
}

/* ── DRONE SCENE LAYERS ── */
.ds { opacity: 0; transition: opacity 0.9s ease; }
.ds.active { opacity: 1; }

/* Dock lid opens once on load */
@keyframes dockLidOpen {
  from { transform: rotate(0deg); }
  to   { transform: rotate(80deg); }
}
#drone-dock-lid {
  transform-box: fill-box;
  transform-origin: right center;
  animation: dockLidOpen 1.4s cubic-bezier(0.4,0,0.2,1) 0.5s both;
}

/* Drone liftoff from dock */
@keyframes droneLiftoff {
  0%  { transform: translateY(190px); opacity: 0; }
  10% { opacity: 1; }
  100%{ transform: translateY(0px);   opacity: 1; }
}
#drone-intro-group {
  animation: droneLiftoff 2.2s cubic-bezier(0.25,0.46,0.45,0.94) 1.5s both;
}

/* Hover bob — added via JS class after liftoff */
@keyframes droneHoverBob {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-9px); }
}
#drone-intro-group.hovering { animation: droneHoverBob 3s ease-in-out infinite; }
#thermal-drone   { animation: droneHoverBob 2.8s ease-in-out 0.4s infinite; }
#mapping-drone-path > g { animation: droneHoverBob 3.2s ease-in-out 0.8s infinite; }

/* Rotor blade pulse */
@keyframes rotorPulse {
  0%, 100% { opacity: 0.75; }
  50%      { opacity: 0.2; }
}
.drone-rotor {
  transform-box: fill-box;
  transform-origin: center;
  animation: rotorPulse 0.22s linear infinite;
}
.drone-rotor-alt { animation-delay: 0.11s; }

/* Patrol path animation */
@keyframes patrolFlight {
  from { offset-distance: 0%; }
  to   { offset-distance: 100%; }
}
#patrol-drone-group {
  offset-path: path("M 450,295 A 200,125 0 0 1 250,170 A 200,125 0 0 1 50,295 A 200,125 0 0 1 250,420 A 200,125 0 0 1 450,295");
  offset-rotate: auto;
  animation: patrolFlight 9s linear infinite;
}

/* Thermal scan sweep */
@keyframes thermalScanMove {
  0%   { transform: translateY(0px);   opacity: 0.35; }
  85%  { transform: translateY(230px); opacity: 0.15; }
  100% { transform: translateY(230px); opacity: 0; }
}
#thermal-scan-line { animation: thermalScanMove 4s ease-in-out infinite; }

/* Mapping drone grid scan (lawnmower) */
@keyframes mappingDroneScan {
  0%   { transform: translate(0px,  0px); }
  12%  { transform: translate(95px, 0px); }
  25%  { transform: translate(95px, 18px); }
  37%  { transform: translate(0px,  18px); }
  50%  { transform: translate(0px,  36px); }
  62%  { transform: translate(95px, 36px); }
  75%  { transform: translate(95px, 54px); }
  87%  { transform: translate(0px,  54px); }
  100% { transform: translate(0px,  0px); }
}
#mapping-drone-path { animation: mappingDroneScan 14s linear infinite; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { padding-top: 0; }

  /* Feature section stacks vertically */
  .feature-section {
    grid-template-columns: 1fr;
  }
  .feature-section.reverse { direction: ltr; }
  .feature-visual {
    min-height: 400px;
  }
  .feature-visual .img-placeholder {
    position: relative;
    inset: auto;
    min-height: 400px;
    height: 400px;
  }

  /* How section stacks vertically */
  .how-section {
    grid-template-columns: 1fr;
  }
  .how-sticky { display: none; }
  .step-mobile-photo {
    display: block;
    width: 100%;
    border-radius: 10px;
    margin-top: 16px;
    object-fit: cover;
    max-height: 220px;
  }

  /* Hero bg-video responsive */
  .hero-center { max-width: 100%; }
}

@media (max-width: 768px) {
  :root { --nav-h: 72px; }
  .nav { top: 10px; max-width: calc(100% - 20px); }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .cols-3 { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .cards-2x2 { grid-template-columns: 1fr; }
  .cards-2x3 { grid-template-columns: 1fr; }
  .cases-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
  .footer-logo-img {
    height: 64px;
    margin-top: 0;
    flex-shrink: 0;
  }
  .footer-brand p { max-width: none; margin-top: 0; }
  .scroll-drone { display: none; }
  .tube-highlight { display: none; }
  .hero-center { padding-left: 20px; padding-right: 20px; }
  h1.display { font-size: clamp(36px, 9vw, 56px); }
  .feature-text { padding: 60px 24px; }
  .how-text { padding: 60px 24px; }
  .how-sticky { height: 280px; }
  /* Remove full-viewport min-height on mobile — prevents empty space */
  .section { min-height: auto; }
  .desktop-only { display: none; }
  .highlight-card { display: none; }
  /* Hero height on mobile — prevent excessive empty space */
  .hero { min-height: auto; padding-top: 140px; padding-bottom: 80px; }
  .hero.hero-bg-video { min-height: auto; padding-bottom: 80px; }
  /* Radar hero — prevent labels from clipping */
  .antidron-radar { overflow: visible; }
}

/* ── Radar animation (stack-card antidrón) ── */
.stack-card-radar {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #0d1a0d 0%, #0D0D0D 70%);
  border-radius: inherit;
}
.stack-card-radar .radar-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(170,255,0,0.28);
}
.stack-card-radar .radar-circle:nth-child(1) { width: 120px; height: 120px; }
.stack-card-radar .radar-circle:nth-child(2) { width: 240px; height: 240px; border-color: rgba(170,255,0,0.2); }
.stack-card-radar .radar-circle:nth-child(3) { width: 380px; height: 380px; border-color: rgba(170,255,0,0.13); }
.stack-card-radar .radar-circle:nth-child(4) { width: 540px; height: 540px; border-color: rgba(170,255,0,0.08); }
.stack-card-radar .radar-circle:nth-child(5) { width: 720px; height: 720px; border-color: rgba(170,255,0,0.05); }
.stack-card-radar .radar-sweep {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 280deg,
    rgba(170,255,0,0.04) 310deg,
    rgba(170,255,0,0.14) 340deg,
    rgba(170,255,0,0.38) 360deg
  );
  animation: radarSweep 5s linear infinite;
}
.stack-card-radar .radar-sweep-wrap {
  position: absolute;
  width: 360px;
  height: 360px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  overflow: hidden;
}
.stack-card-radar .radar-sweep-wrap .radar-sweep {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.stack-card-radar .radar-sweep-line {
  position: absolute;
  width: 180px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform-origin: left center;
  background: linear-gradient(to right, rgba(170,255,0,0.95), rgba(170,255,0,0));
  box-shadow: 0 0 8px 1px rgba(170,255,0,0.5);
  animation: radarSweepLine 5s linear infinite;
}
@keyframes radarSweepLine {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}
.stack-card-radar .radar-crosshair {
  position: absolute;
  width: 1px;
  height: 200px;
  background: rgba(170,255,0,0.15);
}
.stack-card-radar .radar-crosshair.h {
  width: 200px;
  height: 1px;
}
.stack-card-radar .radar-target {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.stack-card-radar .radar-target-box {
  position: relative;
  width: 54px;
  height: 42px;
  border: 1px solid rgba(170,255,0,0.7);
  border-radius: 2px;
  animation: targetPulse 2.5s ease-in-out infinite;
}
.stack-card-radar .radar-target-box::before,
.stack-card-radar .radar-target-box::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: #aaff00;
  border-style: solid;
}
.stack-card-radar .radar-target-box::before { top: -2px; left: -2px; border-width: 2px 0 0 2px; }
.stack-card-radar .radar-target-box::after  { bottom: -2px; right: -2px; border-width: 0 2px 2px 0; }
.stack-card-radar .radar-target-dot {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  background: #aaff00;
  border-radius: 50%;
  box-shadow: 0 0 10px 3px rgba(170,255,0,0.6);
}
.stack-card-radar .radar-target-label {
  margin-top: 5px;
  font-family: 'Inter', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #aaff00;
  background: rgba(0,0,0,0.6);
  padding: 2px 6px;
  border-radius: 2px;
  white-space: nowrap;
  border: 1px solid rgba(170,255,0,0.3);
}
.stack-card-radar .radar-target-status {
  font-family: 'Inter', monospace;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: rgba(170,255,0,0.6);
  padding: 1px 6px;
  white-space: nowrap;
}
.stack-card-radar .radar-target-a {
  animation: targetMoveA 18s ease-in-out infinite, targetPulse 2.5s ease-in-out infinite;
}
.stack-card-radar .radar-target-b {
  animation: targetMoveB 23s ease-in-out infinite, targetPulse 2.5s ease-in-out infinite 1.2s;
}
.stack-card-radar .radar-target-c {
  animation: targetMoveC 14s ease-in-out infinite, targetFade 14s ease-in-out infinite;
}
@keyframes targetMoveA {
  0%   { top: 22%; left: 60%; }
  15%  { top: 17%; left: 55%; }
  30%  { top: 30%; left: 65%; }
  45%  { top: 20%; left: 70%; }
  60%  { top: 28%; left: 58%; }
  75%  { top: 14%; left: 62%; }
  90%  { top: 25%; left: 52%; }
  100% { top: 22%; left: 60%; }
}
@keyframes targetMoveB {
  0%   { top: 60%; left: 12%; }
  20%  { top: 55%; left: 20%; }
  40%  { top: 68%; left: 8%;  }
  60%  { top: 58%; left: 16%; }
  80%  { top: 72%; left: 18%; }
  100% { top: 60%; left: 12%; }
}
@keyframes targetMoveC {
  0%   { top: 42%; left: 38%; }
  25%  { top: 35%; left: 45%; }
  50%  { top: 48%; left: 30%; }
  75%  { top: 38%; left: 42%; }
  100% { top: 42%; left: 38%; }
}
@keyframes targetFade {
  0%,  10% { opacity: 0; }
  20%, 75%  { opacity: 1; }
  90%, 100% { opacity: 0; }
}
/* Blip trail: puntos que dejan los targets al moverse */
.stack-card-radar .radar-blip {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(170,255,0,0.5);
  border-radius: 50%;
  box-shadow: 0 0 6px 2px rgba(170,255,0,0.3);
  pointer-events: none;
  animation: blipFade 2s ease-out infinite;
}
@keyframes blipFade {
  0%   { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0;   transform: scale(0.3); }
}
