/* ═══════════════════════════════════════════════
   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: 18px;
  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;
}

/* 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 — display:contents unwraps the <ul> so each <li>
   becomes a direct flex child of nav-inner, enabling true 4-item spacing */
.nav-links {
  display: contents;
  list-style: none;
}
.nav-links > li { position: relative; }
.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: 10px;
  white-space: nowrap;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.07); }
.nav-link.nav-active { color: var(--accent); }
.nav-link.nav-active:hover { color: #fff; background: rgba(255,255,255,0.07); }
.nav-link svg { transition: transform 0.2s; }
.nav-links > li:hover .nav-link svg { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #141414;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 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: 11px;
  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;
}

/* ── TYPOGRAPHY ── */
.eyebrow {
  font-size: 11px;
  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;
}
.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; }

/* ── 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 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  background: var(--dark);
  color: var(--text-lite);
}
.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;
}

/* ── 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: 16px; font-weight: 700; margin-bottom: 10px; }
.col-block p { font-size: 14px; color: var(--gray); line-height: 1.7; }
.section.dark .col-block p { color: rgba(255,255,255,0.5); }
.col-block-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ── 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: 2px;
  margin-top: 56px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  overflow: hidden;
}
.section.cream .cards-3 {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.07);
}
.card {
  background: var(--card-dark);
  padding: 44px 36px;
  transition: background 0.2s;
}
.section.cream .card { background: var(--cream-card); }
.card:hover { background: #222; }
.section.cream .card:hover { background: #EAD9BA; }
.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: 13px;
  color: rgba(255,255,255,0.5);
  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: 2px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 48px;
}
.section.cream .cards-2x2 {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.07);
}

/* ── CARDS 2x3 GRID ── */
.cards-2x3 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 48px;
}

/* ── 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: 44px 40px;
  border: 1px solid rgba(255,255,255,0.06);
}
.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: 10px; letter-spacing: -0.02em; }
.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: '→'; 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.35); 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; display: flex; flex-direction: column; gap: 10px; }
.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); }
.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; }

/* ── INTRO HERO ANIMATION ── */
.intro-hero-title {
  animation: introTitleSlide 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.25s;
}
@keyframes introTitleSlide {
  from { opacity: 0; transform: translateX(-80px); }
  to   { opacity: 1; transform: translateX(0); }
}
.intro-fade {
  animation: introFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes introFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 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,
.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 — video puro por 1s, luego fade suave */
.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.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1s 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 */
}

/* Slide del título — centrado, inicia en 1.2s */
@keyframes introTitleSlideCenter {
  from { opacity: 0; transform: translateY(44px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-center .intro-hero-title {
  animation: introTitleSlideCenter 1.2s cubic-bezier(0.16,1,0.3,1) 1.2s both;
}
/* Fade-up para eyebrow, subtitle y botones en hero-center */
.hero-center .intro-fade {
  animation: introFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 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 {
    position: relative;
    top: auto;
    height: 360px;
    order: -1; /* visual on top */
  }
  .how-img { transition: opacity 0.4s ease; }

  /* 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; }
  .scroll-drone { 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; }
}
