/* ====================================================
   ROYAL BOOKING WIDGET — LUXURY EDITION V5.0
   Aesthetics: Apple Minimalist, Ultra-Clean & Luxury Gala
   Parity with Cotizador (Seller App & Client Portal)
   ==================================================== */

:root {
  --royal-red: #E11D48;
  --royal-red-dark: #be123c;
  --royal-black: #0f172a;
  --royal-grey: #64748b;
  --royal-light: #f8fafc;
  --royal-border: #e2e8f0;
  --royal-white: #ffffff;
  --royal-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.booking-widget {
  max-width: 1180px;
  width: 100%;
  margin: 10px auto 30px;
  background: var(--royal-white);
  border-radius: 28px;
  border: 1px solid var(--royal-border);
  font-family: var(--royal-font);
  color: var(--royal-black);
  text-align: left;
  overflow: hidden;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.booking-widget * {
  box-sizing: border-box;
}

.booking-widget .bw-header {
  padding: 36px 30px 10px;
  text-align: center;
}

.booking-widget .bw-header h2 {
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--royal-black);
  margin-bottom: 6px;
}

.booking-widget .bw-header p {
  color: var(--royal-grey);
  font-size: 0.95rem;
  font-weight: 500;
}

.booking-widget .bw-content {
  padding: 0 32px 36px;
}

@media (max-width: 640px) {
  .booking-widget {
    border-radius: 20px;
    margin: 5px auto 20px;
  }
  .booking-widget .bw-header {
    padding: 24px 16px 8px;
  }
  .booking-widget .bw-header h2 {
    font-size: 1.35rem;
  }
  .booking-widget .bw-content {
    padding: 0 16px 24px;
  }
}

/* Progress Stepper (5 Steps with Premium SVG Icons) */
.booking-widget .bw-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0 42px;
  padding: 0 8px;
}

.booking-widget .bw-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.booking-widget .bw-step-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.booking-widget .bw-step-icon {
  width: 20px;
  height: 20px;
  stroke: #9ca3af;
  transition: stroke 0.25s ease;
}

.booking-widget .bw-step--active .bw-step-dot {
  background: #ffffff;
  border-color: #C41E3A;
  color: #C41E3A;
  box-shadow: 0 4px 14px rgba(196, 30, 58, 0.22);
}

.booking-widget .bw-step--active .bw-step-icon {
  stroke: #C41E3A;
}

.booking-widget .bw-step--done .bw-step-dot {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.booking-widget .bw-step--done .bw-step-icon,
.booking-widget .bw-step--done .bw-step-check {
  stroke: #ffffff;
}

.booking-widget .bw-step span {
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 8px;
  position: absolute;
  top: 42px;
  white-space: nowrap;
}

.booking-widget .bw-step--active span {
  color: #C41E3A;
  font-weight: 800;
}

.booking-widget .bw-step--done span {
  color: #0f172a;
}

.booking-widget .bw-step-line {
  height: 2px;
  width: 46px;
  background: #e2e8f0;
  margin: -24px 6px 0;
}

@media (max-width: 600px) {
  .booking-widget .bw-progress {
    margin: 16px 0 36px;
  }
  .booking-widget .bw-step-dot {
    width: 32px;
    height: 32px;
  }
  .booking-widget .bw-step-icon {
    width: 16px;
    height: 16px;
  }
  .booking-widget .bw-step span {
    font-size: 0.58rem;
    top: 34px;
  }
  .booking-widget .bw-step-line {
    width: 18px;
    margin: -18px 2px 0;
  }
}

/* Form Grid & Inputs */
.booking-widget .bw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 600px) {
  .booking-widget .bw-grid {
    grid-template-columns: 1fr;
  }
}

.booking-widget .bw-field {
  margin-bottom: 16px;
}

.booking-widget .bw-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
  margin-bottom: 6px;
}

.booking-widget .apple-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--royal-border);
  background: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  color: #0f172a;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.booking-widget .apple-input:focus {
  border-color: var(--royal-red);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
  outline: none;
}

/* ====================================================
   PLAN CARDS GRID & STYLES (PASO 3: PLANES)
   ==================================================== */
.booking-widget .bw-plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
  width: 100%;
}

@media (max-width: 1160px) {
  .booking-widget .bw-plans-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 680px) {
  .booking-widget .bw-plans-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Plan Card */
.booking-widget .bw-plan-card {
  position: relative;
  background: #ffffff;
  border-radius: 28px;
  border-width: 2.5px;
  border-style: solid;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 18px -2px rgba(0, 0, 0, 0.05);
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-sizing: border-box;
}

.booking-widget .bw-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -4px rgba(0, 0, 0, 0.1);
}

