/* Variables CSS para consistencia */
:root {
    --avatar-size: 150px;
    --bubble-border-color: rgba(255, 255, 255, 0.6);
    --bubble-border-width: 3px;
    --highlight-color: rgba(255, 255, 255, 0.9);
    --animation-duration: 4s;
}

/* 1. Contenedor General */
.contenedor-principal {
    max-width: 600px;
    margin: 10px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

/* 2. Contenedor del Avatar */
.avatar {
    position: relative;
    width: var(--avatar-size);
    height: var(--avatar-size);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 20px var(--colorprimary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    animation: flotar var(--animation-duration) ease-in-out infinite;
}

/* Imagen de la burbuja (burbuja) */
.avatar img:first-child {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

/* Imagen del avatar (avatar) */
.avatar #AvatarInicioSesion {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    border-radius: 50%;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Estado de fade out */
.avatar #AvatarInicioSesion.fade-out {
    opacity: 0;
    transform: scale(0.9);
}

/* Estado de fade in */
.avatar #AvatarInicioSesion.fade-in {
    opacity: 1;
    transform: scale(1);
}

/* Animación de flotación suave */
@keyframes flotar {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}