/**
 * RMPowerTech - Floating Buttons Ultra-Modern (Clean & Minimalist)
 * Luxury Glassmorphism Widget
 */

.floating-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none;
}

.floating-item {
    position: relative;
    display: flex;
    align-items: center;
    pointer-events: auto;
}

/* Tooltip elegante y minimalista */
.floating-tooltip {
    position: absolute;
    right: calc(100% + 14px);
    background: rgba(10, 14, 20, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.floating-item:hover .floating-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* ========================================
   WhatsApp Floating Button - Ultra Modern
   ======================================== */
.whatsapp-pill-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px 12px;
    background: rgba(10, 14, 20, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(37, 211, 102, 0.4);
    color: #ffffff;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(37, 211, 102, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-pill-btn:hover {
    background: #25D366;
    border-color: #25D366;
    color: #ffffff;
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
}

.whatsapp-icon-wrap {
    position: relative;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.whatsapp-pill-btn:hover .whatsapp-icon-wrap {
    background: #ffffff;
}

.whatsapp-icon-wrap svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
    transition: fill 0.3s ease;
}

.whatsapp-pill-btn:hover .whatsapp-icon-wrap svg {
    fill: #25D366;
}

/* Badge En Línea */
.online-badge-dot {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 9px;
    height: 9px;
    background: #00FF88;
    border: 2px solid #0a0e14;
    border-radius: 50%;
    animation: blinkGlow 1.5s infinite alternate;
}

.whatsapp-pill-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.whatsapp-pill-title {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #ffffff;
}

.whatsapp-pill-sub {
    font-size: 0.7rem;
    color: #00FF88;
    font-weight: 500;
    transition: color 0.3s ease;
}

.whatsapp-pill-btn:hover .whatsapp-pill-sub {
    color: rgba(255, 255, 255, 0.9);
}

/* Phone Ring Button - Clean Glass Pill */
.phone-ring-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10, 14, 20, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(14, 165, 233, 0.4);
    color: #0ea5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.phone-ring-btn:hover {
    background: #0ea5e9;
    color: #ffffff;
    border-color: #0ea5e9;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.5);
}

.phone-ring-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Scroll Top Button - Glass minimal */
.scroll-top-v2 {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(10, 14, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
}

.scroll-top-v2.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-v2:hover {
    background: rgba(14, 165, 233, 0.2);
    color: #67e8f9;
    border-color: #0ea5e9;
    transform: translateY(-3px);
}

.scroll-top-v2 svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
}

@keyframes blinkGlow {
    from { opacity: 0.6; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1.2); }
}
