/* =============================================================
   FLYPRO VISION — styles.css
   1. Tokens  2. Reset  3. Utilities  4. Typography  5. Components
   6. Sections  7. Effects  8. Responsive  9. Reduced-motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #0a0a0c;
  --bg-2:      #131316;
  --bg-3:      #1c1c20;
  --ink:       #f5f5f7;
  --ink-mute:  #9a9aa2;
  --ink-dim:   #6a6a72;
  --accent:       #1e72fc;
  --accent-hover: #0f52ba;
  --accent-2:  #6f9bff;
  --line:      rgba(245, 245, 247, 0.12);
  --line-soft: rgba(245, 245, 247, 0.06);

  --display: "Lexend", "Space Grotesk", "Inter", system-ui, sans-serif;
  --sans:    "Lexend", "Inter", system-ui, -apple-system, sans-serif;

  --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);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 76px;
  /* Tamaño único de los títulos de sección (Nuestro servicio, Our Services, Works, banner, Team, Contacto) */
  --title-size: clamp(1.75rem, 3.4vw, 2.6rem);
  --container: 1240px;
}

/* =============================================================
   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);
  overflow-x: clip;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
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; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--ink); }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }

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

.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 600; margin-bottom: 1rem;
}
.kicker::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex: none;
}

.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.section-title { font-size: var(--title-size); margin-bottom: 1rem; }
.section-head, .service-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-lead, .service-lead {
  color: var(--ink-mute); font-size: 1.05rem; max-width: 42rem;
}

em { font-style: normal; color: var(--accent-2); }

/* Reveal-on-scroll — defensive default, JS adds .is-visible */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; } /* gotcha A.4.5 defensive rule */

/* =============================================================
   4. Typography
   ============================================================= */
.hero-title {
  font-family: "Xenon Nue", var(--display);
  font-style: italic; font-weight: 800;
  font-size: clamp(1.6rem, 2.96vw, 2.4rem);
  letter-spacing: 1px; margin: 0;
  text-transform: uppercase;
  text-shadow: 2px 2px 8px rgba(0,0,0,.8);
}
.hero-title .split-word { display: inline-block; }
.hero-kicker {
  color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: 2px;
  opacity: .8; margin: 2rem 0 1.5rem;
}

