/* ═══════════════════════════════════════════════════════════════════════════════
   BOTÓN FLOTANTE DE HERRAMIENTAS - V28 - SIMPLIFICADO
   WhatsApp y Asistente Virtual (sin flecha scroll ni tools-fab)
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Ocultar elementos que causan conflicto */
.tools-fab,
#toolsFab,
.scroll-top-btn,
#scrollTopBtn,
.social-proof-popup,
.urgency-banner,
#urgencyBanner,
.exit-popup-overlay,
#tawkchat-container,
iframe[title*="chat"],
.salary-banner,
#salaryBanner {
    display: none !important;
}

/* Botón WhatsApp Flotante - SIMPLIFICADO */
.whatsapp-float {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 99995 !important;
}

.whatsapp-float .whatsapp-button,
.whatsapp-float a {
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(135deg, #25d366, #128c7e) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 1.8rem !important;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.whatsapp-float .whatsapp-button:hover,
.whatsapp-float a:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5) !important;
}

/* Tooltip de WhatsApp - solo desktop */
.whatsapp-tooltip {
    display: none;
}

@media (min-width: 769px) {
    .whatsapp-tooltip {
        display: block;
        position: absolute;
        right: 75px;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(5, 10, 48, 0.95);
        color: white;
        padding: 8px 16px;
        border-radius: 8px;
        font-size: 0.85rem;
        white-space: nowrap;
        opacity: 0;
        transition: opacity 0.3s;
        pointer-events: none;
    }
    
    .whatsapp-float:hover .whatsapp-tooltip {
        opacity: 1;
    }
}

/* Botón Scroll Top - Separado y oculto en móvil */
.scroll-top-btn,
#scrollTopBtn {
    position: fixed !important;
    bottom: 90px !important;
    right: 20px !important;
    width: 45px !important;
    height: 45px !important;
    background: rgba(35, 61, 255, 0.9) !important;
    border: none !important;
    border-radius: 50% !important;
    color: white !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    z-index: 99990 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
}

.scroll-top-btn.visible,
#scrollTopBtn.visible {
    opacity: 1 !important;
    visibility: visible !important;
}

/* OCULTAR SCROLL-TOP EN MÓVIL para evitar problema de la flecha */
@media (max-width: 768px) {
    .scroll-top-btn,
    #scrollTopBtn {
        display: none !important;
    }
    
    .whatsapp-float {
        bottom: 15px !important;
        right: 15px !important;
    }
    
    .whatsapp-float .whatsapp-button,
    .whatsapp-float a {
        width: 55px !important;
        height: 55px !important;
        font-size: 1.6rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SECCIÓN HERRAMIENTAS IA - INDEX
   ═══════════════════════════════════════════════════════════════════════════════ */
.tools-showcase {
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(5,10,48,0) 0%, rgba(35,61,255,0.05) 50%, rgba(5,10,48,0) 100%);
    position: relative;
}

.tools-showcase-header {
    text-align: center;
    margin-bottom: 50px;
}

.tools-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(16,185,129,0.1));
    border: 1px solid rgba(16,185,129,0.3);
    color: #10b981;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.tools-showcase-header h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 15px;
}

.tools-showcase-header .gradient-text {
    background: linear-gradient(135deg, #00d4ff, #0077ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tools-showcase-header p {
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.tool-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(10,15,58,0.8);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,212,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0,212,255,0.3);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card.tool-featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(0,119,255,0.05));
    border-color: rgba(0,212,255,0.2);
}

.tool-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    flex-shrink: 0;
}

.tool-content {
    flex: 1;
    min-width: 0;
}

.tool-content h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.tool-content p {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

.tool-tag {
    display: inline-block;
    background: rgba(251,191,36,0.2);
    color: #fbbf24;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    margin-top: 8px;
}

.tool-arrow {
    color: rgba(255,255,255,0.3);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-arrow {
    color: #00d4ff;
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 992px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tool-card.tool-featured {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .tools-showcase {
        padding: 60px 20px;
    }
    
    .tools-showcase-header h2 {
        font-size: 1.8rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tool-card.tool-featured {
        grid-column: span 1;
    }
    
    .tool-card {
        padding: 15px;
    }
    
    .tool-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FLOATING HUB - LIMPIO (WhatsApp + Asistente)
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Ocultar elementos que no necesitamos */
.tools-fab,
#toolsFab,
.social-proof-popup,
.urgency-banner,
#urgencyBanner,
.salary-banner,
#salaryBanner {
    display: none !important;
}

/* Floating Hub - Más limpio */
.floating-hub {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
}

.floating-hub-trigger {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00d4ff, #0077ff);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,212,255,0.4);
    transition: all 0.3s ease;
}

.floating-hub-trigger:hover {
    transform: scale(1.1);
}

.trigger-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.hub-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    border-radius: 50%;
    font-size: 0.7rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.trigger-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(0,212,255,0.4);
    animation: ringPulse 2s ease-out infinite;
}

.trigger-ring.delay {
    animation-delay: 1s;
}

@keyframes ringPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.floating-hub-options {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: rgba(10,15,58,0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 16px;
    padding: 10px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.floating-hub.active .floating-hub-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hub-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hub-option:hover {
    background: rgba(0,212,255,0.1);
}

.hub-option i {
    font-size: 1.3rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.hub-option.whatsapp i {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.hub-option.chatbot i {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.hub-option.scroll-top i {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.hub-option div {
    flex: 1;
}

.hub-option span {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
}

.hub-option small {
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
}

.option-badge {
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .floating-hub {
        bottom: 15px;
        right: 15px;
    }
    
    .floating-hub-trigger {
        width: 55px;
        height: 55px;
    }
    
    .floating-hub-options {
        right: 0;
        min-width: 200px;
    }
}
