/* ── Reservas — Margarita Moto Rent ── */

/* Hero */
.rsv-hero {
  background: linear-gradient(135deg, #14213d 0%, #0a9396 100%);
  padding: 56px 28px 40px;
  text-align: center;
  color: #fff;
}
.rsv-hero-inner { max-width: 640px; margin: 0 auto; }
.rsv-hero-eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.65); margin-bottom: 10px;
}
.rsv-hero-title { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 900; color: #fff; margin: 0 0 10px; }
.rsv-hero-sub   { font-size: .95rem; color: rgba(255,255,255,.8); margin: 0; }

/* Layout */
.rsv-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

/* ── Stepper ── */
.rsv-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 36px;
}
.rsv-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: #9ca3af;
}
.rsv-step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #9ca3af;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
  transition: background .2s, color .2s;
}
.rsv-step--active .rsv-step-num { background: #0a9396; color: #fff; }
.rsv-step--active .rsv-step-label { color: #0a9396; }
.rsv-step--done .rsv-step-num { background: #10b981; color: #fff; }
.rsv-step--done .rsv-step-label { color: #10b981; }
.rsv-step-line {
  flex: 1; height: 2px; background: #e5e7eb; min-width: 40px; max-width: 80px;
  margin: 0 8px;
  transition: background .2s;
}
.rsv-step-line--done { background: #10b981; }

/* ── Date picker card ── */
.rsv-dates-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.rsv-card-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 1rem; font-weight: 700; color: #111827; margin: 0 0 16px;
}
.rsv-dates-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}
.rsv-field { display: flex; flex-direction: column; gap: 6px; }
.rsv-field label { font-size: .82rem; font-weight: 600; color: #374151; }
.rsv-input {
  padding: 10px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: .93rem;
  font-family: 'Inter', sans-serif;
  color: #111827;
  outline: none;
  transition: border-color .18s;
  background: #fff;
}
.rsv-input:focus { border-color: #0a9396; box-shadow: 0 0 0 3px rgba(10,147,150,.12); }
.rsv-field--nights .rsv-nights-badge {
  font-size: 1.2rem; font-weight: 800; color: #0a9396;
  background: #f0fdfc; border-radius: 8px;
  padding: 10px 16px; border: 1.5px solid #b2dfdb;
  text-align: center; min-width: 56px;
}

/* ── Motos grid ── */
.rsv-motos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.rsv-moto-card {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s, transform .15s;
  display: flex;
  flex-direction: column;
}
.rsv-moto-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
  border-color: #0a9396;
  transform: translateY(-2px);
}
.rsv-moto-card--unavailable {
  opacity: .5;
  pointer-events: none;
}

.rsv-moto-img-wrap { position: relative; }
.rsv-moto-img {
  width: 100%; height: 200px;
  object-fit: cover;
  display: block;
}
.rsv-moto-img-placeholder {
  height: 180px;
  background: linear-gradient(135deg, #f0f4f8, #e2e8f0);
  display: flex; align-items: center; justify-content: center;
  color: #9ca3af;
}
.rsv-moto-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; border-radius: 20px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.rsv-moto-badge--disponible { background: #d1fae5; color: #065f46; }
.rsv-moto-badge--ocupado    { background: #fee2e2; color: #991b1b; }

.rsv-moto-body { padding: 16px 18px 8px; flex: 1; }
.rsv-moto-nombre { font-size: 1.05rem; font-weight: 700; color: #111827; margin: 0 0 6px; }
.rsv-moto-meta {
  display: flex; gap: 6px; font-size: .78rem; color: #6b7280; margin-bottom: 10px;
}
.rsv-moto-precio { display: flex; align-items: baseline; gap: 4px; }
.rsv-moto-precio-num { font-size: 1.4rem; font-weight: 800; color: #0a9396; }
.rsv-moto-precio-unit { font-size: .8rem; color: #6b7280; }
.rsv-moto-total {
  font-size: .85rem; color: #374151;
  margin-top: 6px;
  padding: 6px 10px;
  background: #f0fdfc;
  border-radius: 6px;
}

.rsv-moto-btn {
  display: block;
  margin: 0 18px 18px;
  padding: 12px;
  background: #0a9396;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: background .15s;
}
.rsv-moto-btn:hover { background: #0d7377; }
.rsv-moto-btn--disabled {
  background: #e5e7eb;
  color: #9ca3af;
  pointer-events: none;
}

/* ── Empty state ── */
.rsv-empty {
  text-align: center;
  padding: 64px 24px;
  color: #6b7280;
}
.rsv-empty-icon { font-size: 3rem; margin-bottom: 16px; }
.rsv-empty h3 { font-size: 1.2rem; color: #111827; margin-bottom: 8px; }

/* ── Paso 2 layout ── */
.rsv-paso2-wrap {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 28px;
  align-items: start;
}

.rsv-resumen-card {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px;
  position: sticky;
  top: 24px;
}
.rsv-resumen-title { font-size: .95rem; font-weight: 800; color: #111827; margin: 0 0 14px; }
.rsv-resumen-moto { margin-bottom: 12px; }
.rsv-resumen-label { display: block; font-size: .72rem; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.rsv-resumen-row { display: flex; justify-content: space-between; font-size: .85rem; color: #374151; padding: 4px 0; }
.rsv-resumen-divider { border-top: 1px solid #f3f4f6; margin: 10px 0; }
.rsv-resumen-row--price { font-size: .9rem; }
.rsv-resumen-total {
  display: flex; justify-content: space-between;
  font-size: 1.05rem; font-weight: 800; color: #0a9396;
  border-top: 2px solid #f3f4f6; margin-top: 10px; padding-top: 10px;
}
.rsv-resumen-change {
  display: block; margin-top: 14px; font-size: .8rem; color: #6b7280;
  text-decoration: none; text-align: center;
}
.rsv-resumen-change:hover { color: #0a9396; }

/* Form card */
.rsv-form-card {
  background: #fff; border: 1.5px solid #e5e7eb; border-radius: 14px; padding: 28px;
}
.rsv-form-section { margin-bottom: 24px; }
.rsv-form-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: .92rem; font-weight: 700; color: #374151;
  margin: 0 0 14px; padding-bottom: 8px;
  border-bottom: 1px solid #f3f4f6;
}
.rsv-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.rsv-textarea { resize: vertical; min-height: 80px; }
.rsv-form-section--notas { margin-bottom: 28px; }

/* Extras */
.rsv-extras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rsv-extra-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.rsv-extra-card:hover { border-color: #0a9396; background: #f0fdfc; }
.rsv-extra-card input { display: none; }
.rsv-extra-card input:checked ~ * { color: #0a9396; }
.rsv-extra-card.rsv-extra--checked { border-color: #0a9396; background: #f0fdfc; }
.rsv-extra-body { flex: 1; display: flex; align-items: center; gap: 10px; }
.rsv-extra-icon { font-size: 1.3rem; }
.rsv-extra-body strong { display: block; font-size: .88rem; color: #111827; }
.rsv-extra-body span { font-size: .76rem; color: #6b7280; }
.rsv-extra-price { font-size: .85rem; font-weight: 700; color: #0a9396; white-space: nowrap; }

/* Buttons */
.rsv-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #0a9396; color: #fff;
  padding: 12px 24px; border-radius: 10px;
  font-weight: 700; font-size: .9rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: background .15s;
}
.rsv-btn-primary:hover { background: #0d7377; }
.rsv-btn-lg { padding: 14px 28px; font-size: 1rem; }
.rsv-btn-secondary {
  display: inline-flex; align-items: center;
  background: #fff; color: #374151; border: 1.5px solid #d1d5db;
  padding: 12px 20px; border-radius: 10px;
  font-weight: 600; font-size: .88rem; text-decoration: none;
  transition: background .15s;
}
.rsv-btn-secondary:hover { background: #f9fafb; }
.rsv-btn-ghost {
  display: inline-flex; align-items: center;
  color: #6b7280; font-size: .88rem; text-decoration: none; padding: 12px 16px;
}
.rsv-btn-ghost:hover { color: #374151; }

/* ── Paso 3 confirm ── */
.rsv-confirm-wrap { max-width: 680px; margin: 0 auto; }
.rsv-confirm-card {
  background: #fff; border: 1.5px solid #e5e7eb; border-radius: 14px;
  padding: 28px; margin-bottom: 20px;
}
.rsv-confirm-section { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #f3f4f6; }
.rsv-confirm-section:last-child { border-bottom: none; }
.rsv-confirm-section-title {
  font-size: .92rem; font-weight: 700; color: #374151; margin: 0 0 12px;
}
.rsv-confirm-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .88rem; color: #6b7280; padding: 4px 0;
}
.rsv-confirm-row strong { color: #111827; }
.rsv-confirm-precio { background: #f0fdfc; border-radius: 10px; padding: 18px 20px; }
.rsv-confirm-precio-row {
  display: flex; justify-content: space-between;
  font-size: .9rem; color: #374151; padding: 3px 0;
}
.rsv-confirm-precio-total {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 1.1rem; font-weight: 800; color: #0a9396;
  border-top: 2px solid #b2dfdb; margin-top: 12px; padding-top: 12px;
}
.rsv-confirm-note { font-size: .78rem; color: #6b7280; margin: 10px 0 0; }
.rsv-confirm-actions {
  display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap;
}

/* ── Success page ── */
.rsv-success-wrap {
  min-height: 75vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
}
.rsv-success-card {
  max-width: 560px; width: 100%; text-align: center;
  background: #fff; border: 1.5px solid #e5e7eb;
  border-radius: 16px; padding: 40px 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
}
.rsv-success-icon { font-size: 3.5rem; margin-bottom: 16px; }
.rsv-success-title { font-size: 1.8rem; font-weight: 900; color: #111827; margin: 0 0 8px; }
.rsv-success-sub { color: #6b7280; margin-bottom: 24px; }
.rsv-success-code {
  background: #f0fdfc; border: 1px solid #b2dfdb; border-radius: 10px;
  padding: 14px 20px; margin-bottom: 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.rsv-success-code span { font-size: .8rem; color: #6b7280; }
.rsv-success-code strong { font-size: 1.3rem; font-weight: 800; color: #0a9396; letter-spacing: .06em; }
.rsv-success-details { margin-bottom: 20px; text-align: left; }
.rsv-success-note { font-size: .82rem; color: #6b7280; margin: 0 0 24px; }
.rsv-success-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.rsv-badge-pendiente { color: #d97706; background: #fef3c7; padding: 2px 8px; border-radius: 12px; font-size: .8rem; }

.rsv-cta-wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25D366; color: #fff;
  padding: 12px 20px; border-radius: 10px;
  font-weight: 700; font-size: .9rem; text-decoration: none;
  transition: background .15s;
}
.rsv-cta-wa:hover { background: #1ebe5c; }

/* ── Mis reservas ── */
.rsv-misreservas-head { display: flex; justify-content: flex-end; margin-bottom: 20px; }
.rsv-misreservas-list { display: flex; flex-direction: column; gap: 12px; }
.rsv-mr-card {
  background: #fff; border: 1.5px solid #e5e7eb; border-radius: 12px; padding: 18px 22px;
  display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow .15s;
}
.rsv-mr-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.rsv-mr-head { display: flex; justify-content: space-between; align-items: center; }
.rsv-mr-codigo { font-size: .85rem; font-weight: 700; color: #9ca3af; letter-spacing: .06em; }
.rsv-mr-badge {
  padding: 3px 10px; border-radius: 20px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.rsv-mr-badge--pendiente  { background: #fef3c7; color: #d97706; }
.rsv-mr-badge--confirmada { background: #d1fae5; color: #065f46; }
.rsv-mr-badge--activa     { background: #dbeafe; color: #1d4ed8; }
.rsv-mr-badge--completada { background: #e5e7eb; color: #374151; }
.rsv-mr-badge--cancelada  { background: #fee2e2; color: #991b1b; }
.rsv-mr-body { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.rsv-mr-moto strong { display: block; font-size: .95rem; color: #111827; }
.rsv-mr-moto span   { font-size: .78rem; color: #9ca3af; }
.rsv-mr-fechas { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: #374151; }
.rsv-mr-arrow { color: #9ca3af; }
.rsv-mr-dias {
  background: #f3f4f6; padding: 2px 8px; border-radius: 12px;
  font-size: .72rem; font-weight: 700; color: #6b7280;
}
.rsv-mr-total { margin-left: auto; font-size: 1rem; font-weight: 800; color: #0a9396; }

/* Responsive */
@media (max-width: 768px) {
  .rsv-dates-row { grid-template-columns: 1fr 1fr; }
  .rsv-field--nights { grid-column: 1 / -1; }
  .rsv-paso2-wrap { grid-template-columns: 1fr; }
  .rsv-resumen-card { position: static; order: 2; }
  .rsv-form-card { order: 1; }
  .rsv-field-row { grid-template-columns: 1fr; }
  .rsv-extras-grid { grid-template-columns: 1fr; }
  .rsv-confirm-actions { justify-content: stretch; flex-direction: column; }
  .rsv-mr-body { flex-direction: column; align-items: flex-start; }
  .rsv-mr-total { margin-left: 0; }
  .rsv-stepper { flex-wrap: wrap; gap: 8px; }
  .rsv-step-line { display: none; }
}
@media (max-width: 480px) {
  .rsv-motos-grid { grid-template-columns: 1fr; }
  .rsv-success-btns { flex-direction: column; }
}
