/* =============================================================
   DRONEXOW — Espectáculos de drones
   1. Tokens
   ============================================================= */
:root {
  color-scheme: dark;

  /* Brand palette */
  --black:          #020202;
  --blue-deep:      #0713B8;
  --blue-electric:  #0C46EE;
  --cyan:           #1397FA;
  --blue-light:     #93C1FB;
  --blue-mid:       #607EF5;
  --violet:         #5A20F8;
  --white:          #FFFFFF;

  /* Semantic tokens */
  --bg:        var(--black);
  --bg-1:      #07070A;
  --bg-2:      #0C0D12;
  --bg-3:      #111319;
  --ink:       var(--white);
  --ink-soft:  rgba(255,255,255,.78);
  --ink-mute:  rgba(255,255,255,.54);
  --ink-dim:   rgba(255,255,255,.32);
  --line:      rgba(255,255,255,.12);
  --line-soft: rgba(255,255,255,.07);

  --accent:       var(--blue-electric);
  --accent-cyan:  var(--cyan);
  --accent-violet:var(--violet);
  --accent-light: var(--blue-light);

  --grad-primary: linear-gradient(135deg, var(--violet) 0%, var(--blue-electric) 52%, var(--cyan) 100%);
  --grad-line:    linear-gradient(90deg, transparent, var(--cyan), transparent);
  --grad-radial-hero: radial-gradient(ellipse 60% 50% at 50% 20%, rgba(12,70,238,.28), transparent 70%);

  --container: 1320px;
  --container-narrow: 860px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 28px;
  --radius-pill: 999px;

  --shadow-glow: 0 0 60px rgba(19,151,250,.22);
  --shadow-card: 0 24px 60px rgba(0,0,0,.5);

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --display: "Zen Dots", "Space Grotesk", "Inter", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --nav-h: 76px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
  position: relative;
}

/* Ambient background glow — fixed, sits behind all content on every page */
body::before {
  content: "";
  position: fixed;
  inset: -20vmax;
  z-index: -1;
  background:
    radial-gradient(closest-side, rgba(12,70,238,.32), transparent 68%) 18% 22% / 55vmax 55vmax no-repeat,
    radial-gradient(closest-side, rgba(19,151,250,.24), transparent 68%) 85% 15% / 48vmax 48vmax no-repeat,
    radial-gradient(closest-side, rgba(90,32,248,.26), transparent 68%) 55% 88% / 60vmax 60vmax no-repeat;
  filter: blur(70px);
  animation: ambientDrift 40s ease-in-out infinite alternate;
  pointer-events: none;
  will-change: transform;
}
@keyframes ambientDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate3d(3vw, -4vh, 0) scale(1.12) rotate(5deg); }
  100% { transform: translate3d(-4vw, 3vh, 0) scale(1.06) rotate(-4deg); }
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  text-wrap: balance;
  line-height: 1.22;
  letter-spacing: 0;
  font-weight: 400;
}
::selection { background: var(--accent); color: var(--white); }

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

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.2rem; background: var(--ink); color: var(--bg);
  z-index: 9999; border-radius: var(--radius-s); font-weight: 600;
  transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.kicker {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent-cyan); font-weight: 500;
}
.kicker::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-cyan); box-shadow: 0 0 12px 2px var(--accent-cyan);
}
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head .kicker { margin-bottom: .9rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); margin-bottom: 1rem; }
.section-head p { font-size: 1.05rem; color: var(--ink-mute); max-width: 42rem; }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head.centered p { margin-inline: auto; }

section { position: relative; padding-block: clamp(4.5rem, 9vw, 8rem); }
.section-tight { padding-block: clamp(3rem, 6vw, 5rem); }

.eyebrow-line { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem; }
.eyebrow-line .line { flex: 0 0 40px; height: 1px; background: var(--line); }

/* halo decorative background */
.halo { position: absolute; z-index: 0; pointer-events: none; filter: blur(90px); opacity: .55; animation: haloDrift 26s ease-in-out infinite alternate; }
@keyframes haloDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-2vw, 3vh, 0) scale(1.08); }
}
.halo-blue { background: radial-gradient(closest-side, rgba(12,70,238,.55), transparent 72%); }
.halo-violet { background: radial-gradient(closest-side, rgba(90,32,248,.5), transparent 72%); }
.halo-cyan { background: radial-gradient(closest-side, rgba(19,151,250,.45), transparent 72%); }

