@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #121212;
  --secondary: #d4af37;
  --secondary-gradient: linear-gradient(135deg, #d4af37 0%, #aa7c11 100%);
  --bg: #f9f9f9;
  --txt: #2c2c2c;
  --border: #e2e8f0;
  --font-h: 'Cinzel', 'Georgia', serif;
  --font-b: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-b);
  color: var(--txt);
  background: var(--bg);
  padding-bottom: 80px;
  -webkit-font-smoothing: antialiased;
}
.booking-header {
  background: #121212;
  padding: 15px 5%;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.back-btn {
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  margin-right: 20px;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}
.back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.header-title p {
  font-size: 0.85rem;
  color: #fff;
  margin-top: 5px;
}

.container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

/* DISEÑO DE LAYOUT */
.booking-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
  align-items: start;
}
.booking-main {
  width: 100%;
}
.booking-sidebar {
  position: sticky;
  top: 100px;
}
.sidebar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 25px;
  box-shadow: var(--shadow);
}
.sidebar-card h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 10px;
  color: var(--primary);
}
.sidebar-item {
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.sidebar-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
}
.sidebar-item ul {
  padding-left: 18px;
  margin: 0;
  color: #475569;
}
.sidebar-item li {
  margin-bottom: 4px;
}
.sidebar-item p {
  color: #475569;
}
.sidebar-total {
  border-top: 1px solid var(--border);
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
}
.sidebar-total strong {
  font-size: 1.3rem;
  color: var(--secondary);
}

.empty-state {
  color: #94a3b8;
  font-style: italic;
  text-align: center;
  padding: 20px 0;
}

.step-title {
  font-size: 1.6rem;
  margin-bottom: 25px;
  font-weight: 700;
  color: var(--primary);
}
.view {
  display: none;
  animation: fadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.view.active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category {
  margin-bottom: 30px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.category-title {
  background: #f8fafc;
  padding: 15px 20px;
  font-size: 1.1rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  color: var(--primary);
}
.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.list-item:last-child {
  border-bottom: none;
}
.list-item:hover {
  background: #fafaf9;
}
.list-item.selected {
  background: rgba(212, 175, 55, 0.03);
}
.item-info h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  font-weight: 600;
  color: var(--primary);
}
.badge {
  font-size: 0.7rem;
  background: var(--secondary-gradient);
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
}
.item-info p {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 8px;
}
.item-price {
  font-weight: 700;
  font-size: 1rem;
  color: var(--secondary);
}
.select-btn {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: transparent;
  transition: var(--transition);
  font-size: 12px;
}
.list-item:hover .select-btn {
  border-color: var(--secondary);
}
.list-item.selected .select-btn {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.staff-profile {
  display: flex;
  align-items: center;
  gap: 15px;
}
.staff-avatar {
  width: 75px;
  height: 75px;
  border-radius: 8px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #64748b;
  object-fit: cover;
  border: 2px solid var(--border);
}
.chevron-icon {
  color: #cbd5e1;
  font-size: 18px;
  transition: var(--transition);
}
.list-item:hover .chevron-icon {
  color: var(--secondary);
  transform: translateX(3px);
}

.section-label {
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--primary);
}

/* CALENDARIO REAL */
.calendar-wrapper {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  max-width: 350px;
  margin-bottom: 25px;
  box-shadow: var(--shadow);
}
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.calendar-nav-btn {
  background: transparent;
  border: none;
  color: var(--primary);
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}
.calendar-nav-btn:hover {
  background: #f1f5f9;
}
.calendar-month-year {
  font-weight: 700;
  font-family: var(--font-h);
  font-size: 1.1rem;
  color: var(--primary);
}
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 10px;
}
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--txt);
  border: 1px solid transparent;
}
.calendar-day:hover:not(.disabled) {
  border-color: var(--secondary);
  color: var(--secondary);
}
.calendar-day.selected {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}
.calendar-day.disabled {
  color: #cbd5e1;
  cursor: not-allowed;
  pointer-events: none;
}
.calendar-day.today {
  border: 1px dashed var(--secondary);
}

