/* ======================================================================
   Vozenter360 Booking Widget — booking-widget.css
   Sidebar/Drawer desde la derecha · Colores de marca Vozenter
   ====================================================================== */

:root {
  --vzt-orange:       #FF6044;   /* Vozenter naranja - símbolo del logo */
  --vzt-navy:         #19445B;   /* Vozenter azul navy - texto del logo */
  --vzt-navy-dark:    #0f2d3d;
  --vzt-navy-light:   #e8f0f4;
  --vzt-orange-light: #fff2ef;

  /* Variables configurables desde el panel (se sobreescriben por JS) */
  --vzt-primary:      var(--vzt-orange);
  --vzt-primary-dark: #e04d33;
  --vzt-primary-light:#fff2ef;
  --vzt-btn-bg:       var(--vzt-orange);
  --vzt-btn-text:     #ffffff;
  --vzt-panel-bg:     #ffffff;
  --vzt-text:         #1a1a1a;
  --vzt-text-muted:   #637380;
  --vzt-border:       #e2e8ed;
  --vzt-slot-bg:      #f5f8fa;

  --vzt-radius:       14px;
  --vzt-shadow:       0 8px 40px rgba(25,68,91,.18);
  --vzt-transition:   0.26s cubic-bezier(.4,0,.2,1);
  --vzt-drawer-width: 420px;
}

/* ── Reset ───────────────────────────────────────────── */
.vzt-widget *, .vzt-widget *::before, .vzt-widget *::after {
  box-sizing: border-box;
}
.vzt-widget {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--vzt-text);
}

/* ── Error embed ─────────────────────────────────────── */
.vzt-error {
  background: #fff3e0;
  border-left: 4px solid var(--vzt-orange);
  border-radius: 8px;
  padding: 14px 18px;
  color: #7f3500;
  font-size: .9rem;
}

/* ── Trigger Button ──────────────────────────────────── */
.vzt-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--vzt-btn-bg);
  color: var(--vzt-btn-text);
  border: none;
  border-radius: 50px;
  padding: 13px 26px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(255,96,68,.4);
  transition: all var(--vzt-transition);
  font-family: inherit;
  letter-spacing: -.2px;
}
.vzt-trigger-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255,96,68,.5);
  filter: brightness(1.06);
}
.vzt-trigger-btn:active {
  transform: translateY(0);
}
.vzt-trigger-btn .vzt-trigger-icon {
  font-size: 1.2rem;
}

/* ── Overlay backdrop ────────────────────────────────── */
.vzt-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 45, 61, 0.55);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--vzt-transition), visibility var(--vzt-transition);
  backdrop-filter: blur(2px);
}
.vzt-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ── Drawer / Panel ──────────────────────────────────── */
.vzt-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--vzt-drawer-width);
  max-width: 100vw;
  background: var(--vzt-panel-bg);
  box-shadow: var(--vzt-shadow);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--vzt-transition);
  overflow: hidden;
}
.vzt-drawer.open {
  transform: translateX(0);
}

/* ── Drawer Header ───────────────────────────────────── */
.vzt-drawer-header {
  background: linear-gradient(135deg, var(--vzt-navy) 0%, var(--vzt-navy-dark) 100%);
  padding: 18px 20px 14px;
  flex-shrink: 0;
  position: relative;
}
.vzt-drawer-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--vzt-orange), transparent);
}
.vzt-drawer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.vzt-drawer-logo-dot {
  width: 28px;
  height: 28px;
  background: var(--vzt-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.vzt-drawer-brand {
  font-size: .75rem;
  font-weight: 700;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.vzt-drawer-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}
.vzt-drawer-subtitle {
  font-size: .8rem;
  color: rgba(255,255,255,.65);
  margin: 2px 0 0;
}
.vzt-drawer-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(255,255,255,.1);
  border: none;
  border-radius: 8px;
  color: rgba(255,255,255,.8);
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--vzt-transition);
  font-family: inherit;
}
.vzt-drawer-close:hover {
  background: rgba(255,255,255,.2);
  color: #fff;
}

/* ── Progress Steps ──────────────────────────────────── */
.vzt-steps {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: var(--vzt-navy-light);
  gap: 0;
  flex-shrink: 0;
  border-bottom: 1px solid var(--vzt-border);
}
.vzt-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  gap: 4px;
}
.vzt-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 60%;
  width: 80%;
  height: 2px;
  background: var(--vzt-border);
  z-index: 0;
}
.vzt-step.done:not(:last-child)::after { background: var(--vzt-primary); }
.vzt-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--vzt-border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  color: var(--vzt-text-muted);
  position: relative;
  z-index: 1;
  transition: all var(--vzt-transition);
}
.vzt-step.active .vzt-step-num,
.vzt-step.done .vzt-step-num {
  background: var(--vzt-primary);
  border-color: var(--vzt-primary);
  color: #fff;
}
.vzt-step-label {
  font-size: .6rem;
  font-weight: 600;
  color: var(--vzt-text-muted);
  text-align: center;
  line-height: 1.2;
}
.vzt-step.active .vzt-step-label {
  color: var(--vzt-navy);
  font-weight: 700;
}

