/* ── Reservar Ahora — Multi-step Form ───────────────── */

/* Layout */
.rs-page { min-height: 100vh; background: var(--bg, #050505); padding-top: 5rem; }

/* ── Stepper ── */
.rs-stepper {
  position: sticky;
  top: 64px;
  z-index: 100;
  background: rgba(5,5,5,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: .75rem 0;
}
.rs-stepper-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.rs-progress-track {
  height: 3px;
  background: rgba(255,255,255,.08);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: .85rem;
}
.rs-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--magenta));
  border-radius: 50px;
  transition: width .4s ease;
  width: 0%;
}
.rs-dots {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rs-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  cursor: default;
}
.rs-dot-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 2px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.35);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700;
  transition: all .3s ease;
}
.rs-dot-label {
  font-size: .62rem;
  color: rgba(255,255,255,.3);
  font-weight: 500;
  white-space: nowrap;
  transition: color .3s;
}
.rs-dot.active .rs-dot-circle {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.rs-dot.active .rs-dot-label { color: var(--orange); }
.rs-dot.done .rs-dot-circle {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.3);
  color: #fff;
}
.rs-dot.done .rs-dot-label { color: rgba(255,255,255,.5); }

/* ── Contenido del paso ── */
.rs-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 8rem;
}
.rs-step { display: none; animation: rsFadeIn .35s ease; }
.rs-step.active { display: block; }
@keyframes rsFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rs-step-header { margin-bottom: 2.5rem; }
.rs-step-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
  display: block;
  margin-bottom: .5rem;
}
.rs-step-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: .5rem;
}
.rs-step-sub {
  font-size: .88rem;
  color: rgba(255,255,255,.45);
  line-height: 1.6;
}

/* ── Sección dentro de paso ── */
.rs-section {
  margin-bottom: 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.rs-section:last-child { border-bottom: none; margin-bottom: 0; }
.rs-section-title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 1.25rem;
}

/* ── Campos ── */
.rs-field { margin-bottom: 1.25rem; }
.rs-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  margin-bottom: .45rem;
}
.rs-label .req { color: var(--orange); margin-left: .2rem; }
.rs-input, .rs-textarea, .rs-select {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,98,48,.35);
  border-radius: .6rem;
  color: #fff;
  padding: .7rem 1rem;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, background .2s;
}
.rs-input:focus, .rs-textarea:focus, .rs-select:focus {
  border-color: var(--orange);
  background: rgba(255,255,255,.07);
}
.rs-input::placeholder, .rs-textarea::placeholder { color: rgba(255,255,255,.45); }
.rs-textarea { resize: vertical; min-height: 90px; }
.rs-select { appearance: none; cursor: pointer; }

/* Error state */
.rs-input.error, .rs-textarea.error { border-color: #f87171; }
.rs-error-msg { font-size: .75rem; color: #f87171; margin-top: .3rem; display: none; }
.rs-error-msg.show { display: block; }

/* Grid 2 col */
.rs-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.rs-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

/* ── Radio & Checkbox custom ── */
.rs-options { display: flex; flex-direction: column; gap: .55rem; }
.rs-options.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem .75rem; }
.rs-options.cols-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .55rem .75rem; }