@keyframes slideInDown { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInUp   { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.hero-anim-down { animation: slideInDown .8s var(--ease-out) both; }
.hero-anim-up   { animation: slideInUp .8s var(--ease-out) both; }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .35s var(--ease-out), background .3s var(--ease-out), color .3s var(--ease-out), box-shadow .35s var(--ease-out);
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -8px rgba(47,107,255,.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -6px rgba(47,107,255,.85); }
.btn-ghost {
  background: #000; color: #fff; border: 1px solid #fff;
  padding: .75rem 2rem; transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.btn-ghost:hover { background: var(--accent); color: #000; border-color: var(--accent); }

.card-tilt {
  will-change: transform;
  transition: transform .5s var(--ease-out);
  position: relative;
}
.card-tilt::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(47,107,255,.16), transparent 60%);
  opacity: 0; transition: opacity .4s var(--ease-out); pointer-events: none;
}
.card-tilt:hover::before { opacity: 1; }
.card-tilt > * { position: relative; z-index: 1; }

/* =============================================================
   6. Sections
   ============================================================= */

/* --- Nav --- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.nav .container { padding-inline: 2rem; }
.nav-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-logo { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--ink); white-space: nowrap; flex: none; }
.nav-logo img { display: block; height: 20px; width: auto; }
@media (max-width: 700px) { .nav-logo img { height: 17px; } }
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links > a, .nav-item-dropdown > a {
  font-size: .85rem; color: #eaecee; position: relative; padding-block: .3rem;
  text-transform: uppercase; letter-spacing: .06em;
  transition: color .3s var(--ease-out);
}
.lang-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 600; color: #eaecee;
  border: 1px solid var(--line); border-radius: 999px; padding: .35rem .7rem;
  letter-spacing: .04em; transition: color .3s var(--ease-out), border-color .3s var(--ease-out);
  flex: none;
}
.lang-toggle:hover { color: var(--ink); border-color: var(--accent-2); }
.nav-links > a::after, .nav-item-dropdown > a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--accent-2);
  transition: right .3s var(--ease-out);
}
.nav-links > a:hover, .nav-item-dropdown > a:hover { color: #fff; }
.nav-links > a:hover::after, .nav-item-dropdown:hover > a::after { right: 0; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: .5rem; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }

/* Desplegable de "Drones" — clic navega al bloque, hover muestra los tipos de dron.
   .nav-item-dropdown se estira a toda la altura del nav (align-self: stretch) y el
   menú se pega justo en top:100% sin margen: así no hay hueco muerto que rompa el
   :hover al bajar el cursor desde el link hasta las opciones. */
.nav-item-dropdown { position: relative; display: flex; align-items: center; align-self: stretch; }
.nav-dropdown {
  position: absolute; top: 100%; left: 50%; min-width: 220px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; gap: .15rem; padding: .6rem;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.7);
  opacity: 0; pointer-events: none; transition: opacity .15s ease;
}
.nav-item-dropdown:hover .nav-dropdown { opacity: 1; pointer-events: auto; }
.nav-dropdown a {
  font-size: .82rem; text-transform: none; letter-spacing: normal; color: var(--ink-mute);
  padding: .55rem .75rem; border-radius: 8px; white-space: nowrap; transition: background .2s ease, color .2s ease;
}
.nav-dropdown a:hover { background: var(--bg-3); color: #fff; }

.mobile-menu {
  display: none; flex-direction: column; gap: 0; background: var(--bg-2);
  border-top: 1px solid var(--line); padding: 1rem 1.25rem 1.5rem;
  position: absolute; top: 100%; left: 0; right: 0;
  max-height: calc(100svh - var(--nav-h)); overflow-y: auto;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.6);
}
.mobile-menu > a { padding: .85rem 0; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .05em; }
.mobile-submenu { display: flex; flex-direction: column; padding: 0 0 .4rem 1rem; border-bottom: 1px solid var(--line-soft); }
.mobile-submenu a { padding: .65rem 0; font-size: .92rem; color: var(--ink-mute); text-transform: none; letter-spacing: normal; }
.nav.is-open .mobile-menu { display: flex; }

/* --- Hero ---
   Dos zonas independientes (instrucción maestra):
   Zona 1 (0-60% alto hero): vídeo + título, título solo, sin bloque.
   Zona 2 (60-100% alto hero): bloque degradado con kicker + párrafo + CTA. */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  overflow: clip;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-video, .hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  animation: heroKenBurns 26s ease-in-out infinite alternate;
}
@keyframes heroKenBurns {
  from { transform: scale(1.06) translate3d(0,0,0); }
  to   { transform: scale(1.14) translate3d(-1%, -1%, 0); }
}
.hero-grain {
  position: absolute; inset: 0; z-index: 2; opacity: .05; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.hero-tint {
  position: absolute; inset: 0; z-index: 3;
  background: rgba(0,0,0,.22);
  pointer-events: none;
}

.hero-title-zone {
  position: absolute; left: 0; right: 0; top: 38%; z-index: 4;
  transform: translateY(-50%);
  display: flex; justify-content: center;
  padding: 0 1.25rem; text-align: center; pointer-events: none;
}

.hero-content-zone {
  position: absolute; left: 0; right: 0; bottom: 0; height: 50%; z-index: 10;
  /* Marc (2026-10-30): degradado mucho más suave y largo; el negro puro solo llega en el borde inferior de la pantalla.
     Antes: linear-gradient(to bottom, rgba(0,0,0,0) 0%, #000 50%, #000 100%) → negro sólido en el último cuarto. */
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.05) 20%, rgba(0,0,0,.14) 40%, rgba(0,0,0,.3) 60%, rgba(0,0,0,.55) 80%, rgba(0,0,0,.82) 93%, #000 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 2rem 2rem 3rem; text-align: center;
}
.hero-content-inner { display: flex; flex-direction: column; align-items: center; max-width: 42rem; }
.hero-sub { color: #fff; opacity: .95; font-size: 1rem; line-height: 1.7; margin: 0 0 2rem; max-width: 700px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

@media (max-width: 767px) { .hero-content-zone { padding: 1.5rem 1rem 2rem; } }

.scroll-cue {
  position: absolute; right: 1.5rem; bottom: 1.75rem; z-index: 11;
  width: 26px; height: 42px; border: 1px solid var(--line); border-radius: 20px;
  display: flex; justify-content: center; padding-top: 8px;
}
.scroll-cue span { width: 4px; height: 8px; border-radius: 2px; background: var(--accent-2); animation: scrollCue 1.8s var(--ease-soft) infinite; }
@keyframes scrollCue { 0% { transform: translateY(0); opacity: 1; } 70% { opacity: .2; } 100% { transform: translateY(14px); opacity: 0; } }

/* --- Brand bar (marquee) --- */
.brand-bar {
  border-bottom: 1px solid var(--line-soft); background: #000;
  overflow: hidden; padding: 3rem 2rem;
}
/* Separación extra tras el banner de marcas, en negro puro */
.brand-bar + .scroll-cards { border-top: 1.5rem solid #000; }
.brand-bar-title {
  text-align: center; color: var(--ink-dim); font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2rem;
}
.brand-track {
  display: flex; align-items: center; gap: 3.5rem; width: max-content;
  animation: marquee 20s linear infinite;
}
.brand-track span {
  font-family: var(--display); font-weight: 600; font-size: 1.1rem; letter-spacing: .04em;
  color: var(--ink-dim); white-space: nowrap;
}
.brand-logo { display: inline-flex; align-items: center; height: 56px; flex: none; }
/* Cada logo trae su tamaño (--w/--h, en manifest) para que todos pesen lo mismo */
.brand-logo img {
  width: calc(var(--w, 120) * 1px); height: calc(var(--h, 42) * 1px); object-fit: contain;
  opacity: .6; transition: opacity .3s var(--ease-out);
}
.brand-logo:hover img { opacity: 1; }
@media (max-width: 700px) {
  .brand-logo { height: 45px; }
  .brand-logo img { width: calc(var(--w, 120) * .8px); height: calc(var(--h, 42) * .8px); }
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- Service (scroll-cards) --- */
.scroll-cards { position: relative; height: 360vh; background: #000; }

.scroll-cards-sticky {
  position: sticky; top: var(--nav-h); width: 100%; height: auto;
  overflow: hidden; background: #000;
}

.scroll-cards-frame { display: grid; grid-template-columns: 65% 35%; align-items: stretch; }

/* El vídeo es quien fija la proporción 16:9 — nunca se recorta ni se deforma.
   El texto se estira para ocupar exactamente la misma altura (sin franjas negras). */
.scroll-cards-video { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.scroll-cards-video video { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.scroll-cards-video iframe { width: 100%; height: 100%; border: 0; pointer-events: none; }

.video-desktop { display: block; }
.video-mobile { display: none; }

.scroll-cards-content {
  position: relative; height: 100%; /* ocupa altura completa del grid — sin franjas negras */
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(3rem * (1 - .55 * var(--sc-t, 0))) 2.5rem; min-width: 320px; gap: calc(3rem * (1 - .5 * var(--sc-t, 0))); overflow: hidden;
  background: #000; font-family: var(--sans);
}

.top-fade {
  position: absolute; top: 0; left: 0; right: 0; height: 25%;
  background: linear-gradient(to bottom, rgba(30,114,252,0.08), transparent);
  z-index: 0; pointer-events: none;
}

.water-effect {
  isolation: isolate; /* el mix-blend-mode de las manchas se queda aquí dentro (Safari) */
  position: absolute; left: -10%; right: -10%; bottom: 0; height: 62%;
  z-index: 0; pointer-events: none; overflow: hidden;
  /* Fundido también abajo: la mancha azul ya no se corta en seco contra el bloque siguiente */
  -webkit-mask-image: linear-gradient(to top, transparent 0%, black 22%, black 34%, transparent 100%);
  mask-image: linear-gradient(to top, transparent 0%, black 22%, black 34%, transparent 100%);
}
/* Manchas azules: la animación solo mueve/escala/gira (transform). Antes animaba también desenfoque, tono y forma (filter/border-radius) en cada
   fotograma, lo más caro de dibujar. Es la versión que se comprobó en el Safari de la pantalla externa (4K a 30 Hz) junto con el fundido de
   color del texto. El CSS anterior está en scratchpad/styles-before-blobs.css si se quiere volver al movimiento de forma y tono. */
.blob { position: absolute; mix-blend-mode: screen; will-change: transform; }
.blob1 {
  width: 360px; height: 300px; left: -5%; bottom: -110px;
  background: linear-gradient(135deg, #1E72FC, #0F52BA 70%); opacity: .55;
  border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
  filter: blur(60px); animation: aurora1 5s ease-in-out infinite;
}
.blob2 {
  width: 320px; height: 360px; right: -8%; bottom: -140px;
  background: linear-gradient(135deg, #0F52BA, #1E72FC 70%); opacity: .5;
  border-radius: 55% 45% 40% 60% / 40% 60% 40% 60%;
  filter: blur(65px); animation: aurora2 6s ease-in-out infinite;
}
.blob3 {
  width: 280px; height: 260px; left: 32%; bottom: -70px;
  background: #1E72FC; opacity: .4;
  border-radius: 50%;
  filter: blur(55px); animation: aurora3 4s ease-in-out infinite;
}
@keyframes aurora1 {
  0%   { transform: translate(0,0) scale(1) rotate(0deg); }
  25%  { transform: translate(50px,-35px) scale(1.15) rotate(8deg); }
  50%  { transform: translate(-25px,-60px) scale(0.95) rotate(-6deg); }
  75%  { transform: translate(30px,-20px) scale(1.1) rotate(5deg); }
  100% { transform: translate(0,0) scale(1) rotate(0deg); }
}
@keyframes aurora2 {
  0%   { transform: translate(0,0) scale(1) rotate(0deg); }
  30%  { transform: translate(-40px,-45px) scale(1.1) rotate(-7deg); }
  60%  { transform: translate(30px,-25px) scale(0.9) rotate(6deg); }
  100% { transform: translate(0,0) scale(1) rotate(0deg); }
}
@keyframes aurora3 {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(35px,-45px) scale(1.25); }
  100% { transform: translate(0,0) scale(1); }
}



/* Título de la sección, fuera de la carta, centrado arriba */
.scroll-cards-head {
  text-align: center; padding: clamp(.75rem, 2.2vh, 2.5rem) 2rem clamp(1.25rem, 3vh, 2.5rem);
}
.scroll-cards-head .kicker { justify-content: center; }
.scroll-cards-head .section-title { margin: 0 auto; max-width: 40rem; }

.titles-stack { position: relative; z-index: 1; display: flex; flex-direction: column; gap: calc(1.4rem * (1 - .4 * var(--sc-t, 0))); }
.title-item {
  font-family: var(--display); font-size: clamp(1.3rem, 2.2vw, 1.9rem); font-weight: 700; line-height: 1.2;
  color: rgba(255,255,255,.28); transition: color .4s var(--ease-out), transform .4s var(--ease-out);
  position: relative; padding-left: 1.2rem; border-left: 3px solid transparent;
}
.title-item.active { color: #fff; border-left-color: #1E72FC; transform: translateX(4px); }

.description-block { position: relative; z-index: 1; display: grid; max-width: 420px; border-top: 1px solid rgba(255,255,255,.1); padding-top: calc(1.5rem * (1 - .4 * var(--sc-t, 0))); }
/* Un solo párrafo visible (.description-text) con fundido: sale en 140 ms (.is-out), main.js cambia el contenido y entra en 300 ms. Es el mismo
   elemento, así que no hay forma de que dos textos se vean superpuestos. Los .description-sizer son copias invisibles de los 3 textos
   apiladas en la misma celda para que el bloque mida siempre lo que el más largo. Curva suave de la web (--ease-soft). */
.description-text, .description-sizer {
  grid-area: 1 / 1; margin: 0;
  font-weight: 400; font-size: calc(1rem * (1 - .16 * var(--sc-t, 0))); line-height: 1.7; color: #ccc;
  min-height: 5.2em;
}
.description-sizer { visibility: hidden; pointer-events: none; }
.description-text { opacity: 1; transition: opacity .3s var(--ease-soft); }
.description-text.is-out { opacity: 0; transition: opacity .14s var(--ease-soft); }
/* Compatibilidad con un main.js antiguo que siga en la caché del navegador (el de los 3 párrafos apilados con .is-active): sin esto, los tres se
   verían a la vez, superpuestos. El párrafo nuevo lleva data-live; los antiguos no, y solo se ve el que tenga .is-active. */
.description-text:not([data-live]) { opacity: 0; visibility: hidden; transition: opacity .14s var(--ease-soft), visibility 0s linear .14s; }
.description-text:not([data-live]).is-active { opacity: 1; visibility: visible; transition: opacity .3s var(--ease-soft) .14s, visibility 0s linear .14s; }
@media (prefers-reduced-motion: reduce) { .description-text, .description-text.is-out, .description-text:not([data-live]), .description-text:not([data-live]).is-active { transition: none; } }

@media (prefers-reduced-motion: reduce) {
  .blob1, .blob2, .blob3 { animation: none; }
}

@media (max-width: 1024px) {
  .scroll-cards { height: auto; }
  .scroll-cards-sticky { position: relative; height: auto; aspect-ratio: auto; display: flex; flex-direction: column; }
  .scroll-cards-frame { grid-template-columns: 1fr; } /* vídeo cuadrado arriba y texto debajo (antes seguía en 2 columnas y se cortaba a la derecha) */
  .scroll-cards-video { width: 100%; aspect-ratio: 1 / 1; height: auto; }
  .video-desktop { display: none !important; }
  .video-mobile { display: block !important; }
  .scroll-cards-content { padding: 2rem 1.5rem; gap: 2rem; justify-content: flex-start; }
  .title-item { font-size: 1.2rem; opacity: 1; color: rgba(255,255,255,.4); }
  .water-effect { height: 50%; }
}

/* Fondo del panel de texto (degradado azul de arriba + manchas): capa que ocupa todo el panel, igual que antes en teléfono y tablet. */
.why-backdrop { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.why-title { display: none; }

/* "Por qué" en ESCRITORIO (≥ 1025 px), Marc 2026-11-23. El bloque sigue fijado como siempre (sticky bajo la barra: título, vídeo 16:9 a la
   izquierda y panel de texto a la derecha, a la misma altura que el vídeo) y no se sale de él hasta pasar los 3 pasos. Cambios:
   - Menos recorrido (feedback de Eric): cada paso = --why-step de scroll (60vh; antes ~90vh). Con Entrega ya puesto queda --why-hold (50vh)
     de scroll antes de pasar al bloque siguiente (Marc). Alto de la sección = alto del bloque fijado (--why-pin, medido en main.js)
     + 3 pasos + ese tramo final. Para dar más o menos recorrido, cambiar solo --why-step / --why-hold.
   - En el panel se ve UN paso cada vez: su título (con la raya azul) + divisor + texto. Al cambiar de paso, título y texto salen subiendo y
     entran desde abajo con fundido de COLOR (main.js → initScrollCards; no opacity, por el Safari de Marc). Raya y divisor quietos.
   Los 3 títulos en lista (.titles-stack) siguen en teléfono y tablet. */
@media (min-width: 1025px) {
  .scroll-cards { --why-step: 60vh; --why-hold: 50vh; height: calc(var(--why-pin, 100vh) + 3 * var(--why-step) + var(--why-hold)); }
  .scroll-cards-content .titles-stack { display: none; }
  .why-title {
    display: block; position: relative; z-index: 1; margin: 0; padding-left: 1.2rem; border-left: 3px solid #1E72FC;
    font-size: clamp(1.3rem, 2.2vw, 1.9rem); line-height: 1.2; letter-spacing: normal; color: #fff;
  }
}

/* --- Our Services: carrusel de cartas (main.js → mountOurServices), diseño de carta = mockup de Marc.
       Escritorio: sección fijada a pantalla completa; la carta usa el alto libre menos el sitio de la descripción (--ch, entre 280 y 600 px) y es
       algo más alta que ancha (ancho = 80 % del alto). Táctil/≤1024: en el flujo normal, arrastre horizontal, cartas
       verticales 3:5. El escenario mide exactamente lo que mide la carta (--card-w × --ch). --- */
.our-services {
  position: relative; background: #000; padding: 6rem 0; overflow: hidden;
  --card-w: clamp(140px, 38vw, 280px); --ch: calc(var(--card-w) * 1.6667); --card-r: 14px;
}
.our-services.is-pinned {
  height: 100vh; height: 100svh; padding: calc(var(--nav-h) + clamp(.5rem, 2.5vh, 1.75rem)) 0 1rem;
  display: flex; flex-direction: column; justify-content: flex-start;
  --ch: clamp(280px, calc(100svh - 500px), 600px); --card-w: calc(var(--ch) * .8); --card-r: 16px;
}
.our-services.is-pinned .services-title { margin-bottom: clamp(1.25rem, 3.5vh, 2.5rem); }
/* viñeta + grano de película, muy sutiles, por encima de las cartas y por debajo del popup */
.our-services::before, .our-services::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.our-services::before { background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.55) 100%); }
.our-services::after {
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.os-frame { position: relative; display: flex; flex-direction: column; align-items: center; padding-inline: 1.25rem; }

/* "We Make" fijo (no se traduce) + nombre del servicio que rota con profundidad */
.os-wemake {
  position: relative; width: 100%; margin: 0; text-align: center;
  font-family: "Jost", sans-serif; font-size: clamp(1.05rem, 4.3vw, 1.6rem); line-height: 1.2; padding-top: .7em;
}
.os-wemake-prefix {
  position: absolute; left: 50%; top: 0; z-index: 1; white-space: nowrap;
  transform: translate(-8.4em, -30%) rotate(-9deg); font-style: italic; font-weight: 400; color: var(--accent);
}
.os-name-window { display: inline-block; max-width: 100%; height: 1.3em; overflow: hidden; vertical-align: top; }
.os-name {
  display: block; white-space: nowrap; color: #fff; font-weight: 400; text-transform: uppercase;
  transition: opacity .34s ease, transform .34s ease, filter .34s ease;
}
.os-name.is-out { opacity: 0; transform: translateY(-100%); filter: blur(8px); transition-duration: .3s; }
.os-name.is-in { opacity: 0; transform: translateY(100%); filter: blur(8px); transition: none; }

.os-stage {
  position: relative; width: 100%; height: var(--ch); margin-top: clamp(1.25rem, 3vh, 1.75rem);
  touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; transition: filter .3s ease;
}
.our-services.is-pinned .os-stage { cursor: default; }
.os-dimmed .os-stage { filter: blur(7px) brightness(.5); }
.os-card {
  position: absolute; bottom: 0; left: 50%; width: var(--card-w); height: var(--ch);
  margin-left: calc(var(--card-w) / -2); padding: 0; overflow: hidden; cursor: pointer; color: #fff; font: inherit; text-align: left;
  border-radius: var(--card-r); background: linear-gradient(155deg, #1b1c20, #0d0d0f); border: 1px solid var(--line);
  transform-origin: bottom center; will-change: transform, opacity, filter; box-shadow: 0 18px 40px -12px rgba(0,0,0,.6);
}
/* foco de teclado: aro fino y suave (no confundir con una carta "destacada") */
.os-card:focus-visible { outline: 1px solid rgba(111,155,255,.5); outline-offset: 3px; }
/* foto y vídeo heredan el redondeado de la carta: el vídeo (capa propia de la GPU) no siempre respeta el overflow */
/* .os-media recorta TODO (foto, vídeo, sombreado, brillo) con clip-path redondeado: el vídeo y las capas con mezcla
   viven en capas propias de la GPU y no siempre respetan overflow + border-radius, sobre todo con el tilt en 3D */
.os-media {
  position: absolute; inset: 0; display: block; overflow: hidden; isolation: isolate; border-radius: inherit;
  clip-path: inset(0 round calc(var(--card-r) - 1px)); -webkit-clip-path: inset(0 round calc(var(--card-r) - 1px));
}
/* object-fit: cover en el contenedor y en lo que lleva dentro, en todos los tamaños: una miniatura que no tenga el ratio de la carta
   (4:5 en escritorio, 3:5 en móvil) se recorta por los lados, nunca se estira */
.os-media { object-fit: cover; object-position: center; }
.os-media img, .os-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; border-radius: inherit; }
/* la foto solo se ve si no hay vídeo (movimiento reducido) o el navegador no lo reproduce: así no hay salto foto → vídeo */
.os-card.has-video .os-still { opacity: 0; }
.os-card.has-video.is-still .os-still { opacity: 1; }
.os-card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.6) 100%); }
/* brillo tipo cristal: filo de luz que se desplaza con el ratón + reflejo suave en el borde superior */
.os-sheen {
  position: absolute; inset: -30%; pointer-events: none; opacity: 0;
  background: linear-gradient(120deg, transparent 38%, rgba(255,255,255,.06) 44%, rgba(255,255,255,.2) 50%, rgba(255,255,255,.06) 56%, transparent 62%);
  transition: opacity .3s ease;
}
.os-media::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: linear-gradient(180deg, rgba(255,255,255,.08), transparent 28%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
.os-stage.is-hover .os-card.is-active .os-sheen { opacity: 1; }
/* Marc (2026-10-29): fuera el efecto cristal de las cartas (reflejo que sigue al ratón + brillo/filo de luz arriba).
   Oculto, no borrado: para volver a verlo, quitar este bloque. */
.os-sheen, .os-media::after { display: none; }
/* glow ambiental que "respira" + sombra de contacto (halo de acento + anillo oscuro: se ve sobre negro) */
.os-glow {
  position: absolute; left: 50%; bottom: 10%; width: calc(var(--card-w) * 2.3); aspect-ratio: 1; pointer-events: none;
  transform: translateX(-50%); background: radial-gradient(circle, rgba(111,155,255,.22), transparent 68%);
  filter: blur(46px); animation: osBreathe 7s ease-in-out infinite;
}
@keyframes osBreathe {
  0%, 100% { opacity: .55; transform: translateX(-50%) scale(1); }
  50% { opacity: .9; transform: translateX(-50%) scale(1.08); }
}
.os-contact {
  position: absolute; left: 50%; bottom: -14px; width: calc(var(--card-w) * .78); height: 26px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse, rgba(111,155,255,.32) 0%, rgba(0,0,0,.6) 55%, transparent 78%); filter: blur(4px);
  transform: translateX(-50%);
}

/* rayas de progreso + dron que vuela por encima siguiendo la posición continua */
.os-progress { position: relative; display: flex; gap: 10px; justify-content: center; margin-top: clamp(2.25rem, 5vh, 2.75rem); }
.os-bar { position: relative; width: 10px; height: 2px; border-radius: 1px; overflow: hidden; background: var(--ink-dim); transition: width .25s ease; }
.os-bar.is-active { width: 20px; }
.os-bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.os-drone {
  position: absolute; top: -18px; left: 0; width: 16px; height: 16px; transform: translateX(-50%); pointer-events: none;
  color: var(--accent); filter: drop-shadow(0 0 6px rgba(30,114,252,.6));
}

/* descripción larga: todas apiladas en la misma celda → el bloque mide lo que la más larga, nada salta */
.os-descs { display: grid; width: 100%; max-width: 620px; margin-top: clamp(1.5rem, 4vh, 2.25rem); text-align: center; }
.os-desc {
  grid-area: 1 / 1; margin: 0; font-size: .95rem; line-height: 1.7; color: #c7cad1;
  opacity: 0; transform: translateY(5px); filter: blur(4px); visibility: hidden;
  transition: opacity .3s ease, transform .3s ease, filter .3s ease, visibility 0s linear .3s;
}
.os-desc.is-active { opacity: 1; transform: none; filter: none; visibility: visible; transition-delay: .12s, .12s, .12s, 0s; }
.os-hint { margin: 1rem 0 0; font-size: .75rem; color: var(--ink-dim); text-align: center; }
.our-services.is-pinned .os-hint { display: none; }

/* popup: manda el reproductor (esquinas casi rectas, sin marco de tarjeta, título pequeño encima) */
.os-modal {
  position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1.25rem;
  background: rgba(5,5,6,.9); opacity: 0; transition: opacity .3s ease;
}
.os-modal[hidden] { display: none; }
.os-modal.is-open { opacity: 1; }
.os-modal-box {
  position: relative; width: 100%; max-width: 980px; display: flex; flex-direction: column; gap: .75rem;
  transition: transform .5s cubic-bezier(.22,1,.36,1), opacity .3s ease;
}
.os-modal-title {
  margin: 0; text-align: center; font-family: "Jost", sans-serif; font-weight: 500; font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}
.os-video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.os-modal-video { border-radius: 4px; border: 1px solid var(--line); }
.os-video img, .os-video iframe, .os-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.os-modal-close {
  position: absolute; top: -.9rem; right: -.9rem; z-index: 2; width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); cursor: pointer;
  transition: background .3s ease, border-color .3s ease;
}
.os-modal-close:hover, .os-modal-close:focus-visible { background: var(--accent); border-color: var(--accent); }
.os-modal-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.os-play {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; display: grid; place-items: center;
  color: #fff; cursor: pointer; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.6); border-radius: 999px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .3s ease, border-color .3s ease, transform .3s var(--ease-out);
}
/* popup: botones bajo el vídeo (nunca encima de la carta) y texto cuando el servicio aún no tiene proyectos */
.os-modal-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: .5rem; }
.os-modal-actions [hidden] { display: none; }
.os-modal-box.is-empty { max-width: 560px; }
.os-modal-video[hidden] { display: none; }
.os-modal-empty {
  margin: 0; padding: 2rem 1.5rem; text-align: center; color: var(--ink); line-height: 1.6;
  border: 1px solid var(--line); border-radius: 4px; background: var(--bg-2);
}
.os-modal-empty[hidden] { display: none; }
.os-play:hover, .os-play:focus-visible { background: var(--accent); border-color: var(--accent); transform: scale(1.06); }
.os-play svg { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
@media (max-width: 1024px) {
  .our-services { padding: 4rem 0; }
  .os-wemake-prefix { transform: translate(-6.2em, -20%) rotate(-8deg); font-size: .85em; }
  .os-wemake { padding-top: .9em; }
  .os-progress { gap: 7px; margin-top: 2rem; }
  .os-bar { width: 8px; }
  .os-bar.is-active { width: 15px; }
  .os-desc { font-size: .875rem; line-height: 1.6; }
  .os-modal-close { right: -.4rem; }
  .os-play { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .os-glow { animation: none; }
  .os-name, .os-desc, .os-modal, .os-modal-box { transition: none; }
}

/* Logo en títulos en lugar del nombre escrito (versión toda blanca) */
.title-logo { display: inline-block; height: .95em; width: auto; vertical-align: -.1em; }

/* Our Drones: el bloque de tarjetas, ahora con 2 */
.services-grid.services-grid--two { grid-template-columns: repeat(2, 1fr); max-width: 1100px; }

/* --- Cursor "bolita" (solo ratón; lo crea initCursor en main.js) --- */
.cursor-dot {
  position: fixed; left: 0; top: 0; z-index: 10000; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--accent); border: 1px solid transparent; opacity: 0;
  transition: opacity .25s ease, width .25s var(--ease-out), height .25s var(--ease-out), margin .25s var(--ease-out),
              background .25s ease, border-color .25s ease, scale .15s ease;
}
.cursor-dot.is-visible { opacity: 1; }
.cursor-dot.is-hot { width: 38px; height: 38px; margin: -19px 0 0 -19px; background: rgba(30,114,252,.15); border-color: var(--accent-2); }
.cursor-dot.is-down { scale: .8; }

/* --- Services grid (3 tarjetas clickeables) --- */
.services-section { background: #000; padding: 6rem 2rem; width: 100%; }
.services-title {
  text-align: center; font-family: var(--display); font-size: var(--title-size); font-weight: 700;
  color: #fff; margin: 0 0 4rem;
}
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 1400px; margin: 0 auto; }

.service-card {
  position: relative; height: 500px; border-radius: 0; overflow: hidden;
  text-decoration: none; display: flex; align-items: flex-end; justify-content: center;
  cursor: pointer; transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.service-card:hover { transform: scale(1.05); box-shadow: 0 15px 40px rgba(30,114,252,.3); }

.service-card-image {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
  z-index: 1; transition: transform .5s var(--ease-out);
}
.service-card:hover .service-card-image { transform: scale(1.1); }

.service-card-overlay {
  position: absolute; inset: 0; z-index: 2; transition: background .4s ease;
  background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.5) 50%, rgba(0,0,0,.8) 100%);
}
.service-card:hover .service-card-overlay {
  background: linear-gradient(180deg, rgba(30,114,252,.2) 0%, rgba(30,114,252,.4) 50%, rgba(0,0,0,.9) 100%);
}

.service-card-content { position: relative; z-index: 3; text-align: center; padding: 2rem; width: 100%; }
.service-card-title {
  font-family: var(--display); font-size: 1.8rem; font-weight: 700; color: #fff;
  text-transform: none; letter-spacing: 1px; margin: 0 0 .8rem; transition: color .4s ease;
  min-height: 2.3em; display: flex; align-items: center; justify-content: center;
}
.service-card:hover .service-card-title { color: #1E72FC; }

/* Subtítulo + descripción: bloque de alto fijo (el título no se mueve) con el texto pegado arriba */
.service-card-hover {
  height: 7.9rem; margin-top: .2rem;
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
}
/* Excepción puntual a la regla de cursiva: experimento de Marc en el hover de las tarjetas */
.service-card-subtitle {
  font-family: "Jost", sans-serif; font-style: italic; font-weight: 400; font-size: 1.8rem; line-height: 1.15;
  color: #fff; margin: 0; opacity: 0; transition: opacity .4s ease;
}
.service-card:hover .service-card-subtitle { opacity: 1; }

.service-card-description {
  font-family: var(--sans); font-size: .95rem; font-weight: 300; color: rgba(255,255,255,.8);
  margin: 0; letter-spacing: .5px; line-height: 1.4; max-width: 22rem; text-wrap: balance;
  opacity: 0; transition: opacity .4s ease;
}
.service-card:hover .service-card-description { opacity: 1; }

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .service-card { height: 450px; }
  .service-card-title { font-size: 1.6rem; }
  .service-card-subtitle { font-size: 1.6rem; }
}
@media (max-width: 767px) {
  .services-section { padding: 4rem 1.25rem; }
  .services-title { margin-bottom: 2.5rem; }
  .services-grid, .services-grid.services-grid--two { grid-template-columns: 1fr; gap: 1.5rem; }
  .service-card { height: 350px; }
  .service-card-title { font-size: 1.4rem; }
  .service-card-subtitle { font-size: 1.4rem; opacity: 1; } /* sin hover en táctil, siempre visible */
  .service-card-description { opacity: 1; } /* sin hover en táctil, siempre visible */
}

/* --- Showreel (Nuestros Trabajos) --- */
.works-section {
  position: relative; width: 100%; min-height: 100vh; background: #000; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 4rem 2rem;
}

.works-background {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,.2) 0%, rgba(0,0,0,.75) 100%);
  /* Blur puro (sin filtro SVG de turbulencia): el feTurbulence/feDisplacementMap que había aquí
     renderiza con costuras/cortes duros en navegadores reales sobre un elemento tan grande
     (confirmado en Chrome/Safari del usuario, aunque en el preview del sandbox se veía bien).
     El ondulado orgánico ahora depende solo del morphing de border-radius/skew de cada cortina. */
  filter: blur(75px);
  /* Perspectiva compartida: leve profundidad (translateZ/rotateY) para que las cortinas no se
     sientan pegadas a un plano, sin llegar a "tumbar" como un objeto esférico. */
  perspective: 1600px;
  transform-style: preserve-3d;
}

/* Aurora boreal: en vez de manchas redondeadas, 4 cortinas verticales altas y estrechas
   repartidas por el ancho del bloque, con degradado vertical que se desvanece arriba y abajo
   (como luz que cae desde el cielo). Cada una se balancea de lado a lado y ondula en altura
   (scaleY/skew), como una cortina real de aurora, no como una esfera que tumba. */
.aurora-blob {
  position: absolute; top: 50%;
  mix-blend-mode: screen; transform-style: preserve-3d;
}
.aurora-blob-1 {
  left: 12%; width: min(480px, 46vmax); height: min(2800px, 250vmax);
  background: linear-gradient(180deg,
    rgba(0,0,0,0) 0%, rgba(60,130,230,.08) 10%, rgba(110,175,255,.24) 22%,
    rgba(170,215,255,.44) 34%, rgba(200,230,255,.56) 45%, rgba(160,210,255,.46) 56%,
    rgba(100,170,255,.3) 68%, rgba(50,110,210,.15) 80%, rgba(20,60,140,.06) 90%, rgba(0,0,0,0) 100%);
  animation: worksAurora1 9s ease-in-out infinite;
}
.aurora-blob-2 {
  left: 38%; width: min(560px, 52vmax); height: min(2600px, 235vmax);
  background: linear-gradient(180deg,
    rgba(0,0,0,0) 0%, rgba(40,100,210,.07) 12%, rgba(80,150,250,.22) 24%,
    rgba(120,185,255,.38) 36%, rgba(150,205,255,.48) 48%, rgba(115,180,255,.38) 60%,
    rgba(70,135,230,.24) 72%, rgba(35,85,180,.11) 84%, rgba(0,0,0,0) 100%);
  animation: worksAurora2 7.5s ease-in-out infinite;
}
.aurora-blob-3 {
  left: 64%; width: min(500px, 48vmax); height: min(2500px, 225vmax);
  background: linear-gradient(180deg,
    rgba(0,0,0,0) 0%, rgba(70,140,230,.06) 10%, rgba(130,190,255,.2) 22%,
    rgba(190,225,255,.38) 33%, rgba(210,235,255,.48) 44%, rgba(150,205,255,.36) 57%,
    rgba(90,155,240,.2) 70%, rgba(40,95,180,.09) 83%, rgba(0,0,0,0) 100%);
  animation: worksAurora3 6.5s ease-in-out infinite;
}
.aurora-blob-4 {
  left: 86%; width: min(520px, 50vmax); height: min(2700px, 245vmax);
  background: linear-gradient(180deg,
    rgba(0,0,0,0) 0%, rgba(35,90,190,.07) 11%, rgba(70,140,240,.22) 23%,
    rgba(105,175,255,.36) 35%, rgba(140,200,255,.46) 47%, rgba(105,175,255,.36) 59%,
    rgba(60,120,220,.2) 72%, rgba(25,70,150,.08) 85%, rgba(0,0,0,0) 100%);
  animation: worksAurora4 10.5s ease-in-out infinite;
}
@keyframes worksAurora1 {
  0%   { transform: translate(-50%,-50%) translateZ(0px) translateX(0px) rotateY(0deg) skewX(0deg) scaleY(1) scaleX(1); opacity: .75; }
  22%  { transform: translate(-50%,-50%) translateZ(90px) translateX(120px) rotateY(-10deg) skewX(6deg) scaleY(1.14) scaleX(.88); opacity: .95; }
  46%  { transform: translate(-50%,-50%) translateZ(-70px) translateX(-90px) rotateY(9deg) skewX(-5deg) scaleY(.9) scaleX(1.1); opacity: .6; }
  70%  { transform: translate(-50%,-50%) translateZ(60px) translateX(150px) rotateY(-7deg) skewX(4deg) scaleY(1.08) scaleX(.92); opacity: .85; }
  88%  { transform: translate(-50%,-50%) translateZ(-30px) translateX(-60px) rotateY(5deg) skewX(-3deg) scaleY(.96) scaleX(1.04); opacity: .7; }
  100% { transform: translate(-50%,-50%) translateZ(0px) translateX(0px) rotateY(0deg) skewX(0deg) scaleY(1) scaleX(1); opacity: .75; }
}
@keyframes worksAurora2 {
  0%   { transform: translate(-50%,-50%) translateZ(0px) translateX(0px) rotateY(0deg) skewX(0deg) scaleY(1) scaleX(1); opacity: .55; }
  25%  { transform: translate(-50%,-50%) translateZ(-80px) translateX(-140px) rotateY(11deg) skewX(-7deg) scaleY(1.18) scaleX(.85); opacity: .8; }
  52%  { transform: translate(-50%,-50%) translateZ(70px) translateX(110px) rotateY(-8deg) skewX(5deg) scaleY(.86) scaleX(1.12); opacity: .5; }
  78%  { transform: translate(-50%,-50%) translateZ(-50px) translateX(-100px) rotateY(6deg) skewX(-4deg) scaleY(1.1) scaleX(.94); opacity: .68; }
  100% { transform: translate(-50%,-50%) translateZ(0px) translateX(0px) rotateY(0deg) skewX(0deg) scaleY(1) scaleX(1); opacity: .55; }
}
@keyframes worksAurora3 {
  0%   { transform: translate(-50%,-50%) translateZ(0px) translateX(0px) rotateY(0deg) skewX(0deg) scaleY(1) scaleX(1); opacity: .5; }
  30%  { transform: translate(-50%,-50%) translateZ(85px) translateX(130px) rotateY(-12deg) skewX(7deg) scaleY(.88) scaleX(1.14); opacity: .32; }
  58%  { transform: translate(-50%,-50%) translateZ(-95px) translateX(-120px) rotateY(10deg) skewX(-6deg) scaleY(1.2) scaleX(.86); opacity: .62; }
  82%  { transform: translate(-50%,-50%) translateZ(40px) translateX(80px) rotateY(-5deg) skewX(3deg) scaleY(.95) scaleX(1.05); opacity: .42; }
  100% { transform: translate(-50%,-50%) translateZ(0px) translateX(0px) rotateY(0deg) skewX(0deg) scaleY(1) scaleX(1); opacity: .5; }
}
@keyframes worksAurora4 {
  0%   { transform: translate(-50%,-50%) translateZ(0px) translateX(0px) rotateY(0deg) skewX(0deg) scaleY(1) scaleX(1); opacity: .65; }
  35%  { transform: translate(-50%,-50%) translateZ(-75px) translateX(-130px) rotateY(-9deg) skewX(-6deg) scaleY(1.16) scaleX(.87); opacity: .42; }
  68%  { transform: translate(-50%,-50%) translateZ(65px) translateX(105px) rotateY(8deg) skewX(5deg) scaleY(.9) scaleX(1.1); opacity: .58; }
  100% { transform: translate(-50%,-50%) translateZ(0px) translateX(0px) rotateY(0deg) skewX(0deg) scaleY(1) scaleX(1); opacity: .65; }
}

.works-noise {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: .18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}

.works-content { position: relative; z-index: 4; width: 100%; max-width: 1200px; text-align: center; }
.works-title {
  font-size: var(--title-size); color: #fff;
  letter-spacing: 1px; margin: 0 0 3rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,.8);
}

