/* Asistente Zuria */
:root {
  --zc-bg: #FAF8F4;
  --zc-stone: #EEEAE3;
  --zc-sand: #D9D2C5;
  --zc-muted: #6E6A63;
  --zc-ink: #1C1A17;
  --zc-cobalt: #0047FF;
  --zc-cobalt-soft: #E6ECFF;
  --zc-on-cobalt: #FFFFFF;
  --zc-link: #0047FF;
  --font: "Montserrat", Arial, Helvetica, sans-serif;
}
/* ---------- Plugin: Asistente Zuria ---------- */
.zc, .zc * { box-sizing: border-box; }
.zc { font-family: var(--font); color: var(--zc-ink); }
.zc button, .zc input { font-family: inherit; }
.zc-launch { position: fixed; z-index: 2147483000; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 12px; background: var(--zc-cobalt); color: var(--zc-on-cobalt); border: 0; padding: 14px 20px; font-size: 15px; font-weight: 500; cursor: pointer; }
.zc-launch svg { width: 20px; height: 20px; flex: none; }
.zc-panel { position: fixed; z-index: 2147483000; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 392px; max-width: calc(100vw - 24px); height: min(640px, calc(100dvh - 40px - env(safe-area-inset-bottom, 0px))); display: flex; flex-direction: column; background: var(--zc-bg); border: 1px solid var(--zc-sand); }
.zc-panel[hidden], .zc-launch[hidden] { display: none; }
.zc-top { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: var(--zc-stone); border-bottom: 1px solid var(--zc-sand); }
.zc-top svg.zc-spark { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.zc-top-text { flex: 1; min-width: 0; }
.zc-title { font-size: 16px; font-weight: 600; line-height: 1.3; margin: 0; }
.zc-status { font-size: 12.5px; color: var(--zc-muted); line-height: 1.4; margin: 2px 0 0; }
.zc-close { flex: none; width: 32px; height: 32px; border: 0; background: transparent; color: var(--zc-ink); cursor: pointer; display: grid; place-items: center; }
.zc-close svg { width: 18px; height: 18px; }
.zc-log { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.zc-msg { display: flex; max-width: 100%; }
.zc-msg.user { justify-content: flex-end; }
.zc-bubble { max-width: 88%; padding: 12px 14px; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; min-width: 0; }
.zc-msg.bot .zc-bubble { background: var(--zc-stone); color: var(--zc-ink); }
.zc-msg.user .zc-bubble { background: var(--zc-ink); color: var(--zc-bg); }
.zc-bubble p { margin: 0; }
.zc-bubble p + p { margin-top: 8px; }
.zc-cta { display: inline-block; margin-top: 12px; background: var(--zc-cobalt); color: var(--zc-on-cobalt); padding: 10px 16px; font-size: 14px; font-weight: 500; text-decoration: none; }
.zc-dots { display: flex; gap: 5px; padding: 6px 0; }
.zc-dots span { width: 6px; height: 6px; background: var(--zc-muted); animation: zc-blink 1.1s infinite ease-in-out; }
.zc-dots span:nth-child(2) { animation-delay: 0.18s; }
.zc-dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes zc-blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.zc-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 2px; }
.zc-chip { background: transparent; color: var(--zc-link); border: 1px solid var(--zc-sand); padding: 8px 12px; font-size: 13.5px; font-weight: 500; line-height: 1.3; cursor: pointer; text-align: left; }
.zc-chip:hover { border-color: var(--zc-cobalt); background: var(--zc-cobalt-soft); }
.zc-form { display: flex; border-top: 1px solid var(--zc-sand); }
.zc-input { flex: 1; min-width: 0; border: 0; background: var(--zc-bg); color: var(--zc-ink); padding: 16px; font-size: 15px; border-radius: 0; }
.zc-input::placeholder { color: var(--zc-muted); }
.zc-send { flex: none; border: 0; background: var(--zc-cobalt); color: var(--zc-on-cobalt); padding: 0 20px; font-size: 14.5px; font-weight: 500; cursor: pointer; }
.zc-send:disabled { opacity: 0.45; cursor: default; }
.zc-note { margin: 0; padding: 8px 16px 12px; font-size: 12px; color: var(--zc-muted); line-height: 1.4; background: var(--zc-bg); }
.zc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.zc button:focus-visible, .zc input:focus-visible, .zc a:focus-visible { outline: 2px solid var(--zc-cobalt); outline-offset: 2px; }
.zc-input:focus-visible { outline-offset: -2px; }
@media (max-width: 520px) {
  .zc-panel { right: 0; bottom: 0; width: 100%; max-width: 100%; height: min(78dvh, 640px); border-left: 0; border-right: 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .zc-top, .zc-form { padding-left: max(0px, env(safe-area-inset-left, 0px)); padding-right: max(0px, env(safe-area-inset-right, 0px)); }
  .zc-bubble { max-width: 94%; }
}
@media (prefers-reduced-motion: reduce) { .zc-dots span { animation: none; opacity: 0.6; } }

/* Aislamiento frente a los estilos del tema (Divi) */
.zc button, .zc input, .zc a, .zc p { border-radius: 0; box-shadow: none; text-transform: none; letter-spacing: normal; text-shadow: none; }
.zc button { min-height: 0; height: auto; line-height: 1.3; margin: 0; }
.zc .zc-close { width: 32px; height: 32px; padding: 0; background: transparent; }
.zc .zc-input { border: 0; background: var(--zc-bg); color: var(--zc-ink); padding: 16px; height: auto; margin: 0; width: auto; }
.zc .zc-title, .zc .zc-status, .zc .zc-note { margin-top: 0; padding-bottom: 0; }
.zc .zc-cta, .zc .zc-cta:hover { color: var(--zc-on-cobalt); text-decoration: none; }
