/* CLIC EMPRESA — Bottom Sticky Preview Bar (compact / dark) */
:root {
    --ce-preview-bar-height: 44px;
    --ce-primary: #bc2f39;
    --ce-wa: #25d366;
    --ce-wa-dark: #1ebe57;
}

.ce-preview-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    top: auto;
    width: 100%;
    z-index: 99999;
    min-height: var(--ce-preview-bar-height);
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.28);
    font-family: "Source Sans 3", "Lato", system-ui, -apple-system, sans-serif;
}

.ce-preview-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: var(--ce-preview-bar-height);
    margin-left: 4%;
    margin-right: 4%;
    padding: 0.35rem 0;
}

.ce-preview-bar__left,
.ce-preview-bar__right {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.ce-preview-bar__brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    background: #fff;
    padding: 10px;
    border-radius: 4px;
}

.ce-preview-bar__logo {
    display: block;
    height: 22px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
}

.ce-preview-bar__divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.ce-preview-bar__label {
    color: rgba(241, 245, 249, 0.72);
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ce-preview-bar__cta-text {
    margin: 0;
    color: #f8fafc;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: ce-preview-blink 1.2s ease-in-out infinite;
}

@keyframes ce-preview-blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.35;
    }
}

.ce-preview-bar__whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: var(--ce-wa);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.ce-preview-bar__whatsapp:hover {
    background: var(--ce-wa-dark);
}

.ce-preview-bar__wa-icon {
    display: block;
    flex-shrink: 0;
}

/* Empuja el contenido para no solapar la barra inferior */
body {
    padding-bottom: var(--ce-preview-bar-height) !important;
}

/* Eleva el botón flotante de WhatsApp de la demo por encima de la barra */
.whatsapp-cta-wrapper {
    bottom: calc(var(--ce-preview-bar-height) + 1.25rem) !important;
}

@media (max-width: 720px) {
    :root {
        --ce-preview-bar-height: 78px;
    }

    .ce-preview-bar__inner {
        flex-wrap: wrap;
        gap: 0.35rem 0.6rem;
        padding: 0.4rem 0;
    }

    .ce-preview-bar__left {
        flex: 1 1 auto;
    }

    .ce-preview-bar__right {
        flex: 1 1 100%;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .ce-preview-bar__label {
        font-size: 0.68rem;
    }

    .ce-preview-bar__cta-text {
        font-size: 0.7rem;
        white-space: normal;
    }

    .ce-preview-bar__whatsapp {
        font-size: 0.66rem;
        padding: 0.35rem 0.65rem;
    }

    .ce-preview-bar__logo {
        height: 18px;
    }
}

@media (max-width: 420px) {
    :root {
        --ce-preview-bar-height: 90px;
    }

    .ce-preview-bar__divider {
        display: none;
    }
}