.video-player-container {
  position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.5); background: #111;
}
.video-player-wrapper { position: absolute; inset: 0; }
.video-player-wrapper iframe { width: 100%; height: 100%; border: 0; }
.showreel-video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; cursor: pointer; outline-offset: -3px; }

.play-button {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 10;
  width: 80px; height: 80px; border: 3px solid #fff; border-radius: 50%;
  background: rgba(30,114,252,.3); cursor: pointer; transition: all .4s ease;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
}
.play-button:hover { width: 100px; height: 100px; background: rgba(30,114,252,.5); box-shadow: 0 0 30px rgba(30,114,252,.6); }
.play-button svg { width: 35px; height: 35px; margin-left: 6px; }
.play-button.hidden { display: none; }

/* Cada fundido acaba en el color del bloque vecino (sin cortes): por defecto el fondo general (--bg),
   y negro puro donde el vecino es un bloque #000 (Our Services / Our Drones alrededor de Our Reels, Our Drones encima de Experiencia). */
.works-gradient-top, .works-gradient-bottom { --fade-rgb: 10 10 12; }
/* El desenfoque de la aurora pinta fuera del bloque (línea gris fina en el borde): se recorta al borde exacto */
.works-section, .team-experience-section:not(.team-experience-section--plain) { clip-path: inset(0); }
/* Home: todo sobre negro puro (los bloques ya lo son); así los bordes recortados y los fundidos no dejan ver el gris del body */
.home { background: #000; }
.home .works-gradient-top, .home .works-gradient-bottom { --fade-rgb: 0 0 0; }
.works-section .works-gradient-top, .works-section .works-gradient-bottom,
.team-experience-section .works-gradient-top { --fade-rgb: 0 0 0; }
.works-gradient-top {
  /* -2px: cubre la fila de píxel parcial del borde (si no, la aurora asoma como una línea fina) */
  position: absolute; top: -2px; left: 0; width: 100%; height: 402px;
  background: linear-gradient(180deg,
    rgb(var(--fade-rgb) / 1) 0%, rgb(var(--fade-rgb) / .9) 25%, rgb(var(--fade-rgb) / .55) 55%, rgb(var(--fade-rgb) / .2) 80%, rgb(var(--fade-rgb) / 0) 100%);
  pointer-events: none; z-index: 3;
}
.works-gradient-bottom {
  position: absolute; bottom: -2px; left: 0; width: 100%; height: 402px;
  background: linear-gradient(180deg,
    rgb(var(--fade-rgb) / 0) 0%, rgb(var(--fade-rgb) / .2) 20%, rgb(var(--fade-rgb) / .55) 45%, rgb(var(--fade-rgb) / .9) 75%, rgb(var(--fade-rgb) / 1) 100%);
  pointer-events: none; z-index: 3;
}

@media (max-width: 1024px) {
  .play-button { width: 60px; height: 60px; }
  .play-button:hover { width: 75px; height: 75px; }
}
@media (max-width: 767px) {
  .works-section { min-height: 60vh; padding: 2rem 1rem; }
  .works-title { margin-bottom: 2rem; }
  .video-player-container { aspect-ratio: 9/16; }
  .video-player-container.is-landscape { aspect-ratio: 16/9; } /* showreel horizontal: sin bandas negras en móvil */
  .play-button { width: 50px; height: 50px; }
  .play-button svg { width: 25px; height: 25px; }
}

/* --- Portfolio --- */
.portfolio-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(3, 1fr); }
.p-card {
  position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4/3;
  cursor: pointer; background: var(--bg-2); border: 1px solid var(--line-soft);
}
.p-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out), filter .6s var(--ease-out); }
.p-card:hover img { transform: scale(1.08); filter: saturate(1.15) brightness(1.05); }
.p-card-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.3rem; background: linear-gradient(180deg, transparent 30%, rgba(10,10,12,.92) 100%);
}
.p-card-cat { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); margin-bottom: .35rem; }
.p-card h3 { font-size: 1.08rem; }
.p-card-play {
  position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(10,10,12,.55); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.8); transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.p-card:hover .p-card-play { opacity: 1; transform: scale(1); }
