/* =========================================================
   CINEVA — GLOBAL WHATSAPP FLOATING WIDGET
========================================================= */

.cineva-floating-contacts {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    font-family: inherit;
}

.cineva-whatsapp-float {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #2be477, #0aa84f);
    box-shadow: 0 8px 28px rgba(18, 190, 91, .38),
                0 2px 8px rgba(0, 0, 0, .28);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform .22s ease, box-shadow .22s ease;
}

.cineva-whatsapp-float svg {
    position: relative;
    z-index: 2;
    width: 34px;
    height: 34px;
}

.cineva-whatsapp-float:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 12px 32px rgba(18, 190, 91, .48);
}

.cineva-whatsapp-float:focus-visible,
.cineva-whatsapp-option:focus-visible {
    outline: 3px solid #b99aff;
    outline-offset: 4px;
}

.cineva-whatsapp-float.is-open {
    transform: rotate(8deg);
}

.cineva-whatsapp-pulse {
    position: absolute;
    z-index: -1;
    inset: -5px;
    border: 2px solid rgba(36, 220, 119, .72);
    border-radius: inherit;
    animation: cinevaWhatsAppPulse 2.2s ease-out infinite;
    pointer-events: none;
}

@keyframes cinevaWhatsAppPulse {
    0% { transform: scale(.9); opacity: .75; }
    100% { transform: scale(1.55); opacity: 0; }
}

.cineva-whatsapp-panel {
    width: min(330px, calc(100vw - 32px));
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    background: rgba(15, 15, 29, .97);
    color: #f8f7ff;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .5);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    transform-origin: bottom right;
    animation: cinevaWhatsAppPanelIn .2s ease both;
}

.cineva-whatsapp-panel[hidden] {
    display: none !important;
}

@keyframes cinevaWhatsAppPanelIn {
    from { opacity: 0; transform: translateY(9px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.cineva-whatsapp-panel-header {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 5px 5px 14px;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.cineva-whatsapp-panel-icon {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #8b35f5, #ef315e);
    font-size: 20px;
}

.cineva-whatsapp-panel-header strong,
.cineva-whatsapp-panel-header small,
.cineva-whatsapp-option-copy strong,
.cineva-whatsapp-option-copy small {
    display: block;
}

.cineva-whatsapp-panel-header strong {
    font-size: 14px;
    font-weight: 800;
}

.cineva-whatsapp-panel-header small {
    margin-top: 4px;
    color: #aaa6bb;
    font-size: 11px;
}

.cineva-whatsapp-option {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 62px;
    padding: 10px;
    margin-top: 7px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 12px;
    color: inherit;
    background: rgba(255, 255, 255, .045);
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.cineva-whatsapp-option:hover {
    transform: translateX(-2px);
    border-color: rgba(37, 211, 102, .45);
    background: rgba(37, 211, 102, .1);
}

.cineva-whatsapp-option-icon {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(37, 211, 102, .12);
    font-size: 18px;
}

.cineva-whatsapp-option-copy {
    min-width: 0;
    flex: 1;
}

.cineva-whatsapp-option-copy strong {
    font-size: 12px;
    font-weight: 750;
}

.cineva-whatsapp-option-copy small {
    margin-top: 4px;
    color: #aaa6bb;
    font-size: 10px;
}

.cineva-whatsapp-option-arrow {
    color: #6ee7a0;
    font-size: 17px;
}

@media (max-width: 600px) {
    .cineva-floating-contacts {
        right: 16px;
        bottom: calc(88px + env(safe-area-inset-bottom, 0px));
        gap: 12px;
    }

    .cineva-whatsapp-float {
        width: 56px;
        height: 56px;
    }

    .cineva-whatsapp-float svg {
        width: 31px;
        height: 31px;
    }

    .cineva-whatsapp-panel {
        width: min(320px, calc(100vw - 32px));
        padding: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cineva-whatsapp-pulse {
        animation: none;
    }

    .cineva-whatsapp-float,
    .cineva-whatsapp-option {
        transition: none;
    }
}
