/* Portada con vuelo de dron por scroll — plantilla (probada en Destination Jelly).
   CAMBIAR en :root los colores y fuentes del cliente. */
:root {
  /* Punto Creativo 360: negro azulado, azul de la marca y hueso */
  --fondo: #02030A;
  --fondo-2: #070A19;
  --claro: #EEEDF2;
  --blanco: #FFFFFF;
  --texto: #EEEDF2;
  --suave: #B4B9D0;
  --acento: #7D88FF;
  --acento-2: #2A3BFF;
  --wa: #25D366;
  --linea: rgba(200, 208, 255, .12);

  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;     /* líneas grandes del titular (condensada, 900) */
  --f-script: "Unbounded", "Arial Black", system-ui, sans-serif;     /* líneas finas del titular (letra del logo) */
  --f-ui: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace; /* etiquetas */
  --f-body: "Instrument Sans", system-ui, -apple-system, sans-serif;

  --head-h: 68px;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--fondo); color: var(--texto); font: 400 17px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border: 0; cursor: pointer;
  transition: transform .35s var(--ease), background .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn { font-family: var(--f-body); letter-spacing: .02em; text-transform: none; font-size: 15px; gap: 10px; }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-wa { background: var(--wa); color: #04140A; }
.btn-wa:hover { background: #3be07c; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }

/* Header con el logo siempre visible */
.top {
  position: fixed; top: 0; right: 0; left: 0; z-index: 50;
  height: calc(var(--head-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) var(--gutter) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: rgba(2, 3, 10, .55); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--linea);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--claro); text-decoration: none; font: 500 13px/1 var(--f-script); letter-spacing: .12em; white-space: nowrap; }
.brand img { height: 34px; width: 34px; }
.top .btn-wa { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- Vuelo por scroll ---------- */
.vuelo { position: relative; height: 720vh; background: var(--fondo); } /* largo del scroll del vuelo */
.vuelo-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; --s: min(100vh / 800, 100vw / 716); }
.vuelo-poster, .vuelo-video { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.vuelo-poster { transform-origin: 50% 62%; will-change: transform; }
.vuelo-video { opacity: 0; transition: opacity .35s ease; }
.vuelo-video.on { opacity: 1; }
.tint {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 46% 34% at 50% 30%, rgba(2,3,10,.30), rgba(2,3,10,0) 100%),
    linear-gradient(to bottom, rgba(2,3,10,.34) 0%, rgba(2,3,10,.10) 26%, rgba(0,0,0,0) 44%, rgba(0,0,0,0) 56%, rgba(2,3,10,.34) 100%);
}

/* Composición inicial: escenario 1280×800 escalado, eje central en espejo */
.stage {
  position: absolute; left: 50%; top: 50%; width: 1280px; height: 800px; margin: -400px 0 0 -640px;
  transform: scale(var(--s)); transform-origin: 50% 50%; color: var(--claro); will-change: opacity, transform;
}
.eyebrow {
  position: absolute; left: 0; top: 66px; width: 1280px; margin: 0; text-align: center; text-transform: uppercase;
  font: 700 10px/10px var(--f-ui); letter-spacing: 2.6px; text-indent: 2.6px; text-shadow: 0 1px 3px rgba(0,0,0,.45);
}
.eyebrow span { display: block; }
.headline { position: absolute; left: 0; top: 0; width: 1280px; margin: 0; font-weight: 400; text-align: center; text-shadow: 0 10px 34px rgba(0,0,0,.42), 0 2px 6px rgba(0,0,0,.25); }
.hl { position: absolute; left: 0; width: 1280px; display: block; white-space: nowrap; }
.hl-s { font: 300 50px/1 var(--f-script); letter-spacing: .01em; text-shadow: 0 2px 3px rgba(0,0,0,.55), 0 8px 30px rgba(0,0,0,.5); }
.hl-b { font: 900 132px/.9 var(--f-display); font-stretch: 72%; text-transform: uppercase; letter-spacing: -.005em; }
.hl4 { color: #fff; text-shadow: 0 0 28px rgba(42,59,255,.85), 0 0 70px rgba(42,59,255,.55), 0 10px 34px rgba(0,0,0,.45); }
.hl1 { top: 98px; } .hl2 { top: 156px; } .hl3 { top: 290px; } .hl4 { top: 348px; }
.mark { position: absolute; left: 612px; top: 500px; width: 56px; height: 56px; filter: drop-shadow(0 0 18px rgba(42,59,255,.6)); }
.feature { position: absolute; top: 0; width: 330px; }
.f-left { text-align: right; right: 698.5px; }
.f-right { text-align: left; left: 698.5px; }
.feature .icon { position: absolute; width: 35px; height: 34px; }
.f-left .icon { right: -4.5px; top: 549.5px; }
.f-right .icon { left: -3px; top: 547.5px; height: 38px; }
.feature h2 { position: absolute; top: 617.7px; margin: 0; white-space: nowrap; font: 700 19.57px/20px var(--f-ui); text-transform: uppercase; color: var(--blanco); text-shadow: 0 1px 3px rgba(0,0,0,.6), 0 4px 14px rgba(0,0,0,.4); }
.f-left h2 { right: 0; } .f-right h2 { left: 0; }
.feature h2 span { display: block; }
.feature p { position: absolute; top: 681.9px; width: 270px; margin: 0; font: 400 12.28px/15.1px var(--f-ui); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.7), 0 2px 12px rgba(0,0,0,.45); }
.f-left p { right: 12px; } .f-right p { left: 12px; }

/* Entrada de ~1.8 s */
@media (prefers-reduced-motion: no-preference) {
  .is-loaded .eyebrow { animation: riseIn .55s cubic-bezier(.33,.9,.35,1) .15s both; }
  .is-loaded .hl { animation: lineIn .9s var(--ease) both; }
  .is-loaded .hl1 { animation-delay: .28s; } .is-loaded .hl2 { animation-delay: .37s; }
  .is-loaded .hl3 { animation-delay: .46s; } .is-loaded .hl4 { animation-delay: .55s; }
  .is-loaded .mark { animation: markIn .7s cubic-bezier(.2,.9,.25,1) .72s both; }
  .is-loaded .f-left { animation: blockInL .75s var(--ease) .82s both; }
  .is-loaded .f-right { animation: blockInR .75s var(--ease) .9s both; }
  html:not(.is-loaded) .stage > * { opacity: 0; }
}
@keyframes riseIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes lineIn {
  0% { opacity: 0; transform: translateY(.26em); clip-path: inset(100% -30% 0% -30%); }
  35% { opacity: 1; }
  90% { clip-path: inset(0% -30% -100% -30%); }
  100% { opacity: 1; transform: none; clip-path: inset(-80% -30% -100% -30%); }
}
@keyframes markIn { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: none; } }
@keyframes blockInL { from { opacity: 0; transform: translate(-12px, 8px); } to { opacity: 1; transform: none; } }
@keyframes blockInR { from { opacity: 0; transform: translate(12px, 8px); } to { opacity: 1; transform: none; } }

