/* ==========================================================================
   DUON MINI APP - FORMULARIO ÁGIL DE 5 PASOS CON FOTO POR ARTÍCULO
   Optimizado para vendedores y clientes (3-5 min en móviles/tablets)
   ========================================================================== */

:root {
  --duon-primary: #0052FF;
  --duon-primary-hover: #0040CC;
  --duon-primary-light: #EEF3FF;
  --duon-accent: #00D4B2;
  --duon-success: #10B981;
  --duon-warning: #F59E0B;
  --duon-danger: #EF4444;

  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border-color: #E2E8F0;
  --border-focus: #0052FF;

  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0, 82, 255, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-float: 0 12px 32px rgba(15, 23, 42, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --transition-fast: 0.18s ease;
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 90px;
  position: relative;
}

/* Header Superior */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-badge .logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--duon-primary);
}

.logo-pill {
  background: var(--duon-primary-light);
  color: var(--duon-primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.step-indicator {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 4px 12px;
}

.step-badge-text {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.step-badge-text strong {
  color: var(--duon-primary);
}

.progress-bar-track {
  width: 100%;
  height: 4px;
  background: #E2E8F0;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0052FF 0%, #00D4B2 100%);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Contenedor Principal */
.wizard-main {
  flex: 1;
  padding: 24px 16px 40px;
  display: flex;
  justify-content: center;
}

.wizard-container {
  width: 100%;
  max-width: 680px;
}

.wizard-step {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.wizard-step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.step-header {
  text-align: center;
  margin-bottom: 24px;
}

.step-icon-bubble {
  width: 50px;
  height: 50px;
  background: var(--duon-primary-light);
  color: var(--duon-primary);
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0, 82, 255, 0.12);
}

.step-icon-bubble svg {
  width: 24px;
  height: 24px;
}

.step-title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 4vw, 1.65rem);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 8px;
}

.step-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* Formularios */
.form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 4px;
}

.required {
  color: var(--duon-danger);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
}

.field-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-light);
  pointer-events: none;
  transition: color var(--transition-fast);
}

.form-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-main);
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(0, 82, 255, 0.12);
}

.input-wrapper:focus-within .field-icon {
  color: var(--duon-primary);
}

.form-textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-main);
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  resize: vertical;
  min-height: 80px;
}

.form-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(0, 82, 255, 0.12);
}

.field-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.highlight-hint {
  color: #0369A1;
  background: #E0F2FE;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.highlight-hint svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.form-divider {
  height: 1px;
  background: var(--border-color);
  margin: 20px 0;
}

/* Categorías Paso 2 */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
}

.category-card {
  position: relative;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
}

