/* ========================================
   FLOATING BUTTONS WIDGET - ESTILOS
   ======================================== */

.fbw-floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 99999;
    align-items: center;
}

/* Botón base */
.fbw-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: none;
    font-size: 24px;
    line-height: 1;
}

.fbw-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.fbw-button:active {
    transform: scale(0.95);
}

/* Icono dentro del botón */
.fbw-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.fbw-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
}

/* Tamaño pequeño */
.fbw-size-small .fbw-button {
    width: 50px;
    height: 50px;
}

.fbw-size-small .fbw-icon svg {
    width: 24px;
    height: 24px;
}

/* Tamaño mediano (default) */
.fbw-size-medium .fbw-button {
    width: 60px;
    height: 60px;
}

.fbw-size-medium .fbw-icon svg {
    width: 28px;
    height: 28px;
}

/* Tamaño grande */
.fbw-size-large .fbw-button {
    width: 70px;
    height: 70px;
}

.fbw-size-large .fbw-icon svg {
    width: 32px;
    height: 32px;
}

/* Colores por defecto */
.fbw-button.phone {
    background-color: #25D366;
}

.fbw-button.whatsapp {
    background-color: #25D366;
}

.fbw-button.email {
    background-color: #EA4335;
}

.fbw-button.address {
    background-color: #FF6B6B;
}

.fbw-button.go-to-top {
    background-color: #FFA500;
}

/* Responsivo - Tablets */
@media (max-width: 768px) {
    .fbw-floating-buttons {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }

    .fbw-button {
        width: 55px;
        height: 55px;
    }

    .fbw-size-small .fbw-button {
        width: 45px;
        height: 45px;
    }

    .fbw-size-large .fbw-button {
        width: 65px;
        height: 65px;
    }

    .fbw-icon svg {
        width: 24px;
        height: 24px;
    }

    .fbw-size-small .fbw-icon svg {
        width: 20px;
        height: 20px;
    }

    .fbw-size-large .fbw-icon svg {
        width: 28px;
        height: 28px;
    }
}

/* Responsivo - Móviles */
@media (max-width: 480px) {
    .fbw-floating-buttons {
        bottom: 10px;
        right: 10px;
        gap: 6px;
    }

    .fbw-button {
        width: 50px;
        height: 50px;
    }

    .fbw-size-small .fbw-button {
        width: 42px;
        height: 42px;
    }

    .fbw-size-medium .fbw-button {
        width: 50px;
        height: 50px;
    }

    .fbw-size-large .fbw-button {
        width: 58px;
        height: 58px;
    }

    .fbw-icon svg {
        width: 22px;
        height: 22px;
    }

    .fbw-size-small .fbw-icon svg {
        width: 18px;
        height: 18px;
    }

    .fbw-size-large .fbw-icon svg {
        width: 26px;
        height: 26px;
    }
}

/* Animación de entrada */
@keyframes fbw-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fbw-floating-buttons {
    animation: fbw-fade-in 0.5s ease-out;
}

/* Tooltip */
.fbw-button::after {
    content: attr(title);
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    bottom: 50%;
    transform: translateY(50%);
}

.fbw-button:hover::after {
    opacity: 1;
}

/* Accesibilidad - Contraste aumentado */
@media (prefers-contrast: more) {
    .fbw-button {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    }

    .fbw-button:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
    .fbw-button {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }

    .fbw-button::after {
        background: rgba(255, 255, 255, 0.9);
        color: #000;
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .fbw-button {
        transition: none;
    }

    .fbw-button:hover {
        transform: none;
    }

    .fbw-floating-buttons {
        animation: none;
    }
}
