:root {
  --orange: #F0923D;
  --red: #C7161A;
  --wine: #82103A;
  --grad: linear-gradient(90deg, var(--orange), var(--red));
  --night: #0a0a0c;
  --night-2: #131317;
  --paper: #f5f3ef;
  --white: #ffffff;
  --ink: #121317;
  --ink-soft: #8a8b93;
  --ink-mid: #45474d;
  --line: rgba(18,19,23,.1);
  --line-dark: rgba(255,255,255,.12);
  --radius: 28px;
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { font-family: var(--sans); font-weight: 400; color: var(--ink); background: var(--paper); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }

/* Títulos en dos tonos (como Antigravity) */
.h2 { display: flex; flex-direction: column; font-weight: 400; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.04; letter-spacing: -0.035em; }
.h2 .soft { color: var(--ink-soft); }
.h2--light { color: #fff; }
.h2--light .soft { color: rgba(255,255,255,.55); }
.h2--center { text-align: center; align-items: center; }

/* Botones tipo píldora */
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-size: .95rem; font-weight: 500; transition: transform .2s, background .2s; }
.pill:hover { transform: translateY(-1px); background: #000; }
.pill::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
.pill--light { background: #fff; color: var(--ink); padding: 10px 18px; font-size: .88rem; }
.pill--light:hover { background: #f1f1f1; }
.pill--ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px); }
.pill--ghost:hover { background: rgba(255,255,255,.16); }
.pill--ghost::after, .pill--ghost-dark::after { display: none; }
.pill--ghost-dark { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.pill--ghost-dark:hover { background: rgba(0,0,0,.04); }

/* Navegación */
.nav { position: fixed; top: 14px; left: 50%; translate: -50% 0; z-index: 50; width: min(1240px, 100% - 24px); display: flex; align-items: center; gap: 30px; padding: 9px 9px 9px 20px; border-radius: 999px; background: rgba(10,10,12,.5); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border: 1px solid var(--line-dark); transition: background .3s; }
.nav.is-scrolled { background: rgba(10,10,12,.82); }
.nav__logo img { height: 26px; width: auto; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { color: rgba(255,255,255,.75); text-decoration: none; font-size: .9rem; }
.nav__links a:hover { color: #fff; }
.nav__toggle { display: none; width: 40px; height: 40px; }
.nav__toggle span { display: block; height: 1.5px; width: 20px; margin: 6px auto; background: #fff; transition: transform .3s; }

/* Portada */
.hero { position: relative; height: 100svh; min-height: 620px; background: var(--night); color: #fff; overflow: hidden; display: grid; place-items: center; text-align: center; }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 42% at 50% 46%, rgba(10,10,12,.62) 0%, rgba(10,10,12,.25) 60%, rgba(10,10,12,0) 85%), linear-gradient(180deg, rgba(10,10,12,0) 70%, var(--night) 100%); }
.coord { position: absolute; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; color: rgba(255,255,255,.4); z-index: 2; }
.coord--tl { top: 92px; left: 28px; } .coord--tr { top: 92px; right: 28px; }
.coord--bl { bottom: 28px; left: 28px; } .coord--br { bottom: 28px; right: 28px; }
.hero__content { position: relative; z-index: 2; padding: 0 16px; max-width: 1100px; }
.hero__title { font-weight: 400; font-size: clamp(2.4rem, 7.2vw, 5.6rem); line-height: 1.02; letter-spacing: -0.045em; }
.hero__title .line { display: block; opacity: 0; transform: translateY(24px); filter: blur(8px); animation: rise 1.2s cubic-bezier(.2,.7,.2,1) forwards; }
.hero__title .line--soft { color: rgba(255,255,255,.5); animation-delay: .25s; }
.hero__lead { margin: 28px auto 0; max-width: 46ch; font-size: clamp(1rem, 1.5vw, 1.15rem); color: rgba(255,255,255,.65); opacity: 0; animation: rise 1.2s .5s cubic-bezier(.2,.7,.2,1) forwards; }
.hero__cta { margin-top: 36px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; opacity: 0; animation: rise 1.2s .7s cubic-bezier(.2,.7,.2,1) forwards; }
.hero__cta .pill { background: #fff; color: var(--ink); }
.hero__cta .pill--ghost { background: rgba(255,255,255,.08); color: #fff; }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }

/* Manifiesto */
.manifest { background: var(--paper); padding: clamp(110px, 16vw, 200px) 0; }
.manifest__text { width: min(1100px, 100% - 32px); margin-inline: auto; font-size: clamp(1.6rem, 3.6vw, 2.9rem); line-height: 1.22; letter-spacing: -0.03em; font-weight: 400; }
.manifest__text .w { color: rgba(18,19,23,.16); transition: color .35s; }
.manifest__text .w.on { color: var(--ink); }
.manifest__text .w.key.on { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Qué hacemos: selector */
.what { padding: 0 0 clamp(90px, 12vw, 150px); }
.selector { margin-top: 56px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: stretch; }
.selector__list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.sel { text-align: left; display: grid; grid-template-columns: 70px 1fr; gap: 4px 0; padding: 26px 0; border-bottom: 1px solid var(--line); opacity: .45; transition: opacity .3s; }
.sel:hover, .sel.is-active { opacity: 1; }
.sel .mono { grid-row: span 2; padding-top: 10px; color: var(--ink-soft); }
.sel .mono i { font-style: normal; display: block; margin-top: 6px; color: var(--red); }
.sel__title { font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -0.03em; line-height: 1.15; }
.sel__desc { max-height: 0; overflow: hidden; color: var(--ink-mid); font-size: 1rem; transition: max-height .5s ease, margin .5s; }
.sel.is-active .sel__desc { max-height: 160px; margin-top: 10px; }
.sel__img { display: none; }
.sel.is-active .sel__title::before { content: ""; display: inline-block; width: 9px; height: 9px; margin: 0 12px 4px 0; border-radius: 50%; background: var(--grad); }
.selector__stage { position: relative; min-height: 520px; border-radius: var(--radius); overflow: hidden; background: #e9e4dd; }
.panel { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .6s, transform .9s cubic-bezier(.2,.7,.2,1); background: radial-gradient(90% 80% at 70% 20%, #f7d9bf 0%, #efb8a6 40%, #b84a54 100%); }
.panel:nth-child(2) { background: radial-gradient(80% 80% at 50% 45%, #ffffff 0%, #f2ece5 70%); }
.panel:nth-child(3) { background: radial-gradient(90% 80% at 30% 80%, #2a2a30 0%, #151519 60%); }
.panel.is-active { opacity: 1; transform: none; }
.panel img { width: 100%; height: 100%; object-fit: cover; }
.panel--glass img { object-fit: cover; }
.panel .xfade { position: absolute; inset: 0; animation: xfade 12s ease-in-out infinite; }
@keyframes xfade { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }
.panel figcaption { position: absolute; left: 22px; bottom: 20px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.85); backdrop-filter: blur(8px); color: var(--ink); }

/* Territorio */
.territory { position: relative; background: var(--night); color: #fff; padding: clamp(120px, 16vw, 210px) 0; overflow: hidden; }
.territory__media { position: absolute; inset: 0; background: repeating-radial-gradient(circle at 70% 40%, transparent 0 26px, rgba(240,146,61,.09) 27px 28px); }
.territory__media img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.territory__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--night) 20%, rgba(10,10,12,.2)); }
.territory__inner { position: relative; display: grid; grid-template-columns: 1fr 420px; column-gap: 60px; align-items: center; }
.territory__inner > * { grid-column: 1; }
.territory__inner > .drone-card { grid-column: 2; grid-row: 1 / span 3; }
.drone-card { position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 40px 80px rgba(0,0,0,.5); }
.drone-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.drone-card figcaption { position: absolute; left: 16px; bottom: 16px; padding: 7px 12px; border-radius: 999px; background: rgba(18,19,23,.85); color: #fff; font-size: .64rem; }
.territory__inner > p { margin-top: 26px; max-width: 46ch; color: rgba(255,255,255,.65); font-size: 1.1rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.tags li { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 8px 14px; border: 1px solid var(--line-dark); border-radius: 999px; color: rgba(255,255,255,.75); }

/* Placas: recorrido horizontal */
.plates { position: relative; height: 320vh; background: var(--paper); }
.plates__sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 46px; overflow: hidden; }
.plates__track { display: flex; gap: 20px; padding-left: max(16px, calc((100vw - 1240px) / 2)); will-change: transform; }
.stage { flex: 0 0 360px; min-height: 440px; padding: 30px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.stage__n { color: var(--red); }
.stage__img { margin-top: 16px; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: #ece7e0; }
.stage__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.stage:hover .stage__img img { transform: scale(1.05); }
.stage h3 { margin-top: auto; font-weight: 400; font-size: 1.7rem; letter-spacing: -0.03em; line-height: 1.1; }
.stage p { margin-top: 12px; color: var(--ink-mid); }
.stage--intro { flex-basis: 460px; background: var(--night); color: #fff; border: 0; }
.stage--intro p { color: rgba(255,255,255,.65); margin-top: auto; }
.stage--cta { flex-basis: 420px; background: var(--grad); color: #fff; border: 0; margin-right: 16px; position: relative; overflow: hidden; }
.stage--cta > * { position: relative; }
.stage--cta > .stage__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage--cta p { color: rgba(255,255,255,.85); }
.stage--cta .pill { margin-top: 24px; align-self: flex-start; background: #fff; color: var(--ink); }
.stage--cta h3 { margin-top: 0; }
.plate { position: relative; width: 210px; aspect-ratio: 1.4; margin: 6px 0 28px; border-radius: 14px; background: linear-gradient(135deg, #e9ebee 0%, #b9bec6 45%, #eef0f2 70%, #a7adb6 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 20px 40px rgba(0,0,0,.45); transform: perspective(700px) rotateY(-16deg) rotateX(8deg); animation: tilt 7s ease-in-out infinite alternate; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; padding: 16px; }
@keyframes tilt { to { transform: perspective(700px) rotateY(14deg) rotateX(-4deg); } }
.plate__rivet { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #8d939c); top: 8px; left: 8px; }
.plate__rivet + .plate__rivet { left: auto; right: 8px; }
.plate__qr { width: 78px; aspect-ratio: 1; background:
  conic-gradient(from 90deg at 30% 30%, #2b2d31 25%, transparent 0) 0 0 / 14px 14px,
  linear-gradient(#2b2d31 0 0) 0 0 / 22px 22px no-repeat,
  linear-gradient(#2b2d31 0 0) 100% 0 / 22px 22px no-repeat,
  linear-gradient(#2b2d31 0 0) 0 100% / 22px 22px no-repeat;
  opacity: .82; mix-blend-mode: multiply; border-radius: 3px; }
.plate__code { color: #2b2d31; font-size: .72rem; line-height: 1.3; }

/* Casos: carrusel */
.cases { background: var(--paper); padding: clamp(90px, 12vw, 150px) 0 clamp(70px, 9vw, 110px); }
.cases__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.cases__nav { display: flex; gap: 8px; }
.round { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); font-size: 1.1rem; transition: background .2s; }
.round:hover { background: var(--white); }
.cases__rail { margin-top: 50px; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 max(16px, calc((100vw - 1240px) / 2)) 10px; scrollbar-width: none; scroll-padding-inline: max(16px, calc((100vw - 1240px) / 2)); }
.cases__rail::-webkit-scrollbar { display: none; }
.case { flex: 0 0 min(440px, 82vw); scroll-snap-align: start; }
.case__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, #1d1d22, #3a1820 70%, #7a1f24); }
.case:nth-child(2) .case__media { background: linear-gradient(160deg, #e7e1d9, #d9b8a4); }
.case:nth-child(3) .case__media { background: linear-gradient(160deg, #191a1f, #2a2d38); }
.case:nth-child(4) .case__media { background: linear-gradient(160deg, #f0923d, #c7161a 70%, #82103a); }
.case__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.case:hover .case__media img { transform: scale(1.04); }
.case__media .mono { position: absolute; left: 16px; top: 16px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.88); font-size: .66rem; }
.case h3 { margin-top: 20px; font-weight: 400; font-size: 1.6rem; letter-spacing: -0.03em; line-height: 1.15; }
.case p { margin-top: 10px; color: var(--ink-mid); max-width: 42ch; }

/* Para quién */
.audience { background: var(--paper); padding: 0 0 clamp(90px, 12vw, 150px); }
.audience__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.aud { padding: 34px 28px 0 0; }
.aud .mono { color: var(--red); }
.aud p { margin-top: 14px; font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.025em; line-height: 1.2; }

/* Contacto */
.contact { background: var(--white); padding: clamp(110px, 15vw, 190px) 0; border-top: 1px solid var(--line); }
.contact__inner { display: flex; flex-direction: column; align-items: center; }
.contact .h2 { font-size: clamp(2.2rem, 5.6vw, 4.4rem); max-width: 22ch; }
.contact .h2 .soft { font-size: .5em; letter-spacing: -0.02em; margin-top: 18px; }
.contact__cta { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Pie con video del logo */
.footer { background: #090909; color: rgba(255,255,255,.6); padding: clamp(70px, 9vw, 120px) 0 28px; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.footer__video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(70% 70% at 50% 50%, #000 55%, transparent 100%); }
.footer__cols { margin-top: 40px; display: grid; grid-template-columns: repeat(3, auto); gap: 28px 40px; font-size: .92rem; }
.footer__cols .mono { display: block; color: var(--orange); margin-bottom: 12px; }
.footer__cols a { display: block; color: #fff; text-decoration: none; margin-bottom: 6px; opacity: .85; }
.footer__cols a:hover { opacity: 1; color: var(--orange); }
.footer__cols p { color: rgba(255,255,255,.6); line-height: 1.7; }
.footer__bottom { margin-top: clamp(50px, 7vw, 90px); padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: rgba(255,255,255,.4); font-size: .66rem; }

/* Aparición */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero__title .line, .hero__lead, .hero__cta { opacity: 1; transform: none; filter: none; animation: none; transition: none; }
  .plate { animation: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .selector { grid-template-columns: 1fr; }
  .selector__stage { display: none; }
  .sel { grid-template-columns: 52px 1fr; }
  .sel__img { grid-column: 2; display: block; max-height: 0; overflow: hidden; border-radius: 18px; transition: max-height .6s ease, margin .6s; }
  .sel.is-active .sel__img { max-height: 420px; margin-top: 16px; }
  .sel__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; background: #e9e4dd; }
  .audience__grid { grid-template-columns: 1fr; }
  .territory__inner { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .territory__inner > .drone-card { grid-column: 1; grid-row: auto; margin-top: 40px; max-width: 420px; }
  .plates { height: auto; }
  .plates__sticky { position: static; height: auto; padding: 90px 0; }
  .plates__track { flex-direction: column; padding: 0 16px; transform: none !important; }
  .stage, .stage--intro, .stage--cta { flex-basis: auto; min-height: 0; margin-right: 0; }
  .stage h3 { margin-top: 18px; }
  .stage--cta h3 { margin-top: 0; }
}
@media (max-width: 760px) {
  .nav { gap: 12px; }
  .nav .pill--light { display: none; }
  .nav__toggle { display: block; margin-left: auto; }
  .nav__links { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px; border-radius: 22px; background: rgba(10,10,12,.95); border: 1px solid var(--line-dark); }
  .nav__links a { padding: 12px 14px; }
  .nav.is-open .nav__links { display: flex; }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .coord--tr, .coord--br { display: none; }
  .cases__nav { display: none; }
  .sel { grid-template-columns: 52px 1fr; }
}