/* =============================================================
   4. Buttons & links
   ============================================================= */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95rem 1.9rem;
  font-family: var(--sans); font-size: .95rem; font-weight: 600;
  letter-spacing: .01em;
  border-radius: var(--radius-pill);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .35s var(--ease-out), border-color .35s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-primary);
  background-size: 160% 160%;
  color: var(--white);
  box-shadow: 0 10px 34px -8px rgba(12,70,238,.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 42px -6px rgba(19,151,250,.65); background-position: 100% 50%; }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--accent-cyan); background: rgba(19,151,250,.08); transform: translateY(-2px); }
.btn-sm { padding: .7rem 1.35rem; font-size: .85rem; }
.text-link {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: .15em;
  transition: color .3s var(--ease-out), border-color .3s var(--ease-out), gap .3s var(--ease-out);
}
.text-link:hover { color: var(--accent-cyan); border-color: var(--accent-cyan); gap: .65em; }
.text-link svg { width: 1em; height: 1em; }

/* =============================================================
   5. Navigation
   ============================================================= */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(2,2,2,.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-soft);
}
.nav-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-logo { display: flex; align-items: center; height: 60px; }
.nav-logo img { height: 100%; width: auto; }
.nav-links { display: none; align-items: center; gap: 2.1rem; }
.nav-links a {
  position: relative; font-size: .92rem; font-weight: 500; color: var(--ink-soft);
  padding-block: .3rem;
  transition: color .25s var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--accent-cyan); transition: right .3s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta { display: none; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }

/* Language switcher */
.lang-switch {
  display: flex; align-items: center; gap: .3rem;
  padding: .3rem; border: 1px solid var(--line); border-radius: var(--radius-pill);
}
.lang-switch .lang-current, .lang-switch .lang-option {
  display: inline-flex; align-items: center; gap: .35em;
  font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .02em;
  padding: .3rem .6rem; border-radius: var(--radius-pill);
  line-height: 1;
}
.lang-switch .lang-current { color: var(--ink); background: rgba(255,255,255,.08); }
.lang-switch .lang-option { color: var(--ink-mute); transition: color .25s var(--ease-out), background .25s var(--ease-out); }
.lang-switch .lang-option:hover { color: var(--ink); background: rgba(19,151,250,.12); }
.lang-switch .flag { display: block; width: 16px; height: 11px; border-radius: 2px; flex: 0 0 auto; }
.mobile-menu-foot .lang-switch { align-self: flex-start; margin-bottom: .5rem; }

