/* Galería de demos por negocio (en #demos) y sección de agentes de WhatsApp (#agentes) */
.demos-gallery { margin-top: 4rem; padding: clamp(1.4rem, 4vw, 2.4rem); border-radius: calc(var(--radius) + 6px); border: 1px solid var(--border-neon); background: radial-gradient(ellipse 70% 90% at 100% 0%, rgba(0,255,20,.1), transparent 60%), var(--bg-card); }
.demos-gallery-h { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1.6rem; }
.demos-gallery-h > div { flex: 1 1 420px; }
.demos-gallery-h h3 { font-size: clamp(1.4rem, 3vw, 2rem); margin: .6rem 0 .4rem; }
.demos-gallery-h p { color: var(--muted); }
.dg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .7rem; }
.dg-item { display: flex; align-items: center; gap: .7rem; min-height: 56px; padding: .7rem 1rem; border-radius: 14px; border: 1px solid var(--border); background: rgba(255,255,255,.02); font-weight: 600; font-size: .95rem; transition: border-color var(--transition), transform var(--transition), background var(--transition); }
.dg-item span { font-size: 1.5rem; line-height: 1; }
.dg-item:hover { border-color: var(--border-neon); background: var(--neon-dim); transform: translateY(-2px); }
.dg-more { color: var(--neon); border-style: dashed; }
.dg-more span { font: 700 1rem var(--font-mono); }

.section-agents { position: relative; padding: clamp(4rem, 9vw, 7rem) 0; overflow: hidden; background: radial-gradient(ellipse 50% 60% at 85% 50%, rgba(37,211,102,.12), transparent 70%); }
.agents-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.agents-info h2 { margin: .6rem 0 .8rem; }
.agents-list { display: grid; gap: .9rem; margin: 1.6rem 0 2rem; }
.agents-list li { position: relative; padding-left: 2rem; display: grid; gap: .15rem; }
.agents-list li::before { content: '✓'; position: absolute; left: 0; top: .1rem; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(37,211,102,.16); color: #25d366; font-weight: 800; font-size: .8rem; }
.agents-list span { color: var(--muted); font-size: .94rem; }
.agents-btns { display: flex; flex-wrap: wrap; gap: .8rem; }
.agents-phone { position: relative; justify-self: center; width: min(100%, 340px); }
.ag-phone { border-radius: 38px; padding: 10px; background: #050506; box-shadow: 0 0 0 2px #2a2b30, 0 30px 80px rgba(0,0,0,.6), 0 0 60px rgba(37,211,102,.15); }
.ag-head { display: flex; align-items: center; gap: 10px; padding: 26px 14px 12px; border-radius: 30px 30px 0 0; background: #075e54; color: #fff; }
.ag-head div { display: grid; line-height: 1.2; }
.ag-head small { opacity: .8; font-size: .74rem; }
.ag-av { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.1rem; }
.ag-chat { display: flex; flex-direction: column; gap: 8px; padding: 14px 10px 22px; border-radius: 0 0 30px 30px; background: #efeae2; min-height: 420px; font-family: -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: .88rem; color: #111b21; }
.ag-m { max-width: 85%; padding: 8px 10px; border-radius: 10px; background: #fff; box-shadow: 0 1px .5px rgba(0,0,0,.13); line-height: 1.38; opacity: 0; transform: translateY(10px); animation: ag-in .5s ease forwards; }
.ag-yo { align-self: flex-end; background: #d9fdd3; }
.ag-btns { display: grid; gap: 4px; max-width: 85%; opacity: 0; animation: ag-in .5s ease forwards; }
.ag-btns span { padding: 8px; border-radius: 9px; background: #fff; color: #00897b; font-weight: 600; text-align: center; box-shadow: 0 1px .5px rgba(0,0,0,.13); }
.ag-rem { border-left: 3px solid #25d366; }
.ag-chat > :nth-child(1) { animation-delay: .3s; } .ag-chat > :nth-child(2) { animation-delay: 1.3s; } .ag-chat > :nth-child(3) { animation-delay: 1.8s; }
.ag-chat > :nth-child(4) { animation-delay: 2.8s; } .ag-chat > :nth-child(5) { animation-delay: 3.8s; } .ag-chat > :nth-child(6) { animation-delay: 5s; }
@keyframes ag-in { to { opacity: 1; transform: none; } }
.ag-badge { position: absolute; padding: .6rem .9rem; border-radius: 12px; background: rgba(17,17,19,.95); border: 1px solid var(--border-neon); color: #fff; font-size: .82rem; font-weight: 600; box-shadow: 0 12px 30px rgba(0,0,0,.4); white-space: nowrap; animation: ag-float 4s ease-in-out infinite; }
.ag-badge-1 { left: -14%; top: -3%; }
.ag-badge-2 { right: -10%; bottom: -3%; animation-delay: -2s; }
@keyframes ag-float { 50% { transform: translateY(-8px); } }
.service-card--agent { border-color: rgba(37,211,102,.35); }
@media (max-width: 900px) {
  .agents-layout { grid-template-columns: 1fr; }
  .ag-badge-1 { left: -4%; } .ag-badge-2 { right: -2%; }
}
@media (prefers-reduced-motion: reduce) {
  .ag-m, .ag-btns { animation: none; opacity: 1; transform: none; }
  .ag-badge { animation: none; }
}
