/* Elementos Flutuantes e Interativos */

/* ============================================ */
/* BOTÃO FLUTUANTE CENTRALIZADO */
/* ============================================ */

.floating-cta-container {
    position: fixed;
    top: 70px; /* Abaixo do header */
    left: 0;
    right: 0;
    z-index: 90; /* Menor que o header (100) para não sobrepor */
    padding: 10px 20px;
    /* animation: slideDown 0.6s ease-out; */
    /* background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(95, 36, 159, 0.1);
    
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease; */
}

/* Mostrar botão após scroll */
.floating-cta-container.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-cta-main {
    background: white;
    border: 3px solid var(--primary);
    border-radius: 20px;
    padding: 16px 32px;
    box-shadow: 0 8px 32px rgba(95, 36, 159, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    justify-content: center;
    margin: 0 auto;
    white-space: nowrap;
    width: fit-content;
    max-width: 90%;
}

.floating-cta-main:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(95, 36, 159, 0.4);
}

.floating-cta-main .cta-icon {
    font-size: 1.5rem;
}

.floating-cta-main .cta-text {
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.2;
}

.floating-cta-main .cta-price {
    background: var(--accent);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.floating-cta-main:hover .cta-price {
    background: white;
    color: var(--primary);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ============================================ */
/* MOCKUP WHATSAPP INTERATIVO */
/* ============================================ */

.phone-container {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

.phone {
    background: #1f2937;
    border-radius: 30px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.phone-screen {
    background: #f0f2f5;
    border-radius: 22px;
    overflow: hidden;
    height: 600px;
    display: flex;
    flex-direction: column;
}

/* Header WhatsApp */
.wa-header {
    background: #075e54;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.wa-avatar {
    width: 40px;
    height: 40px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.wa-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.wa-info p {
    font-size: 0.75rem;
    opacity: 0.8;
    margin: 0;
}

/* Chat Area */
.wa-chat {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #e5ddd5;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23d4c4b0" opacity="0.3"/><circle cx="75" cy="75" r="1" fill="%23d4c4b0" opacity="0.3"/><circle cx="50" cy="10" r="0.5" fill="%23d4c4b0" opacity="0.2"/><circle cx="10" cy="60" r="0.5" fill="%23d4c4b0" opacity="0.2"/><circle cx="90" cy="40" r="0.5" fill="%23d4c4b0" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

/* Mensagens */
.wa-message {
    margin-bottom: 16px;
    display: flex;
}

.wa-message.user {
    justify-content: flex-end;
}

.wa-message.bot {
    justify-content: flex-start;
}

.wa-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
}

.wa-message.user .wa-bubble {
    background: #dcf8c6;
    border-bottom-right-radius: 4px;
}

.wa-message.bot .wa-bubble {
    background: white;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.wa-verse {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.wa-text {
    font-style: italic;
    color: #666;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.wa-time {
    font-size: 0.75rem;
    color: #999;
    text-align: right;
    margin-top: 4px;
}

.wa-message.bot .wa-time {
    text-align: left;
}

/* Input Area */
.wa-input-area {
    background: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #e0e0e0;
}

.wa-message-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 12px;
    border-radius: 20px;
    background: #f0f0f0;
    font-size: 0.875rem;
}

.wa-attach-btn,
.wa-emoji-btn,
.wa-send-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wa-send-btn {
    background: #25d366;
    color: white;
}

.wa-attach-btn:hover,
.wa-emoji-btn:hover {
    background: #e0e0e0;
}

.wa-send-btn:hover {
    background: #20c55a;
    transform: scale(1.05);
}

/* ============================================ */
/* RESPONSIVIDADE */
/* ============================================ */

@media (max-width: 768px) {
    .floating-cta-container {
        top: 0;
        left: 0;
        right: 0;
        transform: none;
        padding: 8px 16px;
    }
    
    .floating-cta-main {
        min-width: auto;
        width: 100%;
        font-size: 1rem;
        padding: 14px 24px;
        max-width: none;
    }
    
    .phone-container {
        max-width: 280px;
    }
    
    .phone-screen {
        height: 500px;
    }
}

@media (max-width: 480px) {
    .floating-cta-main {
        font-size: 0.8125rem;
        padding: 12px 16px;
        gap: 6px;
    }

    .floating-cta-main .cta-icon {
        font-size: 1.25rem;
    }

    .floating-cta-main .cta-text {
        font-size: 0.875rem;
    }

    .floating-cta-main .cta-price {
        font-size: 0.8125rem;
        padding: 4px 10px;
    }
    
    .phone-container {
        max-width: 250px;
    }
    
    .phone-screen {
        height: 450px;
    }
}

/* ============================================ */
/* BOTÃO PRINCIPAL DO HERO */
/* ============================================ */

.btn-cta-enhanced {
    background: white !important;
    color: var(--primary) !important;
    border: 3px solid var(--primary) !important;
    font-size: 1.5rem !important;
    font-weight: 900 !important;
    padding: 24px 48px !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(95, 36, 159, 0.3) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    min-width: 400px !important;
    justify-content: center !important;
}

.btn-cta-enhanced:hover {
    background: var(--primary) !important;
    color: white !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 40px rgba(95, 36, 159, 0.4) !important;
}

.btn-cta-enhanced .cta-icon {
    font-size: 2rem;
}

.btn-cta-enhanced .cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.btn-cta-enhanced .cta-main {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.2;
}

.btn-cta-enhanced .cta-sub {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.8;
}

.btn-cta-enhanced .cta-sub strong {
    color: var(--accent);
    font-weight: 800;
}

.btn-cta-enhanced:hover .cta-sub strong {
    color: white;
}

/* Responsividade do botão principal */
@media (max-width: 768px) {
    .btn-cta-enhanced {
        font-size: 1.25rem !important;
        padding: 20px 32px !important;
        min-width: 300px !important;
    }
    
    .btn-cta-enhanced .cta-main {
        font-size: 1.25rem;
    }
    
    .btn-cta-enhanced .cta-sub {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .btn-cta-enhanced {
        font-size: 1.125rem !important;
        padding: 16px 24px !important;
        min-width: 250px !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .btn-cta-enhanced .cta-main {
        font-size: 1.125rem;
    }
    
    .btn-cta-enhanced .cta-sub {
        font-size: 0.8rem;
    }
}

/* ============================================ */
/* ANIMAÇÕES */
/* ============================================ */

.wa-message {
    animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulsação no botão flutuante */
.floating-cta-main {
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(95, 36, 159, 0.3);
    }
    50% {
        box-shadow: 0 8px 32px rgba(95, 36, 159, 0.5), 0 0 20px rgba(95, 36, 159, 0.3);
    }
}
