/* =============================================
   NEXO CONTROL - Mejoras de conversión
   ============================================= */

/* --- 1. BARRA SUPERIOR FIJA DE CONTACTO --- */
#nexo-topbar {
    background: #dc221c;
    color: #fff;
    padding: 6px 20px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 9999;
}
#nexo-topbar a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}
#nexo-topbar a:hover { text-decoration: underline; }
#nexo-topbar .topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}
#nexo-topbar .topbar-logo img {
    height: 38px;
    width: auto;
    display: block;
    border-radius: 4px;
}
#nexo-topbar .topbar-item { display: flex; align-items: center; gap: 6px; }
/* Ocultar barra blanca del header y buscador */
#main-header { display: none !important; }

/* Ocultar Join.chat completamente (usamos nuestro botón WhatsApp) */
.joinchat, .joinchat__button, .joinchat__balloon,
#joinchat, [class*="joinchat"],
.jc-widget, .jc-button { display: none !important; }

/* Ocultar sección blog vacía */
#post-section { display: none !important; }

/* Footer compacto - ocultar widgets, dejar solo copyright */
#footer-section .footer-main { display: none !important; }
#footer-section { padding: 0 !important; }
#footer-section .footer-copyright { padding: 14px 0 !important; }
#footer-section .footer-copyright .col-lg-4:last-child { display: none !important; }
#footer-section .footer-copyright .col-lg-4:first-child { text-align: center !important; flex: 0 0 100% !important; max-width: 100% !important; }
/* Ocultar "Powered by Spintech" */
#footer-section a[href*="spintech"],
#footer-section a[href*="themebucket"] { display: none !important; }

/* CTA del tema: color oscuro/rojo en lugar de azul */
#cta-section { background: linear-gradient(135deg, #8b0000 0%, #c0211b 100%) !important; }
#cta-section .bg-primary { background: transparent !important; }

/* Ocultar tooltip duplicado del WhatsApp flotante */
#nexo-whatsapp-tooltip { display: none !important; }

/* Ocultar Join.chat con máxima prioridad */
[class*="joinchat"], [id*="joinchat"] { display: none !important; }

/* --- 2. BOTÓN FLOTANTE WHATSAPP --- */
#nexo-whatsapp {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 99999;
    background: #25D366;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
#nexo-whatsapp:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 28px rgba(37,211,102,0.65);
}
#nexo-whatsapp svg { width: 32px; height: 32px; fill: #fff; }
#nexo-whatsapp-tooltip {
    position: fixed;
    bottom: 40px;
    right: 98px;
    background: #01012f;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 99998;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
#nexo-whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: #01012f;
}

/* --- 3. HERO - BOTÓN CTA MÁS VISIBLE --- */
.banner-section .btn-primary,
.hero-section .btn-primary,
.banner-content .btn {
    background: #dc221c !important;
    border-color: #dc221c !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    padding: 14px 36px !important;
    border-radius: 4px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 18px rgba(220,34,28,0.4) !important;
    transition: all 0.25s !important;
}
.banner-section .btn-primary:hover,
.hero-section .btn-primary:hover,
.banner-content .btn:hover {
    background: #b01a14 !important;
    border-color: #b01a14 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(220,34,28,0.5) !important;
}

/* --- 4. BARRA DE CONFIANZA --- */
#nexo-trust-bar {
    background: #01012f;
    padding: 22px 0;
}
#nexo-trust-bar .trust-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
#nexo-trust-bar .trust-item {
    text-align: center;
    color: #fff;
}
#nexo-trust-bar .trust-number {
    font-size: 36px;
    font-weight: 800;
    color: #dc221c;
    line-height: 1;
    display: block;
}
#nexo-trust-bar .trust-label {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    display: block;
}

/* --- 5. SECCIÓN CTA FINAL --- */
#nexo-cta-banner {
    background: linear-gradient(135deg, #dc221c 0%, #9b1510 100%);
    padding: 60px 20px;
    text-align: center;
    color: #fff;
}
#nexo-cta-banner h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
}
#nexo-cta-banner p {
    font-size: 18px;
    margin-bottom: 28px;
    opacity: 0.92;
    color: #fff;
}
#nexo-cta-banner .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
#nexo-cta-banner .btn-white {
    background: #fff;
    color: #dc221c;
    border: 2px solid #fff;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
    display: inline-block;
}
#nexo-cta-banner .btn-white:hover {
    background: transparent;
    color: #fff;
}
#nexo-cta-banner .btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.7);
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
    display: inline-block;
}
#nexo-cta-banner .btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* --- 6. CARDS DE SERVICIOS - Mejorar hover --- */
.service-box,
.service-inner,
.icon-box {
    transition: transform 0.2s, box-shadow 0.2s !important;
}
.service-box:hover,
.service-inner:hover,
.icon-box:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12) !important;
}

/* --- 7. LOGO Y HEADER --- */

/* --- 7b. REDUCIR ESPACIOS ENTRE SECCIONES --- */
.st-py-default { padding-top: 60px !important; padding-bottom: 60px !important; }
.slider-section { margin-top: 0 !important; }
#nexo-trust-bar { margin: 0 !important; }
.info-section { padding-top: 50px !important; padding-bottom: 50px !important; }
.service-section { padding-top: 50px !important; padding-bottom: 50px !important; }
.design-section { padding-top: 50px !important; padding-bottom: 50px !important; }
.cta-section { padding-top: 50px !important; padding-bottom: 50px !important; }

/* --- 8. RESPONSIVE --- */
@media (max-width: 768px) {
    #nexo-topbar .topbar-inner { gap: 12px; font-size: 13px; }
    #nexo-trust-bar .trust-number { font-size: 28px; }
    #nexo-cta-banner h2 { font-size: 24px; }
    #nexo-cta-banner p { font-size: 16px; }
    #nexo-whatsapp { bottom: 16px; right: 16px; width: 54px; height: 54px; }
    #nexo-whatsapp-tooltip { display: none; }
}

/* Ocultar barra Now Hiring del tema */
#above-header, .above-header, .text-animation.hiring { display: none !important; }
