/**
 * OneEspacios Booking Button - Estilos
 * Compatible con Salient Theme y WordPress
 * v1.0.0
 */

:root {
    --oeb-shadow: 0 4px 12px rgba(0, 193, 170, 0.4);
    --oeb-shadow-hover: 0 6px 16px rgba(0, 193, 170, 0.6);
}

/* Botón flotante base */
.onespacios-booking-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #00C1AA;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: var(--oeb-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    outline: none;
    animation: fadeInBooking 0.6s ease-out forwards;
    will-change: transform, box-shadow;
}

.onespacios-booking-icon {
    width: 32px;
    height: 32px;
    display: block;
    flex-shrink: 0;
}

/* Estados */
.onespacios-booking-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--oeb-shadow-hover);
}

.onespacios-booking-btn:active {
    transform: scale(0.95);
}

.onespacios-booking-btn:focus-visible {
    outline: 3px solid rgba(0, 193, 170, 0.5);
    outline-offset: 2px;
}

/* Animación entrada */
@keyframes fadeInBooking {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* RESPONSIVE */

/* Desktop y tablet - ocultar */
@media (min-width: 769px) {
    .onespacios-booking-btn {
        display: none !important;
    }
}

/* Mobile - mostrar */
@media (max-width: 768px) {
    .onespacios-booking-btn {
        display: flex;
    }
}

/* Pantallas pequeñas */
@media (max-width: 480px) {
    .onespacios-booking-btn {
        width: 55px;
        height: 55px;
        bottom: 20px;
        left: 20px;
    }
    
    .onespacios-booking-icon {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 360px) {
    .onespacios-booking-btn {
        width: 52px;
        height: 52px;
        bottom: 15px;
        left: 15px;
    }
    
    .onespacios-booking-icon {
        width: 26px;
        height: 26px;
    }
}

/* Safe area para notch */
@supports (padding: max(0px)) {
    .onespacios-booking-btn {
        bottom: max(30px, env(safe-area-inset-bottom) + 15px);
        left: max(30px, env(safe-area-inset-left) + 15px);
    }
    
    @media (max-width: 480px) {
        .onespacios-booking-btn {
            bottom: max(20px, env(safe-area-inset-bottom) + 10px);
            left: max(20px, env(safe-area-inset-left) + 10px);
        }
    }
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
    .onespacios-booking-btn {
        box-shadow: 0 4px 16px rgba(0, 193, 170, 0.5);
    }
    
    .onespacios-booking-btn:hover {
        box-shadow: 0 6px 20px rgba(0, 193, 170, 0.7);
    }
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .onespacios-booking-btn {
        animation: none;
        opacity: 1;
        transform: scale(1);
    }
    
    .onespacios-booking-btn:hover {
        transform: none;
    }
}

/* Impresión */
@media print {
    .onespacios-booking-btn {
        display: none !important;
    }
}
