/* Invitación sutil a la comunidad de WhatsApp */
.mc-wa-promo {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1.25rem, env(safe-area-inset-bottom));
    z-index: 1040;
    width: min(22rem, calc(100vw - 2rem));
    pointer-events: none;
    opacity: 0;
    transform: translateY(1.25rem) scale(0.98);
    transition:
        opacity 0.45s ease,
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.mc-wa-promo.is-visible {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.mc-wa-promo__card {
    position: relative;
    display: flex;
    gap: 0.9rem;
    padding: 1rem 1rem 1rem 0.95rem;
    border-radius: 1rem;
    background: linear-gradient(145deg, #ffffff 0%, #f8fffe 100%);
    border: 1px solid rgba(7, 155, 174, 0.18);
    box-shadow:
        0 18px 40px -18px rgba(4, 71, 119, 0.35),
        0 8px 20px -12px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.mc-wa-promo__card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #25d366 0%, #079bae 100%);
}

.mc-wa-promo__close {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    width: 1.75rem;
    height: 1.75rem;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.mc-wa-promo__close:hover {
    background: rgba(15, 23, 42, 0.1);
    color: #334155;
}

.mc-wa-promo__icon {
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    margin-top: 0.15rem;
    margin-left: 0.35rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: #fff;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    box-shadow: 0 8px 18px -8px rgba(37, 211, 102, 0.65);
}

.mc-wa-promo__body {
    min-width: 0;
    padding-right: 1.35rem;
}

.mc-wa-promo__eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #079bae;
}

.mc-wa-promo__title {
    margin: 0 0 0.35rem;
    font-size: 0.98rem;
    line-height: 1.25;
    font-weight: 700;
    color: #0f172a;
}

.mc-wa-promo__desc {
    margin: 0 0 0.8rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #64748b;
}

.mc-wa-promo__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.75rem;
}

.mc-wa-promo__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.48rem 0.85rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #25d366 0%, #1fa855 100%);
    box-shadow: 0 8px 16px -10px rgba(37, 211, 102, 0.9);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mc-wa-promo__cta:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -10px rgba(37, 211, 102, 1);
}

.mc-wa-promo__later {
    border: 0;
    background: transparent;
    padding: 0.25rem 0;
    font-size: 0.78rem;
    font-weight: 500;
    color: #94a3b8;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mc-wa-promo__later:hover {
    color: #64748b;
}

@media (max-width: 575.98px) {
    .mc-wa-promo {
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mc-wa-promo {
        transition: none;
        transform: none;
    }
}
