/* ==========================================================
   Historia del hero (script.js):
   conversación → la cita vuela a "Agenda" → citas de hoy →
   tarjeta de la cita → no asistió → reagenda → asistió
   ========================================================== */

/* ---------- Dash: menú ---------- */
.d-tab { transition: background-color 0.35s ease, color 0.35s ease; }
.d-tab img { transition: filter 0.35s ease; }
.d-tab.is-active img { filter: brightness(0) invert(1); } /* ícono en blanco sobre naranja */
.d-tab.is-pulse { animation: d-tab-pulse 0.6s ease; }
@keyframes d-tab-pulse {
  0% { box-shadow: 0 0 0 0 rgba(229, 116, 17, 0.55); }
  100% { box-shadow: 0 0 0 14px rgba(229, 116, 17, 0); }
}

/* ---------- Dash: cambio de vista (Resumen ↔ Agenda / Marketing / Remarketing) ---------- */
/* script.js pone data-view en .dash; sin él se ve el Resumen */
.d-main { position: relative; }
.d-main > .d-panel,
.d-main > .d-row { transition: opacity 0.5s ease; }
.d-view {
  position: absolute;
  top: 82px; /* debajo del header del dash */
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
}
.dash[data-view] .d-main > .d-panel:not(.d-view),
.dash[data-view] .d-main > .d-row { opacity: 0; }
.dash[data-view="agenda"] .d-agenda,
.dash[data-view="marketing"] .d-mkt,
.dash[data-view="remarketing"] .d-rmk { opacity: 1; }

/* ---------- Dash: vista "Marketing" ---------- */
.d-mkt__body { display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.d-funnel { display: flex; gap: 12px; }
.d-funnel__card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid var(--grey-200);
  border-radius: 12px;
  background: var(--white);
}
.d-funnel__card.is-key { background: #fef7ec; border-color: #f9d28e; }
.d-funnel__head { display: flex; align-items: center; gap: 10px; }
.d-funnel__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--bd);
  border-radius: 8px;
  background: var(--bg);
}
.d-funnel__label { flex: 1; font-weight: 500; font-size: 18px; line-height: 24px; color: #404040; }
.d-funnel__sub { font-size: 15px; line-height: 20px; color: #737373; }
.d-funnel__num { border-radius: 8px; }
.d-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 64px;
  background: var(--white);
  font-weight: 500;
  font-size: 13px;
  color: var(--primary-500);
}
.d-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-500); animation: d-blink 1s ease-in-out infinite; }

/* Contador "Asistieron" parpadeando mientras suma */
.d-funnel__card.is-counting { animation: d-card-blink 0.9s ease-in-out infinite; }
.d-funnel__card.is-counting .d-funnel__num { color: var(--primary-500); }
@keyframes d-card-blink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229, 116, 17, 0); }
  50% { box-shadow: 0 0 0 6px rgba(229, 116, 17, 0.28); }
}
@keyframes d-blink { 50% { opacity: 0.2; } }

