/* Enlace contenedor (tigre + mensaje) */
.promotion-link {
    position: fixed;
    bottom: 200px;
    right: -300px; /* Fuera de pantalla inicialmente por la derecha */
    left: auto;
    z-index: 999;
    text-decoration: none;
    display: block;
    transition: right 0.8s ease;
}

/* Mostrar el contenedor en pantalla */
.promotion-link.show {
    right: 10px;
}

/* Contenedor interno del tigre y el mensaje */
.promotion-floating {
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    align-items: flex-end; /* Alineación a la derecha */
    padding: 10px;
}

/* Imagen del tigre con transición suave */
.promotion-floating img {
    height: 20vh;
    width: auto;
    transition: opacity 0.8s ease-in-out, height 0.4s ease;
    filter: drop-shadow(2px 2px 5px #00000091);
    opacity: 1;
}

/* Transición para cambio de imagen */
.promotion-floating img.fade-out {
    opacity: 0;
}

/* Burbuja contenedora del mensaje */
.promotion-message {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    max-width: 280px;
    position: relative;
    margin-left: 0;
    margin-right: 40px; /* Ajuste para alineación derecha */
    font-size: 14px;
    filter: drop-shadow(2px 2px 5px #00000091);
}

/* Mostrar la burbuja */
.promotion-link.show .promotion-message {
    opacity: 1;
    transform: translateY(0);
}

/* Estilo de la burbuja de diálogo */
.promotion-message p {
    position: relative;
    padding: 20px 35px 20px 20px; /* Espacio izquierdo reducido, derecho aumentado */
    background: white;
    border-radius: 10px;
    color: #456091;
    margin-bottom: 35px;
    line-height: 1.5;
    font-size: 14px;
}

/* Elimina las comillas */
.promotion-message p:before {
    content: '';
}

/* Flecha de la burbuja */
.promotion-message p:after {
    content: '';
    border: 10px solid;
    border-color: white white transparent transparent; /* Ajustado para derecha */
    position: absolute;
    bottom: -20px;
    left: auto;
    right: 30px; /* Flecha al lado derecho */
}

/* Animación del texto "Lo quiero" */
.span-click {
    display: block;
    font-size: 12px;
    font-weight: bold;
    color: #456091;
    text-align: right;
    margin-top: 8px;
    animation: reboteOut 3s infinite;
}

@keyframes reboteOut {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(0.92);
    }
    60% {
        transform: scale(0.98);
    }
    80% {
        transform: scale(0.94);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsividad: Pantallas menores a 1280px */
@media (max-width: 1280px) {
    .promotion-floating img {
        height: 15vh;
    }

    .promotion-message {
        max-width: 220px;
        margin-right: 40px;
        margin-left: 0;
    }

    .promotion-message p {
        padding: 15px 30px 15px 15px;
        font-size: 12px;
        line-height: 1.3;
    }

    .promotion-message p:after {
        right: 30px;
        left: auto;
    }
}

/* Responsividad: Pantallas menores a 600px */
@media (max-width: 600px) {
    .promotion-floating {
        gap: 8px;
    }

    .promotion-message {
        max-width: 200px;
        font-size: 10px;
        margin-right: 30px;
        margin-left: 0;
    }

    .promotion-message p {
        padding: 12px 25px 12px 12px;
        font-size: 10px;
    }

    .promotion-floating img {
        height: 12vh;
    }

    .promotion-message p:after {
        right: 25px;
        left: auto;
    }
}