.nav-burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
}
.nav-burger span { width: 18px; height: 1.5px; background: var(--ink); margin-inline: auto; transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 190;
  background: rgba(2,2,3,.98);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 2.2rem var(--gutter) 2.6rem;
  transform: translateY(-8px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility 0s linear .35s;
}
.mobile-menu.is-open {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility 0s;
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 1.6rem; }
.mobile-menu a { font-family: var(--display); font-size: 1.7rem; font-weight: 400; color: var(--ink); line-height: 1.3; }
.mobile-menu-foot { display: flex; flex-direction: column; gap: 1.2rem; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
  .mobile-menu { display: none; }
}

/* =============================================================
   6. Hero (video)
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: clip;
  padding-top: var(--nav-h);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video, .hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-media video { opacity: 0; transition: opacity 1s var(--ease-out); }
.hero-media video.is-playing { opacity: 1; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(0deg, var(--black) 0%, rgba(2,2,2,.75) 26%, rgba(2,2,2,.25) 52%, rgba(2,2,2,.5) 100%),
    linear-gradient(100deg, rgba(2,2,2,.55) 0%, transparent 45%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(3rem, 8vw, 5.5rem); }
.hero-eyebrow { margin-bottom: 1.4rem; }
.hero-title {
  font-size: clamp(2rem, 9vw, 5.4rem);
  max-width: 20ch;
  margin-bottom: 1.4rem;
}
.hero-title em { font-style: italic; color: var(--accent-cyan); font-weight: 500; }
.hero-copy { max-width: 40rem; font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--ink-soft); margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.6rem; }
.hero-scroll {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute);
}
.hero-scroll-line { width: 1px; height: 34px; background: linear-gradient(var(--ink-mute), transparent); position: relative; overflow: hidden; }
.hero-scroll-line::after {
  content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: linear-gradient(var(--accent-cyan), transparent);
  animation: scrollLine 2.2s var(--ease-soft) infinite;
}
@keyframes scrollLine { to { top: 100%; } }
@media (prefers-reduced-motion: reduce) { .hero-scroll-line::after { animation: none; } }

@media (min-width: 720px) {
  .hero-title { max-width: 17ch; }
}

/* =============================================================
   7. Media strip (horizontal)
   ============================================================= */
.strip { padding-block: clamp(2.5rem, 5vw, 4rem); overflow: clip; }
.strip-track {
  display: flex; gap: .9rem; overflow-x: auto; overflow-y: visible;
  padding-block: .5rem 1.5rem;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.strip-track::-webkit-scrollbar { display: none; }
.strip-item {
  position: relative; flex: 0 0 auto; scroll-snap-align: start;
  width: 210px; aspect-ratio: 3/4; border-radius: var(--radius-m); overflow: hidden;
  background: var(--bg-2);
}
.strip-item:first-child { margin-inline-start: var(--gutter); }
.strip-item:last-child { margin-inline-end: var(--gutter); }

/* Auto-playing marquee — JS clones the item set and adds .is-marquee; falls
   back to the plain manually-scrollable track above if JS or motion is off */
.strip-track.is-marquee {
  width: max-content;
  overflow-x: visible;
  scroll-snap-type: none;
  animation: stripMarquee 38s linear infinite;
  will-change: transform;
}
.strip-track.is-marquee:hover,
.strip-track.is-marquee:focus-within {
  animation-play-state: paused;
}
.strip-track.is-marquee .strip-item:last-child { margin-inline-end: 0; }
@keyframes stripMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .strip-track.is-marquee { animation: none; overflow-x: auto; scroll-snap-type: x proximity; }
}

.strip-item.is-wide { width: 320px; aspect-ratio: 4/3; }
.strip-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.strip-item:hover img { transform: scale(1.08); }
.strip-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.65), transparent 55%); }
.strip-tag {
  position: absolute; left: .9rem; bottom: .8rem; z-index: 1;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--white);
}
@media (min-width: 720px) {
  .strip-item { width: 260px; }
  .strip-item.is-wide { width: 380px; }
}

/* =============================================================
   8. Editorial / intro split
   ============================================================= */
.editorial { display: grid; gap: 2.5rem; }
.editorial-figure { position: relative; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 16/10; }
.editorial-figure img, .editorial-figure video { width: 100%; height: 100%; object-fit: cover; }
.editorial-body p { margin-bottom: 1.1rem; font-size: 1.02rem; }
.editorial-body p:last-child { margin-bottom: 0; }
@media (min-width: 960px) {
  .editorial { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 4rem; }
  .editorial.reverse { grid-template-columns: .95fr 1.05fr; }
  .editorial.reverse .editorial-figure { order: 2; }
}

/* =============================================================
   9. Bento grid — posibilidades
   ============================================================= */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.bento-card {
  position: relative; border-radius: var(--radius-m); overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line-soft);
  padding: 1.5rem; min-height: 230px;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .5s var(--ease-out), border-color .5s var(--ease-out);
}
.bento-card:hover { transform: translateY(-6px); border-color: rgba(19,151,250,.4); }
.bento-card .bento-bg { position: absolute; inset: 0; z-index: 0; }
.bento-card .bento-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; transition: opacity .5s var(--ease-out), transform .8s var(--ease-out); }
.bento-card:hover .bento-bg img { opacity: .58; transform: scale(1.06); }
.bento-card .bento-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(2,2,2,.94) 10%, rgba(2,2,2,.35) 75%); }
.bento-card > * { position: relative; z-index: 2; }
.bento-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.bento-card p { font-size: .92rem; color: var(--ink-mute); }
.bento-card .bento-num { font-family: var(--mono); font-size: .72rem; color: var(--accent-cyan); margin-bottom: .8rem; letter-spacing: .08em; }
.bento-card.is-large { grid-column: span 2; min-height: 300px; }
/* On mobile, show one card per row in a landscape aspect instead of cramped narrow tiles */
@media (max-width: 719px) {
  .bento { grid-template-columns: 1fr; }
  .bento-card, .bento-card.is-large { grid-column: span 1; min-height: 0; aspect-ratio: 16/10; }
}
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento-card.is-large { grid-column: span 2; }
}
@media (min-width: 1280px) {
  .bento-card { min-height: 280px; }
  .bento-card.is-large { min-height: 280px; }
}

