/* ═══ booking.css — extraído de booking.html v13 ═══ */


  /* ══════════════════════════════════════════════════
     BOOKING PAGE — estilos públicos
  ══════════════════════════════════════════════════ */
  *, *::before, *::after { box-sizing: border-box; }
  body { background: var(--navy-dark); min-height: 100vh; font-family: var(--font-body); }

  .booking-layout {
    max-width: 820px;
    margin: 0 auto;
    padding: 28px 16px 72px;
  }

  /* ─ Business header ─ */
  .biz-header {
    background: var(--navy-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px 28px;
    display: flex; gap: 18px; align-items: center;
    margin-bottom: 20px;
    position: relative; overflow: hidden;
  }
  .biz-header::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #2d7dd2, #00c9a7);
  }
  .biz-logo {
    width: 64px; height: 64px; border-radius: var(--radius-md);
    background: linear-gradient(135deg, #1a3a5c, #2d7dd2);
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(45,125,210,.3);
  }
  .biz-info h1 { font-size: 22px; font-weight: 800; color: var(--white); margin-bottom: 5px; }
  .biz-meta { display: flex; gap: 12px; flex-wrap: wrap; }
  .biz-meta span { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
  .biz-stars { color: #f7b731; font-size: 13px; margin-left: 2px; }
  .biz-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
  .biz-btn {
    padding: 8px 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: transparent;
    color: var(--text); font-size: 12px; cursor: pointer;
    display: flex; align-items: center; gap: 5px;
    transition: all .2s; text-decoration: none;
  }
  .biz-btn:hover { border-color: var(--blue); color: var(--blue-light); }

  /* ─ Steps ─ */
  .booking-steps {
    display: flex; align-items: center;
    margin-bottom: 20px;
    background: var(--navy-card); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 14px 20px; gap: 0;
  }
  .bstep { flex: 1; display: flex; align-items: center; gap: 8px; }
  .bstep-num {
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
    border: 2px solid var(--border); color: var(--muted);
    flex-shrink: 0; transition: all .3s;
  }
  .bstep-num.active { background: var(--blue); border-color: var(--blue); color: #fff; }
  .bstep-num.done   { background: #00c9a7; border-color: #00c9a7; color: #fff; font-size: 11px; }
  .bstep-label { font-size: 12px; color: var(--muted); font-weight: 500; }
  .bstep-label.active { color: var(--white); font-weight: 600; }
  .bstep-line { flex: 1; height: 2px; background: var(--border); margin: 0 8px; transition: background .3s; }
  .bstep-line.done { background: #00c9a7; }

  /* ─ Step panels ─ */
  .step-panel {
    display:    none;
    opacity:    0;
    transform:  translateX(24px);
    transition: opacity .25s ease, transform .25s ease;
  }
  .step-panel.active {
    display:    block;
    animation:  _bookingSlideIn .28s cubic-bezier(.4,0,.2,1) forwards;
  }
  .step-panel.leaving {
    animation:  _bookingSlideOut .2s ease forwards;
  }
  @keyframes _bookingSlideIn {
    from { opacity:0; transform: translateX(20px); }
    to   { opacity:1; transform: translateX(0);    }
  }
  @keyframes _bookingSlideOut {
    from { opacity:1; transform: translateX(0);     }
    to   { opacity:0; transform: translateX(-20px); }
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
  }

  .panel-title { font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 14px; }

  /* ─ Service cards ─ */
  .services-grid { display: flex; flex-direction: column; gap: 8px; }
  .service-card {
    background: var(--navy-card); border: 2px solid var(--border);
    border-radius: var(--radius-md); padding: 14px 18px;
    display: flex; align-items: center; gap: 14px;
    cursor: pointer; transition: all .2s;
  }
  .service-card:hover    { border-color: rgba(45,125,210,.4); background: rgba(45,125,210,.05); transform: translateX(2px); }
  .service-card.selected { border-color: var(--blue); background: rgba(45,125,210,.1); }
  .svc-icon { font-size: 26px; width: 44px; height: 44px; background: rgba(45,125,210,.08); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .svc-info { flex: 1; }
  .svc-name { font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 2px; }
  .svc-meta { font-size: 11px; color: var(--muted); }
  .svc-right { text-align: right; }
  .svc-price { font-size: 15px; font-weight: 700; color: #4a9ae8; display: block; }
  .svc-dur   { font-size: 11px; color: var(--muted); }
  .svc-check { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .2s; font-size: 10px; }
  .service-card.selected .svc-check { background: var(--blue); border-color: var(--blue); color: #fff; }

  /* ─ Professional cards ─ */
  .profs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .prof-card {
    background: var(--navy-card); border: 2px solid var(--border);
    border-radius: var(--radius-md); padding: 18px 12px; text-align: center;
    cursor: pointer; transition: all .2s;
  }
  .prof-card:hover    { border-color: rgba(45,125,210,.4); transform: translateY(-2px); }
  .prof-card.selected { border-color: var(--blue); background: rgba(45,125,210,.1); }
  .prof-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700; color: #fff;
    margin: 0 auto 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,.3);
  }
  .prof-name  { font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 3px; }
  .prof-spec  { font-size: 11px; color: var(--muted); margin-bottom: 5px; }
  .prof-avail { font-size: 10px; color: #00c9a7; font-weight: 600; }

  /* ─ Date & Time ─ */
  .datetime-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

  .mini-cal {
    background: var(--navy-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 14px;
  }
  .mini-cal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
  .mini-cal-title  { font-size: 13px; font-weight: 700; color: var(--white); }
  .mcn-btn { background: none; border: 1px solid var(--border); border-radius: 4px; color: var(--muted); cursor: pointer; padding: 2px 8px; font-size: 13px; transition: all .2s; }
  .mcn-btn:hover { border-color: var(--blue); color: var(--blue-light); }

  .cal-days-header { display: grid; grid-template-columns: repeat(7,1fr); text-align: center; margin-bottom: 4px; }
  .cal-days-header span { font-size: 9px; color: var(--muted); padding: 3px 0; font-weight: 600; }
  .cal-days-grid   { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; text-align: center; }
  .cal-day {
    padding: 5px 2px; border-radius: 5px; font-size: 11px;
    cursor: pointer; color: var(--muted); transition: all .12s; position: relative;
  }
  .cal-day:hover    { background: rgba(45,125,210,.15); color: var(--white); }
  .cal-day.avail    { color: var(--text); }
  .cal-day.has-appts::after { content: ''; position: absolute; bottom: 1px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: rgba(45,125,210,.5); }
  .cal-day.selected { background: var(--blue); color: #fff; font-weight: 700; }
  .cal-day.today    { border: 1px solid rgba(45,125,210,.5); color: var(--blue-light); }
  .cal-day.today.selected { border-color: var(--blue); }
  .cal-day.empty    { cursor: default; }
  .cal-day.past     { opacity: .25; cursor: not-allowed; pointer-events: none; }

  /* Time slots */
  .time-slots {
    background: var(--navy-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 14px;
  }
  .time-slots-title { font-size: 12px; font-weight: 700; color: var(--white); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .5px; }
  .slots-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; max-height: 260px; overflow-y: auto; }
  .time-slot {
    padding: 8px 4px; text-align: center; border-radius: var(--radius-sm);
    border: 1px solid var(--border); font-size: 12px;
    cursor: pointer; color: var(--text); transition: all .12s; font-weight: 500;
  }
  .time-slot:hover    { border-color: var(--blue); color: var(--blue-light); background: rgba(45,125,210,.07); }
  .time-slot.selected { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
  .time-slot.busy     { opacity: .28; cursor: not-allowed; background: var(--navy-mid); pointer-events: none; }
  .time-slot.past     { opacity: .22; cursor: not-allowed; pointer-events: none; }
  .slots-empty { font-size: 12px; color: var(--muted); text-align: center; padding: 20px 0; }

  /* ─ Confirm box ─ */
  .confirm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
  .confirm-summary {
    background: rgba(45,125,210,.07); border: 1px solid rgba(45,125,210,.2);
    border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: 18px;
  }
  .cs-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.04); font-size: 13px; }
  .cs-row:last-child { border-bottom: none; }
  .cs-label { color: var(--muted); }
  .cs-val   { color: var(--white); font-weight: 600; }
  .cs-val.price { color: #00c9a7; font-size: 15px; }

  .form-label { display: block; font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .6px; }
  .form-input {
    width: 100%; background: var(--navy-mid); border: 1px solid var(--border);
    color: var(--white); font-size: 14px; font-family: var(--font-body);
    padding: 10px 14px; border-radius: var(--radius-sm); outline: none;
    transition: border-color .2s;
  }
  .form-input:focus { border-color: var(--blue); }
  .form-input.error { border-color: var(--red); }
  .form-row { margin-bottom: 12px; }
  .field-error { font-size: 11px; color: var(--red); margin-top: 4px; display: none; }
  .field-error.show { display: block; }

  .notif-options { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
  .notif-opt { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); cursor: pointer; }
  .notif-opt input { accent-color: var(--blue); width: 15px; height: 15px; }

  /* ─ Success ─ */
  .success-box {
    text-align: center; background: var(--navy-card);
    border: 1px solid rgba(0,201,167,.25); border-radius: var(--radius-xl);
    padding: 48px 32px; position: relative; overflow: hidden;
  }
  .success-box::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #00c9a7, #2d7dd2);
  }
  .success-icon { font-size: 60px; margin-bottom: 14px; animation: bounce .6s ease; }
  @keyframes bounce { 0%,100%{transform:scale(1)} 50%{transform:scale(1.15)} }
  .success-box h2 { font-size: 26px; font-weight: 800; color: var(--white); margin-bottom: 8px; }
  .success-box p  { color: var(--muted); font-size: 14px; margin-bottom: 24px; line-height: 1.6; }
  .success-code {
    background: rgba(0,201,167,.08); border: 1px solid rgba(0,201,167,.2);
    border-radius: var(--radius-md); padding: 14px 20px;
    margin-bottom: 20px; display: inline-block; text-align: left; min-width: 280px;
  }
  .success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }

  /* ─ Nav buttons ─ */
  .step-nav { display: flex; justify-content: space-between; margin-top: 18px; gap: 10px; }
  .btn-back {
    padding: 10px 18px; border-radius: var(--radius-md);
    border: 1px solid var(--border); background: transparent;
    color: var(--muted); font-size: 13px; cursor: pointer; transition: all .2s;
  }
  .btn-back:hover { border-color: var(--blue); color: var(--blue-light); }
  .btn-next {
    padding: 10px 22px; border-radius: var(--radius-md);
    background: var(--blue); color: #fff; border: none;
    font-size: 14px; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; gap: 8px; transition: all .2s;
  }
  .btn-next:hover:not(:disabled) { background: #3d8ee0; transform: translateY(-1px); }
  .btn-next:disabled { opacity: .35; cursor: not-allowed; }
  .btn-confirm { background: #00c9a7; font-size: 15px; padding: 12px 28px; }
  .btn-confirm:hover { background: #00dbb8; }

  /* ─ Powered by ─ */
  .powered-by { text-align: center; margin-top: 36px; font-size: 11px; color: rgba(107,136,168,.5); }
  .powered-by a { color: var(--blue-light); opacity: .7; }

  /* ─ Responsive ─ */
  @media (max-width: 600px) {
    .biz-header { flex-wrap: wrap; }
    .biz-actions { width: 100%; justify-content: flex-start; }
    .profs-grid { grid-template-columns: 1fr 1fr; }
    .datetime-grid { grid-template-columns: 1fr; }
    .confirm-grid  { grid-template-columns: 1fr; }
    .bstep-label   { display: none; }
    .booking-steps { padding: 12px 14px; }
    .slots-grid { grid-template-columns: repeat(4,1fr); }
  }
  

/* Animaciones reversas para volver atrás en el booking */
@keyframes _bookingSlideInFromLeft {
  from { opacity:0; transform: translateX(-20px); }
  to   { opacity:1; transform: translateX(0);     }
}
@keyframes _bookingSlideInReverse {
  from { opacity:1; transform: translateX(0);     }
  to   { opacity:0; transform: translateX(20px);  }
}