/* Textos durante el vuelo (con sombra radial detrás: se leen también sobre interiores claros) */
.cap {
  position: absolute; left: var(--gutter); bottom: calc(clamp(56px, 11vh, 120px) + env(safe-area-inset-bottom));
  max-width: min(760px, 86vw); color: var(--claro); opacity: 0; pointer-events: none; isolation: isolate; will-change: opacity, transform;
}
.cap.on { pointer-events: auto; }
.cap::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; top: -90px; right: -180px; bottom: -70px; left: -140px;
  background: radial-gradient(ellipse 50% 50% at 42% 50%, rgba(2,3,10,.56), rgba(2,3,10,.32) 50%, rgba(2,3,10,0) 100%);
}
.cap-eyebrow { margin: 0 0 14px; font: 600 clamp(12px, 1vw, 15px)/1.3 var(--f-ui); letter-spacing: .22em; text-transform: uppercase; text-shadow: 0 1px 2px rgba(0,0,0,.7), 0 0 14px rgba(0,0,0,.4); }
.cap-title { margin: 0; font: 900 clamp(46px, 7vw, 112px)/.9 var(--f-display); font-stretch: 72%; text-transform: uppercase; letter-spacing: -.005em; text-shadow: 0 14px 40px rgba(0,0,0,.45); text-wrap: balance; }
.cap-eyebrow { color: var(--acento); }
.cap .btn { margin-top: 26px; }
.cap-2 { left: auto; right: calc(var(--gutter) + 170px); text-align: right; }