.category-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.category-card-content {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.cat-icon-wrap {
  width: 38px;
  height: 38px;
  background: var(--bg-subtle);
  color: var(--duon-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cat-icon-wrap svg {
  width: 18px;
  height: 18px;
}

.cat-info {
  display: flex;
  flex-direction: column;
}

.cat-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.cat-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.category-card:hover {
  border-color: #CBD5E1;
}

.category-card.selected,
.category-card:has(.category-radio:checked) {
  border-color: var(--duon-primary);
  background: #F8FAFF;
  box-shadow: 0 0 0 1px var(--duon-primary);
}

.category-card:has(.category-radio:checked) .cat-icon-wrap {
  background: var(--duon-primary);
  color: #FFFFFF;
}

/* Pills de Personalidad */
.pill-options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill-check input {
  position: absolute;
  opacity: 0;
}

.pill-check span {
  display: inline-block;
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pill-check input:checked + span {
  background: var(--duon-primary);
  color: #FFFFFF;
  border-color: var(--duon-primary);
}

/* Color Picker */
.color-picker-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--bg-card);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
}

.color-swatches {
  display: flex;
  gap: 8px;
}

.swatch-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 1px var(--border-color);
  cursor: pointer;
}

.swatch-btn.selected {
  box-shadow: 0 0 0 3px var(--duon-primary);
  transform: scale(1.1);
}

.custom-color-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.color-input {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  cursor: pointer;
}

.color-input::-webkit-color-swatch {
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.custom-color-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Redes Sociales en Fila */
.social-input-row {
  display: flex;
  gap: 10px;
}

@media (max-width: 520px) {
  .social-input-row {
    flex-direction: column;
  }
}

/* Horarios y Tarjetas de Día */
.schedule-section {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
}

.schedule-header-row {
  margin-bottom: 12px;
}

.schedule-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.schedule-title svg {
  width: 18px;
  height: 18px;
  color: var(--duon-primary);
}

.schedule-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.schedule-presets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.btn-preset {
  background: var(--bg-subtle);
  color: var(--duon-primary);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-preset:hover {
  background: var(--duon-primary-light);
  border-color: var(--duon-primary);
}

.schedule-matrix {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.schedule-day-card {
  background: var(--bg-subtle);
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.schedule-day-card.is-open {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

.day-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.day-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.day-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.switch-container {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}

.switch-container input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #CBD5E1;
  transition: .25s;
  border-radius: 34px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .25s;
  border-radius: 50%;
}

.switch-container input:checked + .switch-slider {
  background-color: var(--duon-success);
}

.switch-container input:checked + .switch-slider:before {
  transform: translateX(16px);
}

.day-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
}

.open-badge {
  background: #DCFCE7;
  color: #15803D;
}

.closed-badge {
  background: #F1F5F9;
  color: #94A3B8;
}

.day-card-times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px dashed #E2E8F0;
}

@media (max-width: 420px) {
  .day-card-times {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.time-field-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F8FAFC;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #CBD5E1;
  min-width: 0;
  box-sizing: border-box;
}

.time-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  flex-shrink: 0;
}

.time-input {
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0F172A;
  outline: none;
  padding: 0;
}

/* Paso 4: Brand Media Grid (Logo y Portada) */
.brand-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .brand-media-grid {
    grid-template-columns: 1fr;
  }
}

.mini-upload-card {
  padding: 12px;
}

.dropzone {
  border: 1.5px dashed #CBD5E1;
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  cursor: pointer;
  background: #FAFAFA;
  transition: all var(--transition-fast);
}

.dropzone:hover {
  border-color: var(--duon-primary);
  background: #F8FAFF;
}

.dropzone-icon-mini {
  width: 24px;
  height: 24px;
  color: var(--duon-primary);
  margin-bottom: 4px;
}

.dropzone-text-mini {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

.dropzone-preview img {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.btn-remove-file {
  background: #FEE2E2;
  color: #DC2626;
  border: none;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
}

/* Artículos con Foto Individual */
.dynamic-items-container {
  margin-top: 18px;
}

.items-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.btn-action-small {
  background: var(--duon-primary-light);
  color: var(--duon-primary);
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-action-small:hover {
  background: #DCE7FE;
  transform: translateY(-1px);
}

.btn-action-small.primary-action {
  background: var(--duon-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 82, 255, 0.3);
}

.btn-action-small.primary-action:hover {
  background: var(--duon-primary-hover);
  box-shadow: 0 6px 16px rgba(0, 82, 255, 0.4);
}

.items-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.items-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.item-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
}

.item-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.item-badge-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--duon-primary);
  background: var(--duon-primary-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.btn-item-delete {
  background: transparent;
  color: #94A3B8;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.btn-item-delete:hover {
  color: #DC2626;
}

.item-main-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

@media (max-width: 480px) {
  .item-main-row {
    flex-direction: column;
  }
}

/* Thumbnail de foto por artículo */
.item-photo-dropzone {
  width: 84px;
  height: 84px;
  border: 1.5px dashed #CBD5E1;
  border-radius: var(--radius-sm);
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 4px;
}

.item-photo-dropzone:hover {
  border-color: var(--duon-primary);
  background: #F0F4FF;
}

.item-photo-icon {
  width: 20px;
  height: 20px;
  color: var(--text-light);
  margin-bottom: 2px;
}

.item-photo-text {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.1;
}

.item-photo-preview {
  width: 100%;
  height: 100%;
  position: relative;
}

.item-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.item-fields-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.item-inputs-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
}

.item-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

/* Paso 5: Promoción y Resumen */
.promo-toggle-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.toggle-heading {
  font-size: 0.9rem;
  font-weight: 700;
  display: block;
}

.toggle-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.promo-fields-box {
  margin-top: 14px;
  background: #FFFBF7;
  border: 1.5px solid #FED7AA;
  border-radius: var(--radius-md);
  padding: 14px;
}

/* Checkbox Grid para Objetivos */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 6px;
}

@media (max-width: 520px) {
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
}

.checkbox-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.checkbox-card input {
  position: absolute;
  opacity: 0;
}

.cb-box {
  width: 18px;
  height: 18px;
  border: 2px solid var(--text-light);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.checkbox-card input:checked ~ .cb-box {
  background: var(--duon-primary);
  border-color: var(--duon-primary);
}

.checkbox-card input:checked ~ .cb-box::after {
  content: '✓';
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: bold;
}

.cb-text {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-main);
}

.checkbox-card:has(input:checked) {
  border-color: var(--duon-primary);
  background: #F8FAFF;
}

/* Resumen Enriquecido (Paso 5) */
.summary-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.summary-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.sum-media-previews {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sum-logo-thumb, .sum-cover-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.sum-biz-info {
  display: flex;
  flex-direction: column;
}

.sum-main-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.sum-slogan {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.summary-grid-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  border-bottom: 1px dashed #E2E8F0;
  padding-bottom: 6px;
}

.summary-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sum-label {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sum-label svg {
  width: 15px;
  height: 15px;
}

.sum-value {
  font-weight: 600;
  color: var(--text-main);
  text-align: right;
  max-width: 60%;
}

.summary-items-box {
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.sum-items-header {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.sum-items-header svg {
  width: 15px;
  height: 15px;
  color: var(--duon-primary);
}

.sum-items-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}

.sum-item-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px;
}

.sum-item-img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
  background: #E2E8F0;
  flex-shrink: 0;
}

.sum-item-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sum-item-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sum-item-price {
  font-size: 0.72rem;
  color: var(--duon-primary);
  font-weight: 700;
}

.honeypot-field-wrap {
  position: absolute;
  left: -9999px;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.submission-notice {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.notice-icon {
  color: var(--duon-primary);
  flex-shrink: 0;
}

.notice-icon svg {
  width: 18px;
  height: 18px;
}

.notice-text {
  font-size: 0.82rem;
  color: #1E40AF;
  line-height: 1.4;
}

/* Pantalla de Éxito y Pago */
.success-screen {
  animation: fadeIn 0.4s ease forwards;
}

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

.success-hero {
  text-align: center;
  margin-bottom: 20px;
}

.success-check-badge {
  width: 58px;
  height: 58px;
  background: #DCFCE7;
  color: var(--duon-success);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.success-check-badge svg {
  width: 30px;
  height: 30px;
  stroke-width: 3;
}

.success-title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 5vw, 1.7rem);
  font-weight: 800;
  margin-bottom: 6px;
}

.success-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-deck {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

@media (max-width: 580px) {
  .pricing-deck {
    grid-template-columns: 1fr;
  }
}

.plan-card {
  position: relative;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
}

.plan-card.popular-plan {
  border-color: var(--duon-primary);
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F8FF 100%);
  box-shadow: 0 6px 20px rgba(0, 82, 255, 0.12);
}

.plan-badge {
  position: absolute;
  top: -10px;
  right: 14px;
  background: var(--duon-primary);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.plan-badge-subtle {
  position: absolute;
  top: -10px;
  right: 14px;
  background: #E2E8F0;
  color: #475569;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.plan-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}

.plan-price-row .currency {
  font-size: 1.1rem;
  font-weight: 700;
}

.plan-price-row .amount {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1;
}

.plan-price-row .period {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.plan-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  flex-grow: 1;
}

.plan-perks li {
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.plan-perks li svg {
  width: 14px;
  height: 14px;
  color: var(--duon-success);
  flex-shrink: 0;
}

.plan-perks li.perk-note {
  font-size: 0.72rem;
  color: #94A3B8;
  margin-top: 2px;
}

.plan-perks li.perk-note svg {
  width: 13px;
  height: 13px;
  color: #94A3B8;
}

.btn-pay-stripe {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.btn-pay-stripe.primary-stripe {
  background: var(--duon-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 82, 255, 0.35);
}

.btn-pay-stripe.secondary-stripe {
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
}

.transfer-info-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
}

.transfer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.transfer-icon {
  width: 36px;
  height: 36px;
  background: #FEF3C7;
  color: #D97706;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.transfer-title {
  font-size: 0.9rem;
  font-weight: 700;
}

.transfer-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.transfer-alert {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.82rem;
  color: #92400E;
}

.seller-highlight {
  font-weight: 800;
  background: #FDE047;
  padding: 1px 6px;
  border-radius: 4px;
  color: #713F12;
}

.whatsapp-report-box {
  background: #F0FDF4;
  border: 1.5px solid #86EFAC;
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.report-text h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #14532D;
}

.report-text p {
  font-size: 0.78rem;
  color: #166534;
}

.btn-whatsapp-receipt {
  background: #25D366;
  color: #FFFFFF;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Footer Sticky */
.wizard-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  padding: 12px 20px;
}

.footer-container {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.btn-nav {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
}

.btn-prev {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.btn-prev:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-next {
  background: var(--duon-primary);
  color: #FFFFFF;
  flex: 1;
  max-width: 200px;
  margin-left: auto;
  box-shadow: 0 4px 12px rgba(0, 82, 255, 0.25);
}

.btn-submit {
  background: linear-gradient(135deg, #0052FF 0%, #00C696 100%);
  color: #FFFFFF;
  flex: 1;
  max-width: 260px;
  margin-left: auto;
  box-shadow: 0 4px 16px rgba(0, 82, 255, 0.35);
}

/* Toast */
.toast-container {
  position: fixed;
  top: 75px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: 90%;
  max-width: 420px;
}

.toast {
  background: #1E293B;
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-float);
  pointer-events: auto;
}

.toast.toast-error { background: #DC2626; }
.toast.toast-success { background: #059669; }

.file-input-hidden { display: none; }
.hidden { display: none !important; }
