/* ================================================================================
   Asistente IA — boton flotante + panel de la web.
   El contenido del panel es la MISMA pagina del celular servida en un iframe; aca
   solo se estila el envase (boton, cabecera y marco). Paleta del asistente (#2563eb).
   ================================================================================ */

.asis-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .62rem .95rem;
    border: none;
    border-radius: 24px;
    background: #2563eb;
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(37, 99, 235, .38);
    transition: transform .12s ease, box-shadow .12s ease;
}
.asis-fab:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(37, 99, 235, .46); }
.asis-fab:active { transform: translateY(0); }

.asis-ic { display: inline-flex; align-items: center; justify-content: center; }
.asis-ic svg { width: 20px; height: 20px; display: block; }
.asis-ic--hd svg { width: 18px; height: 18px; }

.asis-panel {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 10000;
    width: 400px;
    max-width: calc(100vw - 24px);
    height: min(720px, calc(100vh - 90px));
    display: flex;
    flex-direction: column;
    background: #f4f6fb;
    border: 1px solid #e7eaf1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .28);
}
.asis-panel--xl { width: 560px; height: calc(100vh - 48px); }

.asis-hd {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .7rem;
    background: #2563eb;
    color: #fff;
    font-size: .92rem;
}
.asis-sp { flex: 1; }
.asis-hb {
    border: none;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: .8rem;
    line-height: 1;
    cursor: pointer;
}
.asis-hb:hover { background: rgba(255, 255, 255, .3); }

.asis-frame { flex: 1 1 auto; width: 100%; border: 0; background: #f4f6fb; }

.asis-msg {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    padding: 1.5rem;
    color: #64748b;
    font-size: .9rem;
    text-align: center;
}
.asis-msg--err { color: #dc2626; }
.asis-retry {
    border: 1px solid #e7eaf1;
    background: #fff;
    color: #334155;
    border-radius: 10px;
    padding: .5rem 1rem;
    font-weight: 700;
    font-size: .85rem;
    cursor: pointer;
}

@media (max-width: 640px) {
    .asis-panel, .asis-panel--xl {
        right: 8px; left: 8px; bottom: 8px;
        width: auto; max-width: none;
        height: calc(100vh - 70px);
    }
}
