/* El modal no lleva transiciones: debe cerrarse antes de entrar al historial. */
#modalCarga .modal-dialog {
    width: calc(100% - 2rem);
    max-width: 360px;
    margin: 1rem auto;
    min-height: calc(100% - 2rem);
}

#modalCarga .modal-content {
    color: #302b46;
    background: #fff;
    border: 1px solid #e8e3f1;
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(48, 27, 76, .2);
    overflow: hidden;
}

#modalCarga .modal-body {
    padding: 28px 24px 24px;
    text-align: center;
}

#modalCarga .team-loading-brand {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f1edfe;
    color: #7b27d8;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.4;
    text-transform: uppercase;
}

#modalCarga .team-loading-indicator {
    display: grid;
    place-items: center;
    position: relative;
    width: 88px;
    height: 88px;
    margin: 24px auto 20px;
    background: #f9f8ff;
    border-radius: 50%;
}

#modalCarga .team-loading-ring {
    position: absolute;
    inset: 0;
    border: 3px solid #f1edfe;
    border-top-color: #7b27d8;
    border-right-color: #7b27d8;
    border-radius: 50%;
    animation: team-loading-spin 1s linear infinite;
}

#modalCarga .team-loading-indicator img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

#modalCarga #modalCargaTitulo {
    margin: 0 0 10px;
    color: #302b46;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.3;
}

#modalCarga #mensajeRecomendacion {
    min-height: 2.8em;
    margin: 0;
    color: #746f85;
    font-size: .875rem;
    line-height: 1.4;
}

@keyframes team-loading-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    #modalCarga .team-loading-ring { animation: none; }
}
