/* «Tu app de Rush cambió» y «Rush en tu celular» (includes/app_nueva.html). */
.apn-fondo { position: fixed; inset: 0; z-index: 99980; background: rgba(0, 0, 0, .6); }
.apn-hoja {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 99985;
    display: flex; flex-direction: column; gap: .8rem;
    max-width: 520px; margin: 0 auto; max-height: 88vh; overflow-y: auto;
    padding: .7rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    background: #17171c; color: #E8E8E8;
    border: 1px solid #2c2c33; border-bottom: 0; border-radius: 22px 22px 0 0;
    box-shadow: 0 -18px 50px rgba(0, 0, 0, .5);
}
.apn-hoja[hidden], .apn-fondo[hidden], .apn-franja[hidden], .apn-hoja [hidden] { display: none !important; }
body.apn-abierta { overflow: hidden; }
.apn-asa { width: 38px; height: 4px; border-radius: 2px; background: #3a3a42; margin: 0 auto .1rem; }
.apn-cab { display: flex; gap: .8rem; align-items: center; }
.apn-ico { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.apn-ico--chico { width: 34px; height: 34px; border-radius: 9px; }
.apn-titulo { margin: 0; font-size: 1.08rem; font-weight: 500; line-height: 1.3; }
.apn-texto { margin: 0; font-size: .92rem; color: #c9ccd4; }
.apn-pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.apn-pasos li { display: grid; grid-template-columns: 24px 1fr; gap: .6rem; align-items: start; font-size: .92rem; line-height: 1.45; }
.apn-pasos li > span {
    width: 24px; height: 24px; border-radius: 50%; background: #26262d; color: #FF9933;
    display: grid; place-items: center; font-size: .8rem; font-variant-numeric: tabular-nums;
}
.apn-pasos b { font-weight: 600; }
.apn-pasos svg { width: 16px; height: 16px; vertical-align: -3px; color: #4aa3ff; }
.apn-dir {
    display: flex; align-items: center; justify-content: space-between; gap: .6rem;
    border: 1px dashed #3a3a42; border-radius: 12px; padding: .55rem .8rem;
    font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .92rem;
}
.apn-copiar { background: none; border: 0; color: #FF9933; font: inherit; font-family: Inter, system-ui, sans-serif; font-weight: 500; font-size: .88rem; padding: .3rem .2rem; cursor: pointer; }
.apn-instalar {
    border: 0; border-radius: 14px; padding: .85rem; background: #FF6B00; color: #fff;
    font: inherit; font-weight: 500; font-size: .98rem; cursor: pointer;
}
.apn-cerrar { background: none; border: 0; color: #9aa0ae; font: inherit; font-size: .9rem; padding: .4rem; cursor: pointer; }
.apn-hoja button:focus-visible, .apn-franja button:focus-visible { outline: 2px solid #FF9933; outline-offset: 2px; }

.apn-franja {
    display: flex; align-items: center; gap: .7rem; margin: 0 0 1rem;
    padding: .65rem .7rem; border-radius: 16px;
    background: #1c1714; border: 1px solid #3b2a1d; color: #E8E8E8;
}
.apn-franja__txt { min-width: 0; flex: 1; line-height: 1.3; }
.apn-franja__txt b { display: block; font-weight: 500; font-size: .92rem; }
.apn-franja__txt small { font-size: .8rem; color: #9aa0ae; }
.apn-franja__agregar {
    border: 0; border-radius: 10px; padding: .5rem .85rem; background: #FF6B00; color: #fff;
    font: inherit; font-weight: 500; font-size: .85rem; cursor: pointer; white-space: nowrap;
}
.apn-franja__x { background: none; border: 0; color: #9aa0ae; padding: .3rem; cursor: pointer; display: grid; place-items: center; }
.apn-franja__x svg { width: 18px; height: 18px; }

html[data-tema="claro"] .apn-hoja { background: #fff; color: #1d1f24; border-color: #e3e5ea; box-shadow: 0 -18px 50px rgba(20, 24, 40, .18); }
html[data-tema="claro"] .apn-texto { color: #4a4f5a; }
html[data-tema="claro"] .apn-asa { background: #d5d8de; }
html[data-tema="claro"] .apn-pasos li > span { background: #f1f2f5; color: #c25200; }
html[data-tema="claro"] .apn-dir { border-color: #cfd3da; }
html[data-tema="claro"] .apn-copiar { color: #c25200; }
html[data-tema="claro"] .apn-cerrar, html[data-tema="claro"] .apn-franja__txt small, html[data-tema="claro"] .apn-franja__x { color: #5d6370; }
html[data-tema="claro"] .apn-franja { background: #fff6ef; border-color: #f3d6bf; color: #1d1f24; }

@media (prefers-reduced-motion: no-preference) {
    .apn-hoja:not([hidden]) { animation: apn-sube .28s ease-out; }
    .apn-fondo:not([hidden]) { animation: apn-aparece .2s ease-out; }
}
@keyframes apn-sube { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes apn-aparece { from { opacity: 0; } to { opacity: 1; } }