/* HORARIOS */
.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}
.time-btn {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  color: var(--txt);
}
.time-btn:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.time-btn.selected {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.continue-btn-sidebar:hover {
  background: #27272a !important;
}

/* FORMULARIO */
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}
.form-group input {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  transition: var(--transition);
  background: #fff;
}
.form-group input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.summary-card {
  background: #f8fafc;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 30px;
  font-size: 0.95rem;
  border: 1px solid var(--border);
}
.summary-card p {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}
.summary-card p:last-child {
  margin-bottom: 0;
}
.final-total {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  font-size: 1.15rem;
  color: var(--secondary);
}

.btn-submit {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 16px;
  font-size: 1.1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.btn-submit:hover {
  background: #27272a;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}
.terms-text {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 15px;
  text-align: center;
}

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  padding: 15px 5%;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
  transform: translateY(100%);
  transition: var(--transition);
  z-index: 100;
}
.bottom-bar.active {
  transform: translateY(0);
}
.continue-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition);
}
.continue-btn:hover {
  background: #27272a;
}

/* ================= MODAL DE ÉXITO ================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}
.modal-card h2 {
  font-family: var(--font-h);
  font-size: 1.8rem;
  margin: 20px 0 10px;
  color: var(--primary);
}
.modal-card p {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 25px;
  line-height: 1.6;
}
.modal-summary {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  text-align: left;
  margin-bottom: 30px;
  font-size: 0.9rem;
}
.modal-summary p {
  margin-bottom: 8px;
  color: var(--txt);
  display: flex;
  justify-content: space-between;
}
.modal-summary p:last-child {
  margin-bottom: 0;
}
.modal-summary p strong {
  color: var(--primary);
}
.modal-total {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 10px;
  font-weight: 700;
  color: var(--secondary) !important;
  font-size: 1.1rem;
}
.btn-modal-close {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
}
.btn-modal-close:hover {
  background: var(--secondary);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* CHECKMARK ANIMADO */
.success-checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto;
}
.success-checkmark .check-icon {
  width: 80px;
  height: 80px;
  position: relative;
  border-radius: 50%;
  box-sizing: content-box;
  border: 4px solid #4caf50;
}
.success-checkmark .check-icon::before, .success-checkmark .check-icon::after {
  content: '';
  height: 100px;
  position: absolute;
  background: #ffffff;
  transform: rotate(-45deg);
}
.success-checkmark .check-icon::before {
  width: 30px;
  border-radius: 100px 0 0 100px;
  top: -8px;
  left: -30px;
  transform-origin: 100% 50%;
  transform: rotate(-45deg);
}
.success-checkmark .check-icon::after {
  width: 60px;
  border-radius: 0 100px 100px 0;
  top: -16px;
  left: 30px;
  transform-origin: 0px 50%;
  transform: rotate(-45deg);
}
.success-checkmark .check-icon .icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid rgba(76, 175, 80, 0.2);
  box-sizing: content-box;
  position: absolute;
  z-index: 1;
  top: -4px;
  left: -4px;
}
.success-checkmark .check-icon .icon-fix {
  width: 5px;
  height: 90px;
  background-color: #ffffff;
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 28px;
  transform: rotate(-45deg);
}
.success-checkmark .check-icon .icon-line {
  height: 5px;
  background-color: #4caf50;
  display: block;
  border-radius: 2px;
  position: absolute;
  z-index: 10;
}
.success-checkmark .check-icon .icon-line.line-tip {
  width: 25px;
  left: 14px;
  top: 46px;
  transform: rotate(45deg);
}
.success-checkmark .check-icon .icon-line.line-long {
  width: 47px;
  right: 8px;
  top: 38px;
  transform: rotate(-45deg);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .booking-layout {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
  }
  .booking-sidebar {
    display: block;
    position: static;
    margin-top: 30px;
    width: 100%;
  }
}

/* STAFF 2 COLUMNS GRID */
#staff-view .category {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  background: none;
  border: none;
  box-shadow: none;
  overflow: visible;
}

#staff-view .list-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}

#staff-view .list-item:hover {
  border-color: var(--primary);
  background: #fafaf9;
}

@media (max-width: 576px) {
  #staff-view .category {
    grid-template-columns: 1fr;
  }
}

@keyframes highlightPulse {
  0% { box-shadow: 0 0 0 0px rgba(212, 175, 55, 0.4); border-color: #d4af37; }
  50% { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0.2); border-color: #d4af37; }
  100% { box-shadow: 0 0 0 0px rgba(212, 175, 55, 0); }
}
.highlight-category {
  animation: highlightPulse 2s ease-in-out infinite;
  border: 1px solid #d4af37 !important;
}