/* Acceso partido: escena animada a la izquierda, formulario a la derecha.
   Todo CSS; sin movimiento (reduced-motion) la escena se queda en su estado final. */
body.partida { display: grid; grid-template-columns: minmax(0, 1fr); /*fix*/ align-items: stretch; justify-content: stretch; padding: 0; min-height: 100vh; }
body.partida .entrada { min-width: 0; max-width: 100%; align-self: center; justify-self: center; padding: 28px 16px 40px; }

.escena { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    padding: 22px 16px 18px; min-height: 250px; color: #e8ebf5;
    background: radial-gradient(120% 90% at 20% 0%, #2a2180 0%, #14122e 55%, #0b0e17 100%); }
.escena__panel { width: 100%; max-width: 420px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px; padding: 14px; display: grid; gap: 8px; position: relative; backdrop-filter: blur(6px); }
.escena__titulo { margin: 0 0 2px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: #aab2cc; }
.escena__titulo span { color: #fff; text-transform: none; letter-spacing: 0; font-weight: 600; }
.e-tarjeta { display: flex; align-items: center; gap: 10px; background: #1d2334; border: 1px solid #2f3852; border-radius: 12px; padding: 9px 11px; animation: e-entra 12s var(--andi-ease, ease) infinite both; }
.e-t1 { animation-delay: .2s; } .e-t2 { animation-delay: .9s; } .e-t3 { animation-delay: 1.6s; }
.e-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: linear-gradient(135deg,#5f45e6,#12a4fa); color: #fff; }
.e-txt { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.e-txt b { font-size: 14px; color: #fff; } .e-txt small { font-size: 12px; color: #98a2ba; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.e-chip { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.e-chip--ok { background: rgba(52,199,120,.18); color: #5fe3a1; } .e-chip--aviso { background: rgba(245,165,36,.2); color: #f5b84a; }
.e-chips { display: grid; } .e-chips > * { grid-area: 1 / 1; justify-self: end; }
.e-pend { animation: e-pend 12s infinite both; } .e-pago { animation: e-pago 12s infinite both; }
.e-cobro { position: absolute; left: 50%; bottom: -16px; transform: translate(-50%, 0); white-space: nowrap; font-size: 12.5px; font-weight: 600; color: #0b0e17;
    background: #5fe3a1; padding: 7px 14px; border-radius: 99px; box-shadow: 0 8px 24px rgba(0,0,0,.4); animation: e-cobro 12s infinite both; }
.e-cobro__tic { font-weight: 800; }
.escena__andi { width: 74px; animation: e-andi 12s ease-in-out infinite both; margin-top: 6px; }
.escena__lema { margin: 0; font-size: 14px; color: #c3c9de; }

@keyframes e-entra { 0% { opacity: 0; transform: translateX(-36px) scale(.96); } 8%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: translateX(14px); } }
@keyframes e-pend { 0%, 47% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes e-pago { 0%, 49% { opacity: 0; transform: scale(.6); } 54% { opacity: 1; transform: scale(1.15); } 57%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes e-cobro { 0%, 50% { opacity: 0; transform: translate(-50%, 14px); } 55%, 80% { opacity: 1; transform: translate(-50%, 0); } 88%, 100% { opacity: 0; transform: translate(-50%, -6px); } }
@keyframes e-andi { 0%, 42% { transform: translateX(-70px); } 50%, 84% { transform: translateX(0); } 100% { transform: translateX(-70px); } }

/* En el movil solo dos tarjetas y sin la factura flotante, para que no ocupe media pantalla. */
@media (max-width: 899px) { .e-t3, .e-cobro, .escena__lema { display: none; } .escena { min-height: 0; padding-bottom: 12px; flex-direction: row; flex-wrap: wrap; } .escena__andi { width: 56px; } .escena__panel { max-width: 330px; } }

@media (min-width: 900px) {
    body.partida { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
    .escena { min-height: 100vh; gap: 22px; padding: 40px; }
    .escena__panel { max-width: 460px; padding: 18px; gap: 11px; }
    .e-tarjeta { padding: 12px 14px; }
    .escena__andi { width: 130px; }
    .escena__lema { font-size: 18px; font-weight: 600; color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
    .e-tarjeta, .e-pend, .e-pago, .e-cobro, .escena__andi { animation: none; }
    .e-pend { opacity: 0; } .e-pago { opacity: 1; } .e-cobro { opacity: 1; }
}