.d-events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.d-event {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--grey-200);
  border-radius: 12px;
  background: var(--white);
  opacity: 0;
  translate: 0 12px;
  transition: opacity 0.45s ease, translate 0.45s ease;
}
.d-event.is-on { opacity: 1; translate: 0 0; }
.d-event__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #e0f2fe;
}
.d-event[data-event="opt"] .d-event__icon { background: #f0fdf4; }
.d-event__icon img { width: 20px; height: auto; }
.d-event__text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.d-event__title { font-weight: 500; font-size: 18px; line-height: 24px; color: var(--grey-950); }
.d-event__ok {
  padding: 4px 12px;
  border-radius: 64px;
  background: #f0fdf4;
  color: #16a34a;
  font-weight: 500;
  font-size: 14px;
}

/* ---------- Dash: vista "Remarketing" ---------- */
.d-rmk__body { display: flex; gap: 12px; padding: 20px; }
.d-rmk__card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px;
  border: 1px solid #f5f5f5;
  border-top: 0;
  border-radius: 12px;
  background: rgba(250, 250, 250, 0.6);
  box-shadow: inset 0 3px 0 var(--c);
  transition: background-color 0.4s ease;
}
.d-rmk__card.is-sending { background: var(--white); box-shadow: inset 0 3px 0 var(--c), 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); }
.d-rmk__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--bd);
  border-radius: 8px;
  background: var(--bg);
}
.d-rmk__label { min-height: 48px; font-weight: 500; font-size: 17px; line-height: 24px; color: #404040; }
.d-rmk__sub { font-size: 14px; line-height: 19px; color: #737373; }

.d-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 64px;
  font-weight: 500;
  font-size: 14px;
  line-height: 18px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.d-tag[data-state="activa"] { background: #f5f5f5; color: #525252; }
.d-tag[data-state="enviando"] { background: #fef7ec; color: var(--primary-500); }
.d-tag[data-state="enviando"]::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: d-blink 0.8s ease-in-out infinite;
}
.d-tag[data-state="enviado"] { background: #f0fdf4; color: #16a34a; }

/* Mensaje que sale de la etiqueta hacia el celular (lo crea script.js) */
.story-msg {
  position: absolute;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 12px 12px 12px 4px;
  background: var(--primary-500);
  color: var(--white);
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(20, 21, 26, 0.2);
}

/* ---------- Dash: vista "Citas de hoy" (medidas en px del canvas 1440) ---------- */
.d-agenda__body { display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.d-agenda__summary { display: flex; gap: 8px; }
.d-chip {
  padding: 4px 12px;
  border: 1px solid var(--grey-200);
  border-radius: 64px;
  font-size: 14px;
  line-height: 20px;
  color: #404040;
}
.d-chip--new { border-color: #f9d28e; background: #fef7ec; color: var(--primary-500); }

.d-agenda__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.d-appt {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border: 1px solid var(--grey-200);
  border-radius: 12px;
  background: var(--white);
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.d-appt[data-appt="cliente"] { background: #fef7ec; border-color: #f9d28e; }
.d-appt.is-open { box-shadow: 0 0 0 3px rgba(229, 116, 17, 0.35); }
.d-appt__time { width: 72px; display: flex; flex-direction: column; }
.d-appt__time .d-c1 { color: #737373; }
.d-appt__bar { width: 3px; align-self: stretch; border-radius: 3px; background: var(--grey-200); }
.d-appt[data-appt="cliente"] .d-appt__bar { background: var(--primary-500); }
.d-appt__avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 14%, white);
  color: var(--c);
  font-weight: 600;
  font-size: 15px;
}
/* Ancho fijo para que el estado quede junto al nombre y alineado entre filas */
.d-appt__who { flex: none; width: 220px; display: flex; flex-direction: column; gap: 2px; }
.d-appt__who .d-c1 { color: #737373; }

/* Estados (dash y tarjeta) */
.d-status,
.appt__status {
  padding: 4px 12px;
  border-radius: 64px;
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.d-status { font-size: 14px; }
[data-status="confirmada"], .d-status--confirmada,
[data-status="asistio"], .d-status--asistio { background: #f0fdf4; color: #16a34a; }
[data-status="nueva"], .d-status--nueva { background: #fef7ec; color: var(--primary-500); }
[data-status="no-asistio"], .d-status--no-asistio { background: #fef2f2; color: #dc2626; }
[data-status="reagendada"], .d-status--reagendada { background: #e0f2fe; color: #0284c7; }

/* Destello cuando cambia un dato */
.is-flash { animation: story-flash 0.9s ease; }
@keyframes story-flash {
  0%, 100% { background-color: transparent; }
  30% { background-color: rgba(229, 116, 17, 0.22); }
}

/* ---------- El celular se va cuando la cita vuela a la agenda ---------- */
.hero__showcase.is-phone-out .hero__phone {
  opacity: 0;
  translate: -48px 0;
  transition-delay: 0s;
  transition-duration: 0.5s;
}

/* ---------- Tarjeta de la cita (donde estaba el celular) ---------- */
.hero__appt {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 72px;
  width: 300px;
  scale: 0.9; /* 10% más chica (incluye sus burbujas) */
  transform-origin: top left;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}
.hero__showcase.is-appt .hero__appt {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0s;
}

.appt {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 24px 50px rgba(20, 21, 26, 0.2);
  transform-origin: top left;
}
.appt__head { display: flex; align-items: center; gap: 10px; }
.appt__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fef7ec;
  color: var(--primary-500);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 14px;
}
.appt__who { flex: 1; min-width: 0; }
.appt__who p { margin: 0; }
.appt__name { font-family: var(--font-primary); font-weight: 600; font-size: 15px; line-height: 20px; }
.appt__sub { font-size: 12px; line-height: 16px; color: #737373; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.appt__rows {
  margin: 0;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-block: 1px solid var(--grey-200);
}
.appt__rows div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; line-height: 18px; }
.appt__rows dt { color: #737373; }
.appt__rows dd { margin: 0; font-weight: 500; color: var(--grey-950); text-align: right; }
.appt__time { padding: 0 4px; margin-right: -4px !important; border-radius: 4px; }

.appt__actions { display: flex; gap: 8px; }
.appt__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--grey-200);
  border-radius: 8px;
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease, transform 0.15s ease;
}
.appt__btn--yes { color: #16a34a; border-color: #bbf7d0; }
.appt__btn--no { color: #dc2626; border-color: #fecaca; }
.appt__btn.is-pressed { transform: scale(0.94); }
.appt__btn--yes.is-chosen { background: #16a34a; border-color: #16a34a; color: var(--white); }
.appt__btn--no.is-chosen { background: #dc2626; border-color: #dc2626; color: var(--white); }
.appt.is-locked .appt__btn:not(.is-chosen) { opacity: 0.4; }

/* Burbujas debajo de la tarjeta */
.appt__chat { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.appt__chat .capta-message-row--in { padding-right: 40px; }
.appt__chat .capta-message-row--out { padding-left: 24px; }
.appt__chat .capta-bubble { max-width: 100%; font-size: 12px; line-height: 1.45; }
.capta-message-row.is-leaving { transition: opacity 0.4s ease; opacity: 0; }

/* ---------- Cursor ---------- */
.hero__cursor {
  position: absolute;
  z-index: 7;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}
.hero__cursor svg { display: block; }

/* ---------- Burbuja que vuela (clon creado por script.js) ---------- */
.story-fly {
  position: absolute;
  z-index: 8;
  margin: 0;
  pointer-events: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .hero__appt { left: 40px; width: 290px; }
}
@media (max-width: 900px) {
  .hero__appt { left: 16px; width: min(300px, calc(100% - 32px)); }
}
@media (max-width: 600px) {
  .hero__appt { left: 12px; width: min(280px, calc(100% - 24px)); }
  .appt { padding: 14px; gap: 12px; }
}

/* ---------- Dash: vista "Análisis" ---------- */
.dash[data-view="analisis"] .d-ana { opacity: 1; }
.d-ana__body { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 20px; }
/* El cierre aparece encima de la línea de contexto */
.d-ana__context {
  padding: 12px 16px;
  border-radius: 10px;
  background: #fafafa;
  font-size: 17px;
  line-height: 24px;
  color: #404040;
}
.d-ana__context strong { color: var(--grey-950); }
.d-ana__cols { display: flex; gap: 16px; }
.d-ana__bars { flex: 1.15; display: flex; flex-direction: column; gap: 14px; }
.d-ana__bars ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.d-ana__subtitle { font-weight: 500; font-size: 15px; color: #737373; text-transform: uppercase; letter-spacing: 0.06em; }

.d-bar__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.d-bar__label { font-weight: 500; font-size: 18px; line-height: 24px; color: var(--grey-950); }
.d-bar__val { font-size: 15px; color: #525252; white-space: nowrap; opacity: 0; transition: opacity 0.4s ease 0.6s; }
.d-bar__val strong { font-size: 20px; color: var(--grey-950); }
.d-bar__track { height: 14px; border-radius: 64px; background: #f5f5f5; overflow: hidden; }
.d-bar__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f49c2b, var(--primary-500));
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.d-bar.is-on .d-bar__fill { width: var(--w); }
.d-bar.is-on .d-bar__val { opacity: 1; }

.d-ana__bot {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid #f9d28e;
  border-radius: 12px;
  background: #fffaf3;
}
.d-ana__botHead { display: flex; align-items: center; gap: 10px; }
.d-ana__botAvatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 0 0 1px #f9d28e;
}
.d-ana__botAvatar img { width: 28px; height: 28px; }
.d-ana__botName { font-family: var(--font-primary); font-weight: 600; font-size: 17px; }
.d-ana__botStatus { font-size: 14px; color: var(--primary-500); }
.d-ana__botStatus.is-done { color: #16a34a; }
.d-dots { display: inline-flex; gap: 3px; margin-left: 4px; }
.d-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: d-blink 0.9s ease-in-out infinite; }
.d-dots i:nth-child(2) { animation-delay: 0.15s; }
.d-dots i:nth-child(3) { animation-delay: 0.3s; }

.d-ana__recs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.d-tip {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(20, 21, 26, 0.06);
  opacity: 0;
  translate: 0 10px;
  transition: opacity 0.45s ease, translate 0.45s ease;
}
.d-tip.is-on { opacity: 1; translate: 0 0; }
.d-tip__tag { font-weight: 500; font-size: 12px; color: var(--primary-500); }
.d-tip__title { font-weight: 600; font-size: 15px; line-height: 20px; }
.d-tip__text { font-size: 13px; line-height: 18px; color: #525252; }

.d-ana__close {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 20px;
  right: 20px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--grey-950);
  color: var(--white);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 20px;
  text-align: center;
  opacity: 0;
  scale: 0.96;
  transition: opacity 0.5s ease, scale 0.5s ease;
}
.d-ana__close strong { color: #f49c2b; }
.d-ana__close.is-on { opacity: 1; scale: 1; }

/* ---------- Hero original: conversación de agendamiento (solo burbujas) ---------- */
.hero__chat {
  position: absolute;
  z-index: 4;
  top: 48px;
  left: 3%;
  width: 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-secondary);
  pointer-events: none;
}
.hero__chat { transition: opacity 0.5s ease; }
.hero__chat.is-leaving { opacity: 0; }

.chat-row { display: flex; align-items: flex-end; gap: 8px; animation: capta-message-in 460ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.chat-row--in { padding-right: 48px; }
.chat-row--out { flex-direction: column; align-items: flex-end; gap: 6px; padding-left: 40px; }

.chat-bubble {
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 10px 28px rgba(19, 23, 35, 0.22), 0 2px 6px rgba(19, 23, 35, 0.08);
}
.chat-row--in .chat-bubble { background: var(--white); color: var(--grey-950); border-radius: 4px 16px 16px; }
.chat-row--out .chat-bubble { background: var(--primary-500); color: var(--white); border-radius: 16px 4px 16px 16px; }
.chat-time { display: block; margin-top: 2px; font-size: 10px; opacity: 0.65; text-align: right; }

/* Firma de CAPTA: cuadro negro con el logo y "IA" en blanco */
.chat-ai {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 6px;
  border-radius: 8px;
  background: #000;
  color: var(--white);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.chat-ai img { width: 18px; height: 18px; }

.chat-row .capta-typing { color: var(--white); }

/* ---------- Hero original: composición fija sobre el dash ---------- */
.hero__float {
  position: absolute;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-secondary);
  pointer-events: none;
  animation: float-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero__float--left { top: 40px; left: 2%; width: 320px; animation-delay: 0.2s; }
.hero__float--right { top: 16px; right: 2%; width: 290px; animation-delay: 0.5s; }
.hero__float--right .chat-row--out { padding-left: 24px; }
.hero__float--bottom {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  bottom: 24px;
  left: 50%;
  translate: -50% 0;
  max-width: 600px;
  padding: 12px 18px 12px 12px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(20, 21, 26, 0.22);
  font-size: 15px;
  line-height: 1.4;
  color: #404040;
  animation-name: float-in-bottom;
  animation-delay: 0.8s;
}
.hero__float--bottom p { margin: 0; }
.hero__float--bottom strong { color: var(--grey-950); }
.hero__tip-label { display: block; font-weight: 600; font-size: 12px; color: var(--primary-500); text-transform: uppercase; letter-spacing: 0.05em; }
.hero__float-chat { display: flex; flex-direction: column; gap: 8px; }
.hero__float .chat-row.is-leaving { animation: none; transition: opacity 0.4s ease; opacity: 0; }
.hero__float--left { transition: opacity 0.5s ease; }
.hero__float--left.is-leaving { opacity: 0; }
.hero__float--bottom p { transition: opacity 0.4s ease; min-width: 330px; }
.hero__float--bottom p.is-hidden { opacity: 0; }
.hero__float--bottom .d-dots { color: var(--primary-500); }
.hero__float .chat-ai { align-self: flex-end; }
.hero__float--bottom .chat-ai { align-self: center; flex: none; }

@keyframes float-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes float-in-bottom { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Tablet y móvil: se apilan debajo del texto en lugar de flotar sobre el dash */
@media (max-width: 900px) {
  .hero__float { display: none; }
}

/* Tarjeta flotante: el nombre siempre en una línea */
.hero__float .appt__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__float .appt__status { flex: none; }

/* Cursor de la tarjeta flotante (lo mueve script.js) */
.float-cursor {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.float-cursor svg { display: block; }

/* ---------- Hero original en tablet y móvil: dash más chico + animaciones alrededor ---------- */
@media (max-width: 900px) {
  .hero--centered .hero__showcase { padding: 56px 0 0; }
  .hero--centered .hero__visual { width: 81.4%; margin: 0 auto; } /* 74% + 10% */

  .hero--centered .hero__float { display: flex; }
  /* Conversación: arriba a la izquierda */
  /* Conversación: columna izquierda (~45% del ancho) */
  .hero--centered .hero__float--left { top: 14px; left: 0; width: 300px; scale: 0.52; transform-origin: top left; }
  /* Tarjeta de la cita: a la derecha, encima del dash */
  /* Tarjeta: columna derecha (~40% del ancho), sin cruzarse con la conversación */
  .hero--centered .hero__float--right { top: 14px; right: 0; width: 290px; scale: 0.5; transform-origin: top right; }
  /* Mejora sugerida: abajo al centro */
  .hero--centered .hero__float--bottom {
    bottom: 6px; /* dentro del dash, en su parte de abajo */
    left: 50%;
    width: 520px;
    max-width: none;
    scale: 0.58;
    transform-origin: bottom center;
  }
  .hero--centered .hero__float--bottom p { min-width: 0; }
}

/* Mejora sugerida en crema (Figma primary/100) para que se distinga sobre el dash blanco */
.hero__float--bottom {
  background: #fceac9;
  border: 1px solid #f9d28e;
}

/* Al terminar su ciclo, cada animación flotante desaparece; al quitar .is-out
   vuelve a reproducir su entrada (float-in) y se reinicia. */
.hero__float { transition: opacity 0.5s ease; }
.hero__float.is-out { animation: none; opacity: 0; }

/* ---------- Profundidad: las animaciones flotan por enfrente del dash (sutil) ---------- */
/* 1) Sombras en capas: cercana + media + lejana y difusa */
.hero__float .chat-bubble,
.hero__float .appt,
.hero__float--bottom {
  box-shadow:
    0 1px 3px rgba(20, 21, 26, 0.06),
    0 10px 22px rgba(20, 21, 26, 0.1),
    0 30px 56px rgba(20, 21, 26, 0.16);
}

/* 2) Flotación suave: suben y bajan ~5px, cada una a su ritmo.
   La entrada pasa a ser solo de opacidad para que no choque con la flotación. */
@keyframes float-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes float-in-bottom { from { opacity: 0; } to { opacity: 1; } }
@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.hero__float--left { animation: float-in 0.7s ease 0.2s both, float-bob 5.2s ease-in-out infinite; }
.hero__float--right { animation: float-in 0.7s ease 0.5s both, float-bob 6s ease-in-out 0.8s infinite; }
.hero__float--bottom { animation: float-in 0.7s ease 0.8s both, float-bob 5.6s ease-in-out 1.6s infinite; }

/* 3) Dash un poco atenuado para que quede como fondo */
.hero__showcase[data-mode="collage"] .hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(255, 247, 236, 0.18);
  pointer-events: none;
}
