.textCenter {
    margin: 0;
    padding: 14px 0 5px;
    color: whitesmoke;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

#idGrupo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(18,2,2,0.92) 0%, rgba(45,6,6,0.95) 50%, rgba(18,2,2,0.92) 100%);
    border: 1.5px solid rgba(235,1,1,0.4);
    border-radius: 50px;
    padding: 11px 14px 11px 20px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    animation: groupEnterPower 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               groupEnergyPulse 3.2s ease-in-out 0.6s infinite;
    box-shadow:
        0 0 22px rgba(235,1,1,0.28),
        0 5px 18px rgba(0,0,0,0.55),
        inset 0 1px 0 rgba(255,255,255,0.07);
}

/* Barrido de luz tipo "power charge" */
#idGrupo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
    animation: groupShimmer 2.8s ease-in-out 0.8s infinite;
    pointer-events: none;
}

/* Línea inferior de energía */
#idGrupo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(235,1,1,0.8), transparent);
    border-radius: 0 0 50px 50px;
    animation: energyLine 2s ease-in-out 0.4s infinite;
}

.group-selected-title {
    flex: 0 0 auto;
    white-space: nowrap;
    max-width: calc(100vw - 120px);
    overflow: hidden;
    text-overflow: ellipsis;
}

#idGrupo .red-icon {
    font-size: 1.35rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: auto;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(235,1,1,0.65));
    animation: iconPowerPulse 2.4s ease-in-out infinite;
}

.group-back-btn {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: rgba(235,1,1,0.12);
    border: 1.5px solid rgba(235,1,1,0.45);
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease,
                transform 0.25s ease, box-shadow 0.25s ease;
}

.group-back-btn i {
    pointer-events: none;
}

.group-back-btn:hover {
    background: rgba(235,1,1,0.32);
    border-color: rgba(235,1,1,0.85);
    transform: scale(1.12);
    box-shadow: 0 0 16px rgba(235,1,1,0.55);
}

#idRetroceso {
    font-size: 1rem !important;
    color: rgba(255,255,255,0.9) !important;
    padding: 0 !important;
    line-height: 1;
}

/* Entrada: escala desde 0.7 con explosión de brillo */
@keyframes groupEnterPower {
    0% {
        opacity: 0;
        transform: scale(0.72);
        box-shadow: 0 0 0 rgba(235,1,1,0), 0 0 0 rgba(0,0,0,0);
    }
    55% {
        opacity: 1;
        transform: scale(1.06);
        box-shadow: 0 0 50px rgba(235,1,1,0.65), 0 8px 28px rgba(0,0,0,0.65);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 22px rgba(235,1,1,0.28), 0 5px 18px rgba(0,0,0,0.55),
                    inset 0 1px 0 rgba(255,255,255,0.07);
    }
}

/* Pulso continuo de energía */
@keyframes groupEnergyPulse {
    0%, 100% {
        box-shadow: 0 0 22px rgba(235,1,1,0.28), 0 5px 18px rgba(0,0,0,0.55),
                    inset 0 1px 0 rgba(255,255,255,0.07);
        border-color: rgba(235,1,1,0.4);
    }
    50% {
        box-shadow: 0 0 38px rgba(235,1,1,0.5), 0 7px 22px rgba(0,0,0,0.65),
                    inset 0 1px 0 rgba(255,255,255,0.07);
        border-color: rgba(235,1,1,0.72);
    }
}

/* Barrido de luz */
@keyframes groupShimmer {
    0%       { left: -80%; opacity: 0; }
    10%      { opacity: 1; }
    40%, 100% { left: 130%; opacity: 0; }
}

/* Línea de energía inferior */
@keyframes energyLine {
    0%, 100% { opacity: 0.4; left: 25%; right: 25%; }
    50%      { opacity: 0.9; left: 12%; right: 12%; }
}

/* Pulso del ícono */
@keyframes iconPowerPulse {
    0%, 100% { filter: drop-shadow(0 0 6px rgba(235,1,1,0.55)); }
    50%      { filter: drop-shadow(0 0 16px rgba(235,1,1,0.92)); }
}

.red-icon {
    color: #f50505;
}
