/* Circular Floating Button Styles */

#cfb-container {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
}

/* Posiciones Verticales */
#cfb-container.cfb-top {
    top: 30px;
}

#cfb-container.cfb-middle {
    top: 50%;
    transform: translateY(-50%);
}

#cfb-container.cfb-bottom {
    bottom: 30px;
}

/* Posiciones Horizontales */
#cfb-container.cfb-left {
    left: 30px;
}

#cfb-container.cfb-center {
    left: 50%;
    transform: translateX(-50%);
}

#cfb-container.cfb-right {
    right: 30px;
}

/* Ajustes para posición centro medio */
#cfb-container.cfb-middle.cfb-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cfb-button {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    pointer-events: all;
    cursor: pointer;
    border: none;
    overflow: visible;
}

.cfb-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3) !important;
}

.cfb-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-size: 36px;
    color: white;
    pointer-events: none;
}

.cfb-icon i {
    display: block;
}

.cfb-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.cfb-circular-text {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    animation: rotate 10s linear infinite;
    pointer-events: none;
}

.cfb-circular-text text {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .cfb-button {
        width: 120px;
        height: 120px;
    }
    
    .cfb-icon {
        font-size: 28px;
    }
    
    .cfb-icon img {
        width: 40px;
        height: 40px;
    }
    
    .cfb-circular-text text {
        font-size: 13px;
        letter-spacing: 2px;
    }
    
    #cfb-container.cfb-top,
    #cfb-container.cfb-bottom {
        top: auto;
        bottom: 20px;
    }
    
    #cfb-container.cfb-left,
    #cfb-container.cfb-right {
        left: auto;
        right: 20px;
    }
    
    #cfb-container.cfb-center {
        left: 50%;
        right: auto;
    }
}

@media (max-width: 480px) {
    .cfb-button {
        width: 100px;
        height: 100px;
    }
    
    .cfb-icon {
        font-size: 24px;
    }
    
    .cfb-icon img {
        width: 35px;
        height: 35px;
    }
    
    .cfb-circular-text text {
        font-size: 11px;
        letter-spacing: 1.5px;
    }
}

/* Efecto de pulse opcional */
@keyframes pulse {
    0% {
        box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
    }
    50% {
        box-shadow: 0 8px 40px rgba(255, 107, 53, 0.6);
    }
    100% {
        box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
    }
}

.cfb-button.cfb-pulse {
    animation: pulse 2s infinite;
}
