/* ==========================================================================
   Altamira Village — Portal de Reservas
   Diseño Mobile-First · Sin scroll · Sin emojis · Responsivo
   ========================================================================== */

:root {
  --hotel-primary: #c5a880;
  --hotel-primary-hover: #dfbc95;
  --hotel-primary-rgb: 197, 168, 128;

  --bg-primary: #11100f;
  --bg-secondary: #171615;

  --card-bg: #171615;
  --card-border: rgba(197, 168, 128, 0.12);
  --card-border-active: rgba(197, 168, 128, 0.4);

  --text-primary: #f5f2eb;
  --text-secondary: rgba(245, 242, 235, 0.75);
  --text-muted: rgba(245, 242, 235, 0.45);
  --text-dark: #11100f;

  --error: #e07a5f;
  --success: #81b29a;
  --whatsapp: #25d366;

  --font-family: 'Inter', -apple-system, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;

  --header-h: 52px;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
  background-image: radial-gradient(circle at 80% 20%, rgba(197, 168, 128, 0.05) 0%, transparent 55%),
                    radial-gradient(circle at 15% 85%, rgba(197, 168, 128, 0.03) 0%, transparent 50%);
  /* Bloqueo de selección/copia (disuasión) */
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Los campos de formulario sí permiten escribir/editar */
input, textarea {
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Evitar resaltado azul de imágenes al tocar/arrastrar */
img {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: auto;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
}

/* ==========================================================================
   Header
   ========================================================================== */

.hotel-header {
  flex-shrink: 0;
  width: 100%;
  height: var(--header-h);
  padding: 0 1rem;
  background-color: rgba(17, 16, 15, 0.95);
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.header-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
  min-width: 0;
}

.header-logo-img {
  height: clamp(28px, 6vh, 36px);
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.header-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--hotel-primary);
  font-weight: 500;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-logo span {
  font-size: 1.1rem;
}

.back-to-home {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.back-to-home span {
  font-size: 1rem;
}

.back-to-home:hover {
  color: var(--hotel-primary);
}

/* ==========================================================================
   Portal — Mobile base layout (single column, flex, no scroll)
   ========================================================================== */

.booking-portal {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.6rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: hidden;
}

/* ==========================================================================
   Step Tracker
   ========================================================================== */

.step-tracker {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 1rem;
  position: relative;
}

.step-tracker-line,
.step-tracker-progress {
  position: absolute;
  bottom: 0;
  left: 6%;
  right: 6%;
  height: 1.5px;
}

.step-tracker-line {
  background: rgba(255, 255, 255, 0.05);
}

.step-tracker-progress {
  right: auto;
  width: 0%;
  background: var(--hotel-primary);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.tracker-step {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  user-select: none;
}

.step-number {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.step-label {
  display: none;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.tracker-step.active .step-number,
.tracker-step.active .step-label {
  color: var(--hotel-primary);
  font-weight: 700;
}

.tracker-step.completed .step-number,
.tracker-step.completed .step-label {
  color: var(--text-secondary);
}

/* ==========================================================================
   Wizard
   ========================================================================== */

.wizard-column {
  flex: 1;
  min-height: 0;
  display: flex;
}

.wizard-card {
  flex: 1;
  min-height: 0;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  animation: cardFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wizard-card.active {
  display: flex;
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.wizard-header {
  flex-shrink: 0;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid rgba(197, 168, 128, 0.08);
  padding-bottom: 0.5rem;
}

.wizard-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wizard-title span {
  font-size: 1.15rem;
  color: var(--hotel-primary);
}

.wizard-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

/* El cuerpo ocupa toda la altura disponible y distribuye su contenido */
.wizard-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-bottom: 0.7rem;
  overflow: auto;
  overscroll-behavior: contain;
}

.wizard-footer {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(197, 168, 128, 0.08);
  padding-top: 0.7rem;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  outline: none;
  text-decoration: none;
}

.btn span { font-size: 1.05rem; }

.btn-primary {
  background: var(--hotel-primary);
  color: var(--text-dark);
}

.btn-primary:hover:not(:disabled) {
  background: var(--hotel-primary-hover);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: rgba(197, 168, 128, 0.3);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.15);
}

.btn-whatsapp:hover {
  background: #20ba5a;
  box-shadow: 0 8px 20px rgba(32, 186, 90, 0.25);
  transform: translateY(-1px);
  color: #ffffff;
}

.text-whatsapp { color: var(--whatsapp); }
.font-semibold { font-weight: 600; }
.text-primary { color: var(--text-primary); }

/* ==========================================================================
   Paso 1 — Fechas + Calendario
   ========================================================================== */

.date-selection-grid {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.input-label {
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--hotel-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.input-label span { font-size: 0.85rem; }

.input-field {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.25px solid rgba(197, 168, 128, 0.2);
  border-radius: 0;
  padding: 0.45rem 0;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition-fast);
}

.input-field:focus { border-bottom-color: var(--hotel-primary); }

textarea.input-field {
  border: 1px solid rgba(197, 168, 128, 0.2);
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.01);
}
textarea.input-field:focus { border-color: var(--hotel-primary); }

/* El calendario se centra y ocupa el espacio sobrante del cuerpo */
.calendar-wrapper {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.005);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
}

.calendar-header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.calendar-nav-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-fast);
  outline: none;
}

.calendar-nav-btn:hover:not([disabled]) {
  border-color: var(--hotel-primary);
  color: var(--hotel-primary);
}

.calendar-month-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--hotel-primary);
  margin-bottom: 0.3rem;
  opacity: 0.8;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  justify-items: center;
}

.cal-day {
  width: 100%;
  max-width: 38px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-secondary);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
}