.rs-option {
  display: flex;
  align-items: center;
  gap: .6rem;
  cursor: pointer;
  padding: .55rem .85rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: .5rem;
  background: rgba(255,255,255,.03);
  transition: border-color .2s, background .2s;
  user-select: none;
}
.rs-option:hover { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.06); }
.rs-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.rs-option-mark {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.rs-option.is-check .rs-option-mark { border-radius: 4px; }
.rs-option-mark::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transition: opacity .15s;
}
.rs-option.is-check .rs-option-mark::after {
  border-radius: 2px;
  width: 10px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpolyline points='1.5 5 4 7.5 8.5 2.5' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.rs-option input:checked ~ .rs-option-mark {
  background: var(--orange);
  border-color: var(--orange);
}
.rs-option input:checked ~ .rs-option-mark::after { opacity: 1; }
.rs-option:has(input:checked) {
  border-color: rgba(255,98,48,.5);
  background: rgba(255,98,48,.08);
}
.rs-option-text { font-size: .85rem; color: rgba(255,255,255,.8); line-height: 1.3; }
.rs-otro-input {
  margin-top: .5rem;
  display: none;
}
.rs-otro-input.show { display: block; }

/* ── Nota informativa ── */
.rs-note {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-left: 3px solid var(--orange);
  border-radius: 0 .5rem .5rem 0;
  padding: .75rem 1rem;
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
  margin-top: .75rem;
}

/* ── Firma ── */
.rs-sig-tabs { display: flex; gap: .5rem; margin-bottom: 1rem; }
.rs-sig-tab {
  padding: .4rem 1rem;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50px;
  background: none;
  color: rgba(255,255,255,.5);
  font-size: .8rem; font-family: inherit; cursor: pointer;
  transition: all .2s;
}
.rs-sig-tab.active { background: var(--orange); border-color: var(--orange); color: #fff; }

.rs-sig-canvas-wrap {
  position: relative;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: .75rem;
  overflow: hidden;
}
#firma-canvas {
  display: block;
  width: 100%;
  height: 160px;
  cursor: crosshair;
  touch-action: none;
}
.rs-sig-hint {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  color: rgba(255,255,255,.15);
  font-size: .82rem;
  transition: opacity .3s;
}
.rs-sig-hint.hidden { opacity: 0; }
.rs-sig-actions { display: flex; justify-content: flex-end; margin-top: .5rem; }
.rs-sig-clear {
  background: none; border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.4); border-radius: .4rem;
  padding: .3rem .8rem; font-size: .75rem; font-family: inherit; cursor: pointer;
  transition: all .2s;
}
.rs-sig-clear:hover { border-color: #f87171; color: #f87171; }

/* Condiciones */
.rs-conditions {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: .75rem;
  padding: 1.25rem;
  max-height: 220px;
  overflow-y: auto;
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.rs-conditions ul { padding-left: 1.1rem; }
.rs-conditions li { margin-bottom: .35rem; }
.rs-conditions::-webkit-scrollbar { width: 4px; }
.rs-conditions::-webkit-scrollbar-track { background: rgba(255,255,255,.04); }
.rs-conditions::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 2px; }

.rs-accept {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  cursor: pointer;
  padding: .85rem 1rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: .6rem;
}
.rs-accept input { display: none; }
.rs-accept-box {
  width: 20px; height: 20px; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 4px;
  margin-top: .1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.rs-accept input:checked ~ .rs-accept-box {
  background: var(--orange); border-color: var(--orange);
}
.rs-accept input:checked ~ .rs-accept-box::after {
  content: '';
  width: 11px; height: 11px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 11'%3E%3Cpolyline points='1.5 5.5 4.5 8.5 9.5 2' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.rs-accept-text { font-size: .82rem; color: rgba(255,255,255,.7); line-height: 1.5; }

/* ── Navegación fija ── */
.rs-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(5,5,5,.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: .9rem 1.5rem;
}
.rs-nav-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.rs-btn-prev {
  display: flex; align-items: center; gap: .5rem;
  background: none; border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.65); border-radius: .6rem;
  padding: .65rem 1.25rem; font-size: .88rem; font-family: inherit;
  cursor: pointer; transition: all .2s;
}
.rs-btn-prev:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.rs-btn-next, .rs-btn-submit {
  display: flex; align-items: center; gap: .5rem;
  background: linear-gradient(135deg, var(--orange), var(--magenta));
  color: #fff; border: none; border-radius: .6rem;
  padding: .65rem 1.5rem; font-size: .9rem; font-weight: 700;
  font-family: inherit; cursor: pointer;
  transition: opacity .2s, transform .15s;
}
.rs-btn-next:hover, .rs-btn-submit:hover { opacity: .9; }
.rs-btn-next:active, .rs-btn-submit:active { transform: scale(.98); }

/* ── Éxito ── */
.rs-success {
  display: none;
  min-height: 80vh;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  flex-direction: column;
  gap: 1.5rem;
}
.rs-success.show { display: flex; }
.rs-success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--magenta));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #fff;
  box-shadow: 0 0 40px rgba(255,98,48,.35);
}
.rs-success h2 { font-size: 2rem; font-weight: 800; color: #fff; }
.rs-success p { color: rgba(255,255,255,.55); max-width: 420px; line-height: 1.7; }

/* ── Flatpickr dark theme ── */
.flatpickr-calendar {
  background: #111 !important;
  border: 1px solid rgba(255,98,48,.3) !important;
  border-radius: .75rem !important;
  box-shadow: 0 16px 48px rgba(0,0,0,.6) !important;
  font-family: inherit !important;
}
.flatpickr-months, .flatpickr-weekdays { background: transparent !important; }
.flatpickr-month { color: #fff !important; }
.flatpickr-current-month input.cur-year,
.flatpickr-current-month .flatpickr-monthDropdown-months {
  color: #fff !important; background: transparent !important;
}
span.flatpickr-weekday { color: rgba(255,255,255,.4) !important; background: transparent !important; }
.flatpickr-day { color: rgba(255,255,255,.75) !important; border-radius: .4rem !important; }
.flatpickr-day:hover { background: rgba(255,98,48,.2) !important; border-color: transparent !important; }
.flatpickr-day.selected, .flatpickr-day.selected:hover {
  background: var(--orange) !important;
  border-color: var(--orange) !important;
  color: #fff !important;
}
.flatpickr-day.today { border-color: rgba(255,98,48,.5) !important; }
.flatpickr-day.flatpickr-disabled, .flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay {
  color: rgba(255,255,255,.2) !important;
}
.flatpickr-prev-month svg, .flatpickr-next-month svg { fill: rgba(255,255,255,.6) !important; }
.flatpickr-prev-month:hover svg, .flatpickr-next-month:hover svg { fill: var(--orange) !important; }
.flatpickr-input[readonly] { display: none; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .rs-grid-2, .rs-grid-3 { grid-template-columns: 1fr; }
  .rs-options.cols-2, .rs-options.cols-3 { grid-template-columns: 1fr; }
  .rs-dot-label { display: none; }
  .rs-dot-circle { width: 24px; height: 24px; font-size: .65rem; }
  .rs-content { padding: 2rem 1rem 7rem; }
}
