/* ==========================================================================
   SUPER POPUP DE RESERVA (HASTA 1800px x 900px EN DESKTOP / 100% EN MÓVIL)
   100% Responsive, 100% Táctil (Mínimo 48px - 52px en controles interactivos)
   ========================================================================== */

/* --- LOADER CSS PERSONALIZADO (2 SEGUNDOS) --- */
.reserva-loader {
  --color-1: #1A6DE3;
  --color-2: #c3d600;
  --size: 1.4px;

  width: calc(48 * var(--size));
  height: calc(48 * var(--size));
  border-radius: 50%;
  position: relative;
  animation: reservaRotate 1s linear infinite;
  margin: 0 auto;
}

.reserva-loader::before,
.reserva-loader::after {
  content: '';
  box-sizing: border-box;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: calc(5 * var(--size)) solid var(--color-1);
  animation: reservaPrixClipFix 2s linear infinite;
}

.reserva-loader::after {
  inset: calc(8 * var(--size));
  transform: rotate3d(90, 90, 0, 180deg);
  border-color: var(--color-2);
}

@keyframes reservaRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes reservaPrixClipFix {
  0% { clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0); }
  50% { clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0); }
  75%, 100% { clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 100%, 100% 100%, 100% 100%); }
}

/* --- OVERLAY DEL SUPER POPUP --- */
.reserva-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.reserva-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* --- CONTENEDOR EXTRA-WIDE (HASTA 1650px x 840px EN DESKTOP / 100% EN MÓVIL) --- */
.reserva-modal-container {
  background: #ffffff;
  width: 100%;
  max-width: 1650px;
  height: 840px;
  max-height: min(880px, calc(100vh - 40px));
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.28);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.99);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.reserva-modal-overlay.active .reserva-modal-container {
  transform: translateY(0) scale(1);
}

/* Botón cerrar táctil flotante en la esquina superior derecha (36px x 36px minimalista) */
.reserva-btn-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  font-size: 14px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 120;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.reserva-btn-close:hover,
.reserva-btn-close:active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  transform: rotate(90deg);
}

/* --- ESTADO 1: PANTALLA DE CARGA (SPINNER 2 SEGUNDOS) --- */
.reserva-loading-screen {
  flex: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: radial-gradient(circle at center, rgba(26, 109, 227, 0.04) 0%, #ffffff 70%);
}

.reserva-loading-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(26, 109, 227, 0.08);
  color: #1A6DE3;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(26, 109, 227, 0.08);
}

.reserva-loading-title {
  margin-top: 32px;
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
}

.reserva-loading-desc {
  margin-top: 10px;
  font-size: 1.05rem;
  color: #64748b;
  max-width: 480px;
  text-align: center;
  line-height: 1.5;
}