.cal-day:hover:not(.disabled):not(.selected-start):not(.selected-end):not(.in-range) {
  background: rgba(197, 168, 128, 0.1);
  color: var(--text-primary);
}

.cal-day.disabled {
  opacity: 0.15;
  cursor: not-allowed;
  text-decoration: line-through;
}

.cal-day.empty {
  cursor: default;
  opacity: 0;
}

.cal-day.selected-start,
.cal-day.selected-end {
  background: var(--hotel-primary) !important;
  color: var(--text-dark) !important;
  font-weight: 600;
}

.cal-day.in-range {
  background: rgba(197, 168, 128, 0.12) !important;
  color: var(--hotel-primary) !important;
  border-radius: 0;
}

.cal-day.in-range-start { border-top-left-radius: 50%; border-bottom-left-radius: 50%; }
.cal-day.in-range-end { border-top-right-radius: 50%; border-bottom-right-radius: 50%; }

/* ==========================================================================
   Paso 2 — Huéspedes
   ========================================================================== */

.guests-container {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
}

.guest-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.005);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  transition: var(--transition-fast);
}

.guest-row:hover {
  border-color: rgba(197, 168, 128, 0.25);
}

.guest-info { display: flex; flex-direction: column; gap: 0.15rem; }
.guest-title { font-size: 0.95rem; font-weight: 500; color: var(--text-primary); }
.guest-desc { font-size: 0.72rem; color: var(--text-muted); }

.counter-controls { display: flex; align-items: center; gap: 1.25rem; }

.counter-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(197, 168, 128, 0.2);
  background: transparent;
  color: var(--text-secondary);
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-fast);
  outline: none;
}

.counter-btn:hover:not(:disabled) {
  border-color: var(--hotel-primary);
  color: var(--hotel-primary);
}

.counter-btn:disabled { opacity: 0.2; cursor: not-allowed; }

.counter-value {
  font-size: 1.1rem;
  font-weight: 500;
  min-width: 20px;
  text-align: center;
  color: var(--text-primary);
}

/* ==========================================================================
   Paso 3 — Habitaciones (cards que llenan el alto disponible)
   ========================================================================== */

