/* Contact Center 24/7 · Dulce Pastel */

.top__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 50px; align-items: center; }
.clock { position: relative; z-index: 1; display: grid; gap: 6px; padding: 30px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 12px; background: rgba(255, 255, 255, .04); }
.clock strong { font-family: var(--serif); font-weight: 500; font-size: 4rem; line-height: 1; color: var(--white); }
.clock span:last-child { font-size: .92rem; }
.clock__dot { width: 12px; height: 12px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

.cases { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.cases button { padding: 10px 20px; border: 1px solid var(--line); border-radius: 30px; background: var(--white); color: var(--ink); cursor: pointer; transition: .3s var(--ease); }
.cases button.is-active { background: var(--forest); border-color: var(--forest); color: var(--white); }

.demo { display: grid; grid-template-columns: auto 1fr; gap: 50px; align-items: start; }
.chat-phone { width: 330px; background: #efe7dc; }

/* WhatsApp simulado */
.wa { position: absolute; inset: 0; display: flex; flex-direction: column; font-family: system-ui, -apple-system, sans-serif; }
.wa__head { display: flex; align-items: center; gap: 10px; padding: 38px 14px 12px; background: #075e54; color: #fff; }
.wa__head img { width: 36px; height: 36px; border-radius: 50%; }
.wa__head strong { display: block; font-weight: 500; font-size: .9rem; }
.wa__head span { font-size: .72rem; opacity: .85; }
.wa__body {
  flex: 1; overflow-y: auto; padding: 14px 10px 18px;
  display: flex; flex-direction: column; gap: 6px;
  background: #efe7dc radial-gradient(rgba(106, 127, 84, .08) 1px, transparent 1px) 0 0 / 14px 14px;
  scroll-behavior: smooth;
}
.msg { max-width: 82%; padding: 7px 10px 18px; border-radius: 8px; font-size: .84rem; line-height: 1.4; color: #111; position: relative; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); animation: pop .3s var(--ease); white-space: pre-line; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.msg time { position: absolute; right: 8px; bottom: 3px; font-size: .62rem; color: #667; }
.msg--in { align-self: flex-start; background: #fff; border-top-left-radius: 0; }
.msg--out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 0; }
.msg--out time::after { content: " ✓✓"; color: #53bdeb; }
.msg--sys { align-self: center; max-width: 90%; padding: 6px 12px; background: #fff7d6; font-size: .74rem; text-align: center; box-shadow: none; }
.msg--pay { background: #fff; border: 1px solid #25d366; }
.msg--pay b { display: block; color: #075e54; }
.msg--pay span { display: inline-block; margin-top: 6px; padding: 6px 12px; border-radius: 20px; background: #25d366; color: #fff; font-size: .78rem; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; border-radius: 8px; background: #fff; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #999; animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-4px); opacity: .5; } }

/* Lado derecho: pasos y ficha */
.side { display: grid; gap: 22px; }
.flow { display: grid; gap: 8px; }
.flow div { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 8px; background: var(--white); border: 1px solid var(--line); color: var(--ink-soft); transition: .4s var(--ease); }
.flow b { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--sand); font-family: var(--serif); font-weight: 500; color: var(--ink); transition: .4s var(--ease); }
.flow div.is-done { border-color: var(--green); color: var(--ink); }
.flow div.is-done b { background: var(--green); color: var(--white); }
.flow div.is-now { box-shadow: 0 0 0 3px var(--green-tint); }

.ticket { padding: 28px; border-radius: 10px; background: var(--forest); color: rgba(255, 255, 255, .85); animation: pop .5s var(--ease); }
.ticket .eyebrow { color: var(--rose); }
.ticket h3 { color: var(--white); font-size: 1.8rem; }
.ticket dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 16px; font-size: .95rem; }
.ticket dt { font-family: var(--caps); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green-soft); padding-top: 4px; }
.ticket dd { margin: 0; color: var(--white); }
.ticket__paid { padding: 10px 14px; border-radius: 6px; background: rgba(74, 222, 128, .15); color: #bbf7d0; }
.ticket__todo { margin: 0; font-size: .88rem; }
.side .btn { justify-self: start; }

.channels { display: flex; flex-wrap: wrap; gap: 12px; }
.channels span { padding: 14px 22px; border-radius: 40px; background: var(--white); font-size: 1rem; color: var(--ink); }

@media (max-width: 960px) {
  .top__grid, .demo { grid-template-columns: 1fr; }
  .chat-phone { justify-self: center; }
}
@media (max-width: 640px) {
  .clock strong { font-size: 3rem; }
  .chat-phone { width: 100%; max-width: 330px; }
}
