/* Apps móviles: página propia, con los videos como protagonistas */
.ap { --ap-black: #07090e; --ap-ink: #0b1f3a; --ap-blue: #2f7bff; --ap-green: #10c98f; --ap-amber: #ff9a2e; --rgb: 47, 123, 255; background: var(--ap-black); color: #fff; overflow: clip; }
.ap svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ap-wrap { width: min(1200px, 100% - 2 * var(--gutter, 24px)); margin-inline: auto; position: relative; }

/* Portada */
.ap-hero { position: relative; padding: clamp(130px, 17vh, 190px) 0 clamp(64px, 9vw, 110px); isolation: isolate; }
.ap-hero::before, .ap-hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.ap-hero::before { width: 620px; height: 620px; left: -220px; top: -180px; background: rgba(47, 123, 255, .34); }
.ap-hero::after { width: 520px; height: 520px; right: -160px; bottom: -260px; background: rgba(47, 123, 255, .22); }
.ap-hero__crumbs { display: flex; gap: 8px; margin: 0 0 26px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.ap-hero__crumbs a { color: inherit; }
.ap-hero h1 { margin: 0; max-width: 15ch; font-size: clamp(2.7rem, 7.4vw, 6rem); line-height: .98; letter-spacing: -.035em; font-weight: 600; color: #fff; }
.ap-hero h1 em { font-style: normal; color: #7fb0ff; }
.ap-hero__lead { max-width: 56ch; margin: 26px 0 0; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.55; color: rgba(255, 255, 255, .72); }
.ap-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: clamp(40px, 6vw, 68px) 0 0; padding: 0; list-style: none; }
.ap-pick a { --c: var(--ap-blue); display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 20px; color: #fff; text-decoration: none; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: transform .35s var(--ease-out, ease), background .35s, box-shadow .35s; }
.ap-pick a:hover { transform: translateY(-4px); background: rgba(var(--rgb), .18); box-shadow: inset 0 0 0 1px var(--c); }
.ap-pick__i { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; color: #fff; background: var(--c); }
.ap-pick__i svg { width: 26px; height: 26px; }
.ap-pick strong { display: block; font-size: 1.08rem; font-weight: 600; }
.ap-pick small { display: block; margin-top: 2px; font-size: .88rem; color: rgba(255, 255, 255, .62); }

/* Cada app */
.ap-app { --c: var(--ap-blue); position: relative; padding: clamp(72px, 10vw, 140px) 0; scroll-margin-top: 40px; isolation: isolate; }
.ap-app--preventa { background: var(--ap-black); }
.ap-app--financieras { --c: var(--ap-green); --rgb: 16, 201, 143; background: #fff; color: var(--ap-ink); }
.ap-app--obras { --c: var(--ap-amber); --rgb: 255, 154, 46; background: var(--ap-ink); }
.ap-app__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); gap: clamp(40px, 7vw, 100px); align-items: center; }
.ap-app--financieras .ap-app__grid { grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); }
.ap-tag { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; font-size: .95rem; font-weight: 600; color: var(--c); }
.ap-app--financieras .ap-tag { color: #08966a; }
.ap-tag span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: var(--c); }
.ap-tag svg { width: 22px; height: 22px; }
.ap-app h2 { margin: 0; font-size: clamp(2.1rem, 4.6vw, 3.9rem); line-height: 1.04; letter-spacing: -.03em; font-weight: 600; color: inherit; }
.ap-app__sub { max-width: 52ch; margin: 18px 0 0; font-size: 1.12rem; line-height: 1.55; opacity: .74; }
.ap-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.ap-chips li { display: inline-flex; align-items: center; gap: 9px; padding: 10px 15px; border-radius: 999px; font-size: .95rem; background: rgba(var(--rgb), .14); box-shadow: inset 0 0 0 1px rgba(var(--rgb), .42); }
.ap-chips svg { width: 19px; height: 19px; color: var(--c); }
.ap-app--financieras .ap-chips svg { color: #08966a; }
.ap-steps { margin: 34px 0 0; }
.ap-steps > p { margin: 0 0 12px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; opacity: .6; }
.ap-steps ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.ap-steps li { counter-increment: s; font-size: 1rem; line-height: 1.3; font-weight: 500; }
.ap-steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 10px; border-radius: 50%; font-size: .9rem; font-weight: 700; color: #07090e; background: var(--c); }
.ap-cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 36px; padding: 15px 26px; border-radius: 999px; font-weight: 600; color: #07090e; text-decoration: none; background: var(--c); transition: transform .3s var(--ease-out, ease), box-shadow .3s; }
.ap-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -14px var(--c); }
.ap-cta svg { width: 18px; height: 18px; }

/* Celular con video */
.ap-stage { position: relative; display: grid; place-items: center; }
.ap-stage::before { content: ""; position: absolute; z-index: -1; width: 118%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--rgb), .58), rgba(var(--rgb), 0)); }
.ap-phone { position: relative; width: min(340px, 100%); padding: 10px; border-radius: 46px; background: #000; box-shadow: 0 0 0 2px rgba(255, 255, 255, .16), 0 50px 90px -30px rgba(0, 0, 0, .75); }
.ap-phone video { display: block; width: 100%; height: auto; border-radius: 36px; background: #000; }


/* Otras apps */
.ap-more { padding: clamp(64px, 8vw, 110px) 0; background: #fff; color: var(--ap-ink); }
.ap-more h2 { margin: 0; font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -.025em; line-height: 1.08; font-weight: 600; color: inherit; }
.ap-more ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 36px 0 0; padding: 0; list-style: none; }
.ap-more li { padding: 24px 22px; border-radius: 20px; background: #f1f4f9; }
.ap-more li svg { width: 28px; height: 28px; color: var(--ap-blue); }
.ap-more strong { display: block; margin-top: 14px; font-size: 1.08rem; font-weight: 600; }
.ap-more li p { margin: 6px 0 0; font-size: .95rem; line-height: 1.45; color: #4b5b70; }

@media (max-width: 900px) {
  .ap-pick, .ap-more ul { grid-template-columns: 1fr 1fr; }
  .ap-app__grid, .ap-app--financieras .ap-app__grid { grid-template-columns: 1fr; }
  .ap-app--financieras .ap-stage { order: 2; }
  .ap-phone { width: min(300px, 100%); }
}
@media (max-width: 560px) {
  .ap-pick, .ap-more ul { grid-template-columns: 1fr; }
  .ap-steps ol { grid-template-columns: 1fr; }
  .ap-steps li { display: flex; align-items: center; gap: 12px; }
  .ap-steps li::before { flex: none; margin: 0; }
}

/* Portada con celular */
.ap-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 80px); align-items: center; }
.ap-hero__grid .ap-pick { grid-column: 1 / -1; }
.ap-hero__phone .ap-phone { width: 300px; max-height: 620px; overflow: hidden; transform: rotate(4deg); }
@media (max-width: 900px) {
  .ap-hero__grid { grid-template-columns: 1fr; }
  .ap-hero__phone { display: none; }
}
.ap-hero__grid h1 { font-size: clamp(2.7rem, 5.6vw, 4.8rem); }
.ap-hero__phone .ap-phone { width: 270px; }
@media (max-width: 900px) {
  .ap-app--preventa .ap-stage { order: -1; }
  .ap-app--financieras .ap-stage { order: 0; }
}

/* Orden: Preventa, Obras, Financieras */
.ap-app--financieras .ap-phone { box-shadow: 0 0 0 2px rgba(11, 31, 58, .1), 0 34px 54px -30px rgba(6, 55, 43, .55); }
.ap-more { background: #f1f4f9; }
.ap-more li { background: #fff; }
@media (min-width: 901px) {
  .ap-app--obras .ap-app__grid { grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); }
  .ap-app--financieras .ap-app__grid { grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); }
  .ap-app--financieras .ap-stage { order: 2; }
}
@media (max-width: 900px) { .ap-app--obras .ap-stage { order: -1; } }

/* Cuantico Ingreso (nueva, con IA) */
.ap { --ap-violet: #8b6cff; }
.ap-new { display: inline-block; margin-left: 8px; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; vertical-align: middle; color: #fff; background: linear-gradient(90deg, #8b6cff, #2f7bff); box-shadow: 0 0 18px -2px rgba(139, 108, 255, .8); }
.ap-pick .ap-new { margin-left: 4px; padding: 2px 8px; font-size: .64rem; }
.ap-app--ingreso { --c: var(--ap-violet); --rgb: 139, 108, 255; background: radial-gradient(900px 600px at 85% 8%, rgba(139, 108, 255, .28), transparent 60%), radial-gradient(700px 500px at 0% 60%, rgba(47, 123, 255, .16), transparent 60%), #0d0a1d; }
.ap-app--ingreso h2 em { font-style: normal; background: linear-gradient(90deg, #b7a6ff, #6fb0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
@supports not ((-webkit-background-clip: text) or (background-clip: text)) { .ap-app--ingreso h2 em { color: #b7a6ff; } }
.ap-app--ingreso .ap-app__sub { opacity: .8; }
.ap-steps--4 ol { grid-template-columns: repeat(4, 1fr); }

/* Video real + instructivo */
.ap-stage--real { gap: 16px; }
.ap-real { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 9px 16px; border-radius: 999px; font-size: .95rem; font-weight: 600; color: #fff; background: rgba(139, 108, 255, .2); box-shadow: inset 0 0 0 1px rgba(139, 108, 255, .55); }
.ap-real span { width: 9px; height: 9px; border-radius: 50%; background: #ff4d6d; box-shadow: 0 0 0 0 rgba(255, 77, 109, .7); animation: ap-live 1.6s infinite; }
@keyframes ap-live { 70% { box-shadow: 0 0 0 9px rgba(255, 77, 109, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 109, 0); } }
.ap-sound { margin: 0; font-size: .72rem; letter-spacing: .08em; color: rgba(255, 255, 255, .5); }
.ap-easy { margin: 18px 0 0; font-size: 1.05rem; font-weight: 600; color: #b7a6ff; }
.ap-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 36px; }
.ap-ctas .ap-cta { margin-top: 0; }
.ap-cta--ghost { color: #fff; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px rgba(139, 108, 255, .7); }
.ap-cta--ghost:hover { background: rgba(139, 108, 255, .2); }
.ap-cta--ghost small { font-size: .72rem; font-weight: 700; opacity: .6; }

/* Bloque ampliado */
.ap-ing { margin-top: clamp(64px, 9vw, 120px); display: grid; gap: clamp(56px, 8vw, 104px); }
.ap-ing h3 { margin: 0; font-size: clamp(1.7rem, 3.2vw, 2.7rem); line-height: 1.08; letter-spacing: -.025em; font-weight: 600; color: #fff; }
.ap-ing p { color: rgba(255, 255, 255, .74); line-height: 1.6; }
.ap-kicker { margin: 0 0 14px; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: #b7a6ff !important; }
.ap-ing__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.ap-ing__stats li { padding: 26px 26px 24px; border-radius: 22px; background: linear-gradient(160deg, rgba(139, 108, 255, .22), rgba(139, 108, 255, .04)); box-shadow: inset 0 0 0 1px rgba(139, 108, 255, .32); }
.ap-ing__stats strong { display: block; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -.03em; font-weight: 600; background: linear-gradient(90deg, #fff, #b7a6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ap-ing__stats span { display: block; margin-top: 10px; color: rgba(255, 255, 255, .7); }
.ap-ing__why > p { max-width: 70ch; margin: 18px 0 0; font-size: 1.08rem; }
.ap-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.ap-vs > div { padding: 26px; border-radius: 22px; }
.ap-vs__old { background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.ap-vs__new { background: linear-gradient(160deg, rgba(139, 108, 255, .26), rgba(47, 123, 255, .1)); box-shadow: inset 0 0 0 1px rgba(139, 108, 255, .45); }
.ap-vs .mono { margin: 0 0 14px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.ap-vs ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ap-vs li { position: relative; padding-left: 30px; line-height: 1.45; }
.ap-vs li::before { position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: .72rem; font-weight: 700; }
.ap-vs__old li { color: rgba(255, 255, 255, .55); }
.ap-vs__old li::before { content: "\2715"; color: #ff8a8a; background: rgba(255, 90, 90, .14); }
.ap-vs__new li::before { content: "\2713"; color: #0d0a1d; background: #b7a6ff; }
.ap-dup { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.ap-dup__phone { position: relative; display: grid; place-items: center; }
.ap-dup__phone::before { content: ""; position: absolute; z-index: -1; width: 120%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(139, 108, 255, .45), transparent); }
.ap-dup__phone .ap-phone { width: min(280px, 100%); transform: rotate(-3deg); }
.ap-dup__phone img { display: block; width: 100%; height: auto; border-radius: 36px; }
.ap-dup h3 + p { margin: 16px 0 0; }
.ap-dup__ways { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.ap-dup__ways li { padding: 18px 18px 16px; border-radius: 18px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); }
.ap-dup__ways svg, .ap-flow svg, .ap-ing__feats svg { width: 26px; height: 26px; color: #b7a6ff; }
.ap-dup__ways strong, .ap-ing__feats strong { display: block; margin-top: 10px; font-weight: 600; }
.ap-dup__ways span, .ap-ing__feats span { display: block; margin-top: 4px; font-size: .93rem; line-height: 1.45; color: rgba(255, 255, 255, .66); }
.ap-dup__end { margin: 20px 0 0; font-weight: 600; color: #fff !important; }
.ap-flow { text-align: center; }
.ap-flow h3 { max-width: 22ch; margin-inline: auto; }
.ap-flow ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 36px 0 0; padding: 0; list-style: none; counter-reset: f; }
.ap-flow li { position: relative; padding: 26px 20px 22px; border-radius: 22px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); }
.ap-flow li:not(:last-child)::after { content: "\2192"; position: absolute; z-index: 1; right: -15px; top: 50%; display: grid; place-items: center; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; font-size: .9rem; color: #0d0a1d; background: #b7a6ff; }
.ap-flow svg { width: 34px; height: 34px; padding: 7px; border-radius: 12px; color: #fff; background: var(--ap-violet); }
.ap-flow strong { display: block; margin-top: 14px; font-weight: 600; }
.ap-flow span { display: block; margin-top: 6px; font-size: .92rem; line-height: 1.45; color: rgba(255, 255, 255, .66); }
.ap-ing__feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.ap-ing__feats li { padding: 22px; border-radius: 20px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.ap-ing__req { margin: -40px 0 0; text-align: center; font-size: .78rem; letter-spacing: .08em; color: rgba(255, 255, 255, .5) !important; }

@media (min-width: 901px) { .ap-pick { grid-template-columns: repeat(4, 1fr); } .ap-pick a { padding: 18px; gap: 12px; } .ap-pick__i { width: 46px; height: 46px; } }
@media (max-width: 900px) {
  .ap-app--ingreso .ap-stage { order: -1; }
  .ap-dup { grid-template-columns: 1fr; }
  .ap-flow ol { grid-template-columns: 1fr 1fr; }
  .ap-flow li:nth-child(2)::after { display: none; }
  .ap-ing__feats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .ap-ing__stats, .ap-vs, .ap-dup__ways, .ap-flow ol, .ap-ing__feats { grid-template-columns: 1fr; }
  .ap-steps--4 ol { grid-template-columns: 1fr; }
  .ap-flow li::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ap-real span { animation: none; }
}
.ap-steps > p.ap-easy { margin: 18px 0 0; font-size: 1.05rem; letter-spacing: 0; text-transform: none; opacity: 1; color: #b7a6ff; }
.ap-new { white-space: nowrap; }
@media (max-width: 560px) { .ap-app--ingreso .ap-tag { flex-wrap: wrap; } .ap-app--ingreso .ap-tag .ap-new { margin-left: 0; } }
