/* Demo del hotel: teléfono + panel de recepción */
.demo-page { min-height: 100vh; }

.demo {
  max-width: 1240px;
  margin: 0 auto;
  padding: 112px 24px 64px;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 400px) 1fr;
  gap: 40px;
  align-items: start;
}

.demo__intro h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.05;
  margin: 12px 0 16px;
}
.demo__tips { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; }
.demo__tips li {
  font-size: .95rem;
  color: var(--muted);
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}
.demo__notice { font-size: .8rem; color: var(--muted); opacity: .8; }

/* Teléfono */
.phone {
  background: #0b141a;
  border-radius: 36px;
  border: 10px solid #1c2a33;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
  display: flex;
  flex-direction: column;
  height: min(720px, calc(100vh - 140px));
  min-height: 520px;
  overflow: hidden;
}
.phone__top {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 16px;
  background: #202c33;
  color: #e9edef;
}
.phone__top strong { display: block; font-size: .95rem; }
.phone__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #f0c27b);
  color: #0b141a; font-weight: 700; font-size: .85rem;
}
.phone__status { font-size: .75rem; color: #8696a0; }

.chat {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
  display: flex; flex-direction: column; gap: 6px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.025) 0 2px, transparent 3px) 0 0 / 28px 28px,
    #0b141a;
}
.bubble {
  max-width: 82%;
  padding: 7px 10px 18px;
  border-radius: 10px;
  position: relative;
  font-size: .9rem;
  line-height: 1.4;
  color: #e9edef;
  animation: pop .18s ease-out;
}
.bubble p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.bubble--in { background: #202c33; align-self: flex-start; border-top-left-radius: 2px; }
.bubble--out { background: #005c4b; align-self: flex-end; border-top-right-radius: 2px; }
.bubble__time { position: absolute; right: 8px; bottom: 3px; font-size: .65rem; color: #8696a0; }
.bubble--out .bubble__time { color: #a6d9cd; }
.bubble--typing { padding: 12px 14px; display: flex; gap: 4px; }
.bubble--typing span {
  width: 7px; height: 7px; border-radius: 50%; background: #8696a0;
  animation: blink 1.2s infinite;
}
.bubble--typing span:nth-child(2) { animation-delay: .2s; }
.bubble--typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes pop { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }

.chips {
  display: flex; gap: 6px; overflow-x: auto;
  padding: 8px 10px;
  background: #0b141a;
  scrollbar-width: none;
}
.chips button {
  flex: none;
  border: 1px solid #2a3942;
  background: #111b21;
  color: #53bdeb;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit; font-size: .78rem;
  cursor: pointer;
}
.chips button:hover { background: #202c33; }

.composer { display: flex; gap: 8px; padding: 10px; background: #202c33; }
.composer input {
  flex: 1; min-width: 0;
  border: 0; border-radius: 999px;
  padding: 11px 16px;
  background: #2a3942; color: #e9edef;
  font: inherit; font-size: .9rem;
}
.composer input:focus { outline: 2px solid #00a884; }
.composer button {
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: #00a884; color: #fff; font-size: 1rem; cursor: pointer;
}

/* Panel de recepción */
.panel h2 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; margin: 8px 0; }
.panel__hint { color: var(--muted); font-size: .92rem; }
.panel__items { display: grid; gap: 12px; margin: 20px 0; }
.panel__empty {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 20px;
  color: var(--muted);
  font-size: .9rem;
}
.ticket {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid #00a884;
  border-radius: 14px;
  padding: 16px;
  animation: pop .25s ease-out;
}
.ticket--derivar { border-left-color: var(--accent); }
.ticket strong { display: block; }
.ticket__time { font-size: .75rem; color: var(--muted); }
.ticket dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 12px 0 0; font-size: .88rem; }
.ticket dt { color: var(--muted); }
.ticket dd { margin: 0; }

@media (max-width: 1080px) {
  .demo { grid-template-columns: 1fr minmax(320px, 400px); }
  .panel { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .demo { grid-template-columns: 1fr; padding: 96px 16px 48px; gap: 28px; }
  .phone { height: 600px; border-width: 6px; border-radius: 28px; }
}