.rooms-grid {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.rooms-grid::-webkit-scrollbar { width: 3px; }
.rooms-grid::-webkit-scrollbar-thumb { background: var(--hotel-primary); border-radius: 1px; }

.room-card {
  flex: 1 1 0;
  min-height: 52px;
  display: flex;
  background: rgba(255, 255, 255, 0.005);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.room-card:hover {
  background: rgba(255, 255, 255, 0.01);
  border-color: rgba(197, 168, 128, 0.3);
}

.room-card.selected {
  background: rgba(197, 168, 128, 0.05);
  border-color: var(--hotel-primary);
}

.room-card.unavailable {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.6);
}

.room-card.unavailable:hover {
  border-color: var(--card-border);
  background: rgba(255, 255, 255, 0.005);
}

.room-card.unavailable .room-price-info { visibility: hidden; }

.room-card.unavailable::after {
  content: "No admite esta ocupación";
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  pointer-events: none;
}

.room-img-container {
  width: 90px;
  flex-shrink: 0;
  position: relative;
  background-color: var(--bg-primary);
  cursor: zoom-in;
  overflow: hidden;
}

.room-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.room-img-container:hover .room-card-img { transform: scale(1.08); }

/* Indicador de "ampliar" sobre la imagen */
.room-img-container::after {
  content: "search";
  font-family: 'Material Symbols Outlined';
  position: absolute;
  bottom: 3px;
  right: 3px;
  font-size: 14px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.room-img-container:hover::after { opacity: 1; }

.room-details {
  flex: 1;
  padding: 0.35rem 2.6rem 0.35rem 1rem;
  display: flex;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.room-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 0.5rem;
}

.room-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-primary);
}

.room-specs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.15rem;
}

.room-spec-item {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.62rem;
  color: var(--text-muted);
}

.room-spec-item span { font-size: 0.8rem; color: var(--hotel-primary); }

.room-amenities-list {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

.room-amenity-badge {
  font-size: 0.58rem;
  color: var(--text-secondary);
  background: rgba(197, 168, 128, 0.04);
  border: 1px solid rgba(197, 168, 128, 0.08);
  padding: 0.05rem 0.3rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.room-amenity-badge span {
  font-size: 0.7rem;
  color: var(--hotel-primary);
}

.room-price-info { text-align: right; flex-shrink: 0; }

.room-price {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--hotel-primary);
}

.room-price-desc { font-size: 0.6rem; color: var(--text-muted); }

.room-select-badge {
  position: absolute;
  top: 50%;
  right: 0.85rem;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-fast);
}

.room-card.selected .room-select-badge {
  background: var(--hotel-primary);
  border-color: var(--hotel-primary);
}

.room-card.selected .room-select-badge::after {
  content: "check";
  font-family: 'Material Symbols Outlined';
  font-size: 0.7rem;
  color: var(--text-dark);
}

.room-card.unavailable .room-select-badge { display: none; }

/* ==========================================================================
   Paso 4 — Formulario
   ========================================================================== */

.form-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1rem;
  align-content: center;
}

.form-grid .input-group.full-width { grid-column: span 2; }

.textarea-field { resize: none; min-height: 44px; }

/* ==========================================================================
   Paso 5 — Confirmación (resumen + mapa + WhatsApp)
   ========================================================================== */

.confirm-layout {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.confirm-block-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hotel-primary);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.confirm-block-title span { font-size: 0.95rem; }

.whatsapp-summary-box {
  background: rgba(255, 255, 255, 0.005);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}

.whatsapp-summary-details { display: flex; flex-direction: column; gap: 0.3rem; }

.sum-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.75rem;
}

.sum-row-lbl { color: var(--text-secondary); flex: 0 0 34%; }
.sum-row-val {
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
}

.sum-row-total {
  border-top: 1px dashed rgba(197, 168, 128, 0.15);
  padding-top: 0.45rem;
  margin-top: 0.2rem;
}

.sum-row-total .sum-row-lbl,
.sum-row-total .sum-row-val { color: var(--hotel-primary); font-weight: 600; }

/* Mapa de ubicación */
.location-map {
  flex: 1;
  min-height: 120px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.3) invert(0.9) hue-rotate(180deg) brightness(0.9) contrast(0.9);
}