.booking-widget .bw-plan--active {
  border-color: var(--royal-red) !important;
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.25), 0 20px 35px -5px rgba(225, 29, 72, 0.15) !important;
  transform: scale(1.01) !important;
  z-index: 5;
}

.booking-widget .bw-plan-badge {
  border: 1px solid;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.booking-widget .bw-plan-selected-tag {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--royal-red);
  color: #fff;
  padding: 5px 8px;
  border-bottom-left-radius: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Feature Item Styles */
.booking-widget .bw-features-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 12px 0;
}

.booking-widget .bw-feature-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.45;
}

.booking-widget .bw-feature-bullet {
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1;
  margin-top: -1px;
  flex-shrink: 0;
  user-select: none;
}

.booking-widget .bw-feature-text {
  flex: 1;
  min-width: 0;
  color: #334155;
  font-weight: 500;
  line-height: 1.45;
}

.booking-widget .bw-feature-text span {
  line-height: normal;
}

.booking-widget .bw-obsequio-header {
  padding-top: 10px;
  padding-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 900;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.booking-widget .bw-plan-btn {
  width: 100%;
  padding: 12px 12px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border-width: 1.5px;
  border-style: solid;
  box-sizing: border-box;
  text-align: center;
}

.booking-widget .bw-plan-btn:hover {
  transform: scale(1.02);
}

.booking-widget .bw-plan-btn:active {
  transform: scale(0.97);
}

/* ====================================================
   PACKS GRID & STYLES (PASO 4: DETALLES)
   ==================================================== */
.booking-widget .packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
  width: 100%;
}

@media (max-width: 680px) {
  .booking-widget .packs-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.booking-widget .pack-item {
  background: #ffffff;
  border-radius: 26px;
  border: 2px solid var(--royal-border);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-sizing: border-box;
  box-shadow: 0 4px 14px -2px rgba(0, 0, 0, 0.04);
}

.booking-widget .pack-item:hover {
  border-color: rgba(225, 29, 72, 0.35);
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.booking-widget .pack-item--active {
  border-color: var(--royal-red) !important;
  background: #fff5f6;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.2), 0 14px 28px -4px rgba(225, 29, 72, 0.12) !important;
  transform: scale(1.01) !important;
}

.booking-widget .pack-details-list {
  font-size: 0.84rem;
  color: #475569;
  margin: 14px 0 18px;
  padding: 0;
  list-style: none;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.booking-widget .pack-details-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.booking-widget .pack-btn {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1.5px solid var(--royal-border);
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.booking-widget .pack-btn:hover {
  transform: scale(1.03);
}

.booking-widget .pack-btn:active {
  transform: scale(0.97);
}

.booking-widget .pack-item--active .pack-btn {
  background: var(--royal-red);
  color: #ffffff;
  border-color: var(--royal-red);
  box-shadow: 0 4px 10px rgba(225, 29, 72, 0.25);
}

/* Success View */
.booking-widget .bw-success {
  text-align: center;
  padding: 40px 20px;
}

.booking-widget .bw-status-box {
  background: #fff5f6;
  border: 1px solid #ffe4e6;
  padding: 20px;
  border-radius: 16px;
  margin: 20px auto;
  max-width: 520px;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.55;
}

.booking-widget .btn-group-final {
  display: flex;
  justify-content: center;
  gap: 14px;
  max-width: 500px;
  margin: 28px auto 0;
}

@media (max-width: 500px) {
  .booking-widget .btn-group-final {
    flex-direction: column;
    align-items: stretch;
  }
}

.booking-widget .btn-premium {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  height: 48px;
  min-width: 160px;
  box-sizing: border-box;
  flex: 1;
}

.booking-widget .btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Base Nav Buttons */
.booking-widget .bw-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
}

.booking-widget .btn {
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.booking-widget .btn:hover {
  transform: translateY(-1px);
}

.booking-widget .btn:active {
  transform: translateY(1px);
}

.booking-widget .btn-dark {
  background: var(--royal-red);
  color: #fff;
  flex: 2;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.3);
}

.booking-widget .btn-dark:hover {
  background: var(--royal-red-dark);
}

.booking-widget .btn-outline {
  background: #f8fafc;
  border: 1.5px solid var(--royal-border);
  color: #334155;
  flex: 1;
}

.booking-widget .btn-outline:hover {
  background: #f1f5f9;
}

.booking-widget .bw-invalid {
  border-color: var(--royal-red) !important;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15) !important;
}
