﻿/* ==========================================================
   GlobPay - SecciÃ³n: DespuÃ©s de la compra (Panel del Vendedor)
   post-purchase-panel.css
   ========================================================== */

#view-post-compra,
#view-post-compra *,
#view-post-compra *::before,
#view-post-compra *::after {
  box-sizing: border-box;
}

#view-post-compra {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

#view-post-compra .step-main-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}
/* ==========================================================
   GlobPay - Paso 7: DespuÃ©s de la compra
   post-purchase.css
   DiseÃ±o fiel a las maquetas oficiales de referencia con logotipo GlobPay.
   ========================================================== */

/* 1. RESET Y BASE */






/* Enlaces y utilidades */
a {
  color: inherit;
  text-decoration: none;
}

/* 2. ENCABEZADO Y PROGRESO (PASO 7 DE 7) */
.wizard-header {
  text-align: center;
  margin-bottom: 24px;
  width: 100%;
  max-width: 960px;
}

.wizard-top-row {
  display: grid;
  grid-template-columns: 140px 1fr 140px;
  align-items: center;
  margin-bottom: 24px;
  width: 100%;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.brand-logo-img {
  width: 130px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1024 / 853;
  object-fit: contain;
  display: block;
  margin: 0 !important;
}

.wizard-stepper-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.wizard-top-spacer {
  width: 140px;
}

.step-indicator {
  font-size: 13px;
  font-weight: 500;
  color: var(--globpay-gray-secondary, #6B7280);
  letter-spacing: 0.1px;
}

.step-progress-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.step-segment {
  width: 26px;
  height: 4px;
  border-radius: 2px;
  background-color: var(--globpay-gray-light, #E5E7EB);
  transition: background-color 0.25s ease;
}

.step-segment.is-completed {
  background-color: var(--globpay-black, #111111);
}

.step-segment.is-active {
  background-color: var(--globpay-turquoise, #0BB6B5);
}

.page-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--globpay-black, #111111);
  margin-bottom: 6px;
  text-align: center;
}

.page-subtitle {
  font-size: 15px;
  color: var(--globpay-gray-secondary, #6B7280);
  line-height: 1.45;
  text-align: center;
}

/* 3. CONTENEDOR Y LAYOUT PRINCIPAL (2 COLUMNAS) */
.step-main-container {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.step-grid-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
  width: 100%;
  min-width: 0;
}

/* 4. COLUMNA IZQUIERDA: SELECTOR DE DESTINOS */
.destinations-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.destinations-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.destinations-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 2px;
}

.destination-option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.destination-option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #E5E7EB;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.destination-option-card:hover:not(.selected) {
  border-color: #CBD5E1;
  background-color: #F8FAFC;
}

.destination-option-card.selected {
  border-color: #0BB6B5 !important;
  background-color: #F0FDFA !important;
}

.destination-radio-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #D1D5DB;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.destination-option-card.selected .destination-radio-circle {
  border-color: #0BB6B5 !important;
}

.destination-radio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #0BB6B5;
  opacity: 0;
  transform: scale(0.4);
  transition: all 0.2s ease;
}

.destination-option-card.selected .destination-radio-dot {
  opacity: 1 !important;
  transform: scale(1) !important;
}

.destination-option-card:not(.selected) .destination-radio-dot {
  opacity: 0 !important;
  transform: scale(0.4) !important;
}

.destination-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #6B7280;
  transition: color 0.2s ease;
}

.destination-option-card.selected .destination-icon {
  color: #0BB6B5 !important;
}

.destination-icon svg {
  width: 20px;
  height: 20px;
}

.destination-text-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.destination-label {
  font-size: 14px;
  font-weight: 700;
  color: #111111;
  line-height: 1.3;
}

.destination-desc {
  font-size: 12px;
  color: #6B7280;
  line-height: 1.35;
  margin-top: 1px;
}

