/* ==============================================================
   Suíte EconomyEnergy - Conversão, Responsividade e Acessibilidade
   ============================================================== */

html {
    scroll-behavior: smooth;
}

/* ==========================================================================
   BOTAOECONOMY: Centralização Rigorosa sem Interferência no Bitrix24
   ========================================================================== */

/* 1. Padronização Geométrica Geral de Botões Nativos */
.widget-button, .whatsapp-btn, a[href^="tel:"], .btn-call {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: normal !important;
    gap: 8px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    overflow: visible !important;
    cursor: pointer;
}

/* 2. Neutralização do Overlay Landingi */
.widget-button .widget-overlay {
    pointer-events: none !important;
}

/* 3. Centralização Bi-Axial Geral do Nó de Texto Interno */
.widget-button .widget-text,
.widget-button span,
.whatsapp-btn .widget-text,
.whatsapp-btn span,
a[href^="tel:"] .widget-text,
a[href^="tel:"] span {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    -webkit-transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: normal !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}

.widget-button .widget-text p,
.widget-button .widget-text span,
.whatsapp-btn .widget-text p,
.whatsapp-btn .widget-text span {
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: normal !important;
}

/* 4. Ícones dos Botões (WhatsApp, Tel, etc.): Harmonia e Proximidade com o Texto */
.btn-whatsapp-icon,
.widget-button svg,
.whatsapp-btn svg,
a[href^="tel:"] svg,
a[href^="tel:"] img,
.widget-button img {
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    fill: currentColor !important;
}

/* 5. Dimensionamento Adaptativo de Todos os Botões de Ação / CTA / Preenchimento */
.widget-button:has(svg),
.widget-button:has(.btn-whatsapp-icon),
.widget-button:has(img),
.whatsapp-btn,
#M240ddiqIJd5U5V5IwbFaLU4Xm2ztDtw,
#Su1hiKUpkT923JxZoUWe10GV1d0Z2c11,
#TLPu4VlSGpqPmXe59G5bHuigiZUJ7spL,
#TeKKzZDsiVV7IZOwR3QAJ3QTA0fn5WXg,
#Tt9OVVULbNETDeptZ1B91J00ertyVtcH,
#e6PNTXt1f9RFJdfRINREq3HlikGA6zX0,
#ebXECeCJI8nIPEw8gDT1w0go2p17QPf5,
#fraZd64HLsZdn27isuVsNXo4y4scJWZp,
#hIzaT5FXuBXcVhkAuNuFQ4S7HxQT4pv5,
#k4m3s45CN8PqB0PqN6Xy24nu3BO0MOUp,
#y95E5SMJidkAIHHGoS9Sumrq9xG2shr8,
#NgHqxUxyGUWFh9pgQEvoLu5eLsNLw3tg,
#xnVmBzaheibkTMhniPD6TM0UZkCeV1mx {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border-left: none !important;
}

/* 6. Centralização Específica dos Botões dos Cards de Planos */
#QOozqTbUCLOKMme7ZWOHams7mXmLrTRK,
#yVgQwAwUA3ZTH4JN7nNnHFah2f12Qn95 {
    display: inline-flex !important;
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

#QOozqTbUCLOKMme7ZWOHams7mXmLrTRK .widget-text,
#yVgQwAwUA3ZTH4JN7nNnHFah2f12Qn95 .widget-text {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    margin: 0 auto !important;
}

