/* 15/10/2026 — portada con la app programada (pantalla clara de la app
   dentro de un móvil), sobre el fondo NEGRO de la web (el usuario: «me gusta más
   el fondo negro»). Se carga DESPUÉS de /assets/styles.css. La versión clara de
   toda la página quedó descartada. */

/* Fondo negro con degradado azul y brillo */
html { background: #05090C; }
body {
    background:
        radial-gradient(900px 620px at 88% -6%, rgba(0,73,252,.42), transparent 62%),
        radial-gradient(820px 560px at -8% 24%, rgba(0,244,253,.14), transparent 60%),
        radial-gradient(1000px 700px at 105% 58%, rgba(30,107,255,.16), transparent 60%),
        radial-gradient(900px 640px at 0% 92%, rgba(0,73,252,.2), transparent 62%),
        linear-gradient(180deg, #05090C 0%, #071226 40%, #05090C 70%, #06102A 100%);
}
.ambient { filter: blur(100px); }
.ambient-one { background: radial-gradient(circle, rgba(0,73,252,.55), rgba(0,73,252,.15) 55%, transparent 72%); animation: deriva-uno 22s ease-in-out infinite alternate; }
.ambient-two { background: radial-gradient(circle, rgba(0,244,253,.3), rgba(30,155,255,.1) 55%, transparent 72%); animation: deriva-dos 26s ease-in-out infinite alternate; }
@keyframes deriva-uno { to { transform: translate(-14vw, 18vh) scale(1.15); } }
@keyframes deriva-dos { to { transform: translate(16vw, -20vh) scale(1.2); } }
/* Destello diagonal que cruza la página despacio */
body::after { content: ""; position: fixed; inset: -20% -40%; z-index: -1; pointer-events: none; background: linear-gradient(115deg, transparent 40%, rgba(80,160,255,.10) 47%, rgba(0,244,253,.08) 50%, transparent 57%); animation: destello 12s ease-in-out infinite; }
@keyframes destello { 0% { transform: translateX(-45%); opacity: 0; } 15% { opacity: 1; } 60% { opacity: 1; } 75%, 100% { transform: translateX(45%); opacity: 0; } }
.hero h1 em, .hero-stats strong { background: linear-gradient(120deg, #0049FC 0%, #1E9BFF 40%, #00F4FD 60%, #0049FC 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: texto-brillo 6s ease-in-out infinite; }
@keyframes texto-brillo { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { body::after { display: none; } }
.shot-halo { background: radial-gradient(circle, rgba(30,107,255,.6), rgba(0,73,252,.22) 45%, transparent 70%); }
.shot-ondas path { stroke: rgba(0,244,253,.3); }

/* ── Portada: la billetera real en un móvil ─────────────────────────────── */
.shot-wrap { position: relative; min-width: 0; display: flex; justify-content: center; align-items: center; padding: 30px 0; perspective: 1400px; }
.shot-halo { position: absolute; width: 420px; height: 420px; max-width: 90%; border-radius: 50%; background: radial-gradient(circle, rgba(30,155,255,.45), rgba(0,73,252,.18) 45%, transparent 70%); filter: blur(30px); animation: halo 6s ease-in-out infinite; }
@keyframes halo { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.08); opacity: 1; } }
.shot-ondas { position: absolute; inset: -6% -14%; width: 128%; height: 112%; pointer-events: none; }
.shot-ondas path { fill: none; stroke: rgba(0,73,252,.28); stroke-width: 1.4; stroke-dasharray: 6 10; animation: ondas 9s linear infinite; }
.shot-ondas path:nth-child(2) { stroke: rgba(30,155,255,.3); animation-duration: 12s; }
.shot-ondas path:nth-child(3) { stroke: rgba(0,200,253,.3); animation-duration: 15s; }
@keyframes ondas { to { stroke-dashoffset: -320; } }

.shot-tilt { position: relative; transform-style: preserve-3d; transform: rotateX(var(--rx, 4deg)) rotateY(var(--ry, -10deg)); transition: transform .6s var(--ease); }
.shot-device { position: relative; width: 380px; max-width: 80vw; padding: 11px; border-radius: 48px; background: linear-gradient(150deg, #FDFEFF 0%, #C9D4E3 35%, #EEF2F8 60%, #B7C3D4 100%); box-shadow: 0 50px 100px rgba(15,42,102,.28), 0 0 0 1px rgba(120,140,170,.45), inset 0 0 0 2px rgba(255,255,255,.7); animation: flota 7s ease-in-out infinite; overflow: hidden; }
@keyframes flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
/* Brillo que cruza la pantalla cada pocos segundos */
.shot-brillo { position: absolute; inset: 10px; border-radius: 38px; overflow: hidden; pointer-events: none; }
.shot-brillo::before { content: ""; position: absolute; top: -20%; bottom: -20%; width: 45%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.38), transparent); transform: skewX(-18deg); animation: brillo 6.5s ease-in-out infinite; }
@keyframes brillo { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }

/* Tarjetas flotantes */
.chip-ai { right: -110px; top: 12%; }
.chip-pnl { left: -120px; top: 36%; min-width: 150px; animation-delay: -2s; }
.chip-dex { left: -150px; bottom: 14%; animation-delay: -4s; }
.chip-up { background: rgba(22,163,74,.12) !important; color: #4ADE80 !important; font-size: 1.1rem !important; }
.chip-verde { color: #4ADE80; font-size: .95rem !important; }

@media (max-width: 1020px) {
    .shot-tilt { transform: none; }
    .chip-ai { right: -40px; } .chip-pnl { left: -40px; } .chip-dex { left: -50px; }
}
@media (max-width: 680px) {
    .shot-wrap { padding: 10px 0 20px; }
    .shot-device { width: 300px; border-radius: 40px; padding: 8px; }
    .pantalla, .shot-brillo { border-radius: 32px; }
    .shot-brillo { inset: 8px; }
    .shot-halo { width: 320px; height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
    .shot-brillo::before { display: none; }
}

/* ── Pantalla de la app programada (medidas de la captura: 856 de ancho) ── */
.shot-device { container-type: inline-size; }
.pantalla { --u: calc(100cqw / 856); position: relative; height: calc(1645 * var(--u)); border-radius: 38px; overflow: hidden; color: #0E1424; font-family: Roboto, var(--body); text-align: start; isolation: isolate; }
.p-fondo { position: absolute; inset: 0; z-index: -1; background: linear-gradient(170deg, #E9EEF5 0%, #E1E8F1 55%, #DCE4EE 100%); }
.p-fondo::after { content: ""; position: absolute; left: 45%; top: -5%; width: 1px; height: 45%; background: linear-gradient(transparent, rgba(255,255,255,.9), transparent); transform: rotate(-52deg); transform-origin: top; }
.pantalla svg { display: block; }
.p-top { position: absolute; left: calc(42 * var(--u)); right: calc(34 * var(--u)); top: calc(28 * var(--u)); display: flex; justify-content: space-between; }
.p-marca img { display: block; width: calc(216 * var(--u)); height: auto; }
.p-marca span { display: block; margin-top: calc(10 * var(--u)); font-size: calc(26 * var(--u)); font-weight: 500; color: #3B4556; letter-spacing: .01em; white-space: nowrap; }
.p-redondos { display: flex; gap: calc(22 * var(--u)); }
.p-redondos i { display: grid; place-items: center; width: calc(92 * var(--u)); height: calc(92 * var(--u)); border-radius: 50%; background: #E4E8EE; box-shadow: 0 calc(6 * var(--u)) calc(16 * var(--u)) rgba(15,30,60,.12), inset 0 1px #fff; color: #10172A; }
.p-redondos svg { width: calc(42 * var(--u)); height: calc(42 * var(--u)); }

.p-saldo { position: absolute; left: calc(36 * var(--u)); right: calc(36 * var(--u)); top: calc(176 * var(--u)); height: calc(366 * var(--u)); border-radius: calc(40 * var(--u)); overflow: hidden; color: #fff; background: radial-gradient(120% 90% at 100% 100%, #1B47C9 0%, transparent 55%), linear-gradient(140deg, #0B1640 0%, #08123A 50%, #0B1E5C 100%); border: calc(2 * var(--u)) solid rgba(90,130,255,.55); box-shadow: 0 calc(18 * var(--u)) calc(40 * var(--u)) rgba(11,30,92,.35); }
.p-ondas { position: absolute; inset: 0; width: 100%; height: 100%; }
.p-ondas path { fill: none; stroke: rgba(150,190,255,.55); stroke-width: 1.2; stroke-dasharray: 520; stroke-dashoffset: 520; animation: p-trazo 2.6s var(--ease) .5s forwards, p-respira 6s ease-in-out 3s infinite; }
.p-ondas path:nth-child(2) { stroke: rgba(120,170,255,.4); animation-delay: .7s, 3.4s; }
.p-ondas path:nth-child(3) { stroke: rgba(90,150,255,.3); animation-delay: .9s, 3.8s; }
.p-ondas path:nth-child(4) { stroke: rgba(210,230,255,.75); stroke-width: 1.6; animation-delay: .3s, 2.6s; filter: drop-shadow(0 0 3px rgba(120,180,255,.9)); }
@keyframes p-trazo { to { stroke-dashoffset: 0; } }
@keyframes p-respira { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.p-saldo-top { position: absolute; left: calc(50 * var(--u)); right: calc(40 * var(--u)); top: calc(44 * var(--u)); display: flex; justify-content: space-between; align-items: center; }
.p-saldo-top > span { display: flex; align-items: center; gap: calc(22 * var(--u)); }
.p-saldo-top b { font-size: calc(26 * var(--u)); font-weight: 700; letter-spacing: .22em; color: #D3DAE8; }
.p-saldo-top svg { width: calc(40 * var(--u)); height: calc(40 * var(--u)); color: #fff; }
.p-saldo-top em { font-style: normal; font-size: calc(26 * var(--u)); font-weight: 700; padding: calc(14 * var(--u)) calc(30 * var(--u)); border-radius: 999px; border: calc(2 * var(--u)) solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); letter-spacing: .04em; }
.p-cifra { position: absolute; left: calc(46 * var(--u)); top: calc(140 * var(--u)); font-size: calc(92 * var(--u)); font-weight: 800; letter-spacing: -.02em; line-height: 1; text-shadow: 0 0 calc(18 * var(--u)) rgba(160,200,255,.5); font-variant-numeric: tabular-nums; }
.p-cambio { position: absolute; left: calc(46 * var(--u)); top: calc(266 * var(--u)); display: flex; align-items: center; gap: calc(22 * var(--u)); }
.p-pct { display: inline-flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(12 * var(--u)) calc(20 * var(--u)); border-radius: calc(16 * var(--u)); border: calc(2 * var(--u)) solid #22C55E; background: rgba(34,197,94,.14); color: #4ADE80; font-size: calc(24 * var(--u)); font-weight: 700; }
.p-pct svg { width: calc(26 * var(--u)); height: calc(26 * var(--u)); }
.p-dia { color: #4ADE80; font-size: calc(27 * var(--u)); font-weight: 700; }
.p-dia small { color: #B8C1D3; font-size: 1em; font-weight: 500; }
.p-huella { position: absolute; right: calc(26 * var(--u)); bottom: calc(22 * var(--u)); display: grid; place-items: center; width: calc(98 * var(--u)); height: calc(46 * var(--u)); border-radius: 999px; border: calc(2 * var(--u)) solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); }
.p-huella svg { width: calc(26 * var(--u)); height: calc(26 * var(--u)); }
.p-vivo { animation: p-destello .9s ease; }
@keyframes p-destello { 0% { color: #fff; text-shadow: 0 0 12px rgba(74,222,128,.9); } 100% { } }

.p-acciones { position: absolute; left: calc(42 * var(--u)); right: calc(42 * var(--u)); top: calc(578 * var(--u)); display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(18 * var(--u)); }
.p-acc { height: calc(156 * var(--u)); border-radius: calc(30 * var(--u)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(16 * var(--u)); color: #fff; background: linear-gradient(160deg, #182C6B 0%, #0B1846 100%); box-shadow: 0 calc(10 * var(--u)) calc(22 * var(--u)) rgba(11,24,70,.28), inset 0 1px rgba(255,255,255,.12); transition: transform .3s var(--ease); }
.p-acc svg { width: calc(46 * var(--u)); height: calc(46 * var(--u)); }
.p-acc b { font-size: calc(24 * var(--u)); font-weight: 800; letter-spacing: .08em; }
.p-acc-hai { background: linear-gradient(150deg, #1E6BFF 0%, #22B6FF 100%); box-shadow: 0 calc(12 * var(--u)) calc(30 * var(--u)) rgba(30,140,255,.55), inset 0 1px rgba(255,255,255,.3); animation: p-latido 3.2s ease-in-out infinite; }
@keyframes p-latido { 0%, 100% { box-shadow: 0 calc(12 * var(--u)) calc(30 * var(--u)) rgba(30,140,255,.45), inset 0 1px rgba(255,255,255,.3); } 50% { box-shadow: 0 calc(12 * var(--u)) calc(44 * var(--u)) rgba(30,170,255,.85), inset 0 1px rgba(255,255,255,.3); } }

.p-wallet-head { position: absolute; left: calc(36 * var(--u)); right: calc(48 * var(--u)); top: calc(778 * var(--u)); height: calc(64 * var(--u)); display: flex; align-items: center; gap: calc(30 * var(--u)); }
.p-wallet-head > b { flex: 1; font-size: calc(27 * var(--u)); font-weight: 800; letter-spacing: .16em; color: #111827; }
.p-anadir { display: inline-flex; align-items: center; gap: calc(10 * var(--u)); height: 100%; padding: 0 calc(30 * var(--u)); border-radius: calc(20 * var(--u)); background: #0B1A45; color: #fff; font-size: calc(24 * var(--u)); font-weight: 800; letter-spacing: .06em; box-shadow: 0 calc(8 * var(--u)) calc(18 * var(--u)) rgba(11,26,69,.3); }
.p-wallet-head svg { width: calc(40 * var(--u)); height: calc(40 * var(--u)); color: #111827; }

.p-token { position: relative; height: calc(165 * var(--u)); flex: none; padding: 0 calc(30 * var(--u)) 0 calc(40 * var(--u)); border-radius: calc(34 * var(--u)); background: rgba(232,236,242,.95); box-shadow: inset 0 1px #fff, 0 calc(4 * var(--u)) calc(12 * var(--u)) rgba(15,30,60,.06); display: flex; align-items: center; gap: calc(36 * var(--u)); }
.p-token-ico { position: relative; width: calc(82 * var(--u)); height: calc(82 * var(--u)); flex: none; }
.p-token-ico img { width: 100%; height: 100%; display: block; }
.p-token-ico .p-red { position: absolute; right: calc(-6 * var(--u)); bottom: calc(-6 * var(--u)); width: calc(30 * var(--u)); height: calc(30 * var(--u)); border-radius: calc(8 * var(--u)); background: #fff; padding: calc(2 * var(--u)); }
.p-token-nom, .p-token-val { display: flex; flex-direction: column; gap: calc(14 * var(--u)); }
.p-token-nom { flex: 1; }
.p-token-val { align-items: flex-end; }
.p-token b { font-size: calc(33 * var(--u)); font-weight: 800; color: #0E1424; display: flex; align-items: center; gap: calc(14 * var(--u)); }
.p-token b i { font-style: normal; font-size: calc(21 * var(--u)); font-weight: 700; color: #6B7280; padding: calc(4 * var(--u)) calc(12 * var(--u)); border-radius: calc(10 * var(--u)); border: calc(2 * var(--u)) solid #CBD2DC; }
.p-token small { font-size: calc(25 * var(--u)); color: #5B6472; font-weight: 500; display: flex; align-items: center; gap: calc(14 * var(--u)); }
.p-token small i { font-style: normal; font-weight: 700; color: #15803D; background: #D6F3DE; padding: calc(4 * var(--u)) calc(14 * var(--u)); border-radius: calc(12 * var(--u)); }
.p-chev { font-size: calc(46 * var(--u)); color: #A3ABB8; margin-inline-start: calc(-6 * var(--u)); }

.p-hoja { position: absolute; left: 0; right: 0; bottom: 0; height: calc(598 * var(--u)); padding: calc(30 * var(--u)) calc(38 * var(--u)) 0; border-radius: calc(60 * var(--u)) calc(60 * var(--u)) 0 0; background: linear-gradient(180deg, #0B1535 0%, #081029 100%); color: #fff; box-shadow: 0 calc(-14 * var(--u)) calc(40 * var(--u)) rgba(8,16,41,.35); transform: translateY(105%); animation: p-ciclo 14s cubic-bezier(.2,.7,.2,1) 2.5s infinite; }
/* El panel «Elige dónde operar» sube, se queda y baja: se ven la wallet y el panel */
@keyframes p-ciclo { 0% { transform: translateY(105%); } 8%, 62% { transform: none; } 72%, 100% { transform: translateY(105%); } }
.p-asa { display: block; width: calc(80 * var(--u)); height: calc(8 * var(--u)); border-radius: 99px; background: #1E6BFF; }
.p-hoja-top { display: flex; justify-content: space-between; align-items: center; margin-top: calc(30 * var(--u)); }
.p-hoja-top b { font-size: calc(44 * var(--u)); font-weight: 800; letter-spacing: -.01em; }
.p-x { display: grid; place-items: center; width: calc(80 * var(--u)); height: calc(80 * var(--u)); border-radius: 50%; background: rgba(255,255,255,.09); font-size: calc(50 * var(--u)); line-height: 1; }
.p-hoja p { margin: calc(26 * var(--u)) 0 0; color: #A9B3C6; font-size: calc(25 * var(--u)); line-height: 1.55; }
.p-dex { display: grid; grid-template-columns: 1fr 1fr; gap: calc(26 * var(--u)); margin-top: calc(40 * var(--u)); }
.p-dex > div { height: calc(288 * var(--u)); border-radius: calc(40 * var(--u)); padding: calc(30 * var(--u)) calc(30 * var(--u)); display: flex; flex-direction: column; justify-content: space-between; }
.p-dex-hl { border: calc(3 * var(--u)) solid #2DD4A7; background: linear-gradient(160deg, #0D2E2E 0%, #0A1B24 100%); box-shadow: 0 0 calc(30 * var(--u)) rgba(45,212,167,.18); }
.p-dex-lt { border: calc(3 * var(--u)) solid #3070FF; background: linear-gradient(160deg, #13297A 0%, #0B1A4D 100%); box-shadow: 0 0 calc(30 * var(--u)) rgba(48,112,255,.25); }
.p-dex-cab { display: flex; gap: calc(22 * var(--u)); align-items: center; }
.p-dex-ico { display: grid; place-items: center; width: calc(90 * var(--u)); height: calc(90 * var(--u)); border-radius: calc(24 * var(--u)); background: #0C161E; border: calc(2 * var(--u)) solid rgba(255,255,255,.08); flex: none; }
.p-dex-ico img { width: 60%; height: 60%; border-radius: calc(8 * var(--u)); }
.p-dex-cab > span:last-child { display: flex; flex-direction: column; gap: calc(10 * var(--u)); min-width: 0; }
.p-dex-cab i { align-self: flex-start; font-style: normal; font-size: calc(20 * var(--u)); font-weight: 800; letter-spacing: .1em; padding: calc(6 * var(--u)) calc(12 * var(--u)); border-radius: calc(10 * var(--u)); }
.p-dex-hl i { color: #4EE0B5; background: rgba(45,212,167,.16); }
.p-dex-lt i { color: #7FA4FF; background: rgba(48,112,255,.22); }
.p-dex-cab b { font-size: calc(32 * var(--u)); font-weight: 800; }
.p-dex-pie { display: flex; align-items: flex-end; justify-content: space-between; gap: calc(12 * var(--u)); }
.p-dex-pie span { font-size: calc(24 * var(--u)); line-height: 1.45; color: #CFD7E5; }
.p-dex-pie em { flex: none; display: grid; place-items: center; width: calc(74 * var(--u)); height: calc(74 * var(--u)); border-radius: 50%; font-style: normal; font-size: calc(34 * var(--u)); }
.p-dex-hl em { border: calc(3 * var(--u)) solid #2DD4A7; }
.p-dex-lt em { border: calc(3 * var(--u)) solid #3070FF; }
@media (prefers-reduced-motion: reduce) { .p-hoja { transform: none; animation: none; } .p-ondas path { stroke-dashoffset: 0; } }

.p-lista { position: absolute; left: calc(36 * var(--u)); right: calc(36 * var(--u)); top: calc(875 * var(--u)); display: flex; flex-direction: column; gap: calc(18 * var(--u)); }
.p-moneda { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; }
.p-moneda svg { width: 56%; height: 56%; }
.p-moneda img { width: 58% !important; height: 58% !important; }
.p-moneda b { color: #fff !important; font-size: calc(46 * var(--u)) !important; font-weight: 800; }
.p-eth { background: linear-gradient(150deg, #8A9EF5, #627EEA); }
.p-hype { background: #0F1A1F; }
.p-btc { background: linear-gradient(150deg, #FFB23F, #F7931A); }

/* Segunda pantalla, en «La app» */
.shot-mini { width: 280px; max-width: 72vw; animation: flota 8s ease-in-out infinite; transform: rotate(-4deg); }
.app-card-wide:hover .shot-mini { transform: rotate(-1deg); }
.shot-mini .pantalla { border-radius: 34px; }
.shot-mini .shot-brillo { border-radius: 34px; }
@media (max-width: 680px) { .shot-mini { width: 240px; border-radius: 40px; padding: 8px; } }
