/* Ubermach · sitio v7 (diseño en design/ubermach-rediseno.pen, frame "Web v7").
   Sin estilos inline: la CSP del sitio solo permite hojas de estilo propias. */
@font-face { font-family: Geist; src: url(/assets/fonts/geist-var.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: GeistMono; src: url(/assets/fonts/geist-mono-var.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #05070b; --bg-2: #0b0d11; --line: #1a1f26; --fg: #ffffff; --fg-2: #cfd3d8; --mute: #9aa0a6; --dim: #6b7178;
  --paper: #efede8; --ink: #111111; --ink-2: #555555; --ink-3: #8a8a86; --paper-line: #d6d3cc; --accent: #4f94ff;
  --pad: clamp(16px, 4vw, 56px); --max: 1440px;
  --h-weight: 600; /* peso de los títulos: 500 era el del diseño v7, 600 el del sistema de diseño */
  --sans: Geist, system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: GeistMono, ui-monospace, Consolas, monospace;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.4'%3E%3Cpath d='M2 8h11.5M9 3.5 13.5 8 9 12.5'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Barra de scroll fina y translúcida: acompaña sin cortar la página con una franja gris del sistema.
   Chrome y Firefox usan las propiedades estándar; Safari, los pseudo-elementos webkit. */
html { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .16) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border: 2px solid transparent; border-radius: 2px; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, .32); }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-kerning: normal; font-synthesis: none; }
/* Títulos sin palabras huérfanas y párrafos sin una palabra sola en la última línea. */
h1, h2, h3 { text-wrap: balance; }
p, dd { text-wrap: pretty; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Nav ---------- */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 20; height: 84px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); }
.nav.solid { position: sticky; top: 0; background: rgba(5, 7, 11, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav .brand img { height: 30px; width: auto; }
.nav .links { display: flex; align-items: center; gap: 38px; font-size: 15px; font-weight: 500; }
.nav .links a { opacity: .88; transition: opacity .15s; }
.nav .links a:hover, .nav .links a[aria-current] { opacity: 1; }
.lang { display: inline-flex; gap: 8px; font: 500 13px var(--mono); letter-spacing: .08em; color: var(--mute); background: none; border: 0; padding: 4px 0; cursor: pointer; }
.lang b { font-weight: 500; }
.lang [data-on] { color: var(--fg); }
.burger { display: none; background: none; border: 0; color: var(--fg); padding: 8px; margin-right: -8px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 1.5px; background: currentColor; margin: 5px 0; transition: transform .2s; }
@media (max-width: 900px) {
  .nav { height: 68px; }
  .nav .brand img { height: 24px; }
  .burger { display: block; }
  .nav .links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 22px; padding: 28px var(--pad) 36px; background: rgba(5, 7, 11, .97); border-bottom: 1px solid var(--line); font-size: 18px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
  .nav.open .links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.open .burger span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .nav.open .burger span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
}

/* ---------- Bloques comunes ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.veil { position: absolute; inset: 0; pointer-events: none; }
.eyebrow { font: 500 12px/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); font-variant-numeric: tabular-nums slashed-zero; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; font-size: 14px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; border: 1px solid transparent; transition: transform .1s, background .15s, border-color .15s; }
.btn:active { transform: translateY(1px); }
.btn.light { background: #fff; color: #000; }
.btn.light:hover { background: #e6e8ea; }
.btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn.ghost:hover { border-color: #fff; }
.btn .arr { width: 14px; height: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.link-arrow::after, .btn > span[aria-hidden] { content: ''; flex: none; width: 15px; height: 15px; font-size: 0; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero .veil { background: linear-gradient(180deg, rgba(5, 7, 11, .7) 0%, rgba(5, 7, 11, .25) 30%, rgba(5, 7, 11, .4) 65%, rgba(5, 7, 11, .95) 100%); }
.hero-foot { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 0 var(--pad) 52px; }
.hero-foot .tag { font-size: clamp(15px, 1.5vw, 20px); font-weight: 500; line-height: 1.25; letter-spacing: .05em; text-transform: uppercase; }
.hero-foot .iso { width: 54px; height: auto; }
.hero-foot .next { justify-self: end; }
@media (max-width: 640px) { .hero-foot { grid-template-columns: 1fr auto; } .hero-foot .iso { display: none; } }

/* ---------- Mosaico de productos ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px; }
.tile { position: relative; aspect-ratio: 704 / 640; overflow: hidden; background: var(--bg-2); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.tile.object img { object-fit: contain; padding: 8% 6% 16%; }
.tile:hover img { transform: scale(1.03); }
.tile .cap { position: absolute; left: 28px; bottom: 26px; right: 28px; z-index: 2; }
.tile::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(180deg, transparent, rgba(5, 7, 11, .75)); pointer-events: none; }
.cap .n { font-size: 20px; font-weight: 600; line-height: 1.2; letter-spacing: -.015em; }
.cap .t { margin-top: 4px; font-size: 15px; line-height: 1.4; color: var(--fg-2); }
@media (max-width: 720px) { .tiles { grid-template-columns: 1fr; gap: 10px; padding: 10px; } .tile .cap { left: 20px; bottom: 18px; } }

/* ---------- Pantallas a sangre (Command) ---------- */
.stage { position: relative; min-height: min(900px, 100svh); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; padding: 120px var(--pad); }
.stage .veil { background: radial-gradient(ellipse at center, rgba(5, 7, 11, .35), rgba(5, 7, 11, .85) 75%), linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%); }
.stage > :not(.media):not(.veil) { position: relative; z-index: 2; }
.mega { margin: 0; font-size: clamp(48px, 8.4vw, 120px); font-weight: var(--h-weight); line-height: .95; letter-spacing: -.035em; text-transform: uppercase; }
.stage .sub { margin-top: 30px; }
.stage .link-arrow { margin-top: 28px; }

/* ---------- Flights ---------- */
.flights { padding: 160px var(--pad) 120px; text-align: center; background: radial-gradient(ellipse 70% 50% at 50% 0%, #0d1524 0%, var(--bg) 70%); }
.flights .ctas { display: flex; gap: 12px; justify-content: center; margin: 40px 0 72px; flex-wrap: wrap; }
.window { max-width: 1200px; margin: 0 auto; border: 1px solid #222934; background: #0b0e13; box-shadow: 0 40px 120px rgba(0, 0, 0, .6); }
.window .bar { height: 30px; display: flex; gap: 7px; align-items: center; padding: 0 12px; border-bottom: 1px solid #1c222b; }
.window .bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a313c; }
.window img { width: 100%; height: auto; }

/* ---------- Sectores ---------- */
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 16px; }
.area { position: relative; aspect-ratio: 344 / 480; overflow: hidden; background: var(--bg-2); }
.area img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.area:hover img { transform: scale(1.04); }
.area::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, transparent, rgba(5, 7, 11, .85)); }
.area .cap { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 2; }
.area .cap .t { font-size: 14px; color: #d0d0d0; }
@media (max-width: 1000px) { .areas { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 10px; } }

/* ---------- Tecnología (carrusel) ---------- */
.tech { position: relative; padding: 140px 0 110px; overflow: hidden; background: radial-gradient(ellipse 60% 70% at 50% 100%, #0c1a33 0%, var(--bg) 70%); }
.tech h2 { margin: 18px 0 10px; font-size: clamp(36px, 4.4vw, 64px); font-weight: var(--h-weight); letter-spacing: -.03em; line-height: 1; }
.tech p { margin: 0; color: var(--mute); font-size: 17px; }
.marquee { margin-top: 72px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.track { display: flex; width: max-content; gap: 72px; animation: slide 48s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.logo-item { display: flex; align-items: center; gap: 14px; height: 48px; color: #f2f3f5; font-size: 20px; font-weight: 600; white-space: nowrap; opacity: .82; }
.logo-item img { height: 32px; width: auto; filter: grayscale(1) brightness(1.6); }
.logo-item.wide img { height: 26px; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* ---------- Noticias (papel) ---------- */
.news { background: var(--paper); color: var(--ink); padding: 110px 0 120px; }
.news .head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 56px; }
.news h2 { margin: 0; font-size: clamp(32px, 3.4vw, 48px); font-weight: var(--h-weight); letter-spacing: -.025em; }
.news .meta { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #6d6d6d; display: flex; gap: 14px; }
.news .meta .k { color: #2c64c9; }
.lead-story { display: grid; grid-template-columns: 1.55fr 1fr; gap: 48px; align-items: center; padding-bottom: 56px; border-bottom: 1px solid #d4d1ca; }
.lead-story img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.lead-story h3 { margin: 18px 0 14px; font-size: clamp(26px, 2.8vw, 40px); font-weight: var(--h-weight); line-height: 1.1; letter-spacing: -.02em; }
.lead-story p, .story p { color: var(--ink-2); margin: 0 0 22px; }
.stories { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-top: 48px; }
.story { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.story img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.story h3 { margin: 10px 0 8px; font-size: 22px; font-weight: var(--h-weight); line-height: 1.2; letter-spacing: -.01em; }
.story p { font-size: 15px; }
.news .link-arrow { color: var(--ink); }
@media (max-width: 900px) { .lead-story, .stories { grid-template-columns: 1fr; gap: 28px; } .story { grid-template-columns: 1fr; } }

/* ---------- Banda con foto (Careers / Investors) ---------- */
.band { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 640px; padding: 0 var(--pad) 80px; }
.band.short { min-height: 412px; align-items: center; padding-bottom: 0; }
.band .veil { background: linear-gradient(90deg, rgba(5, 7, 11, .92) 0%, rgba(5, 7, 11, .55) 55%, rgba(5, 7, 11, .3) 100%), linear-gradient(0deg, rgba(5, 7, 11, .7), transparent 60%); }
.band .row { position: relative; z-index: 2; width: 100%; display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.band h2 { margin: 0 0 18px; font-size: clamp(36px, 4.4vw, 64px); font-weight: var(--h-weight); line-height: 1.02; letter-spacing: -.03em; max-width: 14ch; }
.band p { margin: 0; color: #d0d0d0; font-size: 19px; max-width: 46ch; }

/* ---------- Footer (diseño: "Footer v8 · B (estilo Helsing)") ----------
   Panel claro sobre el fondo oscuro: cierra la página como una ficha impresa, sin competir con el contenido. */
.foot { padding: 0 16px 16px; }
.foot-panel { display: grid; gap: 140px; padding: 40px 40px 32px; background: var(--paper); color: var(--ink); border-radius: 2px; }
.foot-top { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; }
.foot-brand img { height: 28px; width: auto; }
.foot-brand p { margin: 16px 0 0; max-width: 220px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.foot-cols { display: contents; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; gap: 14px; font-size: 15px; line-height: 1.3; }
.foot-cols a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-mail { color: var(--ink-2); overflow-wrap: anywhere; }
.foot .lang { margin-top: 14px; font-size: 12px; color: var(--ink-3); }
.foot .lang [data-on] { color: var(--ink); }
.foot-legal { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 20px; border-top: 1px solid var(--paper-line); font-size: 12px; color: var(--ink-2); }
.foot-legal p { margin: 0; color: var(--ink); }
.foot-legal p span { margin-right: 10px; color: var(--ink-3); }
.foot-legal p.foot-credit { color: var(--ink-3); }
.foot-legal a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) {
  .foot-panel { gap: 72px; padding: 32px 24px 24px; }
  .foot-top { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .foot-contact { grid-column: 1 / -1; }
  .foot-legal { flex-direction: column; align-items: flex-start; }
}

/* ---------- Páginas internas ---------- */
.page-hero { position: relative; overflow: hidden; min-height: 560px; display: flex; align-items: flex-end; padding: 120px var(--pad) 72px; }
.page-hero .veil { background: linear-gradient(180deg, rgba(5, 7, 11, .4), rgba(5, 7, 11, .9)); }
.page-hero .in { position: relative; z-index: 2; max-width: 900px; }
.page-hero h1 { margin: 16px 0 18px; font-size: clamp(40px, 5.6vw, 80px); font-weight: var(--h-weight); line-height: 1; letter-spacing: -.035em; }
.page-hero p { margin: 0; color: var(--fg-2); font-size: 19px; max-width: 56ch; }
.section { padding: 110px var(--pad); max-width: var(--max); margin: 0 auto; }
.section h2 { margin: 14px 0 20px; font-size: clamp(30px, 3.4vw, 48px); font-weight: var(--h-weight); letter-spacing: -.025em; line-height: 1.05; }
.section .lede { color: var(--mute); font-size: 18px; max-width: 60ch; margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--line); background: var(--bg-2); padding: 28px; }
.card h3 { margin: 0 0 10px; font-size: 20px; font-weight: 600; }
.card p { margin: 0; color: var(--mute); font-size: 15px; }
.row-list { border-top: 1px solid var(--line); }
.row-list a, .row-list .r { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.row-list a:hover { background: rgba(255, 255, 255, .02); }
.row-list .k { font: 500 12px var(--mono); letter-spacing: .1em; color: var(--mute); text-transform: uppercase; }
@media (max-width: 720px) { .row-list a, .row-list .r { grid-template-columns: 1fr; gap: 6px; } }
.form { display: grid; gap: 14px; max-width: 640px; }
.form label { display: grid; gap: 8px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.form input, .form textarea, .form select { width: 100%; background: var(--bg-2); border: 1px solid #262c35; color: var(--fg); font: 400 16px var(--sans); padding: 14px 16px; border-radius: 0; }
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent); }

/* ---------- Artículos ---------- */
.article { padding: 120px var(--pad) 40px; }
.article .head { max-width: 880px; margin: 0 auto; text-align: center; }
.article .back { display: inline-flex; gap: 8px; color: var(--mute); font-size: 14px; margin-bottom: 26px; }
.article .meta { display: flex; justify-content: center; gap: 18px; font: 500 12px var(--mono); letter-spacing: .14em; color: var(--mute); }
.article .meta .k { color: var(--accent); }
.article h1 { margin: 22px 0 18px; font-size: clamp(36px, 4.8vw, 64px); font-weight: var(--h-weight); line-height: 1.05; letter-spacing: -.03em; }
.article .dek { color: var(--mute); font-size: 20px; max-width: 680px; margin: 0 auto 26px; }
.article .by { display: inline-flex; align-items: center; gap: 10px; color: var(--mute); font-size: 14px; }
.article .by img { height: 18px; width: auto; }
.article .hero-img { max-width: 1200px; margin: 64px auto; aspect-ratio: 1200 / 620; overflow: hidden; }
.article .hero-img img { width: 100%; height: 100%; object-fit: cover; }
.prose { max-width: 680px; margin: 0 auto; font-size: 18px; line-height: 1.75; color: #d6d6d6; }
.prose .lead { font-size: 22px; line-height: 1.6; color: #f2f2f2; }
.prose h2 { margin: 56px 0 16px; font-size: 28px; font-weight: var(--h-weight); letter-spacing: -.015em; color: #f2f2f2; }
.prose blockquote { margin: 40px 0; padding-left: 24px; border-left: 2px solid var(--accent); font-size: 24px; line-height: 1.45; color: #f2f2f2; }
.prose figure { margin: 40px 0; }
.prose figure img { width: 100%; }
.prose figcaption { margin-top: 10px; font-size: 13px; color: var(--dim); }
.cta-box { max-width: 1200px; margin: 80px auto 0; background: var(--bg-2); padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-box h3 { margin: 0 0 6px; font-size: 32px; font-weight: var(--h-weight); letter-spacing: -.02em; }
.cta-box p { margin: 0; color: var(--mute); }

/* Aparición al hacer scroll: ver "Movimiento" al final del archivo. */

/* Fotos de producto (conceptos): el fondo del contenedor es el mismo negro de la foto y los bordes se funden,
   así el dron no queda dentro de una "caja" más clara. */
.tile.object, .concept .pic, .article .hero-img.contain { background: #04070b; border: 0; }
.tile.object img, .concept .pic img, .article .hero-img.contain img {
  object-fit: contain; padding: 2% 3% 10%;
  -webkit-mask-image: radial-gradient(ellipse 72% 68% at 50% 48%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 68% at 50% 48%, #000 62%, transparent 100%);
}
.tile.object::after { inset: 70% 0 0; background: linear-gradient(180deg, transparent, rgba(4, 7, 11, .9)); }
.article .hero-img.contain img { padding: 0 2%; }

/* ---------- Defensa (foco principal de la portada) ---------- */
.defense { padding: 140px 16px 110px; background: linear-gradient(180deg, var(--bg) 0%, #0a1220 100%); }
.defense .head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding: 0 clamp(0px, 3vw, 40px); margin-bottom: 56px; }
.defense h2 { margin: 18px 0 18px; font-size: clamp(40px, 5vw, 72px); font-weight: var(--h-weight); line-height: 1; letter-spacing: -.035em; }
.defense p { margin: 0; max-width: 56ch; color: #b8bec5; font-size: 19px; }
.defense .caps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .defense .caps { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media (max-width: 560px) { .defense .caps { grid-template-columns: 1fr; } .defense { padding-top: 100px; } }

/* Flights como bloque comercial secundario */
.flights.secondary { padding: 130px var(--pad) 110px; }
.flights.secondary h2 { margin: 22px 0 18px; font-size: clamp(36px, 4.4vw, 64px); font-weight: var(--h-weight); line-height: 1.02; letter-spacing: -.03em; }
.flights.secondary .lead { margin: 0 auto; max-width: 60ch; color: var(--mute); font-size: 19px; }
.flights.secondary .ctas { margin: 32px 0 60px; }
.flights.secondary .window { max-width: 960px; }

/* ---------- Secciones claras (mismo papel que Noticias y el footer) ----------
   Cortan la secuencia de bloques oscuros de la portada; las fotos quedan como tarjetas oscuras sobre el papel. */
.light { background: var(--paper); color: var(--ink); }
.light .eyebrow { color: var(--ink-3); }
.light p { color: var(--ink-2); }
.light .link-arrow { color: var(--ink); }
.light .btn.light { background: var(--ink); color: #fff; }
.light .btn.light:hover { background: #2b2b2b; }
.light .area { background: #dcd9d2; color: var(--fg); } /* el texto va sobre la foto, no sobre el papel */
.light :focus-visible { outline-color: #2c64c9; }

/* Mosaico de productos: las tarjetas de dron tienen el mismo negro que la sección y se leían como un hueco vacío.
   Un marco fino las contiene sin volver a la "caja más clara" que se evitó en los conceptos, y el margen de arriba
   separa el mosaico del papel de Defensa. */
.tiles { padding-top: 64px; }
.tiles > .tile { border: 1px solid #1c222b; }
@media (max-width: 720px) { .tiles { padding-top: 40px; } }

/* Verticales: encabezado con la misma estructura que Defensa. */
.areas-sec { padding: 130px 16px 16px; }
.areas-sec .head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding: 0 clamp(0px, 3vw, 40px); margin-bottom: 56px; }
.areas-sec h2 { margin: 18px 0 0; font-size: clamp(40px, 5vw, 72px); font-weight: var(--h-weight); line-height: 1; letter-spacing: -.035em; }
.areas-sec .areas { padding: 0; }
@media (max-width: 1000px) { .areas-sec { padding: 100px 10px 10px; } }

/* ==========================================================================
   Movimiento (referencia: anduril.com). Lento al entrar, rápido al salir, siempre con propiedades que
   no recalculan layout (opacity, translate, scale, clip-path). motion-init.js marca html.m antes del
   primer pintado; site.js parte los títulos y marca html.m-ready. Sin JS o con reduce, todo queda quieto.
   ========================================================================== */
:root { --ease: cubic-bezier(.16, 1, .3, 1); --ease-in: cubic-bezier(.7, 0, .84, 0); --ease-io: cubic-bezier(.76, 0, .24, 1); }
html.intro { --intro-d: 2.3s; }

/* Lo que va a animarse no se muestra hasta que site.js lo preparó: evita el "aparece, desaparece, entra". */
html.m:not(.m-ready) :is(main h1, main h2, .hero-foot, .eyebrow, .tagline) { visibility: hidden; }

/* ---------- Transición entre páginas (View Transitions entre documentos) ---------- */
@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }
::view-transition-old(root) { animation: vt-out .4s var(--ease-in) both; }
::view-transition-new(root) { animation: vt-in 1s var(--ease) .08s both; }
::view-transition-group(site-nav) { animation-duration: .6s; animation-timing-function: var(--ease); }
@keyframes vt-out { to { opacity: 0; translate: 0 -14px; } }
@keyframes vt-in { from { opacity: 0; translate: 0 28px; } }
/* Navegadores sin View Transitions: site.js pone .leaving y espera a que se funda antes de navegar. */
html.leaving :is(main, .foot) { opacity: 0; translate: 0 -12px; transition: opacity .32s var(--ease-in), translate .32s var(--ease-in); }

/* ---------- Telón de entrada (cada carga de la portada) ---------- */
/* Los tiempos van en pareja con --intro-d de arriba y con `intro` de site.js: si cambian, cambian los tres. */
html.intro body::before, html.intro body::after { content: ''; position: fixed; inset: 0; pointer-events: none; }
html.intro body::after { z-index: 200; background: var(--bg); animation: curtain 2.2s var(--ease-io) 1.1s both; }
html.intro body::before { z-index: 201; background: url(/assets/logo-mark-v8.svg) center / 64px auto no-repeat; animation: mark 2.7s var(--ease) both; }
@keyframes curtain { to { translate: 0 -100%; } }
@keyframes mark { 0% { opacity: 0; scale: .86; } 30%, 55% { opacity: 1; scale: 1; } 100% { opacity: 0; translate: 0 -48px; } }

/* ---------- Aparición genérica ---------- */
.reveal { opacity: 0; translate: 0 24px; transition: opacity calc(1.05s * var(--k, 1)) var(--ease) calc(var(--rd, 0ms) * var(--k, 1)), translate calc(1.45s * var(--k, 1)) var(--ease) calc(var(--rd, 0ms) * var(--k, 1)); }
.reveal.in { opacity: 1; translate: none; }
html.m :is(.eyebrow, .tagline) { opacity: 0; transition: opacity calc(.7s * var(--k, 1)) ease; }
html.m :is(.eyebrow, .tagline).in { opacity: 1; }

/* ---------- Títulos: palabras que suben desde una máscara ---------- */
/* clip-path en vez de overflow:hidden: recorta solo por debajo, así el tracking negativo no come bordes de letras. */
.split.reveal { opacity: 1; translate: none; }
.split .w { display: inline-block; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; clip-path: inset(-.6em -.6em 0 -.6em); }
.split .wi { display: inline-block; translate: 0 115%; transition: translate calc(1.5s * var(--k, 1)) var(--ease); transition-delay: calc((var(--d, 0ms) + var(--i, 0) * 70ms) * var(--k, 1)); }
.split.in .wi { translate: none; }

/* ---------- Fotos: la ventana se abre de abajo hacia arriba y la imagen se asienta ---------- */
:is(.tile, .area).reveal { opacity: 1; translate: none; clip-path: inset(100% 0 0 0); transition: clip-path calc(1.6s * var(--k, 1)) var(--ease-io) calc(var(--rd, 0ms) * var(--k, 1)); }
:is(.tile, .area).reveal.in { clip-path: inset(0); }
:is(.tile, .area, .lead-story, .story).reveal img, .concept.reveal .pic img,
.article .hero-img.reveal img { scale: 1.22; transition: scale calc(2.5s * var(--k, 1)) var(--ease) calc(var(--rd, 0ms) * var(--k, 1)), transform .8s cubic-bezier(.2, .7, .2, 1); }
:is(.tile, .area, .lead-story, .story).reveal.in img, .concept.reveal.in .pic img, .article .hero-img.reveal.in img { scale: 1; }
:is(.lead-story, .story).reveal img, .concept.reveal .pic, .article .hero-img.reveal { clip-path: inset(0 0 100% 0); transition: clip-path calc(1.6s * var(--k, 1)) var(--ease-io) calc(var(--rd, 0ms) * var(--k, 1)), scale calc(2.5s * var(--k, 1)) var(--ease) calc(var(--rd, 0ms) * var(--k, 1)), transform .8s cubic-bezier(.2, .7, .2, 1); }
:is(.lead-story, .story).reveal.in img, .concept.reveal.in .pic, .article .hero-img.reveal.in { clip-path: inset(0); }
:is(.tile, .area).reveal .cap { opacity: 0; translate: 0 14px; transition: opacity calc(.8s * var(--k, 1)) ease calc((var(--rd, 0ms) + .65s) * var(--k, 1)), translate calc(1.3s * var(--k, 1)) var(--ease) calc((var(--rd, 0ms) + .65s) * var(--k, 1)); }
:is(.tile, .area).reveal.in .cap { opacity: 1; translate: none; }

/* Corchetes de mira al pasar el cursor por una tarjeta con foto. */
@media (hover: hover) {
  .tile::before, .area::before {
    content: ''; position: absolute; inset: 16px; z-index: 3; pointer-events: none; opacity: 0; scale: 1.06;
    transition: opacity .25s ease, scale .55s var(--ease);
    --c: rgba(255, 255, 255, .9); --s: 18px;
    background:
      linear-gradient(var(--c), var(--c)) 0 0 / var(--s) 1px, linear-gradient(var(--c), var(--c)) 0 0 / 1px var(--s),
      linear-gradient(var(--c), var(--c)) 100% 0 / var(--s) 1px, linear-gradient(var(--c), var(--c)) 100% 0 / 1px var(--s),
      linear-gradient(var(--c), var(--c)) 0 100% / var(--s) 1px, linear-gradient(var(--c), var(--c)) 0 100% / 1px var(--s),
      linear-gradient(var(--c), var(--c)) 100% 100% / var(--s) 1px, linear-gradient(var(--c), var(--c)) 100% 100% / 1px var(--s);
    background-repeat: no-repeat;
  }
  .tile:hover::before, .area:hover::before { opacity: 1; scale: 1; }
}

/* ---------- Fotos a sangre: entrada de la portada y deriva lenta (las fotos fijas "respiran") ---------- */
/* La deriva usa scale y el parallax de site.js usa translate: son propiedades independientes y se suman. */
html.m .hero .media { animation: hero-in 3.4s var(--ease) var(--intro-d, 0s) both, drift 48s ease-in-out calc(var(--intro-d, 0s) + 3.4s) infinite alternate; }
html.m :is(.stage, .band, .page-hero) > .media { scale: 1.1; animation: drift 42s ease-in-out infinite alternate; }
html.m .band.short > .media { animation-duration: 56s; animation-direction: alternate-reverse; }
@keyframes hero-in { from { opacity: 0; scale: 1.3; } to { opacity: 1; scale: 1.1; } }
@keyframes drift { from { scale: 1.1; } to { scale: 1.17; } }
html.m .hero-foot .iso { animation: rise 1.6s var(--ease) calc(var(--intro-d, 0s) + .9s) both; }
html.m .hero-foot .next { animation: rise 1.6s var(--ease) calc(var(--intro-d, 0s) + 1.15s) both; }
@keyframes rise { from { opacity: 0; translate: 0 18px; } }
/* Indicador de scroll: la flecha de "Defense" invita a bajar. */
html.m .hero-foot .next::after { animation: nudge 3s var(--ease) calc(var(--intro-d, 0s) + 2.8s) infinite; }
@keyframes nudge { 0%, 60%, 100% { translate: 0 0; } 30% { translate: 5px 0; } }

/* ---------- Nav ---------- */
.nav { transition: translate .65s var(--ease), background-color .3s, border-color .3s; }
.nav.solid.hide { translate: 0 -100%; }
.nav.float { position: fixed; background: rgba(5, 7, 11, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); translate: 0 -100%; }
.nav.float.show { translate: none; }
html.m .nav:not(.solid) { animation: nav-in 1.3s var(--ease) calc(var(--intro-d, 0s) + .25s) backwards; }
@keyframes nav-in { from { opacity: 0; } }
@media (min-width: 901px) {
  .nav .links a { position: relative; }
  .nav .links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 1px; background: currentColor; scale: 0 1; transform-origin: right; transition: scale .45s var(--ease); }
  .nav .links a:hover::after, .nav .links a[aria-current]::after { scale: 1 1; transform-origin: left; }
}
@media (max-width: 900px) {
  html.m .nav .links > * { opacity: 0; translate: 0 10px; transition: opacity .3s ease, translate .55s var(--ease); }
  html.m .nav.open .links > * { opacity: 1; translate: none; }
  html.m .nav.open .links > :nth-child(2) { transition-delay: 40ms; }
  html.m .nav.open .links > :nth-child(3) { transition-delay: 80ms; }
  html.m .nav.open .links > :nth-child(4) { transition-delay: 120ms; }
  html.m .nav.open .links > :nth-child(5) { transition-delay: 160ms; }
  html.m .nav.open .links > :nth-child(6) { transition-delay: 200ms; }
}

/* ---------- Enlaces y botones ---------- */
.link-arrow { padding-bottom: 4px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.link-arrow:hover { background-size: 100% 1px; }
.btn { position: relative; isolation: isolate; overflow: hidden; transition: transform .1s, background .15s, border-color .15s, color .35s var(--ease); }
.btn.ghost::before { content: ''; position: absolute; inset: 0; z-index: -1; background: #fff; scale: 0 1; transform-origin: right; transition: scale .5s var(--ease); }
.btn.ghost:hover { color: #000; }
.btn.ghost:hover::before { scale: 1 1; transform-origin: left; }
.btn > span[aria-hidden] { transition: translate .35s var(--ease); }
.btn:hover > span[aria-hidden] { translate: 4px 0; }

/* Consola de Flights: site.js la inclina hacia atrás y la endereza a medida que entra en pantalla. */
.window { transform-origin: 50% 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal img, .reveal .cap, .reveal .pic { opacity: 1; translate: none; clip-path: none; scale: none; transition: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .btn, .btn::before, .link-arrow, .nav, .nav .links a::after { transition: none; }
}