/* Nota informativa bajo opciones */
.destinations-notice-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background-color: #F0FDFA;
  border: 1px solid #CCFBF1;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: #0F766E;
  line-height: 1.45;
}

.notice-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #0BB6B5;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

/* 5. COLUMNA DERECHA: PANELES DE EDICIÃ“N Y VISTA PREVIA */
.editor-column {
  min-width: 0;
}

.destination-panel {
  display: none;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 24px 22px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.destination-panel.active {
  display: block;
}

.panel-header-section {
  margin-bottom: 20px;
}

.panel-title {
  font-size: 20px;
  font-weight: 800;
  color: #111111;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.panel-subtitle {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.4;
}

/* Badge Pendiente de IntegraciÃ³n */
.badge-integration-pending {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 16px;
}

.badge-integration-connected {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 16px;
}

/* Lista de pasos 1, 2, 3 en caja cyan */
.steps-checklist-box {
  background-color: #F0FDFA;
  border: 1px solid #CCFBF1;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #0F766E;
  font-weight: 500;
}

.step-num-pill {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #0BB6B5;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Referencia de pÃ¡gina nativa */
.reference-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.reference-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #111111;
}

.pill-illustrative-badge {
  background-color: #F3F4F6;
  color: #6B7280;
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 12px;
}

.reference-section-caption {
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 14px;
}

/* Tarjeta Mockup Nativa de Shopify */
.shopify-native-mock-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shopify-store-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #F3F4F6;
  padding-bottom: 12px;
}

.shopify-store-name {
  font-size: 16px;
  font-weight: 700;
  color: #111111;
}

.shopify-store-icons {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #4B5563;
}

.shopify-order-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shopify-order-num {
  font-size: 18px;
  font-weight: 800;
  color: #111111;
}

.shopify-registered-badge {
  background: #F3F4F6;
  color: #4B5563;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.shopify-order-desc {
  font-size: 13.5px;
  color: #4B5563;
  line-height: 1.4;
}

.shopify-product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid #F3F4F6;
  border-bottom: 1px solid #F3F4F6;
}

.shopify-prod-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shopify-prod-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: #F3F4F6;
  object-fit: contain;
}

.shopify-prod-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #111111;
}

.shopify-prod-price {
  font-size: 13.5px;
  font-weight: 600;
  color: #111111;
}

.shopify-summary-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  color: #4B5563;
}

.shopify-summary-row {
  display: flex;
  justify-content: space-between;
}

.shopify-summary-row.bold-highlight {
  font-weight: 800;
  color: #111111;
  font-size: 14.5px;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px dashed #E5E7EB;
}

.shopify-address-box {
  background: #F9FAFB;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
}

.shopify-address-icon {
  color: #6B7280;
  flex-shrink: 0;
  margin-top: 2px;
}

.shopify-address-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shopify-address-title {
  font-size: 13px;
  font-weight: 700;
  color: #111111;
}

.shopify-address-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #374151;
}

.shopify-address-lines {
  font-size: 12px;
  color: #6B7280;
}

/* Callout Info Boxes */
.callout-info-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #F0FDFA;
  border: 1px solid #CCFBF1;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 14px;
}

.callout-info-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.callout-info-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F766E;
}

.callout-info-text {
  font-size: 12.5px;
  color: #115E59;
  line-height: 1.45;
}

.callout-security-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 12px;
}

.callout-security-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1E293B;
}

.callout-security-text {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.45;
}

.small-footer-note {
  font-size: 12.5px;
  color: #6B7280;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 6. APARTADO 2: ENLACE PERSONALIZADO */
.form-group-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-field-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #111111;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-label-side-note {
  font-size: 12px;
  font-weight: 400;
  color: #6B7280;
}

.form-text-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #D1D5DB;
  border-radius: 8px;
  font-size: 14px;
  color: #111111;
  background: #FFFFFF;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-text-input:focus {
  border-color: #0BB6B5;
  box-shadow: 0 0 0 3px rgba(11, 182, 181, 0.15);
}

