/*
 * demos.css — Estilos de las demos animadas.
 * Todo empieza con "idemo-" para no chocar con los estilos de la web.
 * Usa los mismos colores de impulsodigital.de (styles.css): si la web ya los define,
 * los toma de ahí; si no, usa los valores de respaldo.
 */

/* ---------- Colores y base ---------- */
.idemo {
  --id-orange: var(--orange, #ff6516);
  --id-orange-soft: var(--orange-soft, #ffdfc8);
  --id-green: var(--green, #44a178);
  --id-green-soft: var(--green-soft, #dcf4e7);
  --id-green-ink: #123327;
  --id-violet-soft: var(--violet-soft, #eee9ff);
  --id-text: var(--text, #17202a);
  --id-muted: var(--muted, #52606a);
  --id-line: var(--line, #e8e1db);
  --id-surface: var(--surface, #fffdfb);
  --id-surface-soft: var(--surface-soft, #f5eee7);
  --id-chat-bg: #f7f1ea;
  --id-shadow: var(--shadow, 0 22px 58px rgba(96, 60, 82, 0.16));
  --id-radius: 8px;
  color: var(--id-text);
  font-family: inherit;
}
.idemo *,
.idemo *::before,
.idemo *::after { box-sizing: border-box; }
.idemo p { margin: 0; }
.idemo button { font: inherit; }
.idemo button:focus-visible { outline: 2px solid var(--id-orange); outline-offset: 2px; }

/* ---------- Demo 1: botones de rubro ---------- */
.idemo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.idemo-chip {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--id-line);
  border-radius: 999px;
  background: var(--id-surface);
  color: var(--id-text);
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.idemo-chip:hover { border-color: var(--id-orange); }
.idemo-chip:active { transform: scale(0.97); }
.idemo-chip[aria-pressed="true"] {
  border-color: var(--id-orange);
  background: var(--id-orange);
  color: #fff;
}

/* ---------- Demo 1: fondo con la foto del rubro ---------- */
/* La foto va de borde a borde de la pantalla, con un velo oscuro encima. El simulador
   (botones, celular y tarjetas) es de vidrio esmerilado: translúcido, con la foto
   difuminada detrás. El vidrio es bastante blanco para que los textos se lean bien
   con cualquier foto, clara u oscura. */
.idemo-con-fondo {
  --id-glass: rgba(255, 253, 251, 0.74);
  --id-glass-strong: rgba(255, 253, 251, 0.84); /* donde hay más texto: ficha y aviso */
  --id-glass-line: rgba(255, 255, 255, 0.55);
  --id-glass-blur: blur(16px) saturate(150%);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* A lo ancho, el contenido queda alineado con el resto de la página (1180 px) */
  padding: 56px max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(135deg, #2a3740, var(--id-text)); /* mientras carga la foto, o si no carga */
}
.idemo-con-fondo > .idemo-chips,
.idemo-con-fondo > .idemo-stage { position: relative; z-index: 1; }
.idemo-fondo { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.idemo-fondo-foto {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 900ms ease;
}
.idemo-fondo-foto.is-on { opacity: 1; }
.idemo-fondo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 31, 0.5) 0%, rgba(17, 24, 31, 0.32) 45%, rgba(17, 24, 31, 0.55) 100%);
}

/* Vidrio esmerilado */
.idemo-con-fondo .idemo-chip,
.idemo-con-fondo .idemo-phone,
.idemo-con-fondo .idemo-cap,
.idemo-con-fondo .idemo-ficha,
.idemo-con-fondo .idemo-aviso,
.idemo-con-fondo .idemo-replay {
  border-color: var(--id-glass-line);
  background: var(--id-glass);
  -webkit-backdrop-filter: var(--id-glass-blur);
  backdrop-filter: var(--id-glass-blur);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.idemo-con-fondo .idemo-ficha,
.idemo-con-fondo .idemo-aviso { background: var(--id-glass-strong); }
.idemo-con-fondo .idemo-chip:hover { border-color: var(--id-orange); }
.idemo-con-fondo .idemo-chip[aria-pressed="true"] { border-color: var(--id-orange); background: var(--id-orange); }
.idemo-con-fondo .idemo-cap.is-on {
  border-color: rgba(68, 161, 120, 0.5);
  background: linear-gradient(180deg, rgba(220, 244, 231, 0.9), var(--id-glass));
}
/* Sobre el vidrio, las capacidades apagadas se atenúan menos para que se sigan leyendo */
.idemo-con-fondo .idemo-cap > * { opacity: 0.72; }
.idemo-con-fondo .idemo-cap.is-on > * { opacity: 1; }
.idemo-con-fondo .idemo-aviso.is-on { border-color: var(--id-orange); background: rgba(255, 244, 237, 0.9); }
.idemo-con-fondo .idemo-phone-head { border-bottom-color: var(--id-glass-line); background: rgba(255, 244, 237, 0.55); }
.idemo-con-fondo .idemo-chat { background: rgba(247, 241, 234, 0.35); }
.idemo-con-fondo .idemo-phone-foot { border-top-color: var(--id-glass-line); background: transparent; }
.idemo-con-fondo .idemo-fake-input { background: rgba(255, 255, 255, 0.6); }
/* Navegadores sin difuminado: el vidrio queda casi opaco para que se siga leyendo bien */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .idemo-con-fondo { --id-glass: rgba(255, 253, 251, 0.92); --id-glass-strong: rgba(255, 253, 251, 0.95); }
}

/* ---------- Demo 1: escenario (celular + columna) ---------- */
.idemo-stage {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

/* Celular */
.idemo-phone {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 600px;
  border: 1px solid var(--id-line);
  border-radius: 26px;
  background: var(--id-surface);
  box-shadow: var(--id-shadow);
  overflow: hidden;
}
.idemo-phone-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--id-line);
  background: #fff4ed;
}
.idemo-phone-title { display: grid; min-width: 0; }
.idemo-phone-title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idemo-phone-title small { color: var(--id-green); font-size: 12px; font-weight: 700; }
.idemo-avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--id-orange);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}
.idemo-avatar-sm { width: 28px; height: 28px; font-size: 11px; background: var(--id-surface-soft); color: var(--id-muted); }

.idemo-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 14px;
  background: var(--id-chat-bg);
  overflow-y: auto;
  scroll-behavior: smooth;
}
.idemo-msg {
  max-width: 84%;
  padding: 9px 12px 7px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  animation: idemo-pop 260ms cubic-bezier(.2, .8, .2, 1) both;
}
.idemo-cliente {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  background: var(--id-violet-soft);
}
.idemo-agente {
  align-self: flex-end;
  border: 1px solid rgba(68, 161, 120, 0.22);
  border-bottom-right-radius: 4px;
  background: var(--id-green-soft);
  color: var(--id-green-ink);
}
.idemo-time {
  display: block;
  margin-top: 2px;
  text-align: right;
  font-size: 11px;
  color: var(--id-muted);
}
.idemo-agente .idemo-time { color: var(--id-green); }

/* Cartel de arriba del chat (día, hora y negocio cerrado) y avisos en el medio */
.idemo-daychip {
  align-self: center;
  max-width: 92%;
  margin-bottom: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(23, 32, 42, 0.07);
  color: var(--id-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.idemo-evento {
  background: var(--id-orange-soft);
  color: #7e3518;
  animation: idemo-pop 260ms ease both;
}

/* "Guardado en la ficha: ..." flotando debajo del encabezado del celular */
.idemo-saved {
  position: absolute;
  top: 76px;
  left: 50%;
  max-width: calc(100% - 32px);
  padding: 7px 12px;
  border-radius: var(--id-radius);
  background: var(--id-text);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 10px 24px rgba(23, 32, 42, 0.22);
  opacity: 0;
  transform: translate(-50%, -6px);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}
.idemo-saved::before { content: "✓ "; color: var(--id-green-soft); }
.idemo-saved.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Tres puntitos de "escribiendo" */
.idemo-typing { display: flex; gap: 4px; padding: 12px 14px; }
.idemo-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--id-green);
  animation: idemo-dot 1s infinite ease-in-out;
}
.idemo-typing span:nth-child(2) { animation-delay: 150ms; }
.idemo-typing span:nth-child(3) { animation-delay: 300ms; }

.idemo-phone-foot {
  padding: 10px 12px;
  border-top: 1px solid var(--id-line);
  background: var(--id-surface);
}
.idemo-fake-input {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--id-surface-soft);
  color: var(--id-muted);
  font-size: 14px;
}

/* Columna derecha */
.idemo-side { display: grid; gap: 16px; min-width: 0; }

/* Las 4 capacidades */
.idemo-caps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.idemo-cap {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--id-line);
  border-radius: var(--id-radius);
  background: var(--id-surface);
  transition: background 300ms ease, border-color 300ms ease;
}
/* Apagada: se atenúa el contenido pero la tarjeta sigue opaca (si no, se transparenta la foto del fondo) */
.idemo-cap > * { opacity: 0.55; transition: opacity 300ms ease; }
.idemo-cap.is-on > * { opacity: 1; }
.idemo-cap strong { display: block; font-size: 15px; line-height: 1.25; }
.idemo-cap small { display: block; margin-top: 4px; color: var(--id-muted); font-size: 13px; line-height: 1.35; }
.idemo-cap-dot {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 2px solid var(--id-line);
  border-radius: 50%;
  transition: background 300ms ease, border-color 300ms ease;
}
.idemo-cap.is-on { border-color: rgba(68, 161, 120, 0.4); background: linear-gradient(180deg, var(--id-green-soft), var(--id-surface)); }
.idemo-cap.is-on .idemo-cap-dot { border-color: var(--id-green); background: var(--id-green); }
.idemo-cap.is-on .idemo-cap-dot::after { content: "✓"; color: #fff; font-size: 12px; font-weight: 900; }

/* Ficha del cliente */
.idemo-ficha {
  padding: 18px;
  border: 1px solid var(--id-line);
  border-radius: var(--id-radius);
  background: var(--id-surface);
  box-shadow: 0 14px 32px rgba(96, 60, 82, 0.08);
}
.idemo-ficha-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.idemo-badge {
  padding: 5px 10px;
  border-radius: var(--id-radius);
  background: var(--id-surface-soft);
  color: var(--id-muted);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.idemo-badge.is-on { background: var(--id-green); color: #fff; }

.idemo-fields {
  display: grid;
  grid-template-columns: minmax(90px, auto) minmax(0, 1fr);
  gap: 8px 16px;
  margin: 0 0 16px;
}
.idemo-fields dt { color: var(--id-muted); font-size: 14px; }
.idemo-fields dd { margin: 0; font-weight: 700; font-size: 15px; border-radius: 4px; overflow-wrap: anywhere; }
.idemo-fields dd.is-empty { color: var(--id-line); font-weight: 400; }
.idemo-fields dd.is-new { animation: idemo-flash 1.2s ease both; }

/* Etapas del cliente */
.idemo-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.idemo-step {
  padding-top: 8px;
  border-top: 4px solid var(--id-surface-soft);
  color: var(--id-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  transition: border-color 300ms ease, color 300ms ease;
}
.idemo-step.is-done { border-top-color: var(--id-green); }
.idemo-step.is-current { border-top-color: var(--id-orange); color: var(--id-text); }

.idemo-tags { display: flex; flex-wrap: wrap; gap: 6px; min-height: 24px; }
.idemo-tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--id-orange-soft);
  color: #7e3518;
  font-size: 12px;
  font-weight: 800;
  animation: idemo-pop 260ms ease both;
}

/* Aviso que le llega al dueño */
.idemo-aviso {
  padding: 14px 16px;
  border: 1px dashed var(--id-line);
  border-radius: var(--id-radius);
  background: var(--id-surface);
  color: var(--id-muted);
  transition: background 300ms ease, border-color 300ms ease;
}
.idemo-aviso-label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--id-muted);
}
.idemo-aviso p { min-height: 1.5em; color: var(--id-text); font-weight: 700; line-height: 1.45; }
.idemo-aviso-extra { display: block; margin-top: 6px; color: var(--id-green); font-size: 13px; font-weight: 800; }
.idemo-aviso.is-on { border-style: solid; border-color: var(--id-orange); background: #fff4ed; }
.idemo-aviso.is-on .idemo-aviso-label { color: var(--id-orange); }
.idemo-aviso.is-on p { animation: idemo-pop 300ms ease both; }

.idemo-replay {
  justify-self: start;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--id-line);
  border-radius: var(--id-radius);
  background: transparent;
  color: var(--id-text);
  font-weight: 800;
  cursor: pointer;
}
.idemo-replay:hover { border-color: var(--id-orange); color: var(--id-orange); }

/* ---------- Demo 2: comentario → privado (dos celulares) ---------- */
/* Izquierda: pantalla de comentarios estilo Instagram. Derecha: chat estilo Messenger. */
.idemo-c-stage {
  display: grid;
  grid-template-columns: minmax(0, 300px) 96px minmax(0, 300px);
  justify-content: center;
  align-items: center;
}
.idemo-c-col {
  display: grid;
  gap: 14px;
  justify-items: center;
  margin: 0;
}
.idemo-c-col figcaption {
  font-size: 14px;
  font-weight: 800;
  color: var(--id-muted);
  text-align: center;
}

/* Marco del celular (mismo para los dos) */
.idemo-ig,
.idemo-ms {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 560px;
  overflow: hidden;
  border: 8px solid #17202a;
  border-radius: 36px;
  background: #fff;
  box-shadow: var(--id-shadow);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.idemo-ig svg,
.idemo-ms svg,
.idemo-notif svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Barra de arriba del iPhone: hora a la izquierda, isla en el centro, señal / wifi / batería a la derecha */
.idemo-status {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 6px 20px 0 24px;
  color: #111;
}
.idemo-status-hora { font-size: 14px; font-weight: 700; letter-spacing: -0.2px; }
.idemo-isla {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 78px;
  height: 22px;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}
.idemo-status-iconos { display: inline-flex; align-items: center; gap: 5px; }
.idemo-status-iconos svg { width: auto; height: 11px; }
.idemo-status-iconos svg:last-child { height: 12px; width: 25px; }
.idemo-ico { display: inline-flex; width: 24px; height: 24px; flex: none; }
.idemo-ico-azul { color: #0a7cff; }
/* Íconos rellenos (los logos y los de las apps que no son de trazo) */
.idemo-c-col svg.idemo-fill,
.idemo-notif svg.idemo-fill { fill: currentColor; stroke: none; }

/* Pie de cada celular con el logo de la red */
.idemo-c-col figcaption { display: inline-flex; align-items: center; gap: 8px; }
.idemo-marca { display: inline-flex; width: 20px; height: 20px; flex: none; color: #e4405f; }

/* Círculos de perfil */
.idemo-av {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #efefef;
  color: #555;
  font-size: 12px;
  font-weight: 800;
}
.idemo-av-sm { width: 32px; height: 32px; }
.idemo-av-xs { width: 24px; height: 24px; font-size: 9px; }
.idemo-av-md { position: relative; width: 36px; height: 36px; }
/* Perfil de la marca con el aro de colores */
.idemo-av-ring {
  background: conic-gradient(#ffb347, #ff6516, #e1306c, #833ab4, #ffb347);
  padding: 2px;
}
.idemo-av-ring > span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  color: #17202a;
  font-weight: 900;
}

/* ----- Pantalla de comentarios ----- */
.idemo-ig { color: #111; }
.idemo-ig-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 14px 10px;
  border-bottom: 1px solid #efefef;
  font-size: 16px;
}
/* La rayita para arrastrar la hoja de comentarios */
.idemo-ig-grab {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: #d0d0d0;
  transform: translateX(-50%);
}
/* Fila de emojis de reacción, igual que arriba del teclado de la app */
.idemo-ig-emojis {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px 0;
  border-top: 1px solid #efefef;
  font-size: 20px;
  line-height: 1;
}
.idemo-ig-caption {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-bottom: 1px solid #efefef;
  font-size: 13.5px;
  line-height: 1.4;
}
.idemo-ig-list {
  flex: 1;
  display: grid;
  gap: 16px;
  align-content: start;
  margin: 0;
  padding: 14px;
  overflow-y: auto;
  list-style: none;
  scrollbar-width: none;
}
.idemo-ig-list::-webkit-scrollbar { display: none; }
.idemo-ig-comment {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 18px;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.4;
  animation: idemo-pop 260ms cubic-bezier(0.23, 1, 0.32, 1) both;
}
.idemo-ig-body small,
.idemo-ig-reply small { display: block; margin-top: 3px; color: #737373; font-size: 12px; }
.idemo-ig-like { width: 16px; height: 16px; margin-top: 6px; color: #8e8e8e; }
.idemo-ig-reply {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  animation: idemo-pop 260ms cubic-bezier(0.23, 1, 0.32, 1) both;
}
.idemo-ig-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 14px;
}
.idemo-ig-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border: 1px solid #dbdbdb;
  border-radius: 999px;
  font-size: 14px;
}
.idemo-ig-field::before { content: "Comentá…"; color: #8e8e8e; white-space: nowrap; }
.idemo-ig-field:has(.idemo-ig-typed:not(:empty))::before { content: none; }
.idemo-ig-typed { color: #111; white-space: nowrap; overflow: hidden; }
.idemo-ig-publish {
  color: #0095f6;
  font-size: 14px;
  font-weight: 700;
  opacity: 0.35;
  transition: opacity 160ms ease-out;
}
.idemo-ig-publish.is-on { opacity: 1; }

/* ----- Aviso que cae arriba del primer celular ----- */
.idemo-notif {
  position: absolute;
  top: 38px;
  left: 6px;
  right: 6px;
  z-index: 5;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(250, 250, 250, 0.97);
  box-shadow: 0 10px 30px rgba(23, 32, 42, 0.28);
  opacity: 0;
  transform: translateY(-140%) scale(0.98);
  transition: transform 200ms ease-in-out, opacity 160ms ease-out; /* se va rápido */
  pointer-events: none;
}
.idemo-notif.is-on {
  opacity: 1;
  transform: none;
  transition: transform 320ms cubic-bezier(0.23, 1, 0.32, 1), opacity 200ms ease-out;
}
.idemo-notif-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  padding: 6px;
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #fff;
}
.idemo-notif-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: #111; }
.idemo-notif-head small { color: #737373; font-size: 11px; }
.idemo-notif p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.3;
  color: #333;
}
.idemo-notif > div { min-width: 0; flex: 1; }

/* ----- Camino entre los dos celulares ----- */
.idemo-link {
  position: relative;
  align-self: stretch;
  display: grid;
  place-items: center;
  min-height: 96px;
}
.idemo-link::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  border-top: 2px dashed #d9cdc3;
}
.idemo-link-dot {
  position: absolute;
  left: 6px;
  top: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--id-orange);
  box-shadow: 0 0 12px var(--id-orange);
  opacity: 0;
}
.idemo-link.is-sending .idemo-link-dot { animation: idemo-viaja 700ms cubic-bezier(0.23, 1, 0.32, 1) both; }
.idemo-link .idemo-badge { position: absolute; top: calc(50% + 14px); white-space: nowrap; }

/* ----- Chat del mensaje privado ----- */
.idemo-ms { color: #050505; }
.idemo-ms-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 10px;
  border-bottom: 1px solid #eee;
}
.idemo-ms-title { flex: 1; min-width: 0; line-height: 1.2; }
.idemo-ms-title strong { display: block; font-size: 15px; }
.idemo-ms-title small { color: #65676b; font-size: 12px; }
.idemo-online {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #31a24c;
}
.idemo-ms-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 12px;
  overflow-y: auto;
  scrollbar-width: none;
}
.idemo-ms-chat::-webkit-scrollbar { display: none; }
.idemo-ms-pill {
  align-self: center;
  margin-bottom: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f0f2f5;
  color: #65676b;
  font-size: 12px;
}
.idemo-ms-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  animation: idemo-pop 260ms cubic-bezier(0.23, 1, 0.32, 1) both;
}
.idemo-ms-bubble {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 18px 18px 18px 6px;
  background: #f0f0f0;
  font-size: 14.5px;
  line-height: 1.35;
}
.idemo-ms-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.idemo-ms-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8a8d91;
  animation: idemo-dot 1s ease-in-out infinite;
}
.idemo-ms-typing span:nth-child(2) { animation-delay: 0.15s; }
.idemo-ms-typing span:nth-child(3) { animation-delay: 0.3s; }
.idemo-ms-quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-height: 42px;
  padding: 0 12px 8px;
}
.idemo-ms-chip {
  padding: 6px 12px;
  border: 1px solid #0a7cff;
  border-radius: 999px;
  color: #0a7cff;
  font-size: 13.5px;
  font-weight: 600;
  animation: idemo-pop 260ms cubic-bezier(0.23, 1, 0.32, 1) both;
}
.idemo-ms-input {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px 14px;
}
.idemo-ms-input .idemo-ico { width: 22px; height: 22px; }
.idemo-ms-field {
  flex: 1;
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f0f2f5;
  color: #65676b;
  font-size: 14px;
}

/* ---------- Animaciones ---------- */
@keyframes idemo-pop {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes idemo-dot {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}
@keyframes idemo-viaja {
  0% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(72px); }
}
@keyframes idemo-viaja-vertical {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(72px); }
}
@keyframes idemo-flash {
  0% { background: var(--id-orange-soft); }
  100% { background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .idemo *,
  .idemo *::before,
  .idemo *::after { animation: none !important; transition: none !important; }
  .idemo-chat { scroll-behavior: auto; }
  .idemo-typing span { opacity: 0.6; }
}

/* ---------- Celular y tablet ---------- */
@media (max-width: 920px) {
  .idemo-stage { grid-template-columns: 1fr; }
  .idemo-c-stage { grid-template-columns: minmax(0, 300px); }
  .idemo-link { min-height: 96px; width: 100%; }
  .idemo-link::before { left: 50%; right: auto; top: 6px; bottom: 6px; border-top: 0; border-left: 2px dashed #d9cdc3; }
  .idemo-link-dot { left: calc(50% - 6px); top: 4px; }
  .idemo-link.is-sending .idemo-link-dot { animation-name: idemo-viaja-vertical; }
  .idemo-link .idemo-badge { top: 50%; left: calc(50% + 14px); }
  .idemo-phone { max-width: 420px; width: 100%; margin: 0 auto; height: 540px; }
  .idemo-con-fondo { padding-block: 40px; }
}
@media (max-width: 620px) {
  /* Los rubros pasan a una fila que se desliza con el dedo */
  .idemo-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .idemo-chips::-webkit-scrollbar { display: none; }
  .idemo-chip { flex: none; }
  /* En celular, las capacidades quedan en 2 columnas y sin el texto chico, para que la ficha quede cerca del chat */
  .idemo-caps { gap: 8px; }
  .idemo-cap { padding: 10px; }
  .idemo-cap strong { font-size: 13px; }
  .idemo-cap small { display: none; }
  .idemo-cap-dot { width: 18px; height: 18px; }
  .idemo-phone { height: 500px; }
  .idemo-msg { font-size: 14px; }
  .idemo-con-fondo { padding: 24px 12px; }
  .idemo-con-fondo .idemo-chips { margin-inline: -12px; padding-inline: 12px; }
}

/* ---------- Título de "En tus redes": más grueso y en dos renglones ---------- */
.titulo-dos-lineas {
  font-weight: 900;
  letter-spacing: -0.5px;
}
.titulo-dos-lineas span { display: block; }

/* ---------- Demo de comentarios: loguito de la marca y fotos de las personas ---------- */
.idemo-av-ring > span { overflow: hidden; }
.idemo-av-ring > span img { width: 82%; height: 82%; object-fit: contain; }
/* Foto o retrato de una persona: llena todo el círculo */
.idemo-av-foto { padding: 0; overflow: hidden; background: none; }
.idemo-av-foto img,
.idemo-av-foto svg { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
/* En Messenger el perfil de la marca no lleva aro de colores */
.idemo-sin-aro { position: relative; background: #fff; padding: 0; border: 1px solid #e4e6eb; }
.idemo-sin-aro > span { background: #fff; }
/* Aviso de Instagram: el ícono de la app (degradé) con el logo en blanco */
.idemo-notif-ig {
  border: 0;
  padding: 7px;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  color: #fff;
}