/* =============================================================
   10. Segmentos — 3 blocks
   ============================================================= */
.segments { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.segment-card {
  position: relative; border-radius: var(--radius-l); overflow: hidden;
  aspect-ratio: 4/5; display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border: 1px solid var(--line-soft);
}
.segment-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .9s var(--ease-out); }
.segment-card:hover img { transform: scale(1.07); }
.segment-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(2,2,3,.95) 12%, rgba(2,2,3,.42) 62%, rgba(2,2,3,.12) 100%);
}
.segment-card > * { position: relative; z-index: 2; }
.segment-card .kicker { margin-bottom: .8rem; }
.segment-card h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-bottom: .7rem; }
.segment-card p { font-size: .94rem; color: var(--ink-mute); margin-bottom: 1.1rem; }
.segment-card ul { display: flex; flex-wrap: wrap; gap: .4rem .5rem; margin-bottom: 1.2rem; }
.segment-card ul li { font-size: .74rem; padding: .3rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--ink-mute); font-family: var(--mono); }
@media (min-width: 960px) { .segments { grid-template-columns: repeat(3, 1fr); } }

/* =============================================================
   11. Proceso (steps)
   ============================================================= */
.process { position: relative; }
.process-list { display: flex; flex-direction: column; }
.process-step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem;
  padding-block: clamp(1.6rem, 3vw, 2.4rem);
  border-top: 1px solid var(--line-soft);
}
.process-step:last-child { border-bottom: 1px solid var(--line-soft); }
.process-num { font-family: var(--mono); font-size: 1.1rem; color: var(--accent-cyan); padding-top: .2rem; }
.process-step h3 { font-size: clamp(1.25rem, 2.2vw, 1.7rem); margin-bottom: .55rem; }
.process-step p { max-width: 46ch; color: var(--ink-mute); }
.process-visual {
  position: relative; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 16/11;
  margin-top: 2rem;
}
.process-visual img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) {
  .process { display: grid; grid-template-columns: 1fr .85fr; gap: 3.5rem; align-items: start; }
  .process-visual { position: sticky; top: calc(var(--nav-h) + 2rem); margin-top: 0; }
}

/* =============================================================
   12. Tech teaser
   ============================================================= */
.tech-teaser { border-radius: var(--radius-l); overflow: hidden; position: relative; border: 1px solid var(--line-soft); }
.tech-teaser-grid { display: grid; }
.tech-teaser-media { position: relative; aspect-ratio: 16/10; }
.tech-teaser-media img { width: 100%; height: 100%; object-fit: cover; }
.tech-teaser-body { padding: clamp(2rem, 4vw, 3.2rem); display: flex; flex-direction: column; justify-content: center; }
.tech-teaser-body h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.tech-teaser-body p { margin-bottom: 1rem; color: var(--ink-mute); }
.tech-teaser-body p:last-of-type { margin-bottom: 1.8rem; }
@media (min-width: 960px) { .tech-teaser-grid { grid-template-columns: 1fr 1fr; } .tech-teaser-media { aspect-ratio: auto; } }

/* =============================================================
   13. Showcase gallery
   ============================================================= */
.showcase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.showcase-item {
  position: relative; border-radius: var(--radius-m); overflow: hidden;
  aspect-ratio: 1/1;
}
.showcase-item img, .showcase-item video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.showcase-item:hover img, .showcase-item:hover video { transform: scale(1.08); }
.showcase-item.tall { grid-row: span 2; aspect-ratio: 1/2.15; }
.showcase-item.wide { grid-column: span 2; aspect-ratio: 2/1.05; }
.showcase-item::after { content:""; position:absolute; inset:0; background: linear-gradient(0deg, rgba(0,0,0,.55), transparent 45%); pointer-events: none; }
.showcase-cap { position: absolute; left: 1rem; bottom: .9rem; z-index: 1; font-size: .82rem; color: var(--white); font-weight: 500; }
/* On mobile, "tall" items would render extremely narrow at half-width; show them full-width and landscape instead */
@media (max-width: 719px) {
  .showcase-item.tall { grid-row: auto; grid-column: span 2; aspect-ratio: 16/10; }
}
@media (min-width: 720px) { .showcase-grid { grid-template-columns: repeat(4, 1fr); } }

