/* ======================================== */
/* ===== IGUANA FLOTANTE - SPRITE SHEET ==== */
/* ======================================== */

.iguana-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9990;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    right: 30px; /* Cambiado de right a left para moverla a la izquierda */
}

.iguana-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    animation: iguanaFloat 3s ease-in-out infinite;
}

@keyframes iguanaFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Sprite Sheet - Tamaño fijo */
.iguana-sprite-sheet {
    width: 150px;;  /* Ancho fijo de un solo sprite */
    height: 150px; /* Alto fijo de un solo sprite */
    background-image: url('/assets/img/iguana/sprite-sheet.webp'); /* Ruta de la imagen del sprite sheet */
    background-size: 900% 100%; /* 9 sprites horizontales */
    background-repeat: no-repeat;
    background-position: 0% 0%; /* Siempre en la misma posición */
    transition: none;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
   
}

.iguana-container:hover .iguana-sprite-sheet {
    transform: scale(1.1);

}

/* Burbuja de diálogo */
.iguana-bubble {
    position: absolute;
    top: -55px;
    right: -10px;
    background: white;
    padding: 0.6rem 1.2rem;
    border-radius: 20px 20px 20px 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-800);
    white-space: nowrap;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    border: 2px solid var(--gray-100);
}

.iguana-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: white;
    border-right: 2px solid var(--gray-100);
    border-bottom: 2px solid var(--gray-100);
    transform: rotate(45deg);
}

.iguana-container:hover .iguana-bubble {
    opacity: 1;
    transform: scale(1);
}

.bubble-text {
    display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .iguana-container {
        bottom: 15px;
        right: 15px;
    }

    .iguana-wrapper {
        width: 80px;
        height: 80px;
    }

    .iguana-sprite-sheet {
        width: 80px;
        height: 80px;
    }

    .iguana-bubble {
        top: -45px;
        right: -10px;
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
        border-radius: 15px 15px 15px 5px;
    }

    .iguana-bubble::after {
        bottom: -8px;
        right: 15px;
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .iguana-container {
        bottom: 10px;
        right: 10px;
    }

    .iguana-wrapper {
        width: 60px;
        height: 60px;
    }

    .iguana-sprite-sheet {
        width: 60px;
        height: 60px;
    }

    .iguana-bubble {
        top: -38px;
        right: -5px;
        padding: 0.3rem 0.6rem;
        font-size: 0.6rem;
        border-radius: 12px 12px 12px 5px;
    }

    .iguana-bubble::after {
        bottom: -6px;
        right: 12px;
        width: 8px;
        height: 8px;
    }
}