/* =========================================================================
   Landings de producto (a7): hero con pantalla real, animación en el medio,
   demo navegable.
   ========================================================================= */

/* ---------- Hero ---------- */
.lh { position: relative; padding: 150px 0 110px; background: #fff; overflow: hidden; }
.lh::before { content: ""; position: absolute; right: -10%; top: -20%; width: 70%; height: 120%; background: radial-gradient(closest-side, rgba(79,123,255,.14), transparent); pointer-events: none; }
.lh__grid { position: relative; display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.lh h1 { margin-top: 18px; font-size: clamp(44px, 4.8vw, 72px) !important; line-height: 1.02 !important; letter-spacing: -.035em; color: var(--n7); }
.lh .ah__lead { max-width: 36ch; }
.lh__shot { position: relative; margin-right: -12%; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(2,10,53,.07), 0 12px 24px -6px rgba(2,10,53,.12), 0 50px 100px -30px rgba(2,10,53,.35); }
.lh__shot img { display: block; width: 100%; }

/* ---------- Animación como franja ---------- */
.ah--band { min-height: 0 !important; height: 640px; padding: 0 !important; align-items: center; background: #fff; }
.ah--band::after { background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.92) 34%, rgba(255,255,255,0) 54%) !important; }
.ah--band .as__txt { max-width: 19ch; font-size: clamp(30px, 2.9vw, 44px) !important; line-height: 1.15; color: var(--n7); }
.ah--band .as__txt .w { opacity: .16; }
.ah--band .as__txt .w.on { opacity: 1; }

/* ---------- Agente con medio propio ---------- */
.ag7__media { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(2,10,53,.07), 0 40px 80px -30px rgba(2,10,53,.3); }
.ag7__media video, .ag7__media img { display: block; width: 100%; }
.ag7__media--img { background: #F5F7FC; box-shadow: none; }
.ag7 { align-items: center; }

/* ---------- Demo navegable ---------- */
.dx { padding: 120px 0; background: var(--n7); color: #fff; }
.dx__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.dx__head h2 { color: #fff !important; }
.dx__head p { max-width: 42ch; color: rgba(255,255,255,.72); font-size: 17px; line-height: 1.55; }
.dx__frame { margin-top: 44px; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 50px 120px -30px rgba(0,0,0,.7); }
.dx__bar { display: none !important; } .dx__bar-x { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; background: #EEF1F7; border-bottom: 1px solid #E1E5EE; }
.dx__bar i { width: 10px; height: 10px; border-radius: 50%; background: #CDD3E0; }
.dx__url { margin-left: 14px; font-size: 13px; color: #5A6180; }
.dx__url b { color: var(--n7); font-weight: 600; }
.dx__stage { position: relative; aspect-ratio: 1440 / 900; background: #fff; }
.dx__s { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.dx__s.is-on { opacity: 1; pointer-events: auto; }
.dx__s img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dx__hs { position: absolute; padding: 0; border: 0; border-radius: 6px; background: transparent; cursor: pointer; transition: background .15s, box-shadow .15s; }
.dx__hs:hover { background: rgba(32,77,229,.10); box-shadow: inset 0 0 0 1.5px rgba(32,77,229,.55); }
.dx__stage.is-hint .dx__s.is-on .dx__hs { animation: dxPulse 1.6s ease-in-out 2; }
@keyframes dxPulse { 50% { background: rgba(32,77,229,.12); box-shadow: inset 0 0 0 1.5px rgba(32,77,229,.5); } }
.dx__hint { position: absolute; left: 25%; top: 18%; padding: 8px 12px; border-radius: 6px; background: var(--b7); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 10px 24px -8px rgba(32,77,229,.7); pointer-events: none; opacity: 0; transform: translateX(-8px); transition: opacity .4s, transform .4s; }
.dx__hint::before { content: ""; position: absolute; left: -6px; top: 50%; margin-top: -6px; border: 6px solid transparent; border-left: 0; border-right-color: var(--b7); }
.dx__stage.is-hint .dx__hint { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .lh { padding: 120px 0 64px; }
  .lh__grid { grid-template-columns: 1fr; gap: 40px; }
  .lh__shot { margin-right: 0; }
  .ah--band { height: 520px; }
  .ah--band::after { background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.6) 60%, rgba(255,255,255,.2)) !important; }
  .dx { padding: 80px 0; }
}
.mx__vis .mx__stat b, .mx__vis .mx__stat b span { font-size: clamp(30px, 3vw, 44px) !important; line-height: 1.06 !important; font-weight: 700 !important; color: #fff !important; letter-spacing: -.02em; }

/* Almacenar: hero a pantalla completa con foto (la animación queda debajo del pliegue) */
.lh--tall { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; }
.lh--tall .lh__grid { width: 100%; }
.lh__ph { position: relative; height: min(70vh, 620px); margin-right: -12%; border-radius: 14px; overflow: hidden; background: var(--n7); }
.lh__ph i { position: absolute; inset: 0; background: center / cover; filter: saturate(.3) contrast(1.05) brightness(.95); }
.lh__ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,10,53,0) 40%, rgba(2,10,53,.45) 100%), rgba(26,47,194,.16); mix-blend-mode: multiply; pointer-events: none; }
@media (max-width: 900px) { .lh--tall { min-height: 0; } .lh__ph { height: 340px; margin-right: 0; } }

.dx__frame { border-radius: 16px; }

/* ===== Hero con foto de fondo y filtro (como el jumbotron de la Home) ===== */
.lh--bg { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 140px 0 100px; background: var(--n7); color: #fff; overflow: hidden; }
.lh--bg::before { content: ""; position: absolute; inset: 0; right: auto; top: 0; width: 100%; height: 100%; background: var(--img) center / cover; filter: grayscale(1) contrast(1.15); mix-blend-mode: luminosity; opacity: .55; transform: scale(1.06); animation: lhZoom 14s ease-out forwards; }
.lh--bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,10,53,.96) 0%, rgba(2,10,53,.78) 42%, rgba(26,47,194,.38) 100%), linear-gradient(0deg, rgba(2,10,53,.6), transparent 40%); pointer-events: none; }
@keyframes lhZoom { to { transform: scale(1); } }
.lh__in { position: relative; z-index: 1; width: 100%; }
.lh--bg h1 { max-width: 14ch; color: #fff !important; }
.lh--bg h1 .hl { color: #4F7BFF !important; }
.lh--bg .ah__tag { color: #fff; opacity: .85; }
.lh--bg .ah__lead { color: rgba(255,255,255,.85); max-width: 40ch; }
.b7--light { border-color: rgba(255,255,255,.7); color: #fff; }
.b7--light:hover { background: #fff; color: var(--n7); }

/* Mover: las calles se difuminan con el fondo hacia los bordes */
.ah--band[data-shape="routes"] .ah__cv { -webkit-mask-image: radial-gradient(ellipse 30% 44% at 72% 50%, #000 40%, transparent 100%); mask-image: radial-gradient(ellipse 30% 44% at 72% 50%, #000 40%, transparent 100%); }
.ah--band[data-shape="forecast"] .ah__cv { -webkit-mask-image: radial-gradient(ellipse 32% 48% at 73% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 32% 48% at 73% 50%, #000 55%, transparent 100%); }

/* Funcionalidades: la descripción y el link van sobre la foto */
.mx .mx__stat span { font-size: 16px !important; line-height: 1.5; max-width: 46ch; color: rgba(255,255,255,.86) !important; }
.mx__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 16px; border-radius: 8px; background: #fff; color: var(--navy); font-size: 14px; font-weight: 600; text-decoration: none; pointer-events: auto; transition: background .2s, color .2s; }
.mx__go span { color: inherit !important; font-size: inherit !important; display: inline !important; margin: 0 !important; }
.mx__go:hover { background: var(--blue); color: #fff; }
.mx__v.is-on, .mx__v.is-on .mx__stat { pointer-events: auto; }
.mx__it { padding: 20px 0 !important; }

/* Agente de Mover: animación del detector de paradas */
.sd { position: relative; aspect-ratio: 560 / 360; padding: 0 !important; background: #F5F7FC !important; border-radius: 16px; overflow: hidden; }
.sd__map { position: absolute; inset: 0; width: 100%; height: 100%; }
.sd__route { fill: none; stroke: #B9C5E8; stroke-width: 3; stroke-dasharray: 7 8; }
.sd__done { fill: none; stroke: #204DE5; stroke-width: 3; stroke-dasharray: 7 8; }
.sd__lbl { font: 700 13px Montserrat, sans-serif; fill: #020A35; } .sd__lbl--o { fill: #F59E0B; opacity: 0; }
.sd__ring circle { fill: none; stroke: #F59E0B; stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.sd__warn, .sd__call { opacity: 0; } .sd__call { fill: none; stroke: #F59E0B; stroke-width: 2; stroke-dasharray: 6 6; }
.sd__phone { position: absolute; right: 4%; top: 24%; width: 24%; aspect-ratio: .78; border-radius: 22px; background: #0b1336; color: #fff; display: grid; place-items: center; align-content: center; gap: 8px; padding: 14px; box-shadow: 0 30px 60px -20px rgba(2,10,53,.6); }
.sd__av { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #3a6cf4; }
.sd__av svg { width: 26px; height: 26px; fill: #0b1336; }
.sd__phone b { font-size: 12.5px; letter-spacing: .04em; } .sd__st { font-style: normal; font-size: 12px; color: #8ea6ff; }
.sd__btn { width: 30px; height: 30px; border-radius: 50%; background: #e5484d; }
.sd.is-call .sd__btn, .sd.is-ok .sd__btn { background: #22c55e; }
.sd.is-call .sd__btn { animation: sdRing .8s ease-in-out infinite; }
@keyframes sdRing { 50% { box-shadow: 0 0 0 8px rgba(34,197,94,.25); } }
.sd__ok { position: absolute; left: 6%; bottom: 7%; display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: 0 20px 40px -16px rgba(2,10,53,.45); opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .5s; }
.sd__ok i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #E3F6EC; } .sd__ok svg { width: 14px; height: 14px; fill: none; stroke: #11804A; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sd__ok b { display: block; font-size: 14px; color: var(--navy); } .sd__ok div > span { display: block; font-size: 12.5px; color: var(--muted); }
.sd.is-ok .sd__ok { opacity: 1; transform: none; }
.sd.is-stop .sd__warn, .sd.is-stop .sd__lbl--o { opacity: 1; transition: opacity .3s; }
.sd.is-stop .sd__ring circle { animation: sdPulse 1.6s ease-out infinite; } .sd.is-stop .sd__ring circle + circle { animation-delay: .5s; }
@keyframes sdPulse { from { opacity: .8; transform: scale(.4); } to { opacity: 0; transform: scale(1.2); } }
.sd.is-call .sd__call { opacity: 1; animation: sdDash 1s linear infinite; } @keyframes sdDash { to { stroke-dashoffset: -24; } }
.mx .mx__stat .mx__go, .mx .mx__stat .mx__go span { color: var(--navy) !important; font-size: 14px !important; } .mx .mx__stat .mx__go:hover, .mx .mx__stat .mx__go:hover span { color: #fff !important; }

/* Recorrido 3D del producto dentro de la landing */
.a7 .section.t3d, .section.t3d { background: var(--soft7, #F5F7FC) !important; }
.t3d__h { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: end; }
.t3d__h p { font-size: 17px; line-height: 1.6; color: var(--ink7, #3D4466); max-width: 44ch; }
.t3d__fr { position: relative; margin-top: 40px; border-radius: 16px; overflow: hidden; background: #F5F7FC; box-shadow: 0 0 0 1px rgba(2,10,53,.08), 0 30px 60px -32px rgba(2,10,53,.4); }
.t3d__fr iframe { display: block; width: 100%; height: clamp(520px, 72vh, 720px); border: 0; }
.t3d__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; background: #fff; border-top: 1px solid #E3E8F5; font-size: 13.5px; color: var(--mut7, #6B7394); }
.t3d__bar a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--b7, #204DE5); text-decoration: none; }
.t3d__bar a:hover { text-decoration: underline; }
@media (max-width: 900px) { .t3d__h { grid-template-columns: 1fr; gap: 16px; } .t3d__fr iframe { height: 560px; } .t3d__bar span { display: none; } }