.p-card-play svg { width: 14px; height: 14px; fill: var(--ink); }

/* --- Fleet --- */

/* --- Team --- */
.team-grid {
  display: grid; gap: 3rem; grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 42rem; margin: 0 auto 2rem; justify-items: center;
}
.team-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: transform .4s var(--ease-out);
}
.team-card:hover { transform: translateY(-8px); }
/* 3.º perfil centrado debajo de los dos primeros (triángulo invertido); en móvil, una columna */
.team-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.team-avatar {
  flex: none; width: 160px; height: 160px; border-radius: 50%; margin-bottom: 1.4rem;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-family: var(--display); font-weight: 600; font-size: 2.6rem; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transition: transform .4s ease;
}
.team-avatar.is-empty { background: var(--bg-3); color: var(--ink-dim); }
.team-avatar.is-empty svg { width: 46%; height: 46%; fill: currentColor; }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.team-card:hover .team-avatar { transform: scale(1.04); }
/* Jerarquía como la referencia: nombre grande > puesto > especialidad (más discreta) > email */
.team-name {
  font-family: var(--display); font-size: clamp(1.36rem, 2.08vw, 1.76rem); font-weight: 400; color: #fff;
  line-height: 1.1; margin: 0 0 .9rem; letter-spacing: -.01em;
}
.team-jobtitle { color: #fff; font-size: 1.05rem; font-weight: 600; letter-spacing: .3px; margin: 0 0 .35rem; }
.team-specialty { color: var(--ink-mute); font-size: .9rem; font-weight: 300; line-height: 1.5; margin: 0 0 1rem; }
.team-email {
  display: inline-block; color: rgba(255,255,255,.75); font-size: .9rem; border-bottom: 1px solid transparent;
  transition: color .3s ease, border-color .3s ease;
}
.team-jobtitle + .team-email { margin-top: 1rem; }
.team-email:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); }