/* ── Scroll body ─────────────────────────────────────── */
.vzt-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--vzt-border) transparent;
}
.vzt-drawer-body::-webkit-scrollbar { width: 5px; }
.vzt-drawer-body::-webkit-scrollbar-thumb {
  background: var(--vzt-border);
  border-radius: 4px;
}

/* ── Footer actions ──────────────────────────────────── */
.vzt-drawer-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--vzt-border);
  background: var(--vzt-panel-bg);
  flex-shrink: 0;
}
.vzt-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.vzt-btn {
  padding: 11px 22px;
  border-radius: 50px;
  border: 2px solid transparent;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--vzt-transition);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: inherit;
  white-space: nowrap;
}
.vzt-btn-primary {
  background: var(--vzt-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,96,68,.3);
}
.vzt-btn-primary:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,96,68,.4);
}
.vzt-btn-outline {
  background: transparent;
  border-color: var(--vzt-border);
  color: var(--vzt-text-muted);
}
.vzt-btn-outline:hover { border-color: var(--vzt-navy); color: var(--vzt-navy); }
.vzt-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── Option cards (centros, profesionales) ───────────── */
.vzt-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.vzt-option {
  border: 2px solid var(--vzt-border);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all var(--vzt-transition);
  background: var(--vzt-panel-bg);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  user-select: none;
}
.vzt-option:hover {
  border-color: var(--vzt-primary);
  box-shadow: 0 2px 12px rgba(255,96,68,.12);
  transform: translateX(-2px);
}
.vzt-option.selected {
  border-color: var(--vzt-primary);
  background: var(--vzt-primary-light);
}
.vzt-option-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--vzt-border);
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--vzt-transition);
  font-size: .7rem;
  color: transparent;
}
.vzt-option.selected .vzt-option-check {
  background: var(--vzt-primary);
  border-color: var(--vzt-primary);
  color: #fff;
}
.vzt-option-content { flex: 1; min-width: 0; }
.vzt-option-name {
  font-weight: 700;
  font-size: .95rem;
  color: var(--vzt-text);
}
.vzt-option-sub {
  font-size: .78rem;
  color: var(--vzt-text-muted);
  margin-top: 3px;
  line-height: 1.4;
}

/* Badge especial para "Me da igual" */
.vzt-option-any {
  border-style: dashed;
  background: var(--vzt-navy-light);
}
.vzt-option-any:hover {
  border-color: var(--vzt-navy);
  background: #dce9f0;
}
.vzt-option-any.selected {
  border-color: var(--vzt-navy);
  background: var(--vzt-navy-light);
}
.vzt-option-any.selected .vzt-option-check {
  background: var(--vzt-navy);
  border-color: var(--vzt-navy);
}
.vzt-option-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,96,68,.1);
}

/* ── Servicios grid (2 col) ──────────────────────────── */
.vzt-svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.vzt-svc-card {
  border: 2px solid var(--vzt-border);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all var(--vzt-transition);
  background: var(--vzt-panel-bg);
  position: relative;
  user-select: none;
}
.vzt-svc-card:hover {
  border-color: var(--vzt-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255,96,68,.12);
}
.vzt-svc-card.selected {
  border-color: var(--vzt-primary);
  background: var(--vzt-primary-light);
}
.vzt-svc-card.selected::after {
  content: '✓';
  position: absolute;
  top: 8px; right: 10px;
  background: var(--vzt-primary);
  color: #fff;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 700;
}
.vzt-svc-card-name {
  font-weight: 700;
  font-size: .85rem;
  color: var(--vzt-text);
  margin-bottom: 6px;
}
.vzt-svc-card-desc {
  font-size: .72rem;
  color: var(--vzt-text-muted);
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vzt-badge {
  display: inline-block;
  background: var(--vzt-navy-light);
  color: var(--vzt-navy);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: .68rem;
  font-weight: 700;
  margin-right: 4px;
}
.vzt-badge-orange {
  background: var(--vzt-orange-light);
  color: var(--vzt-orange);
}

/* ── Cart ────────────────────────────────────────────── */
.vzt-cart {
  background: var(--vzt-navy-light);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 12px;
  border: 1px solid rgba(25,68,91,.15);
}
.vzt-cart-title {
  font-size: .75rem;
  font-weight: 800;
  color: var(--vzt-navy);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.vzt-cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid rgba(25,68,91,.08);
  font-size: .83rem;
  gap: 8px;
}
.vzt-cart-item:last-child { border-bottom: none; }
.vzt-cart-remove {
  background: none;
  border: none;
  color: var(--vzt-orange);
  cursor: pointer;
  font-size: 1rem;
  padding: 0 2px;
  line-height: 1;
  font-family: inherit;
  flex-shrink: 0;
}

/* ── Availability / Calendar ─────────────────────────── */
.vzt-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 8px;
}
.vzt-cal-nav button {
  background: var(--vzt-navy-light);
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--vzt-navy);
  font-weight: 700;
  transition: background var(--vzt-transition);
  font-family: inherit;
  flex-shrink: 0;
}
.vzt-cal-nav button:hover { background: var(--vzt-navy); color: #fff; }
.vzt-cal-nav button:disabled { opacity: .35; cursor: not-allowed; }
.vzt-cal-date {
  font-weight: 700;
  font-size: .88rem;
  color: var(--vzt-text);
  text-align: center;
  flex: 1;
  line-height: 1.3;
}
.vzt-cal-date small { display: block; color: var(--vzt-text-muted); font-size: .7rem; font-weight: 500; }

.vzt-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}
.vzt-slot {
  padding: 8px 14px;
  border: 2px solid var(--vzt-border);
  border-radius: 8px;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 700;
  color: var(--vzt-text);
  background: var(--vzt-slot-bg);
  transition: all var(--vzt-transition);
  font-family: inherit;
}
.vzt-slot:hover {
  border-color: var(--vzt-primary);
  background: var(--vzt-primary-light);
}
.vzt-slot.selected {
  background: var(--vzt-primary);
  border-color: var(--vzt-primary);
  color: #fff;
}

