/* Acceso de Gestión: pantalla partida. Escena a la izquierda (SVG/CSS, sin JS), formulario a la derecha. */
.acc-cuerpo { margin: 0; background: var(--fondo); }
.acc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }

.acc-escena {
    position: relative; overflow: hidden; color: #eef0ff; padding: 40px 44px;
    background: radial-gradient(120% 90% at 15% 0%, #3b2fa8 0%, #1d2334 55%, #0b0e17 100%);
    display: flex; flex-direction: column;
}
.acc-marca { font-size: 22px; font-weight: 650; letter-spacing: -.01em; }
.acc-marca small { font-size: 12px; font-weight: 500; opacity: .6; margin-left: 6px; text-transform: uppercase; letter-spacing: .08em; }
.acc-lema { margin: 8px 0 0; max-width: 30ch; font-size: 15px; line-height: 1.45; color: #b9bfdc; }

.acc-mesa { position: relative; flex: 1; min-height: 380px; margin-top: 24px; }
.acc-factura {
    position: absolute; left: 34%; top: 8px; width: min(320px, 62%);
    background: #fff; color: #1d1d1f; border-radius: 14px; padding: 18px 18px 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45); transform: rotate(-2deg);
}
.acc-factura__cab { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.acc-factura__cab span { font-size: 12px; color: #6e6e73; font-variant-numeric: tabular-nums; }
.acc-factura__cli { margin: 4px 0 12px; font-size: 12px; color: #6e6e73; }
.acc-lin { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid #ececf0; font-size: 12.5px; }
.acc-lin i, .acc-lin em { font-style: normal; }
.acc-lin em { font-variant-numeric: tabular-nums; }
.acc-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; padding-top: 10px; border-top: 2px solid #1d1d1f; }
.acc-total b { font-size: 18px; font-variant-numeric: tabular-nums; }
.acc-sello {
    position: absolute; right: 14px; bottom: 46px; padding: 3px 10px; border: 3px solid #248a3d; color: #248a3d;
    border-radius: 6px; font-weight: 800; letter-spacing: .12em; font-size: 15px; transform: rotate(-12deg);
    background: rgba(255, 255, 255, .85);
}

.acc-grafico {
    position: absolute; right: 0; bottom: 26px; width: 38%; min-width: 150px; padding: 12px 14px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px;
}
.acc-grafico__t { font-size: 11px; color: #b9bfdc; }
.acc-barras { display: flex; align-items: flex-end; gap: 6px; height: 76px; margin-top: 8px; }
.acc-barras i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(#12a4fa, #5f45e6); transform-origin: bottom; }

.acc-aviso {
    position: absolute; left: 34%; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 9px 14px;
    background: #fff; color: #1d1d1f; border-radius: 999px; font-size: 12.5px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.acc-aviso b { color: #248a3d; font-variant-numeric: tabular-nums; }
.acc-aviso__punto { width: 9px; height: 9px; border-radius: 50%; background: #34c759; }

.acc-andi { position: absolute; left: 0; bottom: -8px; width: clamp(130px, 17vw, 190px); }

.acc-form { display: flex; align-items: center; justify-content: center; padding: 32px 24px; }
.acc-form__caja { width: min(380px, 100%); }
.acc-form__caja h1 { margin: 0 0 4px; }
.acc-form__sub { margin: 0 0 20px; color: var(--texto-2); font-size: 14px; }

/* Movimiento: solo si la persona no lo ha desactivado. Sin él se ve la escena ya terminada, quieta. */
@media (prefers-reduced-motion: no-preference) {
    .acc-factura { animation: acc-flota 9s ease-in-out infinite; }
    .acc-lin { animation: acc-linea 9s ease-out infinite; }
    .acc-lin--2 { animation-delay: .5s; }
    .acc-lin--3 { animation-delay: 1s; }
    .acc-total b { animation: acc-linea 9s ease-out infinite 1.5s; }
    .acc-sello { animation: acc-sello 9s cubic-bezier(.2, 1.6, .4, 1) infinite; }
    .acc-barras i { animation: acc-barra 9s ease-out infinite; }
    .acc-barras i:nth-child(2) { animation-delay: .15s; }
    .acc-barras i:nth-child(3) { animation-delay: .3s; }
    .acc-barras i:nth-child(4) { animation-delay: .45s; }
    .acc-barras i:nth-child(5) { animation-delay: .6s; }
    .acc-barras i:nth-child(6) { animation-delay: .75s; }
    .acc-aviso { animation: acc-aviso 9s ease-out infinite; }
    .acc-aviso__punto { animation: andi-antena 1.4s ease-in-out infinite; }
    /* Andi sostiene la factura y levanta los brazos al cobrarse (acompasado con el sello). */
    .acc-andi .p-brazo-a { animation: acc-brazo-a 9s ease-in-out infinite; }
    .acc-andi .p-brazo-b { animation: acc-brazo-b 9s ease-in-out infinite; }
}
@keyframes acc-flota { 0%, 100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-6px); } }
@keyframes acc-linea { 0% { opacity: 0; transform: translateY(6px); } 6%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes acc-sello { 0%, 38% { opacity: 0; transform: rotate(-12deg) scale(2.2); } 43%, 90% { opacity: 1; transform: rotate(-12deg) scale(1); } 97%, 100% { opacity: 0; } }
@keyframes acc-barra { 0% { transform: scaleY(.05); } 14%, 92% { transform: scaleY(1); } 100% { transform: scaleY(.05); } }
@keyframes acc-aviso { 0%, 44% { opacity: 0; transform: translateY(16px); } 50%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes acc-brazo-a { 0%, 36% { transform: rotate(-76deg); } 44%, 80% { transform: rotate(-146deg); } 92%, 100% { transform: rotate(-76deg); } }
@keyframes acc-brazo-b { 0%, 36% { transform: rotate(-70deg); } 44%, 80% { transform: rotate(-132deg); } 92%, 100% { transform: rotate(-70deg); } }

/* Móvil y tableta estrecha: escena arriba y reducida, formulario debajo. */
@media (max-width: 860px) {
    .acc { grid-template-columns: 1fr; min-height: 0; }
    .acc-escena { padding: 20px 20px 16px; }
    .acc-lema { display: none; }
    .acc-mesa { min-height: 200px; height: 200px; margin-top: 8px; }
    .acc-factura { left: 36%; width: 58%; padding: 12px; }
    .acc-lin { padding: 4px 0; font-size: 11px; }
    .acc-lin--3, .acc-grafico, .acc-aviso { display: none; }
    .acc-andi { width: 104px; }
    .acc-form { padding: 24px 20px 40px; align-items: flex-start; }
}
