/* CTA Cotizar - minimalista, colores del proyecto (#e02b20, #00204A) */
.whatsapp-cta-section {
    background: #f8f9fa;
    padding: 2rem 0;
    margin: 0;
    position: relative;
    border-top: 1px solid rgba(0, 32, 74, 0.08);
    border-bottom: 1px solid rgba(0, 32, 74, 0.08);
}

.whatsapp-cta-section::before {
    display: none;
}

.whatsapp-cta-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 1.25rem;
    position: relative;
    text-align: center;
}

.whatsapp-cta-content h3 {
    color: #00204A;
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.whatsapp-cta-content p {
    color: #555;
    font-size: 0.95rem;
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

.whatsapp-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: #e02b20;
    text-decoration: none;
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    border: 1px solid #e02b20;
    position: relative;
}

.whatsapp-cta-button::before {
    display: none;
}

.whatsapp-cta-button:hover {
    background: #e02b20;
    color: #fff;
}

.whatsapp-cta-button:active {
    opacity: 0.9;
}

.whatsapp-cta-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(224, 43, 32, 0.35);
}

.whatsapp-cta-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.whatsapp-cta-text {
    white-space: nowrap;
}

.whatsapp-cta-button:hover .whatsapp-cta-icon {
    animation: none;
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-cta-section {
        padding: 1.5rem 0;
    }

    .whatsapp-cta-container {
        padding: 0 1rem;
    }

    .whatsapp-cta-content h3 {
        font-size: 1.2rem;
    }

    .whatsapp-cta-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .whatsapp-cta-button {
        padding: 0.55rem 1.1rem;
        font-size: 0.875rem;
    }

    .whatsapp-cta-icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .whatsapp-cta-content h3 {
        font-size: 1.1rem;
    }

    .whatsapp-cta-content p {
        font-size: 0.875rem;
    }

    .whatsapp-cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        max-width: 260px;
    }

    .whatsapp-cta-text {
        white-space: normal;
    }
}

@media (prefers-contrast: high) {
    .whatsapp-cta-button {
        border-width: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-cta-button {
        transition: none;
    }
}

/* ===== BOTÓN FLOTANTE CTA (único en el proyecto) ===== */
#floating-whatsapp-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #e02b20;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(224, 43, 32, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

#whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(224, 43, 32, 0.45);
}

#whatsapp-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(224, 43, 32, 0.4);
}

#floating-whatsapp-cta.pulse #whatsapp-btn {
    animation: floatingCtaPulse 2s ease-in-out;
}

@keyframes floatingCtaPulse {
    0%, 100% { box-shadow: 0 2px 12px rgba(224, 43, 32, 0.35); }
    50% { box-shadow: 0 2px 12px rgba(224, 43, 32, 0.5); }
}

.whatsapp-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: none;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 0, 0, 0.8);
}

.whatsapp-tooltip.show {
    animation: floatingCtaTooltipShow 0.3s ease-out forwards;
}

.whatsapp-tooltip.hide {
    animation: floatingCtaTooltipHide 0.3s ease-out forwards;
}

@keyframes floatingCtaTooltipShow {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes floatingCtaTooltipHide {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(10px); }
}

@media (max-width: 768px) {
    #floating-whatsapp-cta {
        bottom: 15px;
        right: 15px;
    }
    #whatsapp-btn {
        width: 50px;
        height: 50px;
    }
    #floating-whatsapp-cta svg {
        width: 24px;
        height: 24px;
    }
    .whatsapp-tooltip {
        font-size: 0.8rem;
        padding: 6px 10px;
        bottom: 60px;
    }
}
