/* =============================================================================
   Barra de demo de AntWebStudios
   Se incluye en cada demo de /demos/. Deja claro que el negocio es ficticio y
   lleva al visitante a pedir una web igual por WhatsApp.
   Las demos que tengan elementos flotantes abajo usan --aw-bar-h para no taparla.
   ========================================================================== */
:root { --aw-bar-h: 60px; }
body { padding-bottom: var(--aw-bar-h) !important; }

.aw-demo-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
    min-height: var(--aw-bar-h);
    display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.25rem;
    padding: .55rem max(1rem, env(safe-area-inset-right)) calc(.55rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    background: #0E0E0D; color: #C9C4BC;
    border-top: 1px solid #2A2926;
    font: 500 14px/1.35 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    letter-spacing: 0;
}
.aw-demo-bar * { box-sizing: border-box; }
.aw-demo-bar p { margin: 0; display: flex; align-items: center; gap: .6rem; min-width: 0; }
.aw-demo-bar__badge {
    flex-shrink: 0;
    padding: .2rem .55rem; border-radius: 999px;
    background: #FF6A00; color: #0E0E0D;
    font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.aw-demo-bar a { color: #F2EFEA; }
.aw-demo-bar__brand span { color: #FF6A00; }
.aw-demo-bar__actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.aw-demo-bar__back {
    padding: .5rem .9rem; border-radius: 999px; border: 1px solid #3A3834;
    text-decoration: none; white-space: nowrap;
}
.aw-demo-bar__back:hover { border-color: #C9C4BC; }
.aw-demo-bar__cta {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .5rem 1rem; border-radius: 999px;
    background: #FF6A00; color: #0E0E0D !important; font-weight: 700;
    text-decoration: none; white-space: nowrap;
}
.aw-demo-bar__cta:hover { background: #FF8126; }
.aw-demo-bar__cta svg { width: 16px; height: 16px; }
.aw-demo-bar a:focus-visible { outline: 2px solid #FF6A00; outline-offset: 2px; }

@media (max-width: 640px) {
    :root { --aw-bar-h: 64px; }
    .aw-demo-bar__text { display: none; }
    .aw-demo-bar__back { padding: .5rem .75rem; }
}

/* Aviso que muestran las demos en lugar de enviar datos reales */
.aw-sim {
    position: fixed; inset: 0; z-index: 10000;
    display: grid; place-items: center; padding: 1.25rem;
    background: rgba(10, 10, 9, .6);
    font: 400 15px/1.55 'Inter', 'Segoe UI', system-ui, sans-serif;
}
.aw-sim[hidden] { display: none; }
.aw-sim__box {
    width: min(440px, 100%); max-height: calc(100vh - 2.5rem); overflow: auto;
    background: #FFFFFF; color: #1F1E1C; border-radius: 16px; padding: 1.5rem;
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.aw-sim__box h2 { margin: 0 0 .5rem; font: 700 19px/1.25 'Inter', system-ui, sans-serif; color: #0E0E0D; letter-spacing: -0.01em; }
.aw-sim__box p { margin: 0 0 1rem; color: #4A4843; }
.aw-sim__msg {
    margin: 0 0 1.25rem; padding: .9rem 1rem; border-radius: 12px;
    background: #DCF8C6; color: #111B21; white-space: pre-wrap;
    font: 400 14px/1.5 'Segoe UI', system-ui, sans-serif;
}
.aw-sim__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.aw-sim__actions a, .aw-sim__actions button {
    flex: 1 1 auto; text-align: center; cursor: pointer;
    padding: .7rem 1rem; border-radius: 999px; border: 1px solid #D6D2CB;
    background: #fff; color: #0E0E0D; font: 600 14px/1.2 'Inter', system-ui, sans-serif; text-decoration: none;
}
.aw-sim__actions .is-primary { background: #FF6A00; border-color: #FF6A00; }
.aw-sim__kicker { margin: 0 0 .35rem !important; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #C2560A !important; }
.aw-sim__box { animation: aw-sim-in .32s cubic-bezier(.2,.8,.2,1); }
@keyframes aw-sim-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
html.aw-lock { overflow: hidden; }

/* Aparición al scrollear (la activa demo-bar.js solo si hay JS y movimiento) */
.aw-rv [data-rv], .aw-rv [data-rv-group] > * {
    opacity: 0; transform: translateY(28px);
    transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--rv-d, 0ms);
}
.aw-rv [data-rv].is-in, .aw-rv [data-rv-group].is-in > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .aw-sim__box { animation: none; }
}