.rail {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0;
  display: grid; gap: 22px; opacity: 0; transition: opacity .6s;
  font: 600 12px/1 var(--f-ui); letter-spacing: .26em; text-transform: uppercase; color: rgba(255,255,255,.62); text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.rail li { display: flex; align-items: center; justify-content: flex-end; gap: 12px; transition: color .4s; }
.rail li::after { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; transition: background .4s, transform .4s; }
.rail li.on { color: #fff; }
.rail li.on::after { background: var(--acento); border-color: var(--acento); transform: scale(1.35); }
.vuelo.past-intro .rail { opacity: 1; }

.hint {
  position: absolute; right: var(--gutter); bottom: calc(26px + env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 10px;
  font: 600 11px/1 var(--f-ui); letter-spacing: .32em; text-transform: uppercase; color: rgba(255,255,255,.85); transition: opacity .5s;
}
.hint i { width: 1.5px; height: 34px; background: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,0)); animation: drip 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.vuelo.past-intro .hint { opacity: 0; }

/* Carga: barra fina bajo el header y una pastilla con el porcentaje */
.loadbar { position: absolute; left: 0; right: 0; top: calc(var(--head-h) + env(safe-area-inset-top)); height: 2px; background: rgba(255,255,255,.18); transition: opacity .6s .3s; }
.loadbar i { display: block; height: 100%; width: 0; background: var(--acento); transition: width .3s; }
.vuelo.all-loaded .loadbar { opacity: 0; }
.load-note {
  position: absolute; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); transform: translateX(-50%); margin: 0;
  padding: 8px 14px; border-radius: 999px; background: rgba(2,3,10,.42); color: var(--claro); white-space: nowrap;
  font: 600 12px/1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; transition: opacity .5s;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.vuelo.is-ready:not(.is-waiting) .load-note { opacity: 0; }

.siguiente { min-height: 80vh; display: grid; place-items: center; }

/* ---------- Tableta vertical ---------- */
@media (min-width: 610px) and (max-aspect-ratio: 1/1) {
  .vuelo-pin { --u: min(100vw / 768, 100vh / 1024); --rail: clamp(120px, 28vw, 220px); }
  .stage {
    top: 0; right: 0; bottom: 0; left: 0; width: auto; height: auto; margin: 0; transform: none;
    display: grid; grid-template-columns: 1fr var(--rail) 1fr; grid-template-rows: auto auto 1fr auto auto minmax(0, .38fr);
    padding: calc(var(--head-h) + 46 * var(--u)) clamp(24px, 5.2vw, 72px) calc(24 * var(--u));
  }
  .eyebrow, .headline, .feature, .feature h2, .feature p, .feature .icon { position: static; }
  .eyebrow { grid-area: 1 / 1 / 2 / -1; width: auto; font-size: calc(11 * var(--u)); line-height: 1.2; letter-spacing: .304em; margin-bottom: calc(20 * var(--u)); }
  .headline { grid-area: 2 / 1 / 3 / -1; width: auto; }
  .hl { position: static; width: auto; }
  .hl-s { font-size: calc(42 * var(--u)); line-height: 1.15; }
  .hl-b { font-size: calc(118 * var(--u)); line-height: .9; }
  .mark { position: static; grid-area: 4 / 1 / 5 / -1; justify-self: center; width: calc(64 * var(--u)); height: calc(64 * var(--u)); margin-bottom: calc(16 * var(--u)); }
  .feature { width: auto; }
  .f-left { grid-area: 5 / 1 / 6 / 2; } .f-right { grid-area: 5 / 3 / 6 / 4; }
  .feature .icon { display: block; width: calc(42 * var(--u)); height: calc(46 * var(--u)); margin-bottom: calc(14 * var(--u)); }
  .f-left .icon { margin-left: auto; } .f-right .icon { margin-right: auto; }
  .feature h2 { font-size: calc(22 * var(--u)); line-height: 1.08; margin-bottom: calc(12 * var(--u)); white-space: normal; }
  .feature p { width: auto; font-size: calc(14.5 * var(--u)); line-height: 1.34; max-width: calc(310 * var(--u)); }
  .f-left p { margin-left: auto; } .f-right p { margin-right: auto; }
}

/* ---------- Celular ---------- */
@media (max-width: 860px) {
  :root { --head-h: 60px; }
  .brand img { height: 30px; }
  .vuelo { height: 800vh; }   /* 1179 cuadros: más recorrido en el celular para que cada movimiento del dedo pase menos cuadros */
  .rail, .hint { display: none; }
  .cap { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .cap-2 { left: var(--gutter); right: auto; text-align: left; }
  .load-note { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (max-width: 609px) {
  .vuelo-pin { --u: min(100vw / 390, 100vh / 780); }
  @supports (height: 100dvh) { .vuelo-pin { --u: min(100vw / 390, 100dvh / 780); } }
  .stage {
    top: 0; right: 0; bottom: 0; left: 0; width: auto; height: auto; margin: 0; transform: none;
    display: grid; grid-template-columns: 100%; grid-template-rows: auto auto 1fr auto auto auto minmax(0, .3fr);
    padding: calc(var(--head-h) + 30 * var(--u)) calc(22 * var(--u)) calc(110px + env(safe-area-inset-bottom));
  }
  .eyebrow, .headline, .feature, .feature h2, .feature p, .feature .icon { position: static; }
  .eyebrow { grid-row: 1; width: auto; font-size: clamp(8px, calc(9.5 * var(--u)), 11px); line-height: 1.3; letter-spacing: .304em; margin-bottom: calc(16 * var(--u)); }
  .headline { grid-row: 2; width: auto; }
  .hl { position: static; width: auto; }
  .hl-s { font-size: clamp(19px, min(6.2vw, calc(25 * var(--u))), 30px); line-height: 1.2; }
  .hl-b { font-size: clamp(44px, min(16vw, calc(68 * var(--u))), 84px); line-height: .95; }
  .mark { position: static; grid-row: 4; justify-self: center; width: clamp(38px, calc(46 * var(--u)), 54px); height: clamp(38px, calc(46 * var(--u)), 54px); margin-bottom: calc(18 * var(--u)); }
  .feature { width: auto; }
  .f-left { grid-row: 5; margin-bottom: calc(26 * var(--u)); }
  .f-right { grid-row: 6; }
  .feature .icon { display: block; width: clamp(26px, calc(34 * var(--u)), 40px); height: clamp(28px, calc(37 * var(--u)), 43px); margin-bottom: 8px; }
  .f-left .icon { margin-left: auto; } .f-right .icon { margin-right: auto; }
  .feature h2 { font-size: clamp(15px, calc(17 * var(--u)), 20px); line-height: 1.08; margin-bottom: 6px; white-space: normal; }
  .feature h2 span { display: inline; }
  .feature h2 .t2::before { content: " "; }
  .feature p { width: auto; font-size: clamp(11.5px, calc(13.5 * var(--u)), 14.5px); line-height: 1.36; max-width: calc(320 * var(--u)); }
  .f-left p { margin-left: auto; } .f-right p { margin-right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .hint i { animation: none; }
}

/* ---------- Después del vuelo ---------- */
.wrap { width: min(1180px, 100%); margin: 0 auto; padding-inline: var(--gutter); }
.servicios { position: relative; padding-block: clamp(90px, 12vw, 160px); background: linear-gradient(180deg, var(--fondo) 0%, var(--fondo-2) 100%); }
.kicker { margin: 0 0 18px; font: 500 12px/1 var(--f-ui); letter-spacing: .22em; text-transform: uppercase; color: var(--acento); }
.servicios h2, .contacto h2 { margin: 0; font: 900 clamp(48px, 8vw, 120px)/.9 var(--f-display); font-stretch: 72%; text-transform: uppercase; text-wrap: balance; color: var(--claro); }
.servicios h2 em, .contacto h2 em { font-style: normal; background: linear-gradient(90deg, #8e98ff, #dfe4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.serv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); margin-top: clamp(40px, 6vw, 72px); }
.serv { position: relative; padding: 28px 26px 30px; border-radius: 20px; min-width: 0;
  background: linear-gradient(165deg, rgba(150,165,255,.14), rgba(20,28,80,.16) 40%, rgba(6,10,32,.5));
  border: 1px solid rgba(196,204,255,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 30px 70px -36px rgba(42,59,255,.7); }
.serv .num { font: 500 12px/1 var(--f-ui); letter-spacing: .2em; color: var(--acento); }
.serv h3 { margin: 18px 0 12px; font: 900 clamp(30px, 2.6vw, 40px)/.95 var(--f-display); font-stretch: 72%; text-transform: uppercase; color: var(--claro); }
.serv p { margin: 0; color: var(--suave); font-size: 16px; line-height: 1.5; }
.contacto { padding-block: clamp(90px, 12vw, 160px); background: radial-gradient(60% 70% at 50% 100%, rgba(42,59,255,.28), rgba(42,59,255,0) 70%), var(--fondo-2); text-align: center; }
.contacto .wrap { display: grid; justify-items: center; gap: 26px; }
.contacto p { margin: 0; max-width: 46ch; color: var(--suave); font-size: clamp(16px, 1.5vw, 19px); }
.contacto .datos { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font: 500 13px/1.4 var(--f-ui); letter-spacing: .06em; }
.contacto .datos a { color: var(--claro); text-decoration: none; }
.pie { padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom)); background: var(--fondo); color: rgba(238,237,242,.5); font: 400 12px/1.4 var(--f-ui); letter-spacing: .08em; text-align: center; border-top: 1px solid var(--linea); }
@media (max-width: 860px) {
  .serv-grid { grid-template-columns: 1fr; }
  .brand span { display: none; }
}