/* =============================================================
   14. Alternativa (pirotecnia)
   ============================================================= */
.alt-compare { display: grid; gap: 2.5rem; align-items: center; }
.alt-figure { border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 16/9; position: relative; }
.alt-figure img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) { .alt-compare { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }

/* =============================================================
   15. FAQ accordion
   ============================================================= */
.faq-list { border-top: 1px solid var(--line-soft); }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.5rem; text-align: left;
}
.faq-q h3 { font-size: clamp(1.02rem, 1.6vw, 1.18rem); font-weight: 500; color: var(--ink); }
.faq-icon { flex: 0 0 auto; width: 26px; height: 26px; position: relative; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--ink-soft); left: 50%; top: 50%;
  transform: translate(-50%,-50%); transition: transform .35s var(--ease-out), opacity .35s var(--ease-out);
}
.faq-icon::before { width: 14px; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 14px; }
.faq-item[data-open="true"] .faq-icon::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq-a { overflow: hidden; height: 0; transition: height .4s var(--ease-out); }
.faq-a-inner { padding-bottom: 1.6rem; max-width: 62ch; color: var(--ink-mute); }

/* =============================================================
   16. CTA final
   ============================================================= */
.cta-final { position: relative; border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line-soft); }
.cta-final-media { position: absolute; inset: 0; z-index: 0; }
.cta-final-media img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.cta-final-media::after { content:""; position:absolute; inset:0; background: linear-gradient(160deg, rgba(2,2,3,.94), rgba(7,19,184,.55)); }
.cta-final-body { position: relative; z-index: 1; padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem); text-align: center; }
.cta-final h2 { font-size: clamp(2rem, 4vw, 3.1rem); max-width: 20ch; margin-inline: auto 1.2rem; margin-bottom: 1.2rem; }
.cta-final p { max-width: 42rem; margin-inline: auto; margin-bottom: 2rem; color: var(--ink-soft); }
.cta-final .btn { margin-inline: auto; }

/* =============================================================
   17. Footer
   ============================================================= */