/* --- ESTADO 2: WIZARD DE RESERVA (LAYOUT DUAL 1650px) --- */
.reserva-wizard-screen {
  display: none;
  flex: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.reserva-wizard-screen.active {
  display: flex;
  animation: reservaFadeUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Estructura a 2 columnas en 1650px: Izquierda Wizard (Formulario) / Derecha Resumen del Espacio */
.reserva-dual-layout {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* COLUMNA IZQUIERDA: FORMULARIO Y STEPPER */
.reserva-col-wizard {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  overflow: hidden;
}

/* Cabecera del formulario */
.reserva-header {
  padding: 22px 36px 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  flex-shrink: 0;
}

.reserva-header-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.reserva-mobile-step-badge {
  display: inline-flex;
  align-items: center;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.reserva-mobile-step-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.reserva-stepper {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

.reserva-step-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.reserva-step-bar {
  height: 4px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.reserva-step-bar-fill {
  position: absolute;
  inset: 0;
  background: #0f172a;
  width: 0%;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.reserva-step-item.active .reserva-step-bar-fill {
  width: 100%;
}

.reserva-step-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.reserva-step-item.active .reserva-step-label {
  color: #0f172a;
}

.reserva-step-item:hover .reserva-step-label {
  color: #475569;
}

/* Cuerpo con scroll propio suave y slim scrollbar */
.reserva-body {
  padding: 28px 36px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.reserva-body::-webkit-scrollbar {
  width: 6px;
}

.reserva-body::-webkit-scrollbar-track {
  background: transparent;
}

.reserva-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.reserva-body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.reserva-section-title {
  font-size: 1.28rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}

.reserva-section-subtitle {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 22px;
  line-height: 1.45;
}

/* Selector Tipo de Persona (Particular vs Empresa) */
.reserva-person-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

.reserva-person-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  min-height: 62px;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
  background: #ffffff;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}

.reserva-person-card:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.reserva-person-card.selected {
  border-color: #0f172a;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.reserva-person-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.reserva-person-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.reserva-person-card.selected .reserva-person-icon {
  background: #0f172a;
  color: #c3d600;
}

.reserva-person-info h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}

.reserva-person-info p {
  font-size: 0.82rem;
  color: #64748b;
  margin: 3px 0 0;
}

/* Selector Modalidad de Firma (Logalty vs Certificado Digital) */
.reserva-firma-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.reserva-firma-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  min-height: 54px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  background: #ffffff;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}

.reserva-firma-card:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.reserva-firma-card.selected {
  border-color: #0f172a;
  background: #ffffff;
  box-shadow: none;
}

.reserva-firma-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.reserva-firma-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.reserva-firma-card.selected .reserva-firma-icon {
  background: #0f172a;
  color: #c3d600;
}

.reserva-firma-info h4 {
  font-size: 0.94rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
}

.reserva-firma-info p {
  font-size: 0.78rem;
  color: #64748b;
  margin: 2px 0 0;
  line-height: 1.3;
}

@media (max-width: 640px) {
  .reserva-firma-selector {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* --- SUBSELECTOR DE PERFILES JURÍDICOS (PASO 1) --- */
.reserva-profile-subselector-wrap {
  margin-top: 12px;
  margin-bottom: 22px;
}

.reserva-profile-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.reserva-profile-option-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 14px;
  min-height: 66px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  background: #ffffff;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}

.reserva-profile-option-card:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.reserva-profile-option-card.selected {
  border-color: #0f172a;
  background: #f8fafc;
}

.reserva-profile-option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.reserva-profile-option-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.reserva-profile-option-header i {
  color: #0f172a;
  font-size: 0.95rem;
}

.reserva-profile-option-card.selected .reserva-profile-option-header i {
  color: #0f172a;
}

.reserva-profile-option-header strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

.reserva-profile-option-card p {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0;
  line-height: 1.3;
}

/* Cabecera de la sección de país con Tag Dinámica alineada */
.reserva-country-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  margin-bottom: 12px;
}

.reserva-active-country-wrapper {
  display: flex;
  align-items: center;
}

.reserva-active-country-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid #0f172a;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  animation: reservaTagPop 0.25s ease-out forwards;
}

@keyframes reservaTagPop {
  0% { transform: scale(0.96); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.reserva-flag-icon {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  display: block;
}

.reserva-active-country-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

.reserva-active-country-check {
  color: #16a34a;
  font-size: 0.85rem;
  margin-left: 2px;
}

/* Buscador de Países */
.reserva-country-search-box {
  position: relative;
  margin-bottom: 10px;
}

.reserva-country-search-box i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1rem;
  pointer-events: none;
}

.reserva-country-search-input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 46px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.92rem;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  transition: all 0.2s ease;
}

.reserva-country-search-input:focus {
  border-color: #0f172a;
  background: #ffffff;
  box-shadow: none;
}

/* Lista Desplegable / Selector de Países */
.reserva-country-list {
  max-height: 150px;
  overflow-y: auto;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #ffffff;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.reserva-country-list::-webkit-scrollbar {
  width: 5px;
}

.reserva-country-list::-webkit-scrollbar-track {
  background: transparent;
}

.reserva-country-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.reserva-country-item {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.15s ease;
  user-select: none;
}

.reserva-country-item:hover {
  background: #f1f5f9;
}

.reserva-country-item.selected {
  background: #f1f5f9;
}

.reserva-country-item.selected .reserva-country-name-text {
  color: #0f172a;
  font-weight: 700;
}

.reserva-country-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reserva-country-name-text {
  font-size: 0.88rem;
  color: #1e293b;
  font-weight: 500;
}

.reserva-country-iso-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Pie del Wizard (Sticky Footer) */
.reserva-footer {
  padding: 16px 36px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}

/* --- ESTILOS DEL FORMULARIO DEL PASO 2 --- */
.reserva-step-pane {
  animation: reservaFadeUp 0.25s ease-out forwards;
}

.reserva-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 10px;
}

.reserva-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reserva-form-group.full-width {
  grid-column: 1 / -1;
}

.reserva-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 2px;
}

.reserva-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.94rem;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  box-shadow: none; /* Cero resplandor */
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

.reserva-input:focus {
  border-color: #0f172a;
  background: #ffffff;
  box-shadow: none;
}

.reserva-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.reserva-input.error {
  border-color: #ef4444;
  background: #fff5f5;
}

/* Conmutador táctil de tipo de persona en Paso 2 */
.reserva-tipo-persona-switch {
  display: flex;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  gap: 6px;
  margin-bottom: 16px;
  border: 1px solid #e2e8f0;
}

.btn-tipo-persona {
  flex: 1;
  min-height: 48px;
  border: none;
  background: transparent;
  color: #475569;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-tipo-persona:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.6);
}

.btn-tipo-persona.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Separadores sutiles de sección en el formulario */
.reserva-form-section-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #334155;
  margin-top: 20px;
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid #f1f5f9;
}

.reserva-form-section-divider:first-of-type {
  margin-top: 4px;
}

.reserva-form-section-divider i {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #f1f5f9;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  flex-shrink: 0;
}

/* Sub-grid para Código Postal, Ciudad y Provincia */
.reserva-address-subgrid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 140px 1fr 1fr;
  gap: 16px;
}

/* Sección condicional de facturación fiscal a ancho completo (sin caja) */
.reserva-facturacion-section {
  grid-column: 1 / -1;
  width: 100%;
}

.reserva-collapsible-field {
  width: 100%;
}

@media (max-width: 640px) {
  .reserva-form-grid {
    grid-template-columns: 1fr;
  }
  .reserva-address-subgrid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   SELECTOR TÁCTIL DE TELÉFONO CON BANDERAS Y PREFIJOS INTERNACIONALES
   100% Táctil (Mínimo 48px), Cero Resplandor, Flat Design
   ========================================================================== */
.reserva-phone-input-wrapper {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  overflow: visible;
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Efecto hover y focus unificado para todo el contorno */
.reserva-phone-input-wrapper:hover {
  border-color: #cbd5e1;
}

.reserva-phone-input-wrapper:focus-within,
.reserva-phone-input-wrapper.active-focus {
  border-color: #0f172a;
}

.reserva-phone-input-wrapper.error {
  border-color: #ef4444;
  background: #fff5f5;
}

/* Botón táctil con bandera y prefijo integrado */
.reserva-phone-dial-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  height: 100%;
  padding: 0 14px;
  background: #f8fafc;
  border: none;
  border-right: 1.5px solid #e2e8f0;
  border-radius: 10px 0 0 10px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  outline: none;
}

.reserva-phone-input-wrapper:focus-within .reserva-phone-dial-btn,
.reserva-phone-input-wrapper:hover .reserva-phone-dial-btn {
  border-right-color: inherit;
}

.reserva-phone-dial-btn:hover {
  background: #f1f5f9;
}

.reserva-phone-dial-btn .reserva-flag-icon {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  display: block;
}

.reserva-phone-dial-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.reserva-phone-dial-chevron {
  font-size: 0.72rem;
  color: #64748b;
  transition: transform 0.2s ease;
}

.reserva-phone-dial-btn.open .reserva-phone-dial-chevron {
  transform: rotate(180deg);
}

/* Input numérico interior perfectamente fusionado */
.reserva-phone-number-input {
  border: none !important;
  border-radius: 0 8px 8px 0 !important;
  flex: 1;
  height: 100%;
  background: transparent;
  outline: none;
  box-shadow: none !important;
}

.reserva-phone-number-input:focus {
  border: none !important;
  box-shadow: none !important;
}

/* Dropdown táctil con listado de banderas y buscador */
.reserva-phone-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.05);
  z-index: 100;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.reserva-phone-dropdown-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.reserva-phone-dropdown-search i {
  color: #94a3b8;
  font-size: 0.9rem;
}

.reserva-phone-search-box {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.9rem;
  color: #0f172a;
  padding: 4px 0;
}

.reserva-phone-search-box::placeholder {
  color: #94a3b8;
}

.reserva-phone-options-list {
  max-height: 240px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Opción táctil de país (48px de alto para UX óptima) */
.reserva-phone-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 14px;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid #f8fafc;
  transition: background-color 0.12s ease;
}

.reserva-phone-option:last-child {
  border-bottom: none;
}

.reserva-phone-option:hover {
  background: #f8fafc;
}

.reserva-phone-option.selected {
  background: #f1f5f9;
  font-weight: 700;
}

.reserva-phone-option-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.reserva-phone-option .reserva-flag-icon {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.reserva-phone-option-name {
  font-size: 0.9rem;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reserva-phone-option-dial {
  font-size: 0.88rem;
  font-weight: 700;
  color: #475569;
  margin-left: 12px;
  flex-shrink: 0;
}

/* Checkbox táctil y limpio bajo Teléfono Móvil */
.reserva-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  cursor: pointer;
  user-select: none;
  min-height: 38px; /* Táctil */
}

.reserva-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #111827;
  flex-shrink: 0;
  margin: 0;
}

.reserva-checkbox-text {
  font-size: 0.85rem;
  color: #475569;
  font-weight: 500;
  line-height: 1.35;
}

.reserva-checkbox-label:hover .reserva-checkbox-text {
  color: #0f172a;
}

.reserva-checkbox-label.error {
  padding: 4px 8px;
  border-radius: 6px;
  background: #fff5f5;
  border: 1px solid #fecaca;
}

.reserva-checkbox-label.error .reserva-checkbox-text {
  color: #b91c1c;
  font-weight: 600;
}

.reserva-feedback-msg {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
}

.reserva-feedback-msg.error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* ========================================================================= */
/* CAJAS Y CAMPOS CONDICIONALES DE FACTURACIÓN (100% RESPONSIVE Y TÁCTIL)    */
/* ========================================================================= */
.reserva-collapsible-field {
  animation: reservaFadeInSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reserva-facturacion-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 8px;
  margin-bottom: 16px;
  animation: reservaFadeInSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reserva-facturacion-box-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.reserva-facturacion-box-header i {
  color: var(--primary, #0f172a);
  font-size: 0.95rem;
}

@keyframes reservaFadeInSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reserva-footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.reserva-btn-secondary {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.reserva-summary-confirmation-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.reserva-conf-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px dashed #e2e8f0;
}

.reserva-conf-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
  padding-top: 4px;
}

.reserva-conf-label {
  font-size: 0.9rem;
  color: #64748b;
}

.reserva-conf-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  text-align: right;
}

.reserva-btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: none;
}

.reserva-security-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #64748b;
  font-weight: 500;
}

.reserva-security-notice i {
  color: #10b981;
  font-size: 0.95rem;
}

.reserva-btn-primary {
  min-height: 48px;
  padding: 0 32px;
  border-radius: 12px;
  border: none;
  background: var(--primary, #c3d600);
  color: #0f172a;
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: none; /* Sin resplandor exterior */
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  user-select: none;
}

.reserva-btn-primary:hover {
  background: var(--primary-hover, #b0c200);
  transform: translateY(-1px);
  box-shadow: none;
}

.reserva-btn-primary:active {
  transform: translateY(0) scale(0.99);
}

.reserva-btn-primary:disabled {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ==========================================================================
   ESTILOS ESPECÍFICOS DEL PASO 3: VERIFICACIÓN KYC (OCR Y SELFIE)
   100% Táctil, Botones de 48-52px, Bordes Sólidos y Cero Resplandor
   ========================================================================== */
.reserva-kyc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 14px;
  margin-bottom: 16px;
}

.reserva-kyc-card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
  position: relative;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.reserva-kyc-card.completed {
  border-color: #10b981;
  background: #f0fdf4;
}

.reserva-kyc-pdf-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.reserva-kyc-preview-zone {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  min-height: 150px;
  border-radius: 12px;
  background: #f8fafc;
  overflow: hidden;
  border: 1px dashed #cbd5e1;
}

.reserva-kyc-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 8px;
  width: 100%;
}

.reserva-kyc-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.reserva-kyc-label-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.reserva-kyc-label-desc {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 12px;
}

.reserva-kyc-actions-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 220px;
}

.reserva-kyc-btn-capture {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1.5px solid #111827;
  background: #111827;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
  width: 100%;
}

.reserva-kyc-btn-capture:hover {
  background: #1e293b;
}

.reserva-kyc-btn-upload {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
  width: 100%;
}

.reserva-kyc-btn-upload:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.reserva-kyc-img-preview {
  width: 100%;
  height: 100%;
  max-height: 170px;
  object-fit: cover;
  border-radius: 10px;
}

.reserva-kyc-retake-group {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}

.reserva-kyc-btn-retake {
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  min-height: 38px;
  flex: 1;
  max-width: 140px;
}

.reserva-kyc-btn-retake:hover {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.reserva-kyc-btn-retake:active {
  transform: translateY(0);
}

.reserva-kyc-btn-retake.btn-retake-upload {
  background: rgba(30, 41, 59, 0.9);
}

.reserva-kyc-btn-retake.btn-retake-upload:hover {
  background: #1e293b;
}

.reserva-kyc-status {
  margin-top: 10px;
  text-align: center;
}

.reserva-kyc-badge-pending {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.reserva-kyc-badge-ok {
  font-size: 0.82rem;
  color: #15803d;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Indicador de procesamiento OCR con IA (Secuencia de 4 fases y barra de progreso) */
.reserva-kyc-ocr-loading {
  background: #f0f7ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
  animation: reservaFadeUp 0.25s ease-out;
  box-sizing: border-box;
  width: 100%;
}

.reserva-kyc-ocr-top {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.reserva-mini-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #bfdbfe;
  border-top-color: #1d4ed8;
  border-radius: 50%;
  animation: reservaRotate 0.8s linear infinite;
  flex-shrink: 0;
}

.reserva-kyc-ocr-text {
  flex: 1;
  min-width: 0;
}

.reserva-kyc-ocr-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e3a8a;
  line-height: 1.35;
  transition: color 0.3s ease;
}

.reserva-kyc-ocr-text span {
  display: block;
  font-size: 0.82rem;
  color: #2563eb;
  margin-top: 2px;
  line-height: 1.3;
}

.reserva-kyc-timer-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  padding: 4px 9px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1e40af;
}

/* Barra de progreso fluida */
.reserva-kyc-progress-track {
  width: 100%;
  height: 6px;
  background: #dbeafe;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.reserva-kyc-progress-bar {
  height: 100%;
  background: #2563eb;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reserva-kyc-ocr-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.77rem;
  flex-wrap: wrap;
}

.reserva-kyc-ocr-phase {
  font-weight: 700;
  color: #1e40af;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.reserva-kyc-ocr-notice {
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

@media (max-width: 768px) {
  .reserva-kyc-ocr-loading {
    padding: 14px;
    gap: 10px;
  }

  .reserva-kyc-ocr-top {
    align-items: flex-start;
  }

  .reserva-kyc-ocr-text strong {
    font-size: 0.88rem;
  }

  .reserva-kyc-ocr-text span {
    font-size: 0.78rem;
  }

  .reserva-kyc-ocr-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (max-width: 768px) {
  .reserva-kyc-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .reserva-kyc-card {
    min-height: 190px;
  }
}

/* ==========================================================================
   ESTILOS DEL VISOR DE CÁMARA EN VIVO (ESTILO FINTECH / BINANCE CLEAN & SUBTLE)
   Bordes sólidos, 100% táctil (mínimo 48px), cero resplandores o halos
   ========================================================================== */
.reserva-camera-modal {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: reservaFadeUp 0.25s ease-out forwards;
}

.reserva-camera-box {
  background: #090d16;
  border: 1.5px solid #1e293b;
  border-radius: 24px;
  width: 100%;
  max-width: 660px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

/* Cabecera estilizada */
.reserva-camera-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
}

.reserva-camera-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reserva-camera-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.06em;
}

.reserva-camera-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
}

.reserva-camera-title {
  color: #f1f5f9;
  font-size: 0.96rem;
  font-weight: 700;
}

.reserva-camera-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1e293b;
  border: 1px solid #334155;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.15s ease;
}

.reserva-camera-close:hover {
  background: #334155;
  color: #ffffff;
}

/* Viewport con aspecto cinematográfico 4:3 */
.reserva-camera-viewport {
  position: relative;
  width: 100%;
  height: 390px;
  background: #020617;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#reserva-camera-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Loader mientras se activa la cámara */
.reserva-camera-init-loader {
  position: absolute;
  inset: 0;
  background: #020617;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 5;
}

.reserva-camera-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #1e293b;
  border-top-color: var(--primary, #c3d600);
  border-radius: 50%;
  animation: reservaRotate 0.8s linear infinite;
}

/* Destello táctil al disparar */
.reserva-camera-flash {
  position: absolute;
  inset: 0;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transition: opacity 0.08s ease;
}

.reserva-camera-flash.active {
  opacity: 0.75;
}

/* Máscara Cutout */
.reserva-camera-overlay-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: transparent;
  z-index: 10;
  overflow: hidden;
}

/* Marco DNI (Ratio tarjeta de crédito ~85.6mm x 54mm) */
.reserva-camera-card-frame {
  width: 82%;
  max-width: 480px;
  height: 70%;
  position: relative;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12px;
  background: transparent;
  box-shadow: 0 0 0 9999px rgba(2, 6, 23, 0.55);
}

.reserva-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--primary, #c3d600);
  border-style: solid;
}

