.edooly-mascota-container {
    background: transparent;
    border-radius: 8px;
    padding: 20px;
    width: 350px;
    margin: 0 auto;
}

.mascota-contenedor {
    position: relative;
    width: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.globo-chat {
    position: absolute;
    top: -20px;
    background: #292929;
    color: white;
    padding: 15px;
    border-radius: 20px;
    width: 90%;
    max-width: 280px;
    margin-bottom: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3), 
                0 0 0 3px #000;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s ease;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    z-index: 10;
}

.globo-chat.mostrar {
    opacity: 1;
    transform: translateY(0);
    animation: flotar-globo 3s ease-in-out infinite;
}

@keyframes flotar-globo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.globo-chat::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 70%;
    transform: translateX(-50%);
    border-width: 12px;
    border-style: solid;
    border-color: #000 transparent transparent transparent;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.rombo-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin-top: auto;
    animation: flotar-suave 2.5s ease-in-out infinite;
}

@keyframes flotar-suave {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.02); }
}

.rombo {
    width: 180px;
    height: 180px;
    background: #FFE055;
    border: 4px solid #B8860B;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    box-sizing: border-box;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.rombo.hablando {
    animation: brillo-hablar 0.5s infinite alternate;
}

@keyframes brillo-hablar {
    0% {
        box-shadow: 0 0 8px rgba(255, 224, 85, 0.8);
    }
    100% {
        box-shadow: 0 0 25px rgba(255, 224, 85, 0.9), 
                    0 0 40px rgba(255, 224, 85, 0.7);
    }
}

.rombo::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    box-sizing: border-box;
    border-right: 2px solid rgba(210, 161, 0, 0.5);
    border-top: 2px solid rgba(210, 161, 0, 0.5);
}

.ojo {
    position: absolute;
    width: 100px; 
    height: 60px; 
    background: white;
    border-radius: 25px; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
    animation: parpadeo 6s infinite;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.1);
}

.pupila {
    width: 35px; 
    height: 25px; 
    background: black;
    border-radius: 12px; 
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 3px;
    box-sizing: border-box;
    transition: all 0.3s ease-out;
    position: relative;
}

.brillo {
    width: 8px; 
    height: 5px; 
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1;
    box-shadow: 0 0 4px rgba(255,255,255,0.8);
}

.ceja {
    position: absolute;
    width: 50px;
    height: 5px;
    background: #B8860B;
    top: calc(50% - 50px);
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.feliz .ceja {
    transform: translateX(-50%) rotate(-5deg);
    width: 60px;
    height: 6px;
}

.feliz .pupila {
    transform: scale(1.1) translateY(-4px);
}

.feliz .brillo {
    transform: scale(1.1);
}

.brazo {
    width: 35px;
    height: 50px;
    background: #FFE055;
    border-radius: 35%;
    position: absolute;
    top: 190px;
    transition: all 0.5s cubic-bezier(0.25, 1.7, 0.35, 0.8);
    transform-origin: top center;
    animation: flotar-manos 2s ease-in-out infinite;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

@keyframes flotar-manos {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.brazo.izquierdo {
    left: 8px;
}

.brazo.derecho {
    right: 8px;
}

@keyframes parpadeo {
    0%, 40%, 42%, 44%, 46%, 48%, 50%, 100% {
        height: 50px;
    }
    41%, 43%, 45%, 47%, 49% {
        height: 2px;
    }
}

@keyframes mirada-aburrida {
    0% { transform: translate(0, 0); }
    20% { transform: translate(6px, -2px); }
    40% { transform: translate(-4px, 2px); }
    60% { transform: translate(4px, 2px); }
    80% { transform: translate(-6px, -2px); }
    100% { transform: translate(0, 0); }
}

.aburrido .pupila {
    animation: mirada-aburrida 8s infinite ease-in-out;
}

.aburrido .ceja {
    transform: translateX(-50%) rotate(5deg);
}

.anticipando .ceja {
    transform: translateX(-50%) rotate(-8deg);
}