.footer { border-top: 1px solid var(--line-soft); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-top { display: grid; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand img { height: 60px; width: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 30ch; color: var(--ink-mute); font-size: .95rem; }
.footer-col h4 { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .65rem; }
.footer-col a { color: var(--ink-soft); font-size: .94rem; transition: color .25s var(--ease-out); }
.footer-col a:hover { color: var(--accent-cyan); }
.footer-bottom {
  display: flex; flex-direction: column; gap: 1rem;
  padding-top: 1.8rem; border-top: 1px solid var(--line-soft);
  font-size: .82rem; color: var(--ink-dim);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
@media (min-width: 720px) { .footer-top { grid-template-columns: 1.4fr repeat(3, 1fr); } }
@media (min-width: 720px) { .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }

/* =============================================================
   18. Reveal / scroll effects
   ============================================================= */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.reveal-stagger.is-visible > * { transition-delay: calc(var(--i, 0) * 70ms); }

.orbit-motif { width: 100%; height: 100%; object-fit: contain; animation: orbitSpin 22s linear infinite; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .orbit-motif { animation: none; } }

/* =============================================================
   19. Forms (contacto)
   ============================================================= */
.form-grid { display: grid; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field label { font-size: .85rem; font-weight: 500; color: var(--ink-soft); }
.field .opt { color: var(--ink-dim); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: var(--radius-s);
  background: var(--bg-2); border: 1px solid var(--line); color: var(--ink);
  font: inherit; font-size: .95rem;
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-dim); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-cyan); box-shadow: 0 0 0 3px rgba(19,151,250,.18);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; gap: 1.2rem; }
.field-check { display: flex; align-items: flex-start; gap: .7rem; }
.field-check input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--accent-cyan); }
.field-check label { font-size: .85rem; color: var(--ink-mute); font-weight: 400; }
.field-check a { text-decoration: underline; color: var(--ink-soft); }
.form-note { font-size: .82rem; color: var(--ink-dim); margin-top: 1rem; }
.form-status { margin-top: 1.2rem; font-size: .9rem; display: none; padding: .9rem 1.1rem; border-radius: var(--radius-s); }
.form-status.is-visible { display: block; }
.form-status.is-ok { background: rgba(19,151,250,.12); border: 1px solid rgba(19,151,250,.35); color: var(--accent-light); }
.form-status.is-error { background: rgba(248,32,32,.1); border: 1px solid rgba(248,32,32,.35); color: #ff9d9d; }
@media (min-width: 640px) { .field-row-2 { grid-template-columns: 1fr 1fr; } }

.contact-layout { display: grid; gap: 3rem; }
.contact-info-card {
  border-radius: var(--radius-l); border: 1px solid var(--line-soft); background: var(--bg-2);
  padding: clamp(1.8rem, 3vw, 2.6rem);
}
.contact-info-card h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.contact-info-card ul { display: flex; flex-direction: column; gap: .9rem; margin-bottom: 1.6rem; }
.contact-info-card li { font-size: .92rem; color: var(--ink-mute); display: flex; gap: .7rem; }
@media (min-width: 1024px) { .contact-layout { grid-template-columns: 1.2fr .8fr; } }

/* =============================================================
   20. Page hero (non-video interior pages / breadcrumbs)
   ============================================================= */
.page-hero { padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 5rem)); padding-bottom: clamp(2.5rem, 5vw, 4rem); position: relative; overflow: clip; }
.breadcrumbs { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--ink-dim); margin-bottom: 1.4rem; flex-wrap: wrap; }
.breadcrumbs a { color: var(--ink-mute); }
.breadcrumbs a:hover { color: var(--accent-cyan); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 22ch; margin-bottom: 1.2rem; }
.page-hero .sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 46rem; }

/* =============================================================
   21. Spec / detail table (GHOSTDRONE)
   ============================================================= */
.spec-panel { border-radius: var(--radius-l); border: 1px solid var(--line-soft); background: var(--bg-2); padding: clamp(1.8rem, 4vw, 3rem); }
.spec-note { display: flex; gap: .8rem; padding: 1.1rem 1.3rem; border-radius: var(--radius-s); background: rgba(19,151,250,.08); border: 1px solid rgba(19,151,250,.25); font-size: .9rem; color: var(--ink-soft); margin-bottom: 2rem; }
.spec-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.spec-row { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1rem; border-top: 1px solid var(--line-soft); font-size: .95rem; }
.spec-row:last-child { border-bottom: 1px solid var(--line-soft); }
.spec-row dt { color: var(--ink-mute); }
.spec-row dd { color: var(--ink); font-weight: 500; text-align: right; }

.flow-steps { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: center; }
.flow-step { font-family: var(--mono); font-size: .78rem; letter-spacing: .05em; padding: .6rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--ink-soft); }
.flow-arrow { color: var(--accent-cyan); font-size: 1rem; }

/* =============================================================
   22. 404
   ============================================================= */
.error-page { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--gutter); }
.error-page .code { font-family: var(--mono); font-size: 5rem; color: var(--accent-cyan); margin-bottom: 1rem; }
.error-page h1 { font-size: 1.8rem; margin-bottom: 1rem; }
.error-page p { color: var(--ink-mute); margin-bottom: 2rem; max-width: 34rem; }

/* =============================================================
   23. Responsive base grid helpers
   ============================================================= */
@media (min-width: 540px) {}
@media (min-width: 720px) {
  .hero-title { font-size: clamp(3rem, 6.6vw, 5.6rem); }
}
@media (min-width: 960px) {}
@media (min-width: 1280px) {}
@media (min-width: 1600px) { .container { max-width: 1440px; } }

/* =============================================================
   24. View transitions
   ============================================================= */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root), ::view-transition-new(root) {
    animation-duration: .5s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  }
}

/* =============================================================
   25. Reduced motion — intrusive effects only
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-media video { display: none; }
  .strip-item img { transition: none; }
}