.reserva-corner.c-top-left {
  top: -2px;
  left: -2px;
  border-width: 3.5px 0 0 3.5px;
  border-top-left-radius: 14px;
}

.reserva-corner.c-top-right {
  top: -2px;
  right: -2px;
  border-width: 3.5px 3.5px 0 0;
  border-top-right-radius: 14px;
}

.reserva-corner.c-bottom-left {
  bottom: -2px;
  left: -2px;
  border-width: 0 0 3.5px 3.5px;
  border-bottom-left-radius: 14px;
}

.reserva-corner.c-bottom-right {
  bottom: -2px;
  right: -2px;
  border-width: 0 3.5px 3.5px 0;
  border-bottom-right-radius: 14px;
}

/* Marco Facial Biométrico (Selfie Oval) */
.reserva-camera-oval-frame {
  width: 250px;
  height: 310px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 16px;
}

.reserva-oval-border {
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(195, 214, 0, 0.85);
  border-radius: 50% 50% 48% 48% / 60% 60% 40% 40%;
  box-shadow: 0 0 0 9999px rgba(2, 6, 23, 0.45);
}

/* Línea sutil de escaneo */
.reserva-scan-line {
  position: absolute;
  top: 10%;
  left: 5%;
  right: 5%;
  height: 2px;
  background: var(--primary, #c3d600);
  opacity: 0.65;
  animation: reservaScanSweep 2.4s ease-in-out infinite alternate;
}

@keyframes reservaScanSweep {
  0% { top: 12%; opacity: 0.2; }
  50% { opacity: 0.75; }
  100% { top: 84%; opacity: 0.2; }
}

.reserva-camera-hint-badge {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #334155;
  color: #f8fafc;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 15;
}

.reserva-camera-hint-badge i {
  color: var(--primary, #c3d600);
}

/* Pie con obturador táctil ergonómico */
.reserva-camera-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 24px;
  background: #0f172a;
  border-top: 1px solid #1e293b;
}

.reserva-camera-footer-side {
  display: flex;
  align-items: center;
}

.reserva-camera-footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.reserva-camera-shutter-btn {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.reserva-camera-shutter-btn:hover {
  border-color: #ffffff;
  transform: scale(1.04);
}

.reserva-camera-shutter-btn:active {
  transform: scale(0.96);
}

.reserva-camera-shutter-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--primary, #c3d600);
  transition: background 0.15s ease;
}

.reserva-camera-shutter-btn:hover .reserva-camera-shutter-inner {
  background: var(--primary-hover, #b0c200);
}

.reserva-camera-shutter-hint {
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 600;
}

.reserva-camera-action-btn {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #f1f5f9;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease;
}

.reserva-camera-action-btn:hover {
  background: #334155;
}

@media (max-width: 768px) {
  .reserva-camera-modal {
    padding: 0;
  }
  .reserva-camera-box {
    height: 100vh;
    max-width: 100vw;
    border-radius: 0;
    border: none;
    justify-content: space-between;
  }
  .reserva-camera-viewport {
    height: calc(100vh - 190px);
  }
  .reserva-camera-card-frame {
    width: 90%;
    height: 60%;
  }
}

/* ==========================================================================
   COLUMNA DERECHA: FICHA RESUMEN DEL ESPACIO (ESTILO AIRBNB / LUXURY)
   ========================================================================== */

.reserva-col-summary {
  width: 400px;
  background: #f8fafc;
  border-left: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  overflow-y: auto;
  flex-shrink: 0;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.reserva-col-summary::-webkit-scrollbar {
  width: 5px;
}

.reserva-col-summary::-webkit-scrollbar-track {
  background: transparent;
}

.reserva-col-summary::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.reserva-summary-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1.5px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.reserva-summary-image-wrapper {
  position: relative;
  width: 100%;
  height: 185px;
  background: #0f172a;
  overflow: hidden;
}

.reserva-summary-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.reserva-summary-badge-type {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.reserva-summary-body {
  padding: 20px 20px 22px;
}

.reserva-summary-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.reserva-summary-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.reserva-summary-location i {
  color: #0f172a;
}

.reserva-summary-price-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.reserva-summary-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.reserva-summary-price-label {
  font-size: 0.84rem;
  color: #64748b;
  font-weight: 500;
}

.reserva-summary-price-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}

.reserva-summary-price-sub {
  font-size: 0.9rem;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
}

.reserva-price-vat-tag {
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
  margin-left: 2px;
}

.reserva-price-sub-tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
}

.reserva-summary-price-total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1.5px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.reserva-summary-price-total-label {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
}

.reserva-summary-price-total-label small {
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
}

.reserva-summary-price-total-value {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.reserva-summary-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.reserva-summary-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #334155;
  font-weight: 500;
}

.reserva-summary-feature-item i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f0fdf4;
  color: #16a34a;
  font-size: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reserva-summary-feature-note {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.35;
  margin-top: 2px;
}

/* Caja de garantía de bloqueo temporal */
.reserva-summary-guarantee {
  margin-top: 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-left: 3.5px solid #c3d600;
  border-radius: 10px;
  padding: 10px 14px;
}

.reserva-summary-guarantee p {
  font-size: 0.78rem;
  color: #475569;
  margin: 0;
  line-height: 1.45;
  font-weight: 500;
}

.reserva-summary-guarantee p i {
  color: #0f172a;
  font-size: 0.82rem;
  margin-right: 6px;
}

/* ==========================================================================
   ADAPTACIÓN RESPONSIVE TOTAL PARA MÓVIL Y TABLET
   ========================================================================== */
@media (max-width: 1024px) {
  .reserva-col-summary {
    display: none; /* En tablet/móvil se oculta la columna lateral para máxima amplitud */
  }

  .reserva-modal-container {
    height: 92vh;
    max-width: 95vw;
  }
}

@media (max-width: 768px) {
  .reserva-modal-overlay {
    padding: 0; /* Ocupa el 100% de la pantalla en móvil */
  }

  .reserva-modal-container {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0; /* Fullscreen mobile nativo */
    border: none;
  }

  .reserva-btn-close {
    top: max(8px, env(safe-area-inset-top));
    right: 8px;
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    z-index: 150;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  }

  /* Cabecera posicionada por debajo de la zona del botón cerrar */
  .reserva-header {
    padding-top: max(48px, calc(env(safe-area-inset-top) + 38px));
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 14px;
  }

  .reserva-header-top-row {
    margin-bottom: 6px;
  }

  .reserva-mobile-step-badge {
    font-size: 0.72rem;
    padding: 3px 8px;
  }

  .reserva-mobile-step-title {
    font-size: 0.88rem;
  }

  .reserva-stepper {
    gap: 6px;
    margin-top: 6px;
  }

  /* En móviles ocultamos el texto largo debajo de cada barrita: se indica arriba limpiamente */
  .reserva-step-label {
    display: none;
  }

  .reserva-step-bar {
    height: 5px;
  }

  .reserva-body {
    padding: 20px 16px;
    padding-bottom: 24px;
  }

  .reserva-section-title {
    font-size: 1.12rem;
    font-weight: 700;
    margin-top: 2px;
  }

  .reserva-section-subtitle {
    font-size: 0.84rem;
    margin-bottom: 16px;
  }

  .reserva-footer {
    padding: 14px 16px max(16px, env(safe-area-inset-bottom));
    flex-direction: column-reverse;
    gap: 12px;
  }

  .reserva-btn-primary {
    width: 100%;
    max-width: 100%;
  }

  .reserva-person-selector {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .reserva-quick-countries {
    gap: 8px;
  }

  .reserva-quick-chip {
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.88rem;
  }

  .reserva-phone-dropdown {
    max-width: 100%;
    left: 0;
    right: 0;
  }
}

