.boton-flotante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 12px 22px;
    background: var(--secondary);
    border-radius: 5px;
    font-family: Rubik, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px var(--secondary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 9999;
    border: none;
    opacity: 0;
    visibility: hidden;
}

.boton-flotante.show {
    opacity: 1;
    visibility: visible;
    animation: bounceIn 1s cubic-bezier(0.35, 0, 0.25, 1);
}

.boton-flotante:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px var(--secondary);
}

.boton-flotante:active {
    transform: translateY(-2px);
}

.boton-flotante-icono {
    width: 20px;
    height: 20px;
    fill: white;
    flex-shrink: 0;
}

.boton-flotante-cerrar {
    width: 18px;
    height: 18px;
    margin-left: 8px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.boton-flotante-cerrar:hover {
    background: rgba(255, 255, 255, 0.3);
}

.boton-flotante-cerrar svg {
    width: 12px;
    height: 12px;
    fill: white;
}

/* Animación de rebote al aparecer */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px);
    }
    70% {
        transform: translateY(5px);
    }
    85% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Animación de fade in simple como fallback */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 992px) {
    .boton-flotante {
        bottom: 30px;
        right: 20px;
        padding: 8px 16px;
        font-size: 14px;
        gap: 6px;
    }

    .boton-flotante-icono {
        width: 15px;
        height: 15px;
    }
}