/* ==================================================
   HERO PROMOCIONAL PREMIUM V3 - BLUE & RED EDITION
================================================== */

:root {
    --color-primary: #003d80;   /* Azul Profundo */
    --color-accent: #dc3545;    /* Vermelho Vibrante */
    --pro-neon: #60efff;        /* Ciano Claro para Destaque */
    --pro-text-grad: linear-gradient(135deg, #ffffff 40%, #d4e4ff 100%);
}

.promo-hero {
    position: relative;
    width: 100%;
    min-height: 180px;
    margin: 28px 0;
    border-radius: 24px;
    overflow: hidden;

    display: flex;
    align-items: center;
    padding: 36px;
    color: #ffffff;
    background: #020b18; /* Fundo escuro azulado ultra elegante */
    
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7),
                0 0 40px rgba(0, 61, 128, 0.2);
}

/* Camada da Grade Cibernética */
.promo-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.6;
}

/* Plasma Rotativo e Pulsante Otimizado (Azul + Vermelho) */
.promo-overlay::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -60%;
    width: 220%;
    height: 220%;
    
    background: 
        radial-gradient(circle at 35% 35%, rgba(0, 61, 128, 0.7) 0%, transparent 45%),
        radial-gradient(circle at 65% 65%, rgba(220, 53, 69, 0.55) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(0, 61, 128, 0.4) 0%, transparent 40%);
        
    animation: cosmicNebula 14s infinite alternate ease-in-out;
    filter: blur(25px);
}

@keyframes cosmicNebula {
    0%   { transform: rotate(0deg) scale(1); }
    50%  { transform: rotate(180deg) scale(1.15); }
    100% { transform: rotate(360deg) scale(1); }
}

.promo-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 11, 24, 0.5) 0%, transparent 100%);
    z-index: 2;
}

/* Alinhamento do Conteúdo + Botão */
.promo-content {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.promo-text-side {
    max-width: 70%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Badge Atualizada */
.promo-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;

    padding: 6px 14px;
    border-radius: 8px;

    background: rgba(96, 239, 255, 0.08);
    border: 1px solid rgba(96, 239, 255, 0.3);
    color: var(--pro-neon);
}

.promo-badge i {
    animation: pulseGlow 1.2s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0%   { transform: scale(0.85); opacity: 0.5; }
    100% { transform: scale(1.15); opacity: 1; }
}

/* Título e Transição de Texto Cinema */
.promo-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -0.02em;
    min-height: 68px;
    display: flex;
    align-items: center;
    margin: 0;
}

#promoText {
    display: inline-block;
    background: var(--pro-text-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: 
        opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.35s ease;
    will-change: opacity, transform, filter;
}

/* Subtítulo */
.promo-subtitle {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
    margin: 0;
}

/* Botão de Planos Ultra Premium */
.promo-btn-wrapper {
    flex-shrink: 0;
}

.promo-btn-premium {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    background: var(--color-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 61, 128, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efeito Glow Passante no Botão */
.promo-btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.promo-btn-premium:hover::before {
    left: 150%;
}

.promo-btn-premium:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.promo-btn-premium i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.promo-btn-premium:hover i {
    transform: translateX(4px);
}

/* ==================================================
   RESPONSIVIDADE E OTIMIZAÇÃO DE PLASMA PARA MOBILE
================================================== */
@media (max-width: 768px) {
    .promo-hero {
        padding: 28px 24px;
        min-height: auto;
    }

    .promo-overlay::before {
        top: -70%;
        left: -70%;
        width: 240%;
        height: 240%;
        
        /* Centralização perfeita das cores no Mobile */
        background: 
            radial-gradient(circle at 45% 45%, rgba(0, 61, 128, 0.85) 0%, transparent 50%),
            radial-gradient(circle at 55% 55%, rgba(220, 53, 69, 0.7) 0%, transparent 50%),
            radial-gradient(circle at 50% 50%, rgba(0, 61, 128, 0.5) 0%, transparent 40%);
            
        animation: cosmicNebulaMobile 9s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
        filter: blur(18px);
    }

    .promo-content {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .promo-text-side {
        max-width: 100%;
        gap: 10px;
    }

    .promo-title {
        font-size: 18px;
        min-height: 56px;
    }

    .promo-btn-premium {
        width: 100%;
        justify-content: center;
        padding: 16px;
    }
}

@keyframes cosmicNebulaMobile {
    0%   { transform: rotate(0deg) scale(1.1); }
    50%  { transform: rotate(180deg) scale(1.3); }
    100% { transform: rotate(360deg) scale(1.1); }
}

/* ==================================================
   BOTÃO FLUTUANTE WHATSAPP PREMIUM V2
================================================== */

:root {
    --wa-green: #25d366;
    --wa-glow: rgba(37, 211, 102, 0.4);
}

/* Posição elevada para não colipar com o rodapé */
.wa-floating-container {
    position: fixed;
    bottom: 40px; /* Subido de 24px para 40px */
    right: 32px;  /* Subido de 24px para 32px */
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Balão Otimizado com Botão Fechar */
.wa-tooltip {
    background: #ffffff;
    color: #1e293b;
    font-size: 13px;
    font-weight: 600;
    padding: 12px 36px 12px 16px; /* Espaço extra à direita para o X */
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    position: relative;
    
    /* Controlado por JavaScript (Começa oculto e sem ocupar espaço) */
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    visibility: hidden;
    pointer-events: none;
    
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.4s;
}

/* Estado Ativo disparado pelo Script após 3s */
.wa-tooltip.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    pointer-events: auto;
    animation: waTooltipFloat 3s ease-in-out infinite alternate;
}

/* Botão de Fechar Dinâmico */
.wa-close-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    border: none;
    font-weight: bold;
    transition: all 0.2s ease;
}

.wa-close-btn:hover {
    background: #ef4444;
    color: #ffffff;
}

/* Seta Lateral do Balão */
.wa-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #ffffff;
}

/* Ícone Circular Principal */
.wa-btn-circle {
    position: relative;
    width: 60px;
    height: 60px;
    background-color: var(--wa-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 8px 24px var(--wa-glow);
    animation: waButtonFloat 3s ease-in-out infinite alternate;
}

/* Ondas de choque por trás */
.wa-btn-circle::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: var(--wa-green);
    opacity: 0.4;
    z-index: -1;
    animation: waPulse 2s linear infinite;
}

.wa-btn-circle:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(32, 186, 90, 0.6);
}

/* Animações nativas */
@keyframes waPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes waButtonFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-6px); }
}

@keyframes waTooltipFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}

/* ==================================================
   AGORA VISÍVEL TAMBÉM EM MOBILE (OTIMIZADO)
================================================== */
@media (max-width: 768px) {
    .wa-floating-container {
        bottom: 30px; /* Posição calculada para mobile */
        right: 20px;
        gap: 8px;
    }

    /* Ajuste para caber em telas menores sem quebrar a interface */
    .wa-tooltip {
        padding: 10px 32px 10px 12px;
        font-size: 11px;
        border-radius: 10px;
        max-width: 190px; /* Impede que o texto empurre o botão para fora */
        white-space: normal; /* Permite quebra de linha se necessário */
    }

    .wa-tooltip::after {
        right: -5px;
    }

    .wa-btn-circle {
        width: 52px;
        height: 52px;
        font-size: 26px;
    }
}
