/*! © 2026 UltrAgentes-IA — Todos los derechos reservados.
 *  VERTEX LAYER v15 — Agendador de citas · Modo Presentación
 *  Prohibida su copia, reproducción o distribución sin autorización escrita. */

/* ═══════════════ AGENDADOR DE CITAS ═══════════════ */
.book-section { position: relative; overflow: hidden; }
.book-shell {
  max-width: 1000px;
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  border: 1px solid rgba(99, 230, 255, .16);
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(11, 18, 34, .95), rgba(5, 9, 18, .97));
  box-shadow: 0 40px 110px rgba(0, 0, 0, .5);
}
@media (max-width: 860px) { .book-shell { grid-template-columns: 1fr; } }

/* Panel calendario */
.book-cal { padding: clamp(22px, 3.4vw, 32px); border-right: 1px solid rgba(255, 255, 255, .06); }
@media (max-width: 860px) { .book-cal { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .06); } }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.cal-title { font: 700 1.02rem/1 Inter, sans-serif; text-transform: capitalize; }
.cal-nav { display: flex; gap: 7px; }
.cal-nav button {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(125, 211, 252, .18);
  background: rgba(255, 255, 255, .04);
  color: #cfe8f5; cursor: pointer;
  display: grid; place-items: center;
  transition: border-color .25s, background .25s;
}
.cal-nav button:hover:not(:disabled) { border-color: rgba(99, 230, 255, .5); }
.cal-nav button:disabled { opacity: .3; cursor: not-allowed; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow span {
  text-align: center;
  font: 600 9.5px/1 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(147, 167, 196, .6);
  padding-bottom: 8px;
}
.cal-day {
  aspect-ratio: 1;
  border-radius: 11px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, .03);
  color: #cfe8f5;
  font: 600 .88rem/1 Inter, sans-serif;
  cursor: pointer;
  display: grid; place-items: center;
  position: relative;
  transition: background .2s, border-color .2s, transform .2s, color .2s;
}
.cal-day:hover:not(:disabled) { background: rgba(99, 230, 255, .1); border-color: rgba(99, 230, 255, .35); transform: translateY(-2px); }
.cal-day:disabled { opacity: .22; cursor: not-allowed; background: transparent; }
.cal-day.empty { background: none; border: 0; cursor: default; }
.cal-day.today::after {
  content: ""; position: absolute; bottom: 6px;
  width: 4px; height: 4px; border-radius: 50%; background: #fbbf24;
}
.cal-day.selected {
  background: linear-gradient(135deg, #0ea5c9, #3b82f6);
  border-color: transparent; color: #fff;
  box-shadow: 0 10px 26px rgba(59, 130, 246, .35);
}
.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 18px; font-size: .74rem; color: #93a7c4; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* Panel derecho: slots + form */
.book-side { padding: clamp(22px, 3.4vw, 32px); display: flex; flex-direction: column; gap: 18px; }
.book-side h3 { font-size: 1.02rem; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.book-side h3 i { color: #63e6ff; }
.book-empty {
  flex: 1; display: grid; place-items: center; text-align: center;
  color: #93a7c4; font-size: .9rem; line-height: 1.6;
  border: 1px dashed rgba(125, 211, 252, .16);
  border-radius: 16px; padding: 30px 20px;
}
.book-empty i { font-size: 1.9rem; display: block; margin-bottom: 12px; color: rgba(99, 230, 255, .35); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 9px; }
.slot {
  padding: 11px 6px;
  border-radius: 11px;
  border: 1px solid rgba(125, 211, 252, .18);
  background: rgba(255, 255, 255, .035);
  color: #cfe8f5;
  font: 600 .86rem/1 'JetBrains Mono', ui-monospace, monospace;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}
.slot:hover:not(:disabled) { border-color: rgba(99, 230, 255, .45); transform: translateY(-2px); }
.slot:disabled { opacity: .3; cursor: not-allowed; text-decoration: line-through; }
.slot[aria-pressed="true"] {
  background: linear-gradient(135deg, #0ea5c9, #3b82f6);
  border-color: transparent; color: #fff;
  box-shadow: 0 10px 26px rgba(59, 130, 246, .3);
}
.book-form { display: grid; gap: 11px; }
.book-form .bf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
@media (max-width: 520px) { .book-form .bf-row { grid-template-columns: 1fr; } }
.book-form input, .book-form select, .book-form textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 11px;
  border: 1px solid rgba(125, 211, 252, .18);
  background: rgba(3, 8, 15, .65);
  color: #eaf2fd;
  font: 500 .9rem/1.4 Inter, sans-serif;
  transition: border-color .22s;
}
.book-form input:focus, .book-form select:focus, .book-form textarea:focus { outline: none; border-color: #63e6ff; }
.book-form input::placeholder, .book-form textarea::placeholder { color: rgba(147, 167, 196, .5); }
.book-form textarea { min-height: 68px; resize: vertical; }
.book-summary {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(82, 229, 161, .28);
  background: rgba(82, 229, 161, .07);
  color: #b7f5d8; font: 600 .87rem/1.4 Inter, sans-serif;
}
.book-summary i { color: #52e5a1; font-size: 17px; }
.book-done { text-align: center; padding: 22px 8px; }
.book-done .bd-ring {
  width: 66px; height: 66px; margin: 0 auto 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 27px; color: #031018;
  background: linear-gradient(135deg, #52e5a1, #63e6ff);
  box-shadow: 0 0 34px rgba(82, 229, 161, .35);
}
.book-done h4 { font-size: 1.12rem; font-weight: 800; margin-bottom: 8px; }
.book-done p { color: #93a7c4; font-size: .89rem; line-height: 1.65; margin-bottom: 18px; }
.book-done-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════ MODO PRESENTACIÓN ═══════════════ */
.kiosk-bar {
  position: fixed;
  left: 50%; bottom: 22px;
  transform: translate(-50%, 150%);
  z-index: 9700;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px;
  border-radius: 99px;
  border: 1px solid rgba(139, 92, 246, .35);
  background: rgba(8, 12, 24, .94);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.kiosk-bar.show { transform: translate(-50%, 0); }
.kiosk-bar .kb-label {
  font: 700 10px/1 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .16em; text-transform: uppercase;
  color: #b79bff;
  display: inline-flex; align-items: center; gap: 7px;
}
.kiosk-bar .kb-label b {
  width: 7px; height: 7px; border-radius: 50%;
  background: #8b5cf6;
  animation: kbPulse 1.5s ease-in-out infinite;
}
@keyframes kbPulse { 50% { box-shadow: 0 0 0 6px rgba(139, 92, 246, .18); } }
.kiosk-bar .kb-step { font: 600 12px/1 Inter, sans-serif; color: #cfe8f5; min-width: 132px; }
.kiosk-bar button {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, .2);
  background: rgba(255, 255, 255, .05);
  color: #cfe8f5; cursor: pointer;
  display: grid; place-items: center;
  transition: border-color .22s, background .22s;
}
.kiosk-bar button:hover { border-color: rgba(99, 230, 255, .5); background: rgba(99, 230, 255, .1); }
.kiosk-progress {
  position: absolute; left: 0; bottom: 0;
  height: 2px; width: 0;
  background: linear-gradient(90deg, #63e6ff, #8b5cf6);
  border-radius: 0 0 99px 99px;
}
@media (max-width: 620px) { .kiosk-bar .kb-label { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .cal-day, .slot, .kiosk-bar { transition: none; }
  .kiosk-bar .kb-label b { animation: none; }
}
