.ge-wa-widget {
    --ge-wa-brand: #B57D58;
    --ge-wa-green: #25D366;
    --ge-wa-text: #444A52;
    --ge-wa-muted: #8A8F96;
    --ge-wa-card: #F4F6F8;
    position: fixed;
    right: 22px;
    bottom: 123px;
    z-index: 99999;
    font-family: inherit;
}

.ge-wa-button {
    width: 66px;
    height: 66px;
    border: none;
    border-radius: 50%;
    padding: 0;
    margin: 0;
    cursor: pointer;
    background: transparent;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease;
}

.ge-wa-button:hover {
    transform: scale(1.06);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26);
}

.ge-wa-button-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    transition: opacity .18s ease, transform .18s ease;
}

.ge-wa-close {
    display: none;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    font-weight: 300;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: var(--ge-wa-brand);
}

.ge-wa-widget.is-open .ge-wa-button-img {
    opacity: 0;
    transform: scale(.8);
}

.ge-wa-widget.is-open .ge-wa-close {
    display: flex;
}

.ge-wa-panel {
    width: 350px;
    max-width: calc(100vw - 44px);
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.18);
    position: absolute;
    right: 0;
    bottom: 82px;
    transform: translateY(16px) scale(.96);
    transform-origin: right bottom;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
}

.ge-wa-widget.is-open .ge-wa-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.ge-wa-header {
    background: var(--ge-wa-brand);
    padding: 22px 22px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.ge-wa-header-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.ge-wa-header-text {
    color: #fff;
}

.ge-wa-title {
    font-size: 20px;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 8px;
}

.ge-wa-subtitle {
    font-size: 12px;
    line-height: 1.35;
    font-weight: 600;
}

.ge-wa-content {
    background: #fff;
    padding: 22px 20px 24px;
}

.ge-wa-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    padding: 12px 14px 12px 22px;
    background: var(--ge-wa-card);
    color: var(--ge-wa-text);
    text-decoration: none !important;
    border-radius: 4px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.ge-wa-card:last-child {
    margin-bottom: 0;
}

.ge-wa-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
    background: #fff;
}

.ge-wa-card-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--ge-wa-green);
}

.ge-wa-contact-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.ge-wa-contact-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
}

.ge-wa-contact-area {
    font-size: 15px;
    line-height: 1.2;
    font-weight: 500;
    color: var(--ge-wa-text);
}

.ge-wa-contact-name {
    font-size: 12px;
    line-height: 1.2;
    color: var(--ge-wa-muted);
    margin-top: 4px;
}

.ge-wa-icon {
    color: var(--ge-wa-green);
    flex: 0 0 auto;
    display: flex;
}

@media (max-width: 767px) {
    .ge-wa-widget {
        right: 22px;
        bottom: 86px;
    }

    .ge-wa-button {
        width: 58px;
        height: 58px;
    }

    .ge-wa-close {
        font-size: 36px;
    }

    .ge-wa-panel {
        width: 350px;
        max-width: calc(100vw - 44px);
        bottom: 74px;
    }

    .ge-wa-header {
        padding: 20px 20px 22px;
    }

    .ge-wa-header-avatar {
        width: 48px;
        height: 48px;
    }
}

/* =========================================================
   FX Flotación - Clases aplicadas directamente al widget
   Usa las mismas clases globales de la web: float-delay y float-mini
========================================================= */

.float-delay,
.float-mini,
.ge-wa-button,
.ge-wa-header-avatar,
.ge-wa-icon {
    will-change: transform;
    backface-visibility: hidden;
}

@keyframes floatSoft {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-14px); }
    100% { transform: translateY(0px); }
}

@keyframes floatMini {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-7px); }
    100% { transform: translateY(0px); }
}

.float-delay {
    animation: floatSoft 5s ease-in-out infinite;
    animation-delay: .8s;
}

.float-mini {
    animation: floatMini 4.5s ease-in-out infinite;
}

/* El icono WA es un elemento independiente dentro de cada tarjeta */
.ge-wa-icon {
    color: var(--ge-wa-green);
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
}

.ge-wa-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* El botón deja de flotar cuando se abre la ventana, para que la X quede estable */
.ge-wa-widget.is-open .ge-wa-button {
    animation: none !important;
}

/* Hover suave sin romper la clase float-delay/float-mini */
.ge-wa-button:hover,
.ge-wa-card:hover .ge-wa-icon,
.ge-wa-header:hover .ge-wa-header-avatar {
    animation-play-state: paused;
}

.ge-wa-button:hover {
    box-shadow: 0 12px 28px rgba(181, 125, 88, 0.38);
}

.ge-wa-button:hover .ge-wa-button-img {
    transform: rotate(-4deg) scale(1.04);
}

.ge-wa-header-avatar {
    transition: transform .25s ease;
}

.ge-wa-header:hover .ge-wa-header-avatar {
    transform: scale(1.06) rotate(-4deg);
}

.ge-wa-contact-avatar {
    transition: transform .25s ease;
}

.ge-wa-card:hover .ge-wa-contact-avatar {
    transform: scale(1.06);
}

.ge-wa-card {
    transition: transform .25s ease, box-shadow .25s ease, background-color .18s ease;
}

.ge-wa-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

@media (max-width: 767px) {
    .float-delay,
    .float-mini {
        animation-duration: 5s;
    }

    .ge-wa-card:hover {
        transform: none;
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .float-delay,
    .float-mini,
    .ge-wa-button,
    .ge-wa-header-avatar,
    .ge-wa-icon {
        animation: none !important;
    }
}
