
/* ALIADOS UI V2 */

#ally-demo-banner {
    display: none;
    margin: 0 0 1.25rem;
    padding: .9rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(245,158,11,.35);
    background: rgba(120,53,15,.28);
    color: #fde68a;
    font-weight: 700;
}

#ally-demo-banner.visible {
    display: block;
}

.ally-ui-grid {
    display: grid;
    grid-template-columns: minmax(290px,380px) 1fr;
    gap: 1.25rem;
    align-items: start;
}

.ally-chip {
    display: inline-flex;
    align-items: center;
    padding: .25rem .65rem;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 750;
    border: 1px solid rgba(45,212,191,.25);
    background: rgba(13,148,136,.1);
    color: #5eead4;
}

.ally-chip.pending {
    color: #fde68a;
    border-color: rgba(245,158,11,.28);
    background: rgba(120,53,15,.18);
}

.ally-chip.active {
    color: #86efac;
    border-color: rgba(34,197,94,.28);
    background: rgba(22,101,52,.18);
}

.ally-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.ally-action-btn {
    border: 1px solid rgba(148,163,184,.2);
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 8px;
    padding: .42rem .65rem;
    font-size: .75rem;
    cursor: pointer;
    white-space: nowrap;
}

.ally-action-btn:hover {
    background: #334155;
}

.ally-action-btn.whatsapp {
    border-color: rgba(34,197,94,.3);
    color: #86efac;
}

.ally-action-btn.email {
    border-color: rgba(56,189,248,.3);
    color: #7dd3fc;
}

.ally-action-btn.pdf {
    border-color: rgba(248,113,113,.3);
    color: #fca5a5;
}

.ally-status-note {
    color: #94a3b8;
    font-size: .76rem;
    line-height: 1.45;
    margin-top: .3rem;
}


/* ==========================================================
   WHATSAPP SOPORTE FLOTANTE
   ========================================================== */

#vet-support-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1900;
    font-family: inherit;
}

#vet-support-button {
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    background: #16a34a;
    color: white;
    font-size: 27px;
    cursor: pointer;
    box-shadow: 0 12px 35px rgba(0,0,0,.35);
}

#vet-support-button:hover {
    transform: translateY(-2px);
}

#vet-support-menu {
    display: none;
    position: absolute;
    right: 0;
    bottom: 70px;
    width: 305px;
    border-radius: 16px;
    overflow: hidden;
    background: #0f172a;
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
}

#vet-support-menu.visible {
    display: block;
}

.vet-support-header {
    padding: 15px 16px;
    background: #166534;
    color: white;
}

.vet-support-header strong {
    display: block;
}

.vet-support-header span {
    display: block;
    font-size: 12px;
    margin-top: 3px;
    opacity: .85;
}

.vet-support-option {
    display: block;
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: transparent;
    color: #e2e8f0;
    text-align: left;
    padding: 13px 15px;
    cursor: pointer;
    font-size: 14px;
}

.vet-support-option:hover {
    background: rgba(255,255,255,.06);
}

.vet-support-option:last-child {
    border-bottom: 0;
}


@media(max-width:900px) {

    .ally-ui-grid {
        grid-template-columns: 1fr;
    }
}


@media(max-width:640px) {

    #vet-support-widget {
        right: 14px;
        bottom: 14px;
    }

    #vet-support-menu {
        width: min(305px, calc(100vw - 28px));
    }

    #vet-support-button {
        width: 54px;
        height: 54px;
    }
}


/* ============================================================
   WHATSAPP MANUAL — panel de envío de invitaciones
   ============================================================ */

.ally-wa-overlay {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(2,6,23,.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.ally-wa-card {
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    background: #0f172a;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 28px 80px rgba(0,0,0,.5);
}

.ally-wa-card h3 {
    margin: 0 0 .75rem;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
}

.ally-wa-warning {
    margin: 0 0 .9rem;
    padding: .75rem .9rem;
    border-radius: 12px;
    border: 1px solid rgba(245,158,11,.3);
    background: rgba(120,53,15,.22);
    color: #fde68a;
    font-size: .86rem;
    line-height: 1.5;
}

.ally-wa-note {
    margin: 0 0 .9rem;
    color: #5eead4;
    font-size: .86rem;
    font-weight: 650;
}

.ally-wa-phone {
    margin: 0 0 .6rem;
    color: #e2e8f0;
    font-size: .9rem;
    font-weight: 700;
}

.ally-wa-preview {
    margin: 0 0 1.1rem;
    padding: .85rem;
    max-height: 210px;
    overflow-y: auto;
    border-radius: 12px;
    border: 1px solid rgba(148,163,184,.18);
    background: #020617;
    color: #cbd5e1;
    font-family: inherit;
    font-size: .82rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.ally-wa-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.ally-wa-btn {
    flex: 1 1 auto;
    min-width: 140px;
    padding: .7rem .9rem;
    border-radius: 10px;
    border: 1px solid rgba(148,163,184,.2);
    background: #1e293b;
    color: #e2e8f0;
    font-size: .86rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.ally-wa-btn:hover {
    border-color: rgba(45,212,191,.4);
}

.ally-wa-btn.primary {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.ally-wa-btn.primary:hover {
    background: #15803d;
}