@media (min-width: 1024px) {
  .team-grid { max-width: 52rem; gap: 5rem; }
  .team-avatar { width: 240px; height: 240px; font-size: 3.6rem; margin-bottom: 1.8rem; }
}
/* Con 3 perfiles visibles (main.js añade .team-grid--3): una sola fila centrada, con el mismo ancho de columna y el mismo hueco que la rejilla
   de 2 (19,5 rem en tablet, 23,5 rem en escritorio; si no caben, las columnas se estrechan por igual). Con 4 o más vuelve la rejilla de 2.
   En teléfono no aplica: siguen de dos en dos con la última centrada (no caben 3 avatares en una fila). */
@media (min-width: 768px) {
  .team-grid--3 { max-width: none; grid-template-columns: repeat(3, minmax(0, 19.5rem)); justify-content: center; }
  .team-grid--3 .team-card:last-child:nth-child(odd) { grid-column: auto; }
}
@media (min-width: 1024px) {
  .team-grid--3 { grid-template-columns: repeat(3, minmax(0, 23.5rem)); }
}

/* Cabecera del Equipo: centrada como el resto de secciones, sin etiqueta azul.
   Bloque ancho + text-wrap: balance para que el copy ocupe las mínimas líneas posibles. */
.team-head { max-width: 76rem; margin-inline: auto; text-align: center; }
.team-head .section-title { margin-bottom: 1.25rem; }
.team-tagline {
  font-family: var(--display); font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; color: #fff;
  letter-spacing: -.01em; line-height: 1.25; margin: 0 0 1rem;
}
.team-copy p { color: rgba(255,255,255,.7); font-size: 1rem; line-height: 1.6; text-wrap: balance; }
.team-copy .team-tagline { color: #fff; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.25; }
.team-copy p + p { margin-top: .8rem; }
.team-copy strong { color: #fff; font-weight: 600; }

/* Bloque unificado TEMPORAL "Equipo + Nuestro equipo ha trabajado en" (Marc, 2026-11-27): credencial IDRON Lex + banner con título discreto.
   Todo reutiliza tokens y componentes existentes (carrusel .team-experience-*); solo se añade el chip y la etiqueta pequeña. */
.team[hidden] { display: none; }
.team-credential {
  display: flex; width: fit-content; align-items: center; gap: .7rem; margin: 2rem auto 0;
  padding: .3rem 1.1rem .3rem .3rem; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.04);
}
.team-credential-logo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; display: block; flex: none; }
.team-credential-text { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.team-credential-label { font-family: var(--display); font-size: .6875rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.team-credential-name { font-size: .9rem; font-weight: 500; color: #fff; margin-top: .1rem; }
.team-unified-banner { max-width: 1400px; margin: clamp(3rem, 6vw, 4.5rem) auto 0; padding-inline: 2rem; }
.team-unified-eyebrow {
  margin: 0; text-align: center; font-family: var(--display); font-size: .75rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55);
}
.team-unified-banner .team-experience-carousel-container { margin-top: 1.25rem; }
@media (max-width: 768px) { .team-unified-banner { padding-inline: 1rem; } }

/* Móvil: el equipo va de dos en dos (Marc, 2026-11-09), así no se hace larguísimo; con un número impar, el último queda centrado abajo */
@media (max-width: 767px) {
  .team-grid { gap: 2.25rem 1rem; }
  .team-avatar { width: min(140px, 36vw); height: min(140px, 36vw); font-size: 2.2rem; margin-bottom: 1rem; }
  .team-name { font-size: 1.2rem; margin-bottom: .55rem; }
  .team-jobtitle { font-size: .95rem; }
  .team-specialty { font-size: .82rem; margin-bottom: .6rem; }
  .team-jobtitle + .team-email { margin-top: .6rem; }
  .team-email { font-size: .78rem; overflow-wrap: anywhere; }
}

/* --- Team experience banner (proyectos externos del equipo) ---
   Reutiliza el fondo aurora del bloque Works (.works-background, .aurora-blob-*, .works-noise y los
   degradados .works-gradient-top/bottom, que fundían el bloque con sus vecinos). Bordes rectos. */
.team-experience-section {
  position: relative; width: 100%; background: #000; padding: 6rem 2rem; overflow: hidden; min-height: 600px;
}
.team-experience-section .section-content { position: relative; z-index: 4; max-width: 1400px; margin: 0 auto; }

.team-experience-header { text-align: center; margin-bottom: 2rem; }
.team-experience-title {
  font-family: var(--display); font-size: var(--title-size); font-weight: 700; color: #fff;
  margin: 0 0 1rem; letter-spacing: -.02em;
}
.team-experience-description {
  font-size: 1.1rem; color: rgba(255,255,255,.7); max-width: 720px; margin: 0 auto; line-height: 1.6;
}

.team-experience-cta-wrapper { display: flex; justify-content: center; margin-bottom: 3rem; }
.team-experience-cta {
  display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.5rem;
  font-size: .95rem; font-weight: 600; color: #1E72FC; border: 1px solid #1E72FC; background: transparent;
  border-radius: 999px; text-decoration: none; cursor: pointer; letter-spacing: .01em; transition: all .3s ease;
}
.team-experience-cta:hover { background: rgba(30,114,252,.1); transform: translateX(2px); }
.team-experience-cta .cta-arrow { transition: transform .3s ease; }
.team-experience-cta:hover .cta-arrow { transform: translateX(3px); }

.team-experience-carousel-container { position: relative; width: 100%; margin-top: 2rem; }
.team-experience-carousel {
  display: flex; gap: 1.5rem; overflow-x: auto; padding-bottom: 1rem;
  scrollbar-width: none; -ms-overflow-style: none; cursor: grab;
}
.team-experience-carousel::-webkit-scrollbar { display: none; }
.team-experience-carousel.is-dragging { cursor: grabbing; user-select: none; }

.team-experience-slide {
  flex: 0 0 350px; height: 450px; position: relative; overflow: hidden; background: #1a1a1a;
  border: 1px solid rgba(255,255,255,.1); transition: all .3s ease;
}
.team-experience-slide:hover { border-color: #1E72FC; box-shadow: 0 0 30px rgba(30,114,252,.3); }
.team-experience-slide .slide-image {
  width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease;
  -webkit-user-drag: none;
}
.team-experience-slide:hover .slide-image { transform: scale(1.05); }
/* Texto del hover: misma estética que las galletas de "Our Services" (.service-card-*):
   contenido centrado abajo, padding 2rem, título 1.8rem/700 (blanco → #1E72FC al hover),
   subtítulo 1.4rem/600 blanco, y el mismo degradado azul del hover. */
.team-experience-slide .slide-overlay {
  position: absolute; inset: 0; z-index: 2; padding: 2rem; text-align: center;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  background: linear-gradient(180deg, rgba(30,114,252,.2) 0%, rgba(30,114,252,.4) 50%, rgba(0,0,0,.9) 100%);
  opacity: 0; transition: opacity .4s ease;
}
.team-experience-slide:hover .slide-overlay { opacity: 1; }
.team-experience-slide .slide-title {
  font-family: var(--display); font-size: 1.8rem; font-weight: 700; color: #fff;
  text-transform: none; letter-spacing: 1px; margin: 0 0 .8rem; transition: color .4s ease;
}
.team-experience-slide:hover .slide-title { color: #1E72FC; }
.team-experience-slide .slide-role {
  font-family: var(--display); font-size: 1.4rem; font-weight: 600; color: #fff;
  margin: 0; letter-spacing: .5px;
}

/* Sin hover (táctil): el texto de cada slide se muestra siempre */
@media (hover: none) {
  .team-experience-slide .slide-overlay {
    opacity: 1; background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.5) 50%, rgba(0,0,0,.8) 100%);
  }
}
@media (max-width: 1024px) {
  .team-experience-slide { flex: 0 0 300px; height: 380px; }
  .team-experience-slide .slide-title { font-size: 1.6rem; }
  .team-experience-slide .slide-role { font-size: 1.2rem; }
}
@media (max-width: 768px) {
  .team-experience-section { padding: 4rem 1rem; min-height: 500px; }
  .team-experience-description { font-size: 1rem; }
  .team-experience-slide { flex: 0 0 280px; height: 350px; }
  .team-experience-slide .slide-title { font-size: 1.4rem; }
  .team-experience-slide .slide-role { font-size: 1.1rem; }
}

/* Variante "Detrás de cámaras": mismo banner pero con el fondo negro de la página (sin aurora ni degradados),
   pegado a la sección de arriba (el espaciado lo dan las secciones vecinas). Va después de los @media anteriores. */
.team-experience-section--plain { background: transparent; padding: 0 2rem; min-height: 0; }
.team-experience-section--plain .team-experience-carousel-container { margin-top: 3rem; }
@media (max-width: 768px) {
  .team-experience-section--plain { padding: 0 1rem; min-height: 0; }
  .team-experience-section--plain .team-experience-carousel-container { margin-top: 2rem; }
}

/* --- Páginas de detalle de servicios: hero centrado + fichas de dron (ficha técnica) --- */
.detail-hero { padding: calc(var(--nav-h) + 4.5rem) 0 3rem; text-align: center; }
.detail-hero .container { max-width: 62rem; }
.detail-hero .kicker { justify-content: center; }
.detail-hero h1 { font-size: var(--title-size); margin: 0 0 1.25rem; }
.detail-hero p:not(.kicker) { color: var(--ink-mute); font-size: 1.05rem; line-height: 1.7; max-width: 48rem; margin-inline: auto; text-wrap: balance; }
.detail-hero strong { color: #fff; font-weight: 600; }

.detail-drones { padding-bottom: 1rem; }
/* Orden por peso de las fichas de drones: usa el MISMO componente que el filtro de Trabajos (.projects-filter, .filter-pill…); aquí solo se ajusta el hueco */
.drone-filter { margin-bottom: 0; }

.drone { display: flex; flex-direction: column; gap: 1.5rem; padding: clamp(2.5rem, 5vw, 3.5rem) 0; border-top: 1px solid var(--line-soft); }
.drone-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.drone-col { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
/* Las dos pestañas de información ocupan la misma celda: la tarjeta no cambia de alto al alternarlas. */
.drone-panels { display: grid; }
.drone-panels > .drone-panel { grid-area: 1 / 1; }
.drone-panels > .drone-panel[hidden] { display: block; visibility: hidden; }
.drone-filter + .drone { border-top: 0; }
.drone-head { display: flex; flex-direction: column; gap: .3rem; }
.drone-system { color: var(--accent-2); font-size: .8rem; letter-spacing: .08em; margin: 0; }
.drone-name { font-size: clamp(1.45rem, 2.4vw, 1.75rem); line-height: 1.15; margin: 0; }

.drone-tabs {
  display: inline-flex; gap: .375rem; width: fit-content; padding: .25rem;
  background: rgba(245,245,247,.05); border: 1px solid var(--line); border-radius: 999px;
}
.drone-tabs button {
  font-family: "Jost", sans-serif; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .6rem 1.15rem; border: 0; border-radius: 999px; background: none; color: #c7cad1; cursor: pointer;
  transition: background .3s ease, color .3s ease;
}
.drone-tabs button:hover { color: #fff; }
.drone-tabs button[aria-selected="true"] { background: var(--accent); color: #fff; }

.drone-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-2); border: 1px solid var(--line); }
.drone-media > .drone-panel { height: 100%; }
.drone-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease-out); }
.drone:hover .drone-media img { transform: scale(1.05); }
.drone-media iframe { width: 100%; height: 100%; border: 0; display: block; }
/* Cartel "Próximamente" en el lugar del vídeo de las fichas que aún no lo tienen */
.drone-soon { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--bg-2); }
.drone-soon span { font-family: "Jost", sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: clamp(.95rem, 1.6vw, 1.35rem); color: #fff; padding: .7rem 1.4rem; border: 1px solid var(--line); border-radius: 999px; }

.drone-pitch { color: var(--ink-mute); line-height: 1.7; margin: 0; }
.drone-caveat { display: flex; gap: .55rem; align-items: flex-start; color: var(--ink-mute); font-size: .875rem; line-height: 1.6; margin: 1rem 0 0; }
.drone-caveat svg { flex-shrink: 0; width: 1rem; height: 1rem; margin-top: .2rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drone-caveat strong { color: #fff; font-weight: 600; }
.drone-tags-label { color: var(--ink-mute); font-size: .75rem; letter-spacing: .08em; margin: 1.4rem 0 .6rem; }
.drone-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.drone-tags span { border: 1px solid var(--line); border-radius: 999px; padding: .25rem .8rem; font-size: .85rem; color: #fff; }
.drone-tags--fit span { border-color: rgba(111,155,255,.3); background: rgba(111,155,255,.08); color: #a9c0ff; }

.drone-specs { margin: 0; }
.drone-specs > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: .75rem 0; border-bottom: 1px solid var(--line-soft); }
.drone-specs > div:last-child { border-bottom: 0; }
.drone-specs dt { color: #eaecee; font-size: .8rem; letter-spacing: .05em; flex-shrink: 0; }
.drone-specs dd { margin: 0; color: var(--ink-mute); font-size: .9rem; text-align: right; }
@media (max-width: 1000px) {
  .drone-body { gap: 1.75rem; }
}
@media (max-width: 700px) {
  .drone { gap: 1.1rem; }
  .drone-body { grid-template-columns: 1fr; gap: 1.75rem; }
  .drone-col { gap: 1rem; }
}
@media (max-width: 560px) {
  .drone-tabs { display: flex; width: 100%; }
  .drone-tabs button { flex: 1; min-height: 44px; padding-inline: .5rem; }
  .drone-pitch { font-size: .95rem; }
  .drone-specs > div { padding: .7rem 0; gap: 1rem; }
  .drone-specs dd { font-size: .875rem; }
}
/* --- Proyectos: listado (Trabajos / Works) y ficha de detalle --- */
.btn-sm { padding: .6rem 1.2rem; font-size: .85rem; }
.projects-hero { padding-bottom: 2.5rem; }
.projects { padding-bottom: clamp(4rem, 8vw, 6rem); }
/* Grid de proyectos casi a todo el ancho de pantalla: las imágenes mandan */
.projects .container, .project-related .container { max-width: 2200px; padding-inline: clamp(1.25rem, 2.5vw, 2.5rem); }
.projects .container { min-height: 34rem; }

.projects-filter { position: relative; padding-bottom: 1.5rem; margin-bottom: 2.25rem; border-bottom: 1px solid var(--line); }
.projects-filter-btn {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .6rem 1.15rem;
  font-family: "Jost", sans-serif; font-size: .9rem; color: #fff; cursor: pointer;
  background: none; border: 1px solid rgba(245,245,247,.2); border-radius: 999px; transition: border-color .3s ease;
}
.projects-filter-btn:hover, .projects-filter-btn[aria-expanded="true"] { border-color: rgba(245,245,247,.5); }
.projects-filter-btn span { color: var(--accent-2); }
.projects-filter-btn svg { width: .6rem; height: .4rem; fill: currentColor; transition: transform .3s ease; }
.projects-filter-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.projects-filter-panel {
  position: absolute; z-index: 20; top: calc(100% - 1rem); left: 0; width: min(36rem, 100%);
  padding: 1.25rem; background: #15161a; border: 1px solid rgba(245,245,247,.14); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.projects-filter-panel .filter-label { color: var(--ink-mute); font-size: .75rem; letter-spacing: .08em; margin: 0 0 .6rem; }
.projects-filter-panel .filter-pills + .filter-label { margin-top: 1.25rem; }
.filter-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-pill {
  font-family: "Jost", sans-serif; font-size: .85rem; color: #c7cad1; cursor: pointer;
  padding: .45rem 1rem; background: none; border: 1px solid rgba(245,245,247,.14); border-radius: 999px;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.filter-pill:hover { color: #fff; border-color: rgba(245,245,247,.4); }
.filter-pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.projects-filter-foot { display: flex; justify-content: flex-end; margin-top: 1.25rem; }

.projects-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.project-card { display: flex; flex-direction: column; color: inherit; }
.project-card[hidden] { display: none; }
.project-thumb {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px;
  background: var(--bg-2); border: 1px solid rgba(245,245,247,.1); transition: border-color .3s ease;
}
.project-thumb img, .project-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.project-thumb video { opacity: 0; transition: opacity .3s ease; }
.project-thumb video.is-playing { opacity: 1; }
.project-card:hover .project-thumb, .project-card:focus-visible .project-thumb { border-color: rgba(111,155,255,.4); }
.project-card-title { font-size: clamp(.95rem, 1.1vw, 1.2rem); line-height: 1.25; margin: .7rem 0 0; color: #fff; }
.project-card-meta { color: var(--ink-mute); font-size: clamp(.8rem, .85vw, .9rem); margin: .2rem 0 0; }
.projects-empty { text-align: center; padding: 3rem 0; color: var(--ink-mute); }
.projects-empty p { margin: 0 0 1.25rem; }

.project-detail { padding: calc(var(--nav-h) + 2.5rem) 0 3rem; }
.project-detail .container { display: flex; flex-direction: column; gap: 1.5rem; }
.project-back { display: inline-flex; align-items: center; gap: .4rem; width: fit-content; color: var(--ink-mute); font-size: .9rem; transition: color .3s ease; }
.project-back:hover { color: #fff; }
.project-back svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.project-head { text-align: center; }
.project-head .kicker { justify-content: center; }
.project-head h1 { font-size: var(--title-size); line-height: 1.1; margin: 0; }
.project-attribution { margin: .75rem 0 0; color: var(--ink-mute); font-size: 1rem; }
.project-video { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); }
.project-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.project-panel { max-width: 48rem; }
.project-text { color: var(--ink-mute); line-height: 1.7; margin: 0; }
/* Making of: mismo banner que "Detrás de cámaras" de la home + flechas */
.project-bts-section { padding-bottom: 4rem; }
.project-bts-section .team-experience-carousel-container { margin-top: 1rem; }
.carousel-arrow {
  position: absolute; z-index: 3; top: calc(50% - .5rem); transform: translateY(-50%);
  width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; color: #fff;
  background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.3); border-radius: 999px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .3s ease, border-color .3s ease, opacity .3s ease;
}
.carousel-arrow:hover { background: var(--accent); border-color: var(--accent); }
.carousel-arrow:disabled { opacity: 0; pointer-events: none; }
.carousel-arrow[hidden] { display: none; }
.team-experience-section[hidden] { display: none; }
.carousel-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carousel-arrow--prev { left: 1rem; }
.carousel-arrow--next { right: 1rem; }
.project-related { padding: 3rem 0 clamp(4rem, 8vw, 6rem); border-top: 1px solid var(--line-soft); }
.project-related-title { font-size: var(--title-size); text-align: center; margin: 0 0 2rem; }
/* Mismo tamaño de card que en el listado, centradas aunque haya solo 1-2 */
.projects-grid--related { display: flex; flex-wrap: wrap; justify-content: center; }
.projects-grid--related .project-card { width: calc((100% - 60px) / 4); }

@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .projects-grid--related .project-card { width: calc((100% - 40px) / 3); }
}
@media (max-width: 700px) {
  .projects-grid, .projects-grid--related { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .projects-grid--related .project-card { width: calc((100% - 12px) / 2); }
  .projects-filter-panel { width: 100%; padding: 1rem; }
  .filter-pill { min-height: 44px; }
  .project-card-title { font-size: .85rem; }
  .project-card-meta { font-size: .75rem; }
  .carousel-arrow { width: 40px; height: 40px; }
  .carousel-arrow--prev { left: .5rem; }
  .carousel-arrow--next { right: .5rem; }
  .project-detail .drone-tabs { display: flex; width: 100%; }
  .project-detail .drone-tabs button { flex: 1; min-height: 44px; }
}

.detail-reel { padding: clamp(2rem, 5vw, 4rem) 0; border-top: 1px solid var(--line-soft); }
.detail-reel-title { font-size: var(--title-size); text-align: center; margin: 0 0 2rem; }
.detail-reel .video-player-container { aspect-ratio: 16 / 9; }
.video-player-container > .drone-soon { position: absolute; inset: 0; } /* cartel "Próximamente" en lugar del reel */
.detail-cta-wrap { text-align: center; padding: 3rem 0 6rem; border-top: 1px solid var(--line-soft); }

/* --- Contact --- */
/* Cabecera centrada como el resto de secciones; datos de contacto con etiqueta apagada + valor grande */
.contact-head { text-align: center; margin-inline: auto; }
.contact-head .section-lead { margin-inline: auto; }
/* Párrafo bajo las tarjetas de Our Drones: mismo lead de la web, centrado bajo las dos tarjetas */
.drones-section .section-lead { margin: clamp(2rem, 4vw, 3rem) auto 0; text-align: center; }
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr 1fr; align-items: center; }
.contact-grid > * { min-width: 0; } /* sin esto, en móvil el formulario (un select ancho) ensancha la columna y se sale por la derecha */
.contact-list { display: flex; flex-direction: column; gap: 1.6rem; }
.contact-list li { display: flex; flex-direction: column; gap: .3rem; }
.contact-list span { font-size: .95rem; font-weight: 300; color: var(--ink-mute); }
.contact-list a, .contact-list p { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 400; color: #fff; line-height: 1.25; }
.contact-list a:hover { color: var(--accent-2); }
.social-links { display: flex; gap: .8rem; margin-top: .3rem; }
.social-link {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .3s ease, color .3s ease, transform .3s ease;
}
.social-link:hover { border-color: var(--accent); transform: translateY(-2px); }

.contact-form { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 20px; padding: clamp(1.5rem, 3vw, 2.4rem); display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: flex; flex-direction: column; gap: .45rem; }
.form-row label { font-size: .85rem; color: var(--ink-mute); }
.form-row input, .form-row select, .form-row textarea {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; padding: .8rem .9rem;
  color: var(--ink); font: inherit; transition: border-color .3s var(--ease-out);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--accent); outline: none; }
.form-row-check { flex-direction: row; align-items: flex-start; gap: .6rem; }
.form-row-check input { margin-top: .2rem; flex: none; }
.form-row-check label { font-size: .82rem; color: var(--ink-mute); }
.form-row-check a { color: var(--accent-2); text-decoration: underline; }
.form-status { font-size: .88rem; min-height: 1.2em; color: var(--accent-2); }
.form-status[data-state="error"] { color: #ff6b6b; }

/* --- Footer --- */
.footer { background: #0a0a0a; color: #fff; border-top: 1px solid var(--line-soft); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; }
.footer a { color: #fff; transition: opacity .25s ease; }
.footer a:hover, .footer a:focus-visible { opacity: .6; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.footer-col ul { display: grid; gap: .7rem; }
.footer-col li { font-size: .95rem; line-height: 1.4; color: #fff; }
.footer-col li, .footer-col li a { font-weight: 300; }
.footer-col li.footer-col-title, .footer-col li.footer-col-title a { font-weight: 600; }
.footer-social { display: flex; gap: .7rem; margin-top: 1.1rem; }
.footer-social-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); color: #fff; }
.footer a.footer-social-icon:hover { opacity: 1; background: #fff; color: #0a0a0a; border-color: #fff; }
.footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; border-top: 1px solid var(--line-soft); padding-top: 2rem; }
.footer-logo { display: inline-flex; align-items: center; justify-self: start; }
.footer-logo img { display: block; width: 200px; height: auto; transition: opacity .3s ease, transform .5s var(--ease-out); }
/* >=1100px: versión con la línea de servicios, a un ancho en el que esa línea aún se lee */
@media (min-width: 1100px) { .footer-logo img { width: 340px; } }
.footer a.footer-logo:hover, .footer a.footer-logo:focus-visible { opacity: 1; }
.footer-logo:hover img, .footer-logo:focus-visible img { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .footer-logo img { transition: none; } .footer-logo:hover img { transform: none; } }
.footer-legal { text-align: center; display: grid; gap: .4rem; }
.footer-legal p, .footer-legal a { font-size: .82rem; color: #fff; }
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .footer-bottom { grid-template-columns: 1fr; justify-items: start; padding-bottom: 8rem; }
  .footer-legal { text-align: left; }
}

.whatsapp-float {
  position: fixed; right: 1.25rem; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); z-index: 400;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px -8px rgba(0,0,0,.6);
  transition: transform .3s var(--ease-out);
}
.whatsapp-float:hover { transform: scale(1.08); }

/* Llegada desde Servicios (?categoria=): "Pedir presupuesto" fijo abajo en el centro; baja fuera de pantalla al hacer scroll hacia abajo */
.projects-quote-float {
  position: fixed; left: 50%; bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px) + var(--qf-lift, 0px)); z-index: 390;
  transform: translateX(-50%);
  transition: transform .4s var(--ease-out), box-shadow .35s var(--ease-out), background .3s var(--ease-out), visibility 0s;
}
.has-quote-float { padding-bottom: calc(clamp(4rem, 8vw, 6rem) + 2.5rem); }
.projects-quote-float:hover { transform: translate(-50%, -2px); }
.projects-quote-float.is-hidden {
  transform: translate(-50%, calc(100% + 3rem)); visibility: hidden;
  transition: transform .35s var(--ease-out), visibility 0s .35s;
}
@media (prefers-reduced-motion: reduce) { .projects-quote-float, .projects-quote-float.is-hidden { transition: none; } }

.back-to-top {
  position: fixed; right: 1.25rem; bottom: 5.5rem; z-index: 400;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 10px 28px -8px rgba(0,0,0,.6);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-2px) scale(1.06); }

/* --- Project modal --- */
.project-modal {
  border: 1px solid var(--line); border-radius: 20px; background: var(--bg-2); color: var(--ink);
  padding: 0; width: min(760px, 92vw); max-height: 88vh; overflow: auto;
}
.project-modal::backdrop { background: rgba(6,6,8,.78); backdrop-filter: blur(4px); }
.modal-close {
  position: absolute; top: .8rem; right: .8rem; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; background: rgba(10,10,12,.6);
  font-size: 1.4rem; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.modal-media { position: relative; aspect-ratio: 16/9; background: var(--bg-3); }
.modal-media iframe, .modal-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.modal-media-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--ink-dim); font-size: .95rem; text-align: center; padding: 1rem;
}
.modal-body { padding: 1.6rem 1.8rem 2rem; }
.modal-body h3 { font-size: 1.3rem; margin: .3rem 0 .8rem; }
.modal-body p:last-child { color: var(--ink-mute); }

/* =============================================================
   7. Effects — reduced-motion gating (only intrusive ones)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video, .hero-media img { animation: none; }
  .scroll-cue span { animation: none; }
  .hero-anim-down, .hero-anim-up { animation: none; opacity: 1; transform: none; }
}

/* =============================================================
   8. Responsive (mobile-first overrides above via clamp(); breakpoints below) */
@media (max-width: 959px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 539px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .team-card { flex-direction: column; }
  .whatsapp-float { right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 960px) {
  .nav-toggle { display: none; }
}

/* ============================================================================
   TIPOGRAFÍA v3 — Jost (títulos, nav, etiquetas) + Lexend (cuerpo, sin cambios).
   Solo fuente, peso y caso: tamaños, interlineado, tracking, colores y layout no se tocan.
   ========================================================================= */
/* Nivel 1 — nav, tags de servicio y etiquetas cortas */
.nav-links > a, .nav-item-dropdown > a, .nav-dropdown a,
.mobile-menu > a, .mobile-submenu a,
.hero-kicker, .kicker, .p-card-cat, .brand-bar-title,
.drone-system, .drone-tags-label, .drone-specs dt, .filter-label {
  font-family: "Jost", sans-serif; font-weight: 400; text-transform: uppercase;
}
/* Nivel 2 — H1 */
h1, .hero-title, .works-title {
  font-family: "Jost", sans-serif; font-weight: 600; text-transform: uppercase; font-style: normal;
}
/* Nivel 3 — H2 */
h2, .section-title, .services-title, .team-experience-title, .detail-reel-title, .drone-name,
.project-card-title, .project-related-title {
  font-family: "Jost", sans-serif; font-weight: 500; text-transform: uppercase;
}
/* Nivel 4 — H3 (la mayúscula inicial viene del texto) */
h3, .service-card-title, .team-experience-slide .slide-title, .team-name,
.title-item {
  font-family: "Jost", sans-serif; font-weight: 400; text-transform: none;
}
/* Nivel 5 — cuerpo: Lexend 400, sin cambios */

/* --- Specialized Solutions: infografía "Del plano al equipo" (ola con 4 nodos hexagonales) ---
   Mecánica de la referencia de Marc: una ola continua, nodos con brillo debajo, una segunda ola pálida a modo de sombra, números
   enormes y tenues, y textos alineados a la izquierda que alternan encima (nodos bajos) y debajo (nodos altos) de la ola.
   Readaptada a nuestro fondo oscuro y al azul de marca. Escritorio: lienzo de altura fija (1 unidad del SVG = .1rem).
   ≤ 999 px: ruta vertical. Hover (ratón) y entrada en pantalla (táctil): main.js → initSpecializedFlow. Sin JS se ve igual. */
.s2r { padding: clamp(3rem, 6vw, 5.5rem) 0; border-top: 1px solid var(--line-soft); overflow: hidden; }
.s2r .container { max-width: 1200px; }
/* Subtítulo de sección: misma familia, pero Jost 400 (el H1 es 600) y ~78 % del tamaño del H1, para que se lea por debajo de él */
.s2r-title { text-align: center; font-size: calc(var(--title-size) * .78); font-weight: 400; margin: 0 0 clamp(1.5rem, 3vw, 2.5rem); }
.s2r-track { position: relative; }
.s2r-flow { position: relative; height: 37.5rem; margin: 0; padding: 0; list-style: none; }
.s2r-line { position: absolute; left: 0; top: 0; width: 100%; height: 37.5rem; overflow: visible; pointer-events: none; }
.s2r-wave { filter: drop-shadow(0 0 7px rgba(30,114,252,.6)); }
.s2r-shadow { opacity: .07; filter: blur(4px); }
.s2r-node {
  position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; z-index: 1; transform-origin: 0 0;
  transition: transform .5s var(--ease-out), opacity .4s ease; will-change: transform;
}
.s2r-icon {
  position: absolute; left: -2.25rem; top: -2.6rem; width: 4.5rem; height: 5.2rem; display: grid; place-items: center;
  color: var(--accent-2); filter: drop-shadow(0 .9rem 1rem rgba(30,114,252,.4)); transition: filter .4s ease, color .4s ease;
}
.s2r-hex { position: absolute; inset: 0; width: 100%; height: 100%; }
.s2r-hex path { fill: var(--bg); stroke: rgba(30,114,252,.8); stroke-width: 1.5; stroke-linejoin: round; transition: stroke .4s ease; }
.s2r-glyph { position: relative; width: 1.7rem; height: 1.7rem; }
.s2r-copy { position: absolute; left: -7rem; width: 14rem; text-align: left; }
.s2r-node--low .s2r-copy { bottom: 4.8rem; }
.s2r-node--high .s2r-copy { top: 12.8rem; }
.s2r-num {
  position: absolute; right: -2.4rem; top: -2.6rem; z-index: -1; pointer-events: none;
  font-family: "Jost", sans-serif; font-weight: 600; font-size: clamp(6rem, 9vw, 8.5rem); line-height: .8; color: rgba(245,245,247,.05);
}
.s2r-name { margin: 0 0 .5rem; font-size: 1.35rem; line-height: 1.25; color: #fff; }
.s2r-text { margin: 0; font-size: .95rem; line-height: 1.7; color: var(--ink-mute); }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .s2r-flow.has-hover .s2r-node:not(.is-hover) { opacity: .45; }
  .s2r-node.is-hover {
    transform: perspective(700px) translateY(-6px) scale(1.035) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition-duration: .3s;
  }
  .s2r-node.is-hover .s2r-icon { color: #fff; filter: drop-shadow(0 .9rem 1.2rem rgba(30,114,252,.75)); }
  .s2r-node.is-hover .s2r-hex path { stroke: var(--accent-2); }
}
@media (hover: none) and (prefers-reduced-motion: no-preference) {
  .s2r-flow.s2r-anim .s2r-node { opacity: .3; transform: translateY(16px); }
  .s2r-flow.s2r-anim .s2r-node.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .s2r-node, .s2r-icon, .s2r-hex path { transition: none; } }

@media (max-width: 999px) {
  .s2r-flow { height: auto; display: grid; gap: 2.75rem; }
  .s2r-line { display: none; }
  .s2r-flow::before {
    content: ""; position: absolute; left: calc(1.75rem - 1px); top: 1.75rem; bottom: 1.75rem; z-index: 0;
    border-left: 2px solid rgba(30,114,252,.7); filter: drop-shadow(0 0 5px rgba(30,114,252,.6));
  }
  .s2r-node { position: relative; left: auto; top: auto; width: auto; height: auto; display: grid; grid-template-columns: 3.5rem 1fr; column-gap: 1.25rem; align-items: start; }
  .s2r-icon { position: relative; left: auto; top: auto; width: 3.5rem; height: 4rem; }
  .s2r-glyph { width: 1.4rem; height: 1.4rem; }
  .s2r-copy { position: relative; left: auto; bottom: auto; top: auto; width: auto; padding-top: .2rem; }
  .s2r-node--low .s2r-copy, .s2r-node--high .s2r-copy { bottom: auto; top: auto; }
  .s2r-num { right: 0; top: -.9rem; font-size: 6rem; }
}

/* Táctil / móvil / tablet: zonas de toque de al menos ~44 px sin cambiar cómo se ve nada.
   (Auditoría 2026-11-09: logo, ES/EN, menú, "Volver a proyectos", logo del pie y email medían 17–32 px de alto.)
   El botón de menú crece de verdad (sus rayas siguen centradas); el resto amplía el área pulsable con un pseudo-elemento invisible. */
@media (hover: none), (max-width: 1024px) {
  .nav-toggle { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .nav-logo, .lang-toggle, .project-back, .footer-logo, .team-email { position: relative; }
  .nav-logo::before, .lang-toggle::before, .project-back::before, .footer-logo::before, .team-email::before {
    content: ""; position: absolute; inset: -10px -6px;
  }
}

/* ============================================================================
   SOLO TELÉFONO (≤ 767 px) — instrucciones de Marc 2026-11-09. No toca escritorio ni tablet (≥ 768 px).
   Todo en rem / vw / dvh / %, nada fijado a un modelo de iPhone concreto.
   ========================================================================= */
@media (max-width: 767px) {
  /* 1. Menú: panel a pantalla completa, negro sólido, con entrada/salida suaves (mismas curvas y tiempos que el resto del sitio).
        La barra (logo, ES/EN, botón) queda por encima del panel y sobre negro; el botón pasa a X al abrir. */
  .nav .container { position: relative; z-index: 2; }
  .nav.is-open { background: #000; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent; }
  .mobile-menu {
    display: flex; position: absolute; top: 0; left: 0; right: 0; z-index: 1;
    height: 100vh; height: 100dvh; max-height: none; box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain;
    padding: calc(var(--nav-h) + 1.25rem) 1.5rem calc(2rem + env(safe-area-inset-bottom, 0px));
    background: #000; border-top: 0; box-shadow: none;
    visibility: hidden; opacity: 0; transform: translateY(-1rem);
    transition: opacity .35s var(--ease-out), transform .45s var(--ease-out), visibility 0s linear .45s;
  }
  .nav.is-open .mobile-menu { visibility: visible; opacity: 1; transform: none; transition: opacity .35s var(--ease-out), transform .45s var(--ease-out), visibility 0s; }
  .nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body:has(.nav.is-open) { overflow: hidden; }

  /* 2. Menos aire entre el banner de marcas y "Por qué FlyPro Vision" */
  .brand-bar { padding-block: 2rem 1.25rem; }
  .brand-bar + .scroll-cards { border-top-width: .5rem; }
  .scroll-cards-head { padding-top: .5rem; }
  .scroll-cards-sticky { top: 0; } /* en móvil ya no es sticky (position: relative): el top: var(--nav-h) heredado lo empujaba 76 px hacia abajo y dejaba un hueco */

  /* 3. "Por qué": un solo bloque — imagen panorámica, 3 pestañas en línea y el texto cambia al tocar (sin depender del scroll; main.js → initScrollCards) */
  .scroll-cards-video { aspect-ratio: 16 / 9; }
  .scroll-cards-content { padding: 1.25rem 1.25rem 2rem; gap: .75rem; }
  .titles-stack { flex-direction: row; gap: .25rem; border-bottom: 1px solid rgba(255,255,255,.14); }
  .title-item {
    flex: 1 1 0; min-width: 0; min-height: 44px; display: flex; align-items: center; justify-content: center; text-align: center;
    padding: .5rem .25rem; font-size: clamp(.95rem, 4.3vw, 1.2rem); border-left: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: color .4s var(--ease-out), border-color .4s var(--ease-out);
  }
  .title-item.active { transform: none; border-bottom-color: #1E72FC; }
  .title-item:focus-visible { outline: 2px solid var(--accent-2); outline-offset: -2px; border-radius: 4px; }
  .description-block { max-width: none; border-top: 0; padding-top: .25rem; }

  /* 4. Our Services: carta algo más grande (PROPUESTA pendiente de que Marc la apruebe: antes 38 vw, ahora 56 vw; las vecinas siguen asomando) */
  .our-services { --card-w: clamp(150px, 56vw, 250px); }

  /* 5. Menos hueco negro entre Our Services → Showreel → Nuestros Drones (el Showreel mantiene sus degradados arriba y abajo, más cortos) */
  .our-services { padding-bottom: 1.5rem; }
  .works-section { min-height: 0; padding: 1.5rem 1rem; }
  .works-gradient-top, .works-gradient-bottom { height: min(402px, 36%); }
  .services-section { padding-top: 2rem; }
}

/* ============================================================================
   SOLO TELÉFONO (≤ 767 px) — 2.ª tanda de Marc, 2026-11-09 (puntos 1, 2 y 4). No toca escritorio ni tablet.
   ========================================================================= */
@media (max-width: 767px) {
  /* 1. Nuestros Drones: las dos cartas en paralelo (2 columnas), más pequeñas: imagen 4:5 arriba, nombre (Jost 500) y una descripción corta
        debajo (Lexend 300, ~11,5 px), radio 14 px. El subtítulo en cursiva se oculta aquí (el mockup solo lleva nombre + descripción).
        El párrafo de debajo (.section-lead) ya va después de la fila: se mantiene tal cual. */
  .drones-section { padding-inline: .625rem; } /* menos margen lateral: las dos cartas ganan ancho (≈ 181 px en iPhone 13, antes 170) */
  .services-grid.services-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .services-grid--two .service-card {
    height: auto; flex-direction: column; align-items: stretch; justify-content: flex-start;
    border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(111,155,255,.32); box-shadow: 0 12px 30px -14px rgba(30,114,252,.55);
  }
  .services-grid--two .service-card:hover { transform: none; box-shadow: 0 12px 30px -14px rgba(30,114,252,.55); }
  .services-grid--two .service-card-image { position: static; inset: auto; flex: none; width: 100%; height: auto; aspect-ratio: 4 / 5; }
  .services-grid--two .service-card:hover .service-card-image { transform: none; }
  .services-grid--two .service-card-overlay { display: none; }
  .services-grid--two .service-card-content { padding: .625rem .75rem .875rem; text-align: left; }
  .services-grid--two .service-card-title {
    display: block; font-size: .95rem; font-weight: 600; letter-spacing: 0; line-height: 1.25; min-height: 0; margin: 0 0 .3rem;
  }
  .services-grid--two .service-card-title::after { content: "\2192"; margin-left: .4rem; color: #6f9bff; font-weight: 400; } /* flecha: se lee como pulsable */
  .services-grid--two .service-card:hover .service-card-title { color: #fff; }
  /* Los dos bloques de texto miden lo mismo y empiezan a la misma altura: "Drones Estabilizados" ocupa 2 líneas en móviles estrechos, así que el
     título de las dos cartas reserva 2 líneas (la descripción de las dos arranca en el mismo punto) y la descripción reserva 3. */
  @media (max-width: 430px) {
    .services-grid--two .service-card-title { min-height: 2.5em; }
    .services-grid--two .service-card-description { min-height: 4.35em; }
  }
  .services-grid--two .service-card-hover { height: auto; margin: 0; gap: 0; align-items: flex-start; }
  .services-grid--two .service-card-subtitle { display: none; }
  .services-grid--two .service-card-description {
    font-size: .78rem; font-weight: 300; line-height: 1.45; letter-spacing: 0; color: rgba(245,245,247,.72);
    max-width: none; text-align: left; text-wrap: pretty; opacity: 1;
  }

  /* 2. "Nuestro equipo ha trabajado en": título → banner → texto → botón (antes: título → texto → botón → banner). El banner no cambia. */
  #experiencia .section-content { display: flex; flex-direction: column; }
  #experiencia .team-experience-header { display: contents; }
  #experiencia .team-experience-title { order: 1; text-align: center; }
  #experiencia .team-experience-carousel-container { order: 2; margin-top: .5rem; }
  #experiencia .team-experience-description { order: 3; text-align: center; margin: 1.5rem auto 0; }
  #experiencia .team-experience-cta-wrapper { order: 4; margin: 1.25rem 0 0; }

  /* 4. Pestañas de las fichas de dron (Foto/Vídeo y Qué nos aporta/Detalles técnicos): ~15-30 % menos de tamaño, las dos parejas iguales,
        altura de toque ≥ 40 px, misma tipografía y comportamiento. Solo en las tarjetas de dron (las de las fichas de proyecto no cambian). */
  .drone .drone-tabs { display: flex; padding: .1875rem; gap: .25rem; width: min(100%, 17.5rem); }
  .drone .drone-tabs button { flex: 1; min-height: 40px; padding: .4rem .375rem; font-size: .6875rem; letter-spacing: .04em; white-space: nowrap; }
}

/* 3. Fotos "detrás de cámaras" sin texto por defecto (en todo el sitio): una diapositiva sin título/descripción no pinta ni el degradado azul de encima. */
.team-experience-slide .slide-overlay.is-empty { display: none; }

/* ===== Soluciones especializadas: tarjetas "Servicios audiovisuales especiales" y "Servicios extra" (Marc, 2026-11-30) =====
   Un solo componente (.sp-card) para los dos bloques: foto 5:4 (todas las fotos vienen al mismo tamaño, sin recortes especiales) → insignia
   azul circular → título → descripción → (solo "extra") chips. Reglas de alineación:
   · alineación SIN subgrid (en Safari colocaba el título encima de la foto): las tarjetas de una fila miden lo mismo (rejilla/flex que estira) y el
     título reserva siempre su altura de 2 líneas (1 línea en tableta ancha, 1000-1199 px, donde cabe en una), así que las descripciones empiezan a la
     misma altura; los chips van pegados al final (margin-top: auto);
   · móvil (< 768 px): carrusel horizontal con scroll-snap (la siguiente tarjeta asoma).
   Desktop ≥ 1200 px: 5 en una fila (las 2 de "extra", del mismo ancho y centradas). Tableta: 3 + 2 centradas, sin tarjeta suelta. */
.sp-block { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(.5rem, 1.5vw, 1rem); }
.sp-block--first { border-top: 1px solid var(--line-soft); }
.sp-head { text-align: center; max-width: 48rem; margin: 0 auto clamp(1.5rem, 3vw, 2.5rem); }
.sp-head .kicker { justify-content: center; }
.sp-head .section-title { margin: 0; }
.sp-head .kicker + .section-title { margin-bottom: 0; }
.sp-lead { color: var(--ink-mute); font-size: 1.05rem; line-height: 1.7; margin: 1rem auto 0; text-wrap: balance; }

.sp-cards { --sp-gap: 1.5rem; list-style: none; margin: 0 auto; padding: 0 0 .5rem; max-width: 1400px; display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 20rem); gap: 0 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sp-cards::-webkit-scrollbar { display: none; }
.sp-card {
  scroll-snap-align: start; position: relative; display: flex; flex-direction: column; min-width: 0;
  background: rgba(255,255,255,.03); border: 1px solid rgba(245,245,247,.12); border-radius: 14px; overflow: hidden;
  transition: border-color .3s ease, transform .3s var(--ease-out);
}
.sp-card:hover { border-color: rgba(245,245,247,.3); transform: translateY(-3px); }
.sp-media { position: relative; aspect-ratio: 5 / 4; background: #111; overflow: hidden; }
.sp-media img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; }
.sp-badge {
  position: absolute; left: .75rem; bottom: .75rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.45);
}
.sp-badge svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sp-ref {
  position: absolute; right: .6rem; bottom: .85rem; display: inline-flex; align-items: center; gap: .35rem; font-size: .6875rem; font-weight: 500; color: #fff; text-decoration: none;
  padding: .35rem .65rem; border-radius: 999px; background: rgba(0,0,0,.65); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .25s ease, border-color .25s ease;
}
.sp-ref svg { width: .7rem; height: .7rem; fill: currentColor; flex: none; }
.sp-ref:hover, .sp-ref:focus-visible { background: var(--accent); border-color: var(--accent); }
.sp-title { display: block; font-size: 1.0625rem; font-weight: 600; line-height: 1.25; margin: 0; padding: 1.1rem 1.1rem 0; min-height: calc(2.5em + 1.1rem); color: #fff; -webkit-text-fill-color: #fff; opacity: 1; visibility: visible; text-transform: none; letter-spacing: normal; }
.sp-desc { color: var(--ink-mute); font-size: .9rem; line-height: 1.55; margin: 0; padding: .5rem 1.1rem 1.25rem; }
.sp-chips { list-style: none; margin: auto 0 0; padding: 0 1.1rem 1.25rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.sp-chips li { border: 1px solid var(--line); border-radius: 999px; padding: .2rem .7rem; font-size: .75rem; color: #fff; }
.sp-desc + .sp-chips { margin-top: auto; }
.sp-card:has(.sp-chips) .sp-desc { padding-bottom: .9rem; }
.sp-ref:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (min-width: 768px) {
  .sp-cards { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--sp-gap); row-gap: 0; overflow: visible; scroll-snap-type: none; max-width: 60rem; padding-bottom: 0; }
  .sp-card { grid-column: span 2; margin-bottom: var(--sp-gap); }
  .sp-cards { row-gap: var(--sp-gap); }
  .sp-card { margin-bottom: 0; }
  .sp-card:nth-child(4) { grid-column: 2 / span 2; }
  .sp-card:nth-child(5) { grid-column: 4 / span 2; }
  .sp-cards--pair > .sp-card:nth-child(1) { grid-column: 2 / span 2; }
  .sp-cards--pair > .sp-card:nth-child(2) { grid-column: 4 / span 2; }
}
@media (min-width: 1200px) {
  .sp-cards { grid-template-columns: repeat(10, minmax(0, 1fr)); max-width: 1400px; }
  .sp-card:nth-child(4), .sp-card:nth-child(5) { grid-column: span 2; }
  .sp-cards--pair > .sp-card:nth-child(1) { grid-column: 4 / span 2; }
  .sp-cards--pair > .sp-card:nth-child(2) { grid-column: 6 / span 2; }
}
/* Tableta ancha: las tarjetas miden ~300 px y el título cabe en una línea */
@media (min-width: 1000px) and (max-width: 1199px) { .sp-title { min-height: calc(1.25em + 1.1rem); } }
@media (prefers-reduced-motion: reduce) { .sp-card, .sp-card:hover { transition: none; transform: none; } }

/* Ficha del DJI Avata 360: pestaña "Vídeo" con enlace al vídeo de referencia del fabricante (sin cargar nada de terceros) */
.drone-ref { flex-direction: column; gap: 1rem; padding: 1.5rem; text-align: center; }
.drone-ref-tag { margin: 0; max-width: 28rem; color: var(--ink-mute); font-size: .9rem; line-height: 1.5; text-wrap: balance; }

/* Vídeos de fondo (hero, "Por qué", cartas de Servicios, bucles de Trabajos): nunca un botón de play. iOS pinta el suyo cuando bloquea el autoplay
   (modo de bajo consumo); se oculta y el vídeo se queda en su póster hasta el primer toque (main.js → initAutoplayRescue). El Showreel lleva controles y no se toca. */
video:not([controls])::-webkit-media-controls,
video:not([controls])::-webkit-media-controls-start-playback-button,
video:not([controls])::-webkit-media-controls-overlay-play-button,
video:not([controls])::-webkit-media-controls-panel { display: none !important; -webkit-appearance: none; opacity: 0; pointer-events: none; }