/* 7. Centralização do Balão Flutuante do WhatsApp */
.whatsapp-bubble {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* Salvaguarda Desktop tel: */
@media only screen and (min-width: 764px) {
    a[href^="tel:"],
    .widget-button[href^="tel:"] {
        display: none !important;
    }
}

/* 8. Salvaguarda Mobile: Ajuste de Larguras e Respiro Proporcional */
@media only screen and (max-width: 763px) {
    .widget-button, .whatsapp-btn, a[href^="tel:"], .btn-call {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    .widget-button:has(svg),
    .widget-button:has(.btn-whatsapp-icon),
    .widget-button:has(img),
    .whatsapp-btn,
    #M240ddiqIJd5U5V5IwbFaLU4Xm2ztDtw,
    #Su1hiKUpkT923JxZoUWe10GV1d0Z2c11,
    #TLPu4VlSGpqPmXe59G5bHuigiZUJ7spL,
    #TeKKzZDsiVV7IZOwR3QAJ3QTA0fn5WXg,
    #Tt9OVVULbNETDeptZ1B91J00ertyVtcH,
    #e6PNTXt1f9RFJdfRINREq3HlikGA6zX0,
    #ebXECeCJI8nIPEw8gDT1w0go2p17QPf5,
    #fraZd64HLsZdn27isuVsNXo4y4scJWZp,
    #hIzaT5FXuBXcVhkAuNuFQ4S7HxQT4pv5,
    #k4m3s45CN8PqB0PqN6Xy24nu3BO0MOUp,
    #y95E5SMJidkAIHHGoS9Sumrq9xG2shr8,
    #NgHqxUxyGUWFh9pgQEvoLu5eLsNLw3tg,
    #xnVmBzaheibkTMhniPD6TM0UZkCeV1mx {
        width: auto !important;
        min-width: 0 !important;
        max-width: calc(100% - 1rem) !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    #QOozqTbUCLOKMme7ZWOHams7mXmLrTRK {
        width: 8.625rem !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    #yVgQwAwUA3ZTH4JN7nNnHFah2f12Qn95 {
        width: 8.625rem !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
}

/* 3. Preservação e Controle de Seções Responsivas (Mobile-Only) */
@media only screen and (min-width: 764px) {
    #M54VSgHPDLVykNJpEKKtTrzpOaCHuqQ9,
    #HHMf32N8kUidlBPkMPwEutAW5PZt4tPU,
    #dDQxpUnB6NW2d1iQUy8LlnIcDTncT9G1 {
        display: none !important;
    }
}
@media only screen and (max-width: 763px) {
    #M54VSgHPDLVykNJpEKKtTrzpOaCHuqQ9,
    #HHMf32N8kUidlBPkMPwEutAW5PZt4tPU,
    #dDQxpUnB6NW2d1iQUy8LlnIcDTncT9G1 {
        display: block !important;
    }
}

/* 4. Player de Vídeo YouTube com Capa de Alta Resolução */
[data-youtube] {
    background-image: linear-gradient(rgba(0,0,0,0.22), rgba(0,0,0,0.22)), url('https://img.youtube.com/vi/Rf9K4TqDe9E/maxresdefault.jpg'), url('https://img.youtube.com/vi/Rf9K4TqDe9E/hqdefault.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    border-radius: 8px !important;
    position: relative !important;
    cursor: pointer !important;
    overflow: hidden !important;
    transition: filter 0.3s ease !important;
}
[data-youtube]:hover {
    filter: brightness(1.08) !important;
}
[data-youtube] img {
    transition: transform 0.25s ease, filter 0.25s ease !important;
    filter: drop-shadow(0 4px 14px rgba(0,0,0,0.5)) !important;
}
[data-youtube]:hover img {
    transform: scale(1.15) !important;
}

/* 5. Animação Pulsozap */
.pulsozap {
    animation: pulsozap 2s infinite;
}
@keyframes pulsozap {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.75);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* 6. Botão Flutuante de WhatsApp + Balão de Fala (Du Benefícios) */
.whatsapp-floating-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 999999 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
}
.whatsapp-floating-container.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-bubble {
    position: relative;
    background-color: #f3c744;
    color: #06146f;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Figtree', sans-serif;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-bubble:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.whatsapp-bubble::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    border-width: 6px 0 6px 8px;
    border-style: solid;
    border-color: transparent transparent transparent #f3c744;
    display: block;
    width: 0;
    height: 0;
}

.whatsapp-float-btn {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.whatsapp-float-btn:hover {
    transform: scale(1.08);
}
.whatsapp-float-btn img {
    width: 34px;
    height: 34px;
    filter: brightness(0) invert(1);
    display: block;
}

@media only screen and (max-width: 480px) {
    .whatsapp-floating-container {
        bottom: 16px;
        right: 16px;
        gap: 8px;
    }
    .whatsapp-bubble {
        font-size: 11px;
        padding: 6px 12px;
    }
    .whatsapp-bubble::after {
        right: -6px;
        border-width: 5px 0 5px 6px;
    }
    .whatsapp-float-btn {
        width: 54px;
        height: 54px;
    }
    .whatsapp-float-btn img {
        width: 30px;
        height: 30px;
    }
}