/* ── Forms ───────────────────────────────────────────── */
.vzt-tabs {
  display: flex;
  border-bottom: 2px solid var(--vzt-border);
  margin-bottom: 16px;
}
.vzt-tab {
  padding: 9px 16px;
  cursor: pointer;
  border: none; background: none;
  font-size: .85rem;
  font-weight: 700;
  color: var(--vzt-text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--vzt-transition);
  font-family: inherit;
}
.vzt-tab.active { color: var(--vzt-navy); border-bottom-color: var(--vzt-orange); }

.vzt-form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.vzt-label { font-size: .8rem; font-weight: 700; color: var(--vzt-navy); }
.vzt-input {
  border: 2px solid var(--vzt-border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .9rem;
  color: var(--vzt-text);
  background: var(--vzt-panel-bg);
  transition: border-color var(--vzt-transition);
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}
.vzt-input:focus {
  outline: none;
  border-color: var(--vzt-primary);
  box-shadow: 0 0 0 3px rgba(255,96,68,.12);
}

/* ── Summary ─────────────────────────────────────────── */
.vzt-summary {
  background: var(--vzt-navy-light);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(25,68,91,.12);
}
.vzt-summary-row {
  display: flex;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(25,68,91,.07);
  font-size: .85rem;
}
.vzt-summary-row:last-child { border-bottom: none; }
.vzt-summary-label { font-weight: 700; min-width: 100px; color: var(--vzt-navy); }

/* ── States ──────────────────────────────────────────── */
.vzt-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 32px;
  color: var(--vzt-text-muted);
  justify-content: center;
  font-size: .9rem;
}
.vzt-spinner {
  width: 22px; height: 22px;
  border: 3px solid var(--vzt-border);
  border-top-color: var(--vzt-primary);
  border-radius: 50%;
  animation: vzt-spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes vzt-spin { to { transform: rotate(360deg); } }

.vzt-empty { text-align: center; padding: 28px; color: var(--vzt-text-muted); font-size: .88rem; }

.vzt-alert {
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .83rem;
  margin-bottom: 12px;
  line-height: 1.4;
}
.vzt-alert-error { background: #fff0ed; color: #a33; border: 1px solid #ffccb3; }
.vzt-alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.vzt-alert-info { background: var(--vzt-navy-light); color: var(--vzt-navy); border: 1px solid rgba(25,68,91,.2); }

.vzt-section-title {
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--vzt-text-muted);
  margin: 0 0 10px;
}

/* ── Confirm screen ──────────────────────────────────── */
.vzt-confirm-hero {
  text-align: center;
  padding: 28px 16px;
}
.vzt-confirm-icon { font-size: 3.5rem; margin-bottom: 14px; }
.vzt-confirm-title { font-size: 1.3rem; font-weight: 800; color: #2e7d32; margin-bottom: 6px; }
.vzt-confirm-sub { color: var(--vzt-text-muted); font-size: .88rem; margin-bottom: 20px; line-height: 1.6; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 480px) {
  :root { --vzt-drawer-width: 100vw; }
  .vzt-svc-grid { grid-template-columns: 1fr; }
  .vzt-actions { flex-direction: column-reverse; }
  .vzt-btn { width: 100%; justify-content: center; }
  .vzt-btn-outline { padding: 8px 16px; }
}
