/* Barra superior de Cherry Digital para modo demo */
.cherry-demo-bar {
    position: sticky;
    top: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.65rem 4vw;
    background: #141414;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.875rem;
}
.cherry-demo-bar.is-embedded {
    display: none;
}
html.demo-embedded .site-nav {
    padding: 0.85rem 1.5rem;
}
html.demo-embedded .wrap {
    padding-inline: 1.5rem;
}
html.demo-embedded .hero {
    padding-top: 1.5rem;
    padding-bottom: 2.25rem;
}
html.demo-embedded .chat-fab {
    right: 14px;
    bottom: 14px;
    padding: 0.55rem 0.95rem;
    font-size: 0.78rem;
}
html.demo-embedded .chat-panel {
    right: 14px;
    bottom: 64px;
}
.cherry-demo-meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}
.cherry-demo-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: #c42438;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.cherry-demo-title {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}
.cherry-demo-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.cherry-demo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.48rem 0.95rem;
    border-radius: 9px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    touch-action: manipulation;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}
.cherry-demo-btn--back {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
}
.cherry-demo-btn--back:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}
.cherry-demo-btn--hire {
    color: #141414;
    background: #fff;
    border: 1px solid #fff;
}
.cherry-demo-btn--hire:hover {
    background: #fbecec;
    border-color: #fbecec;
    transform: translateY(-1px);
}

/* Chatbot interactivo compartido (sin servicios externos) */
.chat-form {
    display: flex;
    gap: 0.4rem;
    padding: 0.6rem 0.85rem 0.85rem;
    border-top: 1px solid var(--line, #e2e2e2);
    background: var(--surface, #fff);
}
.chat-form input {
    flex: 1 1 auto;
    min-width: 0;
    font: inherit;
    font-size: 0.85rem;
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    border: 1px solid var(--line, #d6d6d6);
    background: var(--bg, #f9f9f9);
    color: var(--ink, #141414);
}
.chat-form button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    border: 0;
    background: var(--accent, #141414);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    touch-action: manipulation;
    cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
    * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

@media (max-width: 760px) {
    .cherry-demo-bar {
        padding: 0.45rem 16px;
        min-height: 48px;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }
    .cherry-demo-meta {
        display: none;
    }
    .cherry-demo-desktop-only {
        display: none;
    }
    .cherry-demo-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }
    .cherry-demo-btn {
        flex: 0 0 auto;
        white-space: nowrap;
        min-height: 44px;
        padding: 0.5rem 0.85rem;
        font-size: 0.78rem;
        justify-content: center;
    }
}