.form-text-input.input-error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.field-error-message {
  color: #DC2626;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.field-error-message.visible {
  display: block;
}

.field-helper-caption {
  font-size: 12px;
  color: #6B7280;
}

.btn-preview-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid #0BB6B5;
  border-radius: 8px;
  background: transparent;
  color: #0BB6B5;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  margin-top: 6px;
  margin-bottom: 22px;
}

.btn-preview-link:hover {
  background: #F0FDFA;
}

/* Browser Frame Mockup */
.browser-window-mock {
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  margin-bottom: 8px;
}

.browser-header-bar {
  background: #F3F4F6;
  border-bottom: 1px solid #E5E7EB;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #D1D5DB;
}

.browser-address-bar {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: #4B5563;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-content-area {
  padding: 42px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #FFFFFF;
}

.browser-checkmark-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #0BB6B5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0BB6B5;
  font-size: 28px;
  margin-bottom: 14px;
}

.browser-page-title {
  font-size: 18px;
  font-weight: 800;
  color: #111111;
  margin-bottom: 6px;
}

.browser-page-desc {
  font-size: 13.5px;
  color: #6B7280;
}

/* 7. APARTADO 3: WHATSAPP */
.form-textarea {
  width: 100%;
  min-height: 140px;
  padding: 10px 12px;
  border: 1.5px solid #D1D5DB;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #111111;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-textarea:focus {
  border-color: #0BB6B5;
  box-shadow: 0 0 0 3px rgba(11, 182, 181, 0.15);
}

.chips-row-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.chips-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #374151;
}

.variable-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.variable-chip-btn {
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.variable-chip-btn:hover {
  background: #E5E7EB;
  border-color: #D1D5DB;
  color: #111111;
}

.variable-chip-btn:active {
  background: #0BB6B5;
  color: #FFFFFF;
  border-color: #0BB6B5;
}

/* Burbuja de Vista Previa de WhatsApp */
.whatsapp-preview-box {
  background: #F0FDFA;
  border: 1px solid #CCFBF1;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

.whatsapp-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.whatsapp-preview-title {
  font-size: 14px;
  font-weight: 700;
  color: #0F766E;
}

.whatsapp-chat-bubble {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #10B981;
  font-size: 13.5px;
  line-height: 1.5;
  color: #1E293B;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 8. APARTADO 4: MENSAJE EN EL FORMULARIO */
.form-message-preview-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 24px 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.receipt-checkmark-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: #10B981;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 14px;
}

.receipt-title {
  font-size: 22px;
  font-weight: 800;
  color: #111111;
  margin-bottom: 8px;
  line-height: 1.25;
}

.receipt-body-text {
  font-size: 14px;
  color: #4B5563;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  max-width: 440px;
  margin-bottom: 18px;
}

.receipt-divider {
  width: 100%;
  height: 1px;
  background-color: #F3F4F6;
  margin-bottom: 16px;
}

.receipt-product-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #F3F4F6;
  margin-bottom: 14px;
}

.receipt-prod-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.receipt-prod-thumb {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #F3F4F6;
  object-fit: contain;
}

.receipt-prod-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #111111;
  text-align: left;
}

.receipt-prod-price {
  font-size: 13.5px;
  font-weight: 600;
  color: #111111;
}

.receipt-totals-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  color: #4B5563;
  margin-bottom: 14px;
}

.receipt-total-row {
  display: flex;
  justify-content: space-between;
}

.receipt-total-row.highlight-due {
  font-weight: 800;
  font-size: 14.5px;
  color: #111111;
  padding-top: 6px;
  border-top: 1px dashed #E5E7EB;
  margin-top: 4px;
}

.receipt-courier-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: #4B5563;
  margin-bottom: 18px;
}

.btn-receipt-back-store {
  width: 100%;
  padding: 12px;
  border: 1.5px solid #0BB6B5;
  border-radius: 8px;
  background: transparent;
  color: #0BB6B5;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-receipt-back-store:hover {
  background: #F0FDFA;
}