.location-address {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.location-address span { color: var(--hotel-primary); font-size: 0.95rem; flex-shrink: 0; }

.whatsapp-info-block {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(37, 211, 102, 0.04);
  border: 1px solid rgba(37, 211, 102, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
}

.whatsapp-info-icon { display: flex; align-items: center; flex-shrink: 0; }
.whatsapp-info-icon span { font-size: 1.8rem; }
.whatsapp-info-text { flex: 1; }
.whatsapp-info-text p:first-child { font-size: 0.82rem; margin-bottom: 0.1rem; }
.whatsapp-info-text p:last-child { font-size: 0.7rem; line-height: 1.3; color: var(--text-secondary); }

/* ==========================================================================
   Resumen lateral (Desktop) — oculto en móvil
   ========================================================================== */

.summary-sidebar { display: none; }

.summary-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid rgba(197, 168, 128, 0.08);
  padding-bottom: 0.5rem;
  flex-shrink: 0;
}

.summary-title span { font-size: 1.1rem; color: var(--hotel-primary); }

.summary-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.summary-item { display: flex; justify-content: space-between; align-items: start; gap: 0.5rem; }

.summary-item-label {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.summary-item-label span { font-size: 0.85rem; color: var(--hotel-primary); }

.summary-item-value {
  font-size: 0.82rem;
  font-weight: 500;
  text-align: right;
  color: var(--text-primary);
  max-width: 62%;
}

.summary-price-breakdown {
  border-top: 1px dashed rgba(197, 168, 128, 0.12);
  padding-top: 0.6rem;
  margin-bottom: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.summary-price-row-custom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.price-stack { display: flex; flex-direction: column; }
.usd-price { font-size: 0.82rem; color: var(--text-primary); font-weight: 600; }
.bs-price { font-size: 0.7rem; color: var(--text-muted); }
.included-tag { color: var(--success); font-weight: 600; font-size: 0.78rem; }

.summary-total {
  border-top: 1px solid rgba(197, 168, 128, 0.15);
  padding-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.summary-total-head { display: flex; justify-content: space-between; align-items: center; }
.summary-total-label { font-family: var(--font-serif); font-size: 1.15rem; color: var(--text-primary); }
.summary-total-price { font-size: 1.3rem; font-weight: 600; color: var(--hotel-primary); }
.bs-total-price { text-align: right; font-size: 0.82rem; color: var(--hotel-primary); font-weight: 500; opacity: 0.85; }
.bcv-rate-note { text-align: right; font-size: 0.62rem; color: var(--text-muted); font-style: italic; }
.included-note {
  font-size: 0.66rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.15rem;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   Resumen móvil — barra inferior + hoja desplegable
   ========================================================================== */

.mobile-summary-toggle {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}

.mobile-summary-info { display: flex; flex-direction: column; gap: 0.05rem; }

.mobile-summary-label {
  font-size: 0.58rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.mobile-summary-cost { font-size: 1.05rem; font-weight: 600; color: var(--hotel-primary); }

.mobile-view-details-btn {
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.mobile-view-details-btn span { font-size: 0.9rem; }

.mobile-summary-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 16, 15, 0.85);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: none;
  justify-content: center;
  align-items: flex-end;
}

.mobile-summary-overlay.active { display: flex; }

.mobile-summary-modal {
  width: 100%;
  max-width: 560px;
  background: var(--bg-secondary);
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  border-bottom: none;
  padding: 1.25rem 1.25rem 1.75rem;
  box-shadow: 0 -15px 30px rgba(0, 0, 0, 0.4);
  animation: slideUpModal 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpModal {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.mobile-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(197, 168, 128, 0.08);
  padding-bottom: 0.5rem;
  margin-bottom: 0.85rem;
}

.mobile-summary-title { font-family: var(--font-serif); font-size: 1.1rem; color: var(--text-primary); }

.mobile-summary-close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text-secondary);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

/* ==========================================================================
   Lightbox (ampliar imagen de habitación)
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 7, 6, 0.92);
  backdrop-filter: blur(6px);
  z-index: 1100;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
}

.lightbox.active { display: flex; animation: fadeInLb 0.3s ease forwards; }

@keyframes fadeInLb { from { opacity: 0; } to { opacity: 1; } }

.lightbox img {
  max-width: 92vw;
  max-height: 78vh;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  object-fit: contain;
}

.lightbox-caption {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.18); }
.lightbox-close span { font-size: 1.4rem; }

/* ==========================================================================
   Overlay de carga + Pantalla de éxito
   ========================================================================== */

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 16, 15, 0.96);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1.5rem;
}

.loading-overlay.active { display: flex; }

.payment-loader { position: relative; width: 50px; height: 50px; }

.payment-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(197, 168, 128, 0.1);
  border-top-color: var(--hotel-primary);
  animation: spin 1s linear infinite;
}

.loading-status-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

@keyframes spin { to { transform: rotate(360deg); } }

.success-screen {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.success-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--whatsapp);
  background: rgba(37, 211, 102, 0.12);
}

.success-icon-wrapper span { color: var(--whatsapp); font-size: 2.5rem; }

.success-title { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 400; }
.success-desc { font-size: 0.85rem; line-height: 1.5; color: var(--text-secondary); max-width: 420px; }

.success-badge-card {
  background: rgba(255, 255, 255, 0.005);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 2rem;
}

.success-badge-label {
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}

.success-badge-code {
  font-family: var(--font-serif);
  color: var(--hotel-primary);
  letter-spacing: 0.1em;
  font-size: 1.5rem;
}

/* ==========================================================================
   Widget flotante de WhatsApp (siempre abajo a la DERECHA)
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  left: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  z-index: 950;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: whatsappPop 0.5s cubic-bezier(0.16, 1, 0.3, 1) 1s both;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.5);
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--whatsapp);
  z-index: -1;
  animation: whatsappPulse 2.4s ease-out infinite;
}

@keyframes whatsappPulse {
  0% { transform: scale(1); opacity: 0.5; }
  70%, 100% { transform: scale(1.6); opacity: 0; }
}

@keyframes whatsappPop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   DESKTOP — dos columnas (min-width: 900px)
   ========================================================================== */

@media (min-width: 900px) {
  :root { --header-h: 56px; }

  .hotel-header { padding: 0 2.5rem; }
  .header-logo { font-size: 1.35rem; }
  .back-to-home { font-size: 0.78rem; }

  .booking-portal {
    padding: 1rem 1.5rem;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 1rem;
  }

  .step-tracker {
    grid-column: span 2;
    padding: 0.85rem clamp(1.5rem, 4vw, 3rem);
  }

  .step-label { display: inline; }

  .wizard-column { grid-column: 1; grid-row: 2; }

  .wizard-card { padding: 1.4rem 1.6rem; }
  .wizard-title { font-size: 1.45rem; }

  .room-img-container { width: 130px; }
  .room-title { font-size: 1.05rem; }

  /* Mostrar resumen lateral, ocultar barra móvil */
  .summary-sidebar {
    grid-column: 2;
    grid-row: 2;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.4rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
  }

  .summary-list { flex: 0 0 auto; }

  /* El mapa del sidebar ocupa el espacio sobrante */
  .sidebar-map { flex: 1; min-height: 90px; margin-bottom: 0.75rem; }

  .mobile-summary-toggle,
  .mobile-summary-overlay { display: none !important; }

  /* En el paso 5, el mapa propio se oculta (ya está en el sidebar) */
  .confirm-layout .location-map,
  .confirm-layout .location-address { display: none; }

  .confirm-layout { gap: 0.85rem; }
  .whatsapp-summary-box { padding: 1rem 1.2rem; }
  .sum-row { font-size: 0.82rem; }
}

/* En móvil el sidebar no existe; su mapa tampoco */
@media (max-width: 899px) {
  .sidebar-map { display: none; }
  .room-amenities-list { display: none; } /* Hide detailed badges list on mobile to save vertical space and guarantee zero-scroll */
  .wizard-card { overflow: hidden; }
  .wizard-body { padding-right: 0.15rem; }
  #wizard-step-5 .wizard-body { margin-bottom: 0.45rem; }
  #wizard-step-5 .confirm-layout { gap: 0.7rem; padding-bottom: 0.25rem; }
  #wizard-step-5 .location-map { flex: 0 0 auto; min-height: 155px; height: 155px; }
  #wizard-step-5 .whatsapp-info-block {
    align-items: flex-start;
    padding: 0.75rem 0.85rem;
  }
  #wizard-step-5 .wizard-footer {
    position: relative;
    z-index: 2;
    background: var(--card-bg);
  }
  #wizard-step-5 .btn {
    min-height: 48px;
    padding-inline: 0.85rem;
  }
  .whatsapp-float { display: none; }
}

/* ==========================================================================
   Pantallas muy bajas — compactaciones de seguridad (anti-scroll)
   ========================================================================== */

@media (max-height: 680px) {
  .wizard-title { font-size: 1.1rem; }
  .wizard-subtitle { display: none; }
  .wizard-header { margin-bottom: 0.4rem; padding-bottom: 0.35rem; }
  .calendar-month-title { font-size: 0.85rem; }
  .cal-day { font-size: 0.7rem; max-width: 32px; }
  .guest-row { padding: 0.6rem 1rem; }
  .room-card { min-height: 44px; }
  .location-map { min-height: 90px; }
  .btn { padding: 0.5rem 1.1rem; }
}