/* 9. BANNER INFERIOR DE DEMOSTRACIÃ“N */
.bottom-demo-banner {
  background: #F0FDFA;
  border: 1px solid #CCFBF1;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #0F766E;
  margin-top: 6px;
}

/* 10. BOTONES DE ACCIÃ“N DEL ASISTENTE */
.step-actions-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  width: 100%;
}

.btn-back-step {
  padding: 11px 22px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  background: #FFFFFF;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-back-step:hover {
  background: #F3F4F6;
  border-color: #9CA3AF;
}

.save-finalize-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.btn-save-step {
  padding: 12px 28px;
  background-color: #0BB6B5;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-save-step:hover {
  background-color: #099E9D;
}

.btn-save-step:active {
  transform: translateY(1px);
}

.save-hint-text {
  font-size: 12px;
  color: #6B7280;
}

/* 11. TARJETA DE CONFIRMACIÃ“N DE GUARDADO (Paso 7 Finalizado) */
.save-confirmation-card {
  background: #FFFFFF;
  border: 1.5px solid #10B981;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 16px;
  animation: fadeInScale 0.3s ease-out;
}

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

.confirmation-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #ECFDF5;
  color: #10B981;
  font-size: 32px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.confirmation-title {
  font-size: 22px;
  font-weight: 800;
  color: #111111;
  margin-bottom: 8px;
}

.confirmation-text {
  font-size: 14.5px;
  color: #4B5563;
  line-height: 1.5;
  max-width: 520px;
  margin-bottom: 22px;
}

.confirmation-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn-confirm-action-primary {
  padding: 12px 24px;
  background-color: #0BB6B5;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s ease;
}

.btn-confirm-action-primary:hover {
  background-color: #099E9D;
}

.btn-confirm-action-secondary {
  padding: 12px 24px;
  background-color: #F3F4F6;
  color: #111111;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s ease;
}

.btn-confirm-action-secondary:hover {
  background-color: #E5E7EB;
}

/* 12. MODAL DE CAMBIOS SIN GUARDAR */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

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

.modal-card {
  background: #FFFFFF;
  border-radius: 14px;
  max-width: 440px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #111111;
}

.modal-body-text {
  font-size: 14px;
  color: #4B5563;
  line-height: 1.45;
}

.modal-actions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.modal-btn-save {
  padding: 11px;
  background-color: #0BB6B5;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.modal-btn-discard {
  padding: 10px;
  background-color: #FEE2E2;
  color: #B91C1C;
  border: 1px solid #FCA5A5;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.modal-btn-stay {
  padding: 10px;
  background: transparent;
  color: #6B7280;
  border: none;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

/* 13. RESPONSIVE Y MODOS DE VISTA PREVIA */
@media (max-width: 768px) {
  

  .wizard-top-row {
    grid-template-columns: 100px 1fr 100px;
    margin-bottom: 16px;
  }

  .brand-logo-img {
    width: 100px;
  }

  .wizard-top-spacer {
    width: 100px;
  }

  .page-title {
    font-size: 24px;
  }

  .step-grid-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .destinations-card {
    padding: 16px 14px;
  }

  .destination-panel {
    padding: 18px 16px;
  }

  .step-actions-footer {
    flex-direction: column-reverse;
    gap: 12px;
  }

  .btn-back-step, .save-finalize-wrap, .btn-save-step {
    width: 100%;
  }

  .save-finalize-wrap {
    align-items: center;
  }

  .btn-save-step {
    justify-content: center;
  }
}

/* Modos de preview viewport estrictos */
body.preview-360 {
  max-width: 360px !important;
  margin: 0 auto !important;
}

body.preview-390 {
  max-width: 390px !important;
  margin: 0 auto !important;
}

body.preview-430 {
  max-width: 430px !important;
  margin: 0 auto !important;
}

