/* ==========================================================
   Checkout Híbrido - Design System & Multi-Theme Styles
   4 Temas Oficiales: Elegante, Moderno, Femenino, Minimalista
   Ultra-Responsive: 360px, 390px, 430px (Cero Overflow)
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@500;700;800&display=swap');

:root {
  /* Variables dinámicas de marca (controlables desde el panel) */
  --brand-primary: #065f46;
  --brand-primary-hover: #044e39;
  --brand-primary-soft: #ecfdf5;
  --brand-primary-btn-text: #ffffff;
  --brand-accent: #0d9488;
  --brand-success: #15803d;
  --brand-success-bg: #f0fdf4;
  --brand-warning: #b45309;
  --brand-warning-bg: #fffbeb;
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-muted: #f8fafc;
  --border-light: #e2e8f0;
  --border-active: var(--brand-primary);
  
  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  
  --card-radius: 10px;
  --btn-radius: 9999px;
  --input-radius: 8px;
  --badge-radius: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px -2px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.4;
  font-size: 13.5px;
  padding-bottom: 80px; /* Altura barra flotante */
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Banner de Demostración Visible */
.demo-alert-banner {
  background: #fef2f2;
  color: #991b1b;
  border-bottom: 1px solid #fecaca;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  line-height: 1.25;
}

body.no-banner .demo-alert-banner {
  display: none !important;
}

/* Contenedor Principal */
.app-container {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  background: var(--bg-card);
  min-height: 100vh;
  box-sizing: border-box;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.2s ease;
}

/* Modos de previsualización estricta para testing y capturas headless */
body.preview-360, body.preview-360 .app-container {
  width: 360px !important;
  max-width: 360px !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}
body.preview-390, body.preview-390 .app-container {
  width: 390px !important;
  max-width: 390px !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}
body.preview-403, body.preview-403 .app-container {
  width: 403px !important;
  max-width: 403px !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}
body.preview-404, body.preview-404 .app-container {
  width: 404px !important;
  max-width: 404px !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}
body.preview-430, body.preview-430 .app-container {
  width: 430px !important;
  max-width: 430px !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

@media (min-width: 768px) {
  body {
    padding: 16px 12px 75px 12px;
  }
  .app-container {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
  }
}

/* Topbar Piloto */
.pilot-topbar {
  background: #0f172a;
  color: #f8fafc;
  padding: 6px 10px;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.pilot-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pilot-tag::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
}

.test-bench-toggle-btn {
  background: rgba(255,255,255,0.18);
  border: none;
  color: #fff;
  padding: 3px 6px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Panel Desplegable Test Bench */
.test-bench-drawer {
  background: #f8fafc;
  border-bottom: 2px dashed var(--border-light);
  padding: 10px 12px;
  font-size: 11.5px;
  display: none;
  box-sizing: border-box;
}

.test-bench-drawer.active {
  display: block;
}

.bench-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 5px;
}

.bench-field label {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 2px;
  text-transform: uppercase;
}

.bench-field input {
  width: 100%;
  padding: 4px 6px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 600;
  box-sizing: border-box;
}

/* Header Tienda */
.header-store {
  padding: 12px 14px 10px 14px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.store-branding {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.store-logo-placeholder {
  width: 28px;
  height: 28px;
  background: var(--brand-primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.store-info {
  min-width: 0;
}

.store-info h1 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-heading);
}

.store-info p {
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-close-btn {
  background: none;
  border: none;
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
}

/* Encabezado Principal del Checkout (Completa tu pedido / Tu pedido a tu manera) */
.checkout-main-header {
  padding: 12px 14px 4px 14px;
}

.main-checkout-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.main-checkout-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Espacio GIF Personalizable */
.custom-gif-container {
  margin: 10px 14px;
  border-radius: var(--card-radius);
  text-align: center;
  box-sizing: border-box;
}

.gif-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
}

.gif-placeholder-icon {
  stroke: var(--text-muted);
  margin-bottom: 2px;
  opacity: 0.7;
}

.gif-title {
  font-weight: 700;
  font-size: 11.5px;
  color: var(--text-main);
}

.gif-subtitle {
  font-size: 10px;
  color: var(--text-muted);
}

/* Secciones Formulario */
.form-section {
  padding: 8px 14px 14px 14px;
  width: 100%;
  box-sizing: border-box;
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
}

.section-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

/* PASO 1: Selector de Ofertas (1 unidad, 2 unidades, 3 unidades) */
.offers-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.offer-card {
  border: 1.5px solid var(--border-light);
  border-radius: var(--card-radius);
  padding: 8px 10px;
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.offer-card:hover {
  border-color: #cbd5e1;
}

.offer-card.selected {
  border-color: var(--brand-primary);
  background: var(--brand-primary-soft);
}

.offer-card-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.offer-thumb {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
}

.offer-info {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.offer-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.offer-badge {
  font-size: 8.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: var(--badge-radius);
  background: #d1fae5;
  color: #065f46;
  white-space: nowrap;
}

.offer-price {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  flex-shrink: 0;
}

/* PASO 2: Campos de Formulario y Dirección de Entrega */
.form-group {
  margin-bottom: 8px;
  width: 100%;
  box-sizing: border-box;
}

.form-label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.form-label .required {
  color: #ef4444;
}

.form-row-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 380px) {
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

.form-input, .form-select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--border-light);
  border-radius: var(--input-radius);
  font-size: 12px;
  font-family: inherit;
  color: var(--text-main);
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--border-active);
  box-shadow: 0 0 0 2px rgba(6, 95, 70, 0.12);
}

.input-with-icon {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.input-prefix-flag {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-secondary);
  pointer-events: none;
}

.input-with-icon input {
  padding-left: 56px;
}

.form-helper-note {
  font-size: 10.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

/* WhatsApp input con prefijo */
.whatsapp-input-container {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--input-radius);
  height: 38px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.whatsapp-input-container:focus-within {
  border-color: var(--border-active);
  box-shadow: 0 0 0 2px var(--brand-primary-soft);
}

.whatsapp-prefix {
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.whatsapp-divider {
  width: 1px;
  height: 18px;
  background: var(--border-light);
}

.whatsapp-input {
  border: none;
  outline: none;
  flex: 1;
  min-width: 0;
  padding: 0 10px;
  font-size: 12px;
  font-family: inherit;
  color: var(--text-main);
  background: transparent;
  height: 100%;
  box-sizing: border-box;
}

/* Wrapper para selector con chevron personalizado */
.select-wrapper {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding-right: 32px;
}

.select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1;
}

/* Espacio Configurable para GIF */
.custom-gif-container {
  margin: 10px 12px 14px 12px;
}

.gif-placeholder-inner {
  border: 1.5px dashed var(--border-light);
  background: var(--bg-muted);
  border-radius: var(--card-radius);
  padding: 20px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
}

.gif-placeholder-icon {
  margin-bottom: 2px;
}

.gif-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.gif-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

.custom-gif-image {
  max-height: 180px;
  width: 100%;
  object-fit: contain;
  border-radius: var(--card-radius);
  margin: 0 auto;
}

/* Elementos específicos del tema romántico ocultos por defecto */
.botanical-sprig {
  display: none;
}
.yappy-wallet-icon {
  display: none;
}
.yappy-label {
  display: none;
}
.trust-divider {
  display: none;
}

/* PASO 3: Tarjetas de Pago Comparativas */
.payment-options-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.payment-card {
  border: 1.5px solid var(--border-light);
  border-radius: var(--card-radius);
  padding: 9px 10px;
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.payment-card:hover {
  border-color: #cbd5e1;
}

.payment-card.selected {
  border-color: var(--brand-primary);
  background: var(--brand-primary-soft);
}

.custom-radio {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease;
}

.payment-card.selected .custom-radio,
.offer-card.selected .custom-radio {
  border-color: var(--brand-primary);
}

.custom-radio-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-primary);
  transform: scale(0);
  transition: transform 0.15s ease;
}

.payment-card.selected .custom-radio-inner,
.offer-card.selected .custom-radio-inner {
  transform: scale(1);
}

.payment-card-body {
  flex-grow: 1;
  min-width: 0;
  width: 100%;
}

.card-headline-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 2px;
}

.card-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.card-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: var(--badge-radius);
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-discount {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-cod {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.card-description {
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.35;
  margin-bottom: 4px;
  word-break: break-word;
}

/* Pastillas de Pago y Saldo */
.card-split-pills {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  margin-top: 4px;
}

.split-pill {
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.split-pill strong {
  font-size: 11px;
}

.pill-pay-now {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.pill-due-later {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.pill-due-neutral {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

/* Indicador de Pago Inicial con Yappy */
.yappy-indicator-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.yappy-dots {
  display: flex;
  gap: 2px;
}

.yappy-dot-blue {
  width: 8px;
  height: 8px;
  background: #0072ce;
  border-radius: 50%;
}

.yappy-dot-orange {
  width: 8px;
  height: 8px;
  background: #ff7900;
  border-radius: 50%;
}

/* Desglose Financiero */
.breakdown-box {
  background: var(--bg-muted);
  border-radius: var(--card-radius);
  padding: 10px 12px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border-light);
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 3px;
}

.breakdown-row.discount-row {
  color: var(--brand-success);
  font-weight: 700;
}

.breakdown-divider {
  height: 1px;
  background: var(--border-light);
  margin: 6px 0;
}

.breakdown-total {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  font-family: var(--font-heading);
}

.breakdown-highlight-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  box-sizing: border-box;
}

.hl-left h4, .hl-right h4 {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hl-left p {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--brand-primary);
}

.hl-right {
  text-align: right;
}

.hl-right p {
  font-size: 13.5px;
  font-weight: 800;
  color: #b45309;
}

/* Botón CTA dentro de la vista principal */
.checkout-main-cta {
  margin: 12px 14px 6px 14px;
}

.btn-main-action {
  width: 100%;
  background: var(--brand-primary);
  color: var(--brand-primary-btn-text);
  border: none;
  padding: 11px 16px;
  border-radius: var(--btn-radius);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
}

.btn-main-action:hover {
  background: var(--brand-primary-hover);
}

/* Sellos de Confianza al Pie */
.checkout-trust-footer {
  text-align: center;
  font-size: 10.5px;
  color: var(--text-muted);
  padding: 6px 14px 18px 14px;
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 3px;
}

.terms-note {
  font-size: 9.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.terms-note a {
  color: var(--text-secondary);
  text-decoration: underline;
}

/* Barra Flotante Móvil Fija */
.mobile-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 7px 10px;
  box-shadow: 0 -3px 12px rgba(0,0,0,0.06);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  max-width: 460px;
  margin: 0 auto;
  box-sizing: border-box;
  width: 100%;
}

.bar-summary-col {
  min-width: 0;
  flex: 1 1 auto;
}

.bar-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.bar-amount {
  font-size: 14.5px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.1;
}

.bar-subtext {
  font-size: 9px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.btn-submit-order {
  background: var(--brand-primary);
  color: var(--brand-primary-btn-text);
  border: none;
  padding: 8px 12px;
  border-radius: var(--btn-radius);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-submit-order:hover {
  background: var(--brand-primary-hover);
}

/* Modal Yappy */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
}

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

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 340px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  box-sizing: border-box;
}

.modal-header {
  background: linear-gradient(135deg, #004b87, #0072ce);
  color: #fff;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.yappy-logo-mock {
  font-size: 15px;
  font-weight: 900;
}

.yappy-sim-tag {
  background: rgba(255,255,255,0.2);
  padding: 2px 5px;
  border-radius: var(--radius-sm);
  font-size: 9px;
  font-weight: 600;
}

.modal-body {
  padding: 12px;
  box-sizing: border-box;
}

.sim-merchant-info {
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  padding: 7px 9px;
  margin-bottom: 8px;
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.35;
}

.sim-amount-banner {
  text-align: center;
  margin: 6px 0 12px 0;
}

.sim-amount-banner span {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.sim-amount-banner h2 {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-main);
}

.sim-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-yappy-approve {
  background: #0072ce;
  color: #fff;
  border: none;
  padding: 9px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-yappy-reject {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  padding: 7px;
  border-radius: var(--radius-md);
  font-size: 11px;
  cursor: pointer;
}

/* Pantalla Confirmación */
.confirmation-container {
  display: none;
  padding: 14px 10px;
  box-sizing: border-box;
}

.confirmation-container.active {
  display: block;
}

.thankyou-header {
  text-align: center;
  margin-bottom: 14px;
}

.success-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 5px;
}

.thankyou-header h2 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-heading);
}

.thankyou-header p {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.order-pill-code {
  display: inline-block;
  background: #e2e8f0;
  color: #0f172a;
  font-family: monospace;
  font-weight: 700;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-top: 4px;
}

.carrier-instructions-card {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 9px 10px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.carrier-instructions-card h4 {
  font-size: 11px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 2px;
}

.carrier-instructions-card p {
  font-size: 11px;
  color: #78350f;
  line-height: 1.35;
}

.receipt-card {
  background: var(--bg-muted);
  border-radius: var(--radius-md);
  padding: 10px;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.receipt-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.btn-restart-demo {
  width: 100%;
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  padding: 9px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
  box-sizing: border-box;
}

/* ==========================================================
   PERSONALIZACIÓN ESPECÍFICA POR TEMA
   ========================================================== */

/* ----------------------------------------------------------
   TEMA 1: ELEGANTE (Verde Esmeralda - Réplica Fiel Oficial)
   ---------------------------------------------------------- */
.theme-elegante {
  --brand-primary: #065F46;
  --brand-primary-hover: #044E39;
  --brand-primary-soft: #ECFDF5;
  --brand-primary-btn-text: #FFFFFF;
  --bg-page: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-muted: #F8FAFC;
  --border-light: #E2E8F0;
  --border-active: #065F46;
  --text-main: #0F172A;
  --text-secondary: #64748B;
  --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --card-radius: 8px;
  --btn-radius: 9999px;
  --input-radius: 6px;
  --badge-radius: 9999px;
}

body.theme-elegante {
  background-color: #F8FAFC;
  color: #0F172A;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  padding-bottom: 24px !important;
}

body.theme-elegante,
body.theme-elegante *,
.theme-elegante .gif-placeholder-inner,
.theme-elegante .gif-title,
.theme-elegante .gif-subtitle,
.theme-elegante label,
.theme-elegante .form-label,
.theme-elegante .field-label,
.theme-elegante .yappy-label,
.theme-elegante .offer-badge,
.theme-elegante .shipping-badge,
.theme-elegante .form-helper-note {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

body.theme-elegante .app-container {
  max-width: 404px;
  background-color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  margin: 0 auto;
  overflow: hidden;
}

/* Ocultar barra flotante móvil, topbar informativa, cajón de pruebas y adornos botánicos en Elegante */
.theme-elegante #mobileActionBar,
.theme-elegante .pilot-topbar,
.theme-elegante #benchDrawer,
.theme-elegante .botanical-img {
  display: none !important;
}

/* Banner de modo demostración en Elegante */
.theme-elegante .demo-alert-banner {
  background: #ECFDF5;
  color: #065F46;
  border-bottom: 1px solid #A7F3D0;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  text-align: center;
}

/* Encabezado */
.theme-elegante .header-store {
  position: relative;
  text-align: right;
  padding: 14px 18px 0 18px;
  border-bottom: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.theme-elegante .header-store.has-branding {
  justify-content: space-between;
}

.theme-elegante .store-branding:not(.active) {
  display: none !important;
}

.theme-elegante .store-branding.active {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.theme-elegante .store-branding.active .store-info h1 {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-primary, #065F46);
  margin: 0;
}

.theme-elegante .store-close-btn {
  font-size: 16px;
  font-weight: 400;
  color: #475569;
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
}

.theme-elegante .checkout-main-header {
  text-align: left;
  padding: 0 18px;
  margin: 4px 0 14px 0;
  box-sizing: border-box;
}

.theme-elegante .main-checkout-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0F172A;
  line-height: 1.2;
  margin: 0 0 4px 0;
  text-align: left;
}

.theme-elegante .main-checkout-subtitle {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #64748B;
  margin: 0;
  text-align: left;
}

/* Espacio GIF */
.theme-elegante .custom-gif-container {
  padding: 0 18px;
  margin-bottom: 16px;
  border: none !important;
  background: transparent !important;
  box-sizing: border-box;
}

.theme-elegante .gif-placeholder-inner {
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: 8px;
  height: 95px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
}

.theme-elegante .gif-placeholder-icon {
  width: 24px;
  height: 24px;
  color: #94A3B8;
  stroke: #94A3B8;
}

.theme-elegante .gif-title {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin: 0;
  line-height: 1.2;
}

.theme-elegante .gif-subtitle {
  font-size: 10.5px;
  color: #94A3B8;
  margin: 0;
  line-height: 1.2;
}

/* Secciones y Pasos 1., 2., 3. */
.theme-elegante .form-section {
  padding: 0 18px;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.theme-elegante .section-title {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.theme-elegante .section-step {
  background: transparent !important;
  color: #0F172A !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  display: inline !important;
  width: auto !important;
  height: auto !important;
  margin-right: 2px !important;
}

/* Paso 1: Tarjetas de Ofertas */
.theme-elegante .offers-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.theme-elegante .offer-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  min-height: 52px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.theme-elegante .offer-card.selected {
  background: var(--brand-primary-soft, #ECFDF5);
  border: 1.5px solid var(--border-active, var(--brand-primary, #065F46));
  box-shadow: 0 0 0 1px var(--border-active, var(--brand-primary, #065F46));
}

.theme-elegante .offer-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.theme-elegante .offer-thumb {
  width: 42px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent !important;
}

.theme-elegante .offer-info {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}

.theme-elegante .offer-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1;
  white-space: nowrap;
}

.theme-elegante .offer-badge {
  background: var(--brand-primary, #065F46);
  color: var(--brand-primary-btn-text, #FFFFFF);
  border: none;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  padding: 2.5px 8px;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.theme-elegante .offer-price {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1;
  margin-left: 8px;
  flex-shrink: 0;
}

.theme-elegante .offer-card .custom-radio {
  margin: 0;
  width: 18px;
  height: 18px;
  border: 2px solid #CBD5E1;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
}

.theme-elegante .offer-card .custom-radio-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
}

.theme-elegante .offer-card.selected .custom-radio {
  border-color: var(--border-active, var(--brand-primary, #065F46));
}

.theme-elegante .offer-card.selected .custom-radio-inner {
  background: var(--brand-primary, #065F46);
}

/* Paso 2: Formulario de Entrega */
.theme-elegante .form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.theme-elegante .form-group {
  margin-bottom: 8px;
}

.theme-elegante .form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 3px;
}

.theme-elegante .form-label .required {
  color: #64748B;
  margin-left: 2px;
}

.theme-elegante .form-input,
.theme-elegante .form-select,
.theme-elegante .whatsapp-input-container {
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  background: #FFFFFF;
  font-size: 12px;
  color: #0F172A;
  height: 38px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.theme-elegante .form-input:focus,
.theme-elegante .form-select:focus,
.theme-elegante .whatsapp-input-container:focus-within {
  border-color: var(--border-active, var(--brand-primary, #065F46));
  outline: none;
  box-shadow: 0 0 0 2px var(--brand-primary-soft, rgba(6, 95, 70, 0.15));
}

.theme-elegante .form-input {
  padding: 8px 10px;
  width: 100%;
}

.theme-elegante .form-input::placeholder {
  color: #94A3B8;
  font-size: 12px;
}

/* Iconos de entrada discretos en campos de entrega */
.theme-elegante #inputFullName,
.theme-elegante #inputLastName {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364748B'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 8px center;
  background-size: 14px;
  padding-left: 28px !important;
}

.theme-elegante .whatsapp-input-container {
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.theme-elegante .whatsapp-prefix {
  font-size: 12px;
  color: #334155;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.theme-elegante .whatsapp-prefix::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2325D366'%3E%3Cpath d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.32 4.95L2.05 22l5.25-1.38c1.45.79 3.08 1.21 4.74 1.21 5.46 0 9.91-4.45 9.91-9.91 0-2.65-1.03-5.14-2.9-7.01A9.816 9.816 0 0 0 12.04 2z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.theme-elegante .whatsapp-divider {
  width: 1px;
  height: 16px;
  background: #E2E8F0;
  margin: 0 8px;
}

.theme-elegante .whatsapp-input {
  border: none;
  outline: none;
  font-size: 12px;
  color: #0F172A;
  flex: 1;
  background: transparent;
  padding: 0;
}

.theme-elegante .select-wrapper {
  position: relative;
  width: 100%;
}

.theme-elegante .form-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364748B'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 0 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 8px center;
  background-size: 14px;
  padding-left: 28px !important;
  padding-right: 28px;
  cursor: pointer;
}

.theme-elegante .select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 12px;
  color: #64748B;
  font-weight: 700;
}

.theme-elegante #inputAddress {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364748B'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 8px center;
  background-size: 14px;
  padding-left: 28px !important;
}

.theme-elegante #inputReference {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364748B'%3E%3Cpath d='M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM15 19l-6-2.11V5l6 2.11V19z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 8px center;
  background-size: 14px;
  padding-left: 28px !important;
}

.theme-elegante .form-helper-note {
  font-size: 11px;
  color: #64748B;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Paso 3: Tarjetas de Pago */
.theme-elegante .payment-options-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.theme-elegante .payment-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
}

.theme-elegante .payment-card.selected {
  background: var(--brand-primary-soft, #ECFDF5);
  border: 1.5px solid var(--border-active, var(--brand-primary, #065F46));
  box-shadow: 0 0 0 1px var(--border-active, var(--brand-primary, #065F46));
}

.theme-elegante .payment-card .custom-radio {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  border: 2px solid #CBD5E1;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
}

.theme-elegante .payment-card .custom-radio-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
}

.theme-elegante .payment-card.selected .custom-radio {
  border-color: var(--border-active, var(--brand-primary, #065F46));
}

.theme-elegante .payment-card.selected .custom-radio-inner {
  background: var(--brand-primary, #065F46);
}

.theme-elegante .payment-card-body {
  flex: 1;
  min-width: 0;
}

.theme-elegante .card-headline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.theme-elegante .card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-elegante #cardFullPrepaid .card-title::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E293B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='4' width='22' height='16' rx='2' ry='2'/%3E%3Cline x1='1' y1='10' x2='23' y2='10'/%3E%3C/svg%3E") no-repeat center / contain;
}

.theme-elegante #cardPartialDeposit .card-title::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 17px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E293B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 19h19'/%3E%3Cpath d='M3 13l4.5 4.5h10L22 13'/%3E%3Cpath d='M7 9h10v5H7z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.theme-elegante .card-badge {
  background: var(--brand-primary, #065F46);
  color: var(--brand-primary-btn-text, #FFFFFF);
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  padding: 2.5px 8px;
  line-height: 1;
}

.theme-elegante .card-price-display {
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
}

.theme-elegante .card-description {
  font-size: 11px;
  color: #64748B;
  margin: 3px 0 0 0;
  line-height: 1.3;
}

/* Tarjeta 2: Distribución split elegante */
.theme-elegante .card-split-pills {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 4px 0 2px 0;
}

.theme-elegante .pill-pay-now {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  display: flex;
  align-items: baseline;
  justify-content: flex-start !important;
  gap: 5px !important;
}

.theme-elegante .pill-pay-now span {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
}

.theme-elegante .pill-pay-now strong {
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
}

.theme-elegante .pill-due-later {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  display: flex;
  align-items: baseline;
  justify-content: flex-start !important;
  gap: 4px !important;
  margin-top: 1px;
}

.theme-elegante .pill-due-later span {
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
}

.theme-elegante .pill-due-later strong {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

/* Fila Yappy */
.theme-elegante .yappy-indicator-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin-top: 10px;
  padding: 0;
}

.theme-elegante .yappy-wallet-icon {
  display: none !important;
}

.theme-elegante .yappy-label {
  display: inline !important;
  font-size: 11px;
  font-weight: 700;
  color: #0F172A;
}

.theme-elegante .yappy-dots {
  display: flex;
  align-items: center;
  gap: 3px;
}

.theme-elegante .yappy-dot-blue {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0072CE;
}

.theme-elegante .yappy-dot-orange {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FF671B;
}

.theme-elegante .yappy-brand-name {
  color: #0072CE !important;
  font-weight: 800 !important;
  font-size: 13.5px;
  letter-spacing: -0.01em;
}

/* Resumen del Pedido */
.theme-elegante .breakdown-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
}

.theme-elegante .breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 13px;
  color: #334155;
}

.theme-elegante #breakdownShippingLabel {
  color: var(--brand-primary, #065F46) !important;
  font-weight: 700 !important;
}

.theme-elegante .breakdown-total {
  border-top: 1px solid #E2E8F0;
  margin-top: 6px;
  padding-top: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  display: flex;
  justify-content: space-between;
}

.theme-elegante .breakdown-highlight-card {
  background: #E5F4ED;
  border: 1px solid #D1FAE5;
  border-radius: 6px;
  padding: 8px 12px;
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  text-align: center;
  position: relative;
}

.theme-elegante .breakdown-highlight-card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 15%;
  height: 70%;
  width: 1px;
  background: #CBD5E1;
}

.theme-elegante .breakdown-highlight-card h4,
.theme-elegante .breakdown-highlight-col span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 2px;
  text-transform: none !important;
}

.theme-elegante .breakdown-highlight-card p,
.theme-elegante .breakdown-highlight-col strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}

/* Botón de Envío Principal (Cápsula Verde Esmeralda) */
.theme-elegante .btn-submit-order {
  width: 100%;
  height: 46px;
  background: var(--brand-primary, #065F46);
  color: var(--brand-primary-btn-text, #FFFFFF);
  border: none;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  box-shadow: 0 4px 12px var(--brand-primary-soft, rgba(6, 95, 70, 0.25));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.theme-elegante .btn-submit-order:hover {
  background: var(--brand-primary-hover, #044E39);
}

.theme-elegante .btn-submit-order:active {
  transform: scale(0.98);
}

/* Pie de Página y Confianza */
.theme-elegante .trust-badges {
  padding: 0 18px 24px 18px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.theme-elegante .trust-item {
  font-size: 11px;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.theme-elegante .trust-divider-line {
  width: 100%;
  height: 1px;
  background: #E2E8F0;
  margin: 4px 0;
}

.theme-elegante .legal-disclaimer {
  font-size: 10.5px;
  color: #64748B;
  line-height: 1.4;
  margin-top: 4px;
}

.theme-elegante .legal-disclaimer a {
  color: var(--brand-primary, #065F46);
  text-decoration: underline;
  font-weight: 600;
}

/* ----------------------------------------------------------
   TEMA 2: MODERNO (Azul Eléctrico - Réplica Fiel Oficial)
   ---------------------------------------------------------- */
.theme-moderno {
  --brand-primary: #0051F9;
  --brand-primary-hover: #0045D6;
  --brand-primary-soft: #EFF6FF;
  --brand-primary-btn-text: #FFFFFF;
  --bg-page: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-muted: #F8FAFC;
  --border-light: #E2E8F0;
  --border-active: #0051F9;
  --text-main: #0B1222;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --font-heading: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --card-radius: 8px;
  --btn-radius: 8px;
  --input-radius: 6px;
  --badge-radius: 4px;
}

body.theme-moderno {
  background-color: #FFFFFF;
  color: #0B1222;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding-bottom: 24px !important;
}

body.theme-moderno .app-container {
  max-width: 404px;
  background-color: #FFFFFF;
  box-shadow: none;
}

/* Ocultar barra flotante móvil, topbar informativa, cajón de pruebas y adornos botánicos en Moderno */
.theme-moderno #mobileActionBar,
.theme-moderno .pilot-topbar,
.theme-moderno #benchDrawer,
.theme-moderno .botanical-img {
  display: none !important;
}

/* Banner de demostración discreto fuera del diseño */
.theme-moderno .demo-alert-banner {
  background: #F1F5F9;
  color: #475569;
  border-bottom: 1px solid #E2E8F0;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  text-align: center;
}

/* Encabezado */
.theme-moderno .header-store {
  position: relative;
  text-align: center;
  padding: 18px 24px 0 24px;
  border-bottom: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.theme-moderno .store-branding:not(.active) {
  display: none !important;
}

.theme-moderno .store-branding.active {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.theme-moderno .store-branding.active .store-info h1 {
  font-size: 15px;
  font-weight: 800;
  color: #0B1222;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.theme-moderno .store-close-btn {
  position: absolute;
  right: 20px;
  top: 14px;
  font-size: 17px;
  font-weight: 400;
  color: #0B1222;
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
  z-index: 5;
}

.theme-moderno .checkout-main-header {
  text-align: center;
  margin: 4px 0 16px 0;
  padding: 0 20px;
}

.theme-moderno .main-checkout-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0B1222;
  line-height: 1.15;
  margin: 0 0 4px 0;
  text-align: center;
}

.theme-moderno .main-checkout-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #64748B;
  margin: 0;
  text-align: center;
}

/* Espacio GIF */
.theme-moderno .custom-gif-container {
  margin: 0 auto 16px auto;
  width: calc(100% - 48px);
  max-width: 310px;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  box-sizing: border-box;
}

.theme-moderno .gif-placeholder-inner {
  background: #F8FAFC;
  border: 1.5px dashed #CBD5E1;
  border-radius: 10px;
  height: 85px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-sizing: border-box;
}

.theme-moderno .gif-placeholder-icon {
  width: 24px;
  height: 24px;
  color: #94A3B8;
  stroke: #94A3B8;
}

.theme-moderno .gif-title {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  line-height: 1.2;
  margin: 0;
}

.theme-moderno .gif-subtitle {
  font-size: 10.5px;
  color: #94A3B8;
  line-height: 1.2;
  margin: 0;
}

/* Secciones y Pasos 01, 02, 03 */
.theme-moderno .form-section {
  margin: 0 auto 16px auto;
  width: calc(100% - 48px);
  max-width: 310px;
  padding: 0;
  box-sizing: border-box;
}

.theme-moderno .section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #0B1222;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.theme-moderno .section-step {
  background: var(--brand-primary, #0051F9) !important;
  color: var(--brand-primary-btn-text, #FFFFFF) !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  letter-spacing: 0;
}

/* Paso 1: Tarjetas de Ofertas */
.theme-moderno .offers-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
}

.theme-moderno .offer-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  min-height: 48px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-moderno .offer-card.selected {
  background: #FFFFFF;
  border: 1.5px solid var(--border-active, var(--brand-primary, #0051F9));
  box-shadow: 0 0 0 0.5px var(--border-active, var(--brand-primary, #0051F9));
}

/* Reordenamiento exacto en Moderno: Thumb -> Info -> Price -> Radio a la derecha */
.theme-moderno .offer-card-left {
  display: contents;
}

.theme-moderno .offer-thumb {
  order: 1;
  width: 36px;
  height: 28px;
  object-fit: contain;
  border-radius: 0;
  margin-right: 10px;
  flex-shrink: 0;
  background: transparent !important;
}

.theme-moderno .offer-info {
  order: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}

.theme-moderno .offer-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #0B1222;
  line-height: 1;
}

.theme-moderno .offer-badge {
  background: #DCFCE7;
  color: #15803D;
  border: none;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  line-height: 1.2;
}

.theme-moderno .offer-price {
  order: 3;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #0B1222;
  line-height: 1;
  margin-right: 10px;
}

.theme-moderno .offer-card.selected .offer-price {
  color: var(--brand-primary, #0051F9);
}

.theme-moderno .custom-radio {
  order: 4;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex-shrink: 0;
}

.theme-moderno .offer-card.selected .custom-radio {
  border-color: var(--border-active, var(--brand-primary, #0051F9));
  background: #FFFFFF;
}

.theme-moderno .custom-radio-inner {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
}

.theme-moderno .offer-card.selected .custom-radio-inner {
  background: var(--brand-primary, #0051F9);
}

/* Paso 2: Formulario de Entrega */
.theme-moderno .form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.theme-moderno .form-group {
  margin-bottom: 8px;
}

.theme-moderno .form-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 3px;
  display: block;
}

.theme-moderno .form-label .required {
  display: none !important;
}

.theme-moderno .form-input,
.theme-moderno .form-select,
.theme-moderno .whatsapp-input-container {
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  background: #FFFFFF;
  font-size: 12px;
  color: #0B1222;
  height: 35px;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.theme-moderno .form-input:focus,
.theme-moderno .form-select:focus,
.theme-moderno .whatsapp-input-container:focus-within {
  border-color: var(--border-active, var(--brand-primary, #0051F9));
  outline: none;
}

.theme-moderno .form-input {
  padding: 6px 10px;
  width: 100%;
}

.theme-moderno .form-input::placeholder {
  color: #94A3B8;
  font-size: 12px;
}

.theme-moderno .whatsapp-input-container {
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.theme-moderno .whatsapp-prefix {
  font-size: 12px;
  color: #64748B;
  font-weight: 600;
}

.theme-moderno .whatsapp-divider {
  width: 1px;
  height: 16px;
  background: #E2E8F0;
  margin: 0 8px;
}

.theme-moderno .whatsapp-input {
  border: none;
  background: transparent;
  font-size: 12px;
  color: #0B1222;
  width: 100%;
  outline: none;
}

.theme-moderno .whatsapp-input::placeholder {
  color: #94A3B8;
}

.theme-moderno .select-wrapper {
  position: relative;
  width: 100%;
}

.theme-moderno .form-select {
  width: 100%;
  padding: 6px 28px 6px 10px;
  appearance: none;
  -webkit-appearance: none;
  font-size: 12px;
  color: #334155;
  background: #FFFFFF;
  cursor: pointer;
}

.theme-moderno .select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #64748B;
  font-size: 13px;
}

.theme-moderno .form-helper-note {
  display: none !important;
}

/* Paso 3: Tarjetas de Pago */
.theme-moderno .payment-options-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.theme-moderno .payment-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.theme-moderno .payment-card .custom-radio {
  order: unset;
  margin: 2px 0 0 0;
  width: 18px;
  height: 18px;
  border: 2px solid #CBD5E1;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
}

.theme-moderno .payment-card .custom-radio-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
}

.theme-moderno .payment-card-body {
  flex: 1;
  min-width: 0;
}

/* Opción A: Paga todo hoy (No seleccionada) */
.theme-moderno #cardFullPrepaid .card-headline-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.theme-moderno #cardFullPrepaid .card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #0B1222;
}

.theme-moderno #cardFullPrepaid .card-badge {
  background: #DBEAFE;
  color: #1D4ED8;
  border: none;
  border-radius: 4px;
  padding: 1.5px 6px;
  font-size: 10.5px;
  font-weight: 600;
}

.theme-moderno #cardFullPrepaid .card-price-display {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #0B1222;
  line-height: 1.1;
  margin: 2px 0;
}

.theme-moderno #cardFullPrepaid .card-description {
  font-size: 10.5px;
  color: #64748B;
  margin: 0;
}

/* Opción B: Abono Seleccionado (Color principal sólido) */
.theme-moderno #cardPartialDeposit.selected {
  background: var(--brand-primary, #0051F9) !important;
  border-color: var(--border-active, var(--brand-primary, #0051F9)) !important;
  color: var(--brand-primary-btn-text, #FFFFFF) !important;
  box-shadow: none !important;
}

.theme-moderno #cardPartialDeposit.selected .custom-radio {
  border-color: var(--brand-primary-btn-text, #FFFFFF) !important;
  background: var(--brand-primary, #0051F9) !important;
}

.theme-moderno #cardPartialDeposit.selected .custom-radio-inner {
  background: var(--brand-primary-btn-text, #FFFFFF) !important;
}

.theme-moderno #cardPartialDeposit.selected .card-headline-row .card-title {
  color: var(--brand-primary-btn-text, #FFFFFF) !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.theme-moderno #cardPartialDeposit.selected .card-split-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: none;
  padding: 0;
  margin: 6px 0;
  gap: 0;
}

.theme-moderno #cardPartialDeposit.selected .split-pill {
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.theme-moderno #cardPartialDeposit.selected #partialPayNowPill {
  padding-right: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
}

.theme-moderno #cardPartialDeposit.selected #partialDuePill {
  padding-left: 12px;
}

.theme-moderno #cardPartialDeposit.selected .split-pill span {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.theme-moderno #cardPartialDeposit.selected .split-pill strong {
  color: var(--brand-primary-btn-text, #FFFFFF) !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
}

.theme-moderno #cardPartialDeposit.selected .card-description {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 10.5px;
  margin: 0;
}

/* Si el usuario selecciona Opción A (Paga todo hoy) */
.theme-moderno #cardFullPrepaid.selected {
  background: var(--brand-primary, #0051F9) !important;
  border-color: var(--border-active, var(--brand-primary, #0051F9)) !important;
  color: var(--brand-primary-btn-text, #FFFFFF) !important;
}

.theme-moderno #cardFullPrepaid.selected .card-title,
.theme-moderno #cardFullPrepaid.selected .card-price-display {
  color: var(--brand-primary-btn-text, #FFFFFF) !important;
}

.theme-moderno #cardFullPrepaid.selected .card-description {
  color: rgba(255, 255, 255, 0.9) !important;
}

.theme-moderno #cardFullPrepaid.selected .custom-radio {
  border-color: var(--brand-primary-btn-text, #FFFFFF) !important;
  background: var(--brand-primary, #0051F9) !important;
}

.theme-moderno #cardFullPrepaid.selected .custom-radio-inner {
  background: var(--brand-primary-btn-text, #FFFFFF) !important;
}

/* Indicador Yappy */
.theme-moderno .yappy-indicator-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  padding: 0;
}

.theme-moderno .yappy-wallet-icon {
  display: none !important;
}

.theme-moderno .yappy-label {
  font-size: 0;
  display: inline-flex;
}

.theme-moderno .yappy-label::before {
  content: "Pago inicial con";
  font-size: 11px;
  color: #64748B;
  font-weight: 500;
}

.theme-moderno .yappy-dots {
  display: flex;
  gap: 3px;
  align-items: center;
}

.theme-moderno .yappy-dot-blue {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00B2E3;
}

.theme-moderno .yappy-dot-orange {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF5E00;
}

.theme-moderno .yappy-brand-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 13.5px;
  color: #003087 !important;
  letter-spacing: -0.3px;
}

/* Resumen de tu pedido */
.theme-moderno .breakdown-box {
  background: #F8FAFC;
  border: none;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.theme-moderno .breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #475569;
  margin-bottom: 5px;
}

.theme-moderno .breakdown-divider {
  height: 1px;
  background: #E2E8F0;
  margin: 8px 0;
  border: none;
}

.theme-moderno .breakdown-total {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 800;
  color: #0B1222;
  margin-bottom: 8px;
}

.theme-moderno .breakdown-highlight-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 6px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 6px;
}

.theme-moderno .hl-left {
  border-right: 1px solid #E2E8F0;
  padding-right: 8px;
  text-align: center;
}

.theme-moderno .hl-right {
  padding-left: 8px;
  text-align: center;
}

.theme-moderno .hl-left h4,
.theme-moderno .hl-right h4 {
  font-size: 10px;
  font-weight: 600;
  color: #64748B;
  margin-bottom: 2px;
}

.theme-moderno .hl-left p,
.theme-moderno .hl-right p {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #0B1222;
  margin: 0;
}

/* Botón Principal CTA al final */
.theme-moderno .checkout-main-cta {
  margin: 0 auto 12px auto;
  width: calc(100% - 48px);
  max-width: 310px;
}

.theme-moderno .btn-main-action {
  background: var(--brand-primary, #0051F9);
  color: var(--brand-primary-btn-text, #FFFFFF);
  border-radius: 8px;
  height: 44px;
  width: 100%;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px var(--brand-primary-soft, rgba(0, 81, 249, 0.25));
  transition: background 0.15s ease;
}

.theme-moderno .btn-main-action:hover {
  background: var(--brand-primary-hover, #0045D6);
}

/* Pie de confianza */
.theme-moderno .checkout-trust-footer {
  text-align: center;
  margin: 0 auto;
  width: calc(100% - 48px);
  max-width: 310px;
  padding: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.theme-moderno .trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  color: #475569;
}

.theme-moderno .trust-divider {
  display: none;
}

.theme-moderno .trust-item-shipping {
  font-size: 10.5px;
  color: #64748B;
}

.theme-moderno .terms-note {
  font-size: 9.5px;
  color: #64748B;
  margin-top: 2px;
}

.theme-moderno .terms-note a {
  color: var(--brand-primary, #0051F9);
  text-decoration: none;
  font-weight: 600;
}

/* ----------------------------------------------------------
   TEMA 3: ROMÁNTICO (Rosa y Ciruela - Ref Mockup Oficial)
   ---------------------------------------------------------- */
.theme-romantico,
.theme-femenino {
  --brand-primary: #6E2D48;
  --brand-primary-hover: #582439;
  --brand-primary-soft: #FDF1F3;
  --brand-primary-btn-text: #ffffff;
  --border-active: #6E2D48;
  --bg-page: #FDF9F4;
  --bg-card: #FDF9F4;
  --bg-muted: #FDF9F4;
  --border-light: #EBE3E5;
  --text-main: #2D1822;
  --text-secondary: #5A454B;
  --text-muted: #7A656B;
  --font-heading: 'Playfair Display', Georgia, serif;
  --card-radius: 8px;
  --btn-radius: 9999px;
  --input-radius: 8px;
  --badge-radius: 9999px;
}

body.theme-romantico,
body.theme-femenino {
  background-color: #FDF9F4;
  color: var(--text-main);
  padding-bottom: 24px !important;
}

body.theme-romantico .app-container,
body.theme-femenino .app-container {
  max-width: 403px;
  background-color: #FDF9F4;
  box-shadow: 0 4px 20px rgba(74, 46, 53, 0.05);
}


/* Ocultar barra flotante móvil, topbar informativa y drawer de pruebas en Romántico */
.theme-romantico #mobileActionBar,
.theme-femenino #mobileActionBar,
.theme-romantico .pilot-topbar,
.theme-femenino .pilot-topbar,
.theme-romantico #benchDrawer,
.theme-femenino #benchDrawer {
  display: none !important;
}

/* Banner de modo demostración en Romántico (discreto y visible fuera del formulario) */
.theme-romantico .demo-alert-banner,
.theme-femenino .demo-alert-banner {
  background: #FAF1F3;
  color: #8A4D58;
  border-bottom: 1px solid #EEDBDD;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  text-align: center;
}

/* Decoraciones botánicas en esquinas superiores (PNG original con transparencia) */
.theme-romantico .botanical-img,
.theme-femenino .botanical-img {
  display: block;
  position: absolute;
  top: 0;
  width: 95px;
  height: auto;
  pointer-events: none;
  z-index: 1;
}

.theme-romantico .botanical-tl,
.theme-femenino .botanical-tl {
  left: 0;
}

.theme-romantico .botanical-tr,
.theme-femenino .botanical-tr {
  right: 0;
}

/* Encabezado de tienda Romántico */
.theme-romantico .header-store,
.theme-femenino .header-store {
  position: relative;
  text-align: center;
  padding: 6px 18px 0 18px;
  border-bottom: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.theme-romantico .store-branding:not(.active),
.theme-femenino .store-branding:not(.active) {
  display: none !important;
}

.theme-romantico .store-branding.active,
.theme-femenino .store-branding.active {
  display: flex !important;
  justify-content: center;
  width: 100%;
}

.theme-romantico .store-logo-placeholder,
.theme-femenino .store-logo-placeholder,
.theme-romantico #storeSubText,
.theme-femenino #storeSubText {
  display: none;
}

.theme-romantico .store-info h1,
.theme-femenino .store-info h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: #4A2E35;
  text-align: center;
  margin: 0;
}

.theme-romantico .store-close-btn,
.theme-femenino .store-close-btn {
  position: absolute;
  right: 18px;
  top: 10px;
  font-size: 16px;
  color: #4A2E35;
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 1;
  z-index: 5;
  padding: 2px 4px;
}

/* Títulos principales */
.theme-romantico .checkout-main-header,
.theme-femenino .checkout-main-header {
  text-align: center;
  margin-top: 2px;
  margin-bottom: 8px;
  padding: 0 14px;
  position: relative;
  z-index: 2;
}

.theme-romantico .main-checkout-title,
.theme-femenino .main-checkout-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.15px;
  color: #4A2E35;
  line-height: 1.2;
  margin: 0 0 2px 0;
}

.theme-romantico .main-checkout-subtitle,
.theme-femenino .main-checkout-subtitle {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 12px;
  color: #6E555C;
  margin: 0;
}

/* Espacio GIF */
.theme-romantico .custom-gif-container,
.theme-femenino .custom-gif-container {
  margin: 0 auto 10px auto;
  width: calc(100% - 68px);
  max-width: 334px;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  box-sizing: border-box;
}

.theme-romantico .gif-placeholder-inner,
.theme-femenino .gif-placeholder-inner {
  background: #FAF1F3;
  border: 1.5px dashed #E5B2B8;
  border-radius: 12px;
  height: 104px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-sizing: border-box;
}

.theme-romantico .gif-placeholder-icon,
.theme-femenino .gif-placeholder-icon {
  width: 28px;
  height: 28px;
}

.theme-romantico .gif-title,
.theme-femenino .gif-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #945D67;
  line-height: 1.2;
  margin: 0;
}

.theme-romantico .gif-subtitle,
.theme-femenino .gif-subtitle {
  font-size: 11.5px;
  color: #A47880;
  line-height: 1.2;
  margin: 0;
}

/* PASO 1: Selector de Ofertas */
.theme-romantico .form-section-offers,
.theme-femenino .form-section-offers {
  margin: 0 auto 8px auto;
  width: calc(100% - 68px);
  max-width: 335px;
  padding: 0;
  box-sizing: border-box;
}

.theme-romantico .form-section-offers .section-title,
.theme-femenino .form-section-offers .section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: #4A2E35;
  display: flex;
  align-items: baseline;
  margin: 0 0 6px 0;
  letter-spacing: 0;
}

.theme-romantico .form-section-offers .section-step,
.theme-femenino .form-section-offers .section-step {
  display: inline;
  background: transparent !important;
  color: inherit !important;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  width: auto;
  height: auto;
  border-radius: 0;
  padding: 0;
  margin-right: 3px;
}

.theme-romantico .offers-grid,
.theme-femenino .offers-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
}

.theme-romantico .offer-card,
.theme-femenino .offer-card {
  background: #FFFFFF;
  border: 1px solid #E5DCDF;
  border-radius: 8px;
  height: 38px;
  min-height: 38px;
  padding: 0 10px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-romantico .offer-card.selected,
.theme-femenino .offer-card.selected {
  background: var(--brand-primary-soft, #FAF0F2);
  border: 1.5px solid var(--border-active, var(--brand-primary, #6E2D48));
  box-shadow: none;
}

.theme-romantico .offer-card-left,
.theme-femenino .offer-card-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-romantico .custom-radio,
.theme-femenino .custom-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #D4C5C8;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex-shrink: 0;
}

.theme-romantico .offer-card.selected .custom-radio,
.theme-femenino .offer-card.selected .custom-radio {
  border-color: var(--border-active, var(--brand-primary, #6E2D48));
  background: var(--brand-primary-soft, #FAF0F2);
}

.theme-romantico .custom-radio-inner,
.theme-femenino .custom-radio-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
}

.theme-romantico .offer-card.selected .custom-radio-inner,
.theme-femenino .offer-card.selected .custom-radio-inner {
  background: var(--brand-primary, #6E2D48);
}

.theme-romantico .payment-card.selected .custom-radio,
.theme-femenino .payment-card.selected .custom-radio {
  border-color: var(--border-active, var(--brand-primary, #6E2D48));
}

.theme-romantico .payment-card.selected .custom-radio-inner,
.theme-femenino .payment-card.selected .custom-radio-inner {
  background: var(--brand-primary, #6E2D48);
}

.theme-romantico .offer-thumb,
.theme-femenino .offer-thumb {
  width: 35px;
  height: 27px;
  object-fit: contain;
  border-radius: 3px;
  flex-shrink: 0;
}

.theme-romantico .offer-info,
.theme-femenino .offer-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-romantico .offer-title,
.theme-femenino .offer-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #2D1822;
  line-height: 1;
}

.theme-romantico .offer-badge,
.theme-femenino .offer-badge {
  background: #F6DDE1;
  color: #8A3D54;
  border: none;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  line-height: 1.3;
}

.theme-romantico .offer-price,
.theme-femenino .offer-price {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 14.5px;
  font-weight: 700;
  color: #2D1822;
  line-height: 1;
}

/* Campos de formulario */
.theme-romantico .form-group,
.theme-femenino .form-group {
  margin-bottom: 12px;
}

.theme-romantico .form-label,
.theme-femenino .form-label {
  font-size: 13px;
  font-weight: 500;
  color: #3E272E;
  margin-bottom: 5px;
}

.theme-romantico .form-label .required,
.theme-femenino .form-label .required {
  display: none;
}

.theme-romantico .form-input,
.theme-femenino .form-input,
.theme-romantico .form-select,
.theme-femenino .form-select,
.theme-romantico .whatsapp-input-container,
.theme-femenino .whatsapp-input-container {
  height: 44px;
  border-radius: 8px;
  border: 1px solid #E5DCDF;
  background: #FFFFFF;
  font-size: 15px;
  color: #2D1822;
  box-sizing: border-box;
}

.theme-romantico .form-input,
.theme-femenino .form-input {
  padding: 0 14px;
}

.theme-romantico .form-select,
.theme-femenino .form-select {
  padding: 0 36px 0 14px;
}

.theme-romantico .whatsapp-prefix,
.theme-femenino .whatsapp-prefix {
  font-size: 14px;
  font-weight: 500;
  color: #3E272E;
  padding: 0 12px;
}

.theme-romantico .whatsapp-divider,
.theme-femenino .whatsapp-divider {
  background: #E5DCDF;
}

.theme-romantico .whatsapp-input,
.theme-femenino .whatsapp-input {
  font-size: 15px;
  color: #2D1822;
}

.theme-romantico .select-arrow,
.theme-femenino .select-arrow {
  color: #6E555C;
  font-size: 15px;
  right: 14px;
}

/* Ocultar nota de ayuda en Romántico (fiel a mockup) */
.theme-romantico .form-helper-note,
.theme-femenino .form-helper-note {
  display: none;
}

/* Opciones de pago */
.theme-romantico .payment-card,
.theme-femenino .payment-card {
  background: #FFFFFF;
  border: 1px solid #EAE2E3;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  transition: all 0.15s ease;
}

.theme-romantico .payment-card.selected,
.theme-femenino .payment-card.selected {
  background: var(--brand-primary-soft, #FBF0F2);
  border: 1.5px solid var(--border-active, var(--brand-primary, #6E2D48));
  box-shadow: none;
}

.theme-romantico .card-title,
.theme-femenino .card-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  color: #2D1822;
}

.theme-romantico .card-price-display,
.theme-femenino .card-price-display {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: #2D1822;
  margin: 3px 0;
}

.theme-romantico .card-badge,
.theme-femenino .card-badge {
  background: #F6DDE1;
  color: #8A3D54;
  border: none;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
}

.theme-romantico .card-description,
.theme-femenino .card-description {
  font-size: 12px;
  color: #7D686E;
}

/* Píldoras divididas de Opción B */
.theme-romantico .card-split-pills,
.theme-femenino .card-split-pills {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  margin: 8px 0 6px 0;
  gap: 0;
  width: 100%;
}

.theme-romantico .split-pill,
.theme-femenino .split-pill {
  flex: 1 1 50%;
  text-align: center;
  background: transparent !important;
  border: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
  box-sizing: border-box;
}

.theme-romantico .split-pill:first-child,
.theme-femenino .split-pill:first-child {
  border-right: 1px solid #E8CDD2 !important;
}

.theme-romantico .split-pill span,
.theme-femenino .split-pill span {
  font-size: 11px;
  color: #6E555C;
  font-weight: 500;
}

.theme-romantico .split-pill strong,
.theme-femenino .split-pill strong {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: #4A202E;
  margin-top: 2px;
}

.theme-romantico #partialCardDesc,
.theme-femenino #partialCardDesc {
  text-align: center;
  font-size: 11.5px;
  color: #6E555C;
}

/* Fila Yappy en Romántico */
.theme-romantico .yappy-indicator-row,
.theme-femenino .yappy-indicator-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #4A2E35;
  margin-top: 10px;
  margin-left: 2px;
}

.theme-romantico .yappy-dots,
.theme-femenino .yappy-dots,
.theme-romantico .yappy-brand-name,
.theme-femenino .yappy-brand-name {
  display: none;
}

.theme-romantico .yappy-wallet-icon,
.theme-femenino .yappy-wallet-icon {
  display: block;
  stroke: #4A2E35;
}

.theme-romantico .yappy-label,
.theme-femenino .yappy-label {
  display: inline;
}

/* Resumen del pedido */
.theme-romantico .breakdown-box,
.theme-femenino .breakdown-box {
  background: #FAF6F2;
  border: 1px solid #EFE4DC;
  border-radius: 10px;
  padding: 16px;
  box-sizing: border-box;
}

.theme-romantico .breakdown-row,
.theme-femenino .breakdown-row {
  font-size: 13px;
  color: #5A454B;
  margin-bottom: 5px;
}

.theme-romantico #breakdownShippingLabel,
.theme-femenino #breakdownShippingLabel {
  color: #5A454B !important;
  font-weight: 500 !important;
}

.theme-romantico .breakdown-divider,
.theme-femenino .breakdown-divider {
  background: #EAE0D6;
  margin: 10px 0;
}

.theme-romantico .breakdown-total,
.theme-femenino .breakdown-total {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  color: #2D1822;
  margin-bottom: 8px;
}

.theme-romantico .breakdown-highlight-card,
.theme-femenino .breakdown-highlight-card {
  background: transparent;
  border: none;
  padding: 10px 0 0 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 0;
}

.theme-romantico .hl-left,
.theme-femenino .hl-left,
.theme-romantico .hl-right,
.theme-femenino .hl-right {
  flex: 1;
  text-align: center;
}

.theme-romantico .hl-left,
.theme-femenino .hl-left {
  border-right: 1px solid #EAE0D6;
}

.theme-romantico .hl-left h4,
.theme-femenino .hl-left h4,
.theme-romantico .hl-right h4,
.theme-femenino .hl-right h4 {
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
  color: #5A454B;
  margin-bottom: 2px;
}

.theme-romantico .hl-left p,
.theme-femenino .hl-left p,
.theme-romantico .hl-right p,
.theme-femenino .hl-right p {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: #4A202E;
}

/* Botón CTA Romántico */
.theme-romantico .checkout-main-cta,
.theme-femenino .checkout-main-cta {
  margin: 16px 16px 8px 16px;
}

.theme-romantico .btn-main-action,
.theme-femenino .btn-main-action {
  border-radius: 9999px;
  background: var(--brand-primary);
  color: var(--brand-primary-btn-text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 20px;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 14px rgba(110, 45, 72, 0.2);
  transition: transform 0.1s ease, background-color 0.15s ease;
}

.theme-romantico .btn-main-action:hover,
.theme-femenino .btn-main-action:hover {
  background: var(--brand-primary-hover);
}

/* Pie y sellos de seguridad */
.theme-romantico .checkout-trust-footer,
.theme-femenino .checkout-trust-footer {
  padding: 12px 16px 24px 16px;
  text-align: center;
}

.theme-romantico .trust-item-lock,
.theme-femenino .trust-item-lock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: #5A454B;
  margin-bottom: 10px;
}

.theme-romantico .trust-divider,
.theme-femenino .trust-divider {
  display: block;
  height: 1px;
  background: #EAE0D6;
  margin: 10px auto;
  max-width: 90%;
}

.theme-romantico .trust-item-shipping,
.theme-femenino .trust-item-shipping {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: #7A656B;
  margin-bottom: 6px;
}

.theme-romantico .terms-note,
.theme-femenino .terms-note {
  font-size: 10px;
  color: #8A757B;
  line-height: 1.35;
}

.theme-romantico .terms-note a,
.theme-femenino .terms-note a {
  color: #7A656B;
}

/* ----------------------------------------------------------
   TEMA 4: MINIMALISTA (Blanco y Negro - Ref Oficial)
   ---------------------------------------------------------- */
.theme-minimalista {
  --brand-primary: #18181B;
  --brand-primary-hover: #27272A;
  --brand-primary-soft: #F9FAFB;
  --brand-primary-btn-text: #FFFFFF;
  --bg-page: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-muted: #F9FAFB;
  --border-light: #E5E7EB;
  --border-active: #18181B;
  --text-main: #111827;
  --text-secondary: #4B5563;
  --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --card-radius: 6px;
  --btn-radius: 6px;
  --input-radius: 4px;
  --badge-radius: 4px;
}

body.theme-minimalista {
  background-color: #FFFFFF;
  color: #111827;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  padding-bottom: 24px !important;
}

body.theme-minimalista,
body.theme-minimalista *,
.theme-minimalista .gif-placeholder-inner,
.theme-minimalista .gif-title,
.theme-minimalista .gif-subtitle,
.theme-minimalista label,
.theme-minimalista .form-label,
.theme-minimalista .field-label,
.theme-minimalista .yappy-label,
.theme-minimalista .offer-badge,
.theme-minimalista .shipping-badge,
.theme-minimalista .form-helper-note {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

body.theme-minimalista .app-container {
  max-width: 404px;
  background-color: #FFFFFF;
  box-shadow: none;
}

/* Ocultar barra flotante móvil, topbar informativa, cajón de pruebas y adornos botánicos en Minimalista */
.theme-minimalista #mobileActionBar,
.theme-minimalista .pilot-topbar,
.theme-minimalista #benchDrawer,
.theme-minimalista .botanical-img {
  display: none !important;
}

/* Banner de demostración discreto fuera del diseño */
.theme-minimalista .demo-alert-banner {
  background: #F3F4F6;
  color: #4B5563;
  border-bottom: 1px solid #E5E7EB;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  text-align: center;
}

/* Encabezado */
.theme-minimalista .header-store {
  position: relative;
  text-align: right;
  padding: 16px 47px 0 47px;
  border-bottom: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.theme-minimalista .header-store.has-branding {
  justify-content: space-between;
}

.theme-minimalista .store-branding:not(.active) {
  display: none !important;
}

.theme-minimalista .store-branding.active {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.theme-minimalista .store-branding.active .store-info h1 {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.2px;
  text-transform: uppercase;
  margin: 0;
}

.theme-minimalista .store-close-btn {
  font-size: 16px;
  font-weight: 400;
  color: #111827;
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
  z-index: 5;
}

.theme-minimalista .checkout-main-header {
  text-align: left;
  margin: 4px auto 16px auto;
  padding: 0;
  width: calc(100% - 94px);
  max-width: 310px;
  box-sizing: border-box;
}

.theme-minimalista .main-checkout-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
  line-height: 1.15;
  margin: 0 0 4px 0;
  text-align: left;
}

.theme-minimalista .main-checkout-subtitle {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: #6B7280;
  margin: 0;
  text-align: left;
}

/* Espacio GIF */
.theme-minimalista .custom-gif-container {
  margin: 0 auto 16px auto;
  width: calc(100% - 94px);
  max-width: 310px;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  box-sizing: border-box;
}

.theme-minimalista .gif-placeholder-inner {
  background: #F9FAFB;
  border: 1px dashed #D1D5DB;
  border-radius: 6px;
  height: 85px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-sizing: border-box;
}

.theme-minimalista .gif-placeholder-icon {
  width: 24px;
  height: 24px;
  color: #9CA3AF;
  stroke: #9CA3AF;
}

.theme-minimalista .gif-title {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  line-height: 1.2;
  margin: 0;
}

.theme-minimalista .gif-subtitle {
  font-size: 10.5px;
  color: #9CA3AF;
  line-height: 1.2;
  margin: 0;
}

/* Secciones y Pasos 1., 2., 3. */
.theme-minimalista .form-section {
  margin: 0 auto 16px auto;
  width: calc(100% - 94px);
  max-width: 310px;
  padding: 0;
  box-sizing: border-box;
}

.theme-minimalista .section-title {
  display: flex;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.theme-minimalista .section-step {
  background: transparent !important;
  color: #111827 !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  display: inline !important;
  width: auto !important;
  height: auto !important;
  margin-right: 4px !important;
}

/* Paso 1: Tarjetas de Ofertas */
.theme-minimalista .offers-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
}

.theme-minimalista .offer-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  min-height: 48px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-minimalista .offer-card.selected {
  background: var(--brand-primary-soft, #F9FAFB);
  border: 1.5px solid var(--border-active, var(--brand-primary, #18181B));
  box-shadow: none;
}

.theme-minimalista .offer-card-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.theme-minimalista .offer-thumb {
  width: 32px;
  height: 26px;
  object-fit: contain;
  border-radius: 0;
  flex-shrink: 0;
  background: transparent !important;
}

.theme-minimalista .offer-info {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}

.theme-minimalista .offer-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  line-height: 1;
  white-space: nowrap;
}

.theme-minimalista .offer-badge {
  background: #F3F4F6;
  color: #4B5563;
  border: none;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 600;
  padding: 1.5px 5px;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}

.theme-minimalista .offer-price {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  line-height: 1;
  margin-left: 8px;
  flex-shrink: 0;
}

.theme-minimalista .offer-card .custom-radio {
  margin: 0;
  width: 18px;
  height: 18px;
  border: 2px solid #D1D5DB;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
}

.theme-minimalista .offer-card .custom-radio-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
}

.theme-minimalista .offer-card.selected .custom-radio {
  border-color: var(--border-active, var(--brand-primary, #18181B));
}

.theme-minimalista .offer-card.selected .custom-radio-inner {
  background: var(--brand-primary, #18181B);
}

/* Paso 2: Formulario de Entrega */
.theme-minimalista .form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.theme-minimalista .form-group {
  margin-bottom: 8px;
}

.theme-minimalista .form-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 3px;
  display: block;
}

.theme-minimalista .form-label .required {
  display: none !important;
}

.theme-minimalista .form-input,
.theme-minimalista .form-select,
.theme-minimalista .whatsapp-input-container {
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  background: #FFFFFF;
  font-size: 12px;
  color: #111827;
  height: 35px;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.theme-minimalista .form-input:focus,
.theme-minimalista .form-select:focus,
.theme-minimalista .whatsapp-input-container:focus-within {
  border-color: var(--border-active, var(--brand-primary, #18181B));
  outline: none;
}

.theme-minimalista .form-input {
  padding: 6px 10px;
  width: 100%;
}

.theme-minimalista .form-input::placeholder {
  color: #9CA3AF;
  font-size: 12px;
}

.theme-minimalista .whatsapp-input-container {
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.theme-minimalista .whatsapp-prefix {
  font-size: 12px;
  color: #374151;
  font-weight: 600;
}

.theme-minimalista .whatsapp-divider {
  width: 1px;
  height: 16px;
  background: #E5E7EB;
  margin: 0 8px;
}

.theme-minimalista .whatsapp-input {
  border: none;
  background: transparent;
  font-size: 12px;
  color: #111827;
  width: 100%;
  outline: none;
}

.theme-minimalista .whatsapp-input::placeholder {
  color: #9CA3AF;
}

.theme-minimalista .select-wrapper {
  position: relative;
  width: 100%;
}

.theme-minimalista .form-select {
  width: 100%;
  padding: 6px 28px 6px 10px;
  appearance: none;
  -webkit-appearance: none;
  background-color: #FFFFFF;
  cursor: pointer;
}

.theme-minimalista .select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #6B7280;
  font-size: 13px;
}

.theme-minimalista .form-helper-note {
  display: none !important;
}

/* Paso 3: Tarjetas de Pago */
.theme-minimalista .payment-options-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.theme-minimalista .payment-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.theme-minimalista .payment-card .custom-radio {
  margin: 2px 0 0 0;
  width: 18px;
  height: 18px;
  border: 2px solid #D1D5DB;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
}

.theme-minimalista .payment-card .custom-radio-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
}

.theme-minimalista .payment-card-body {
  flex: 1;
  min-width: 0;
}

/* Opción A: Paga todo hoy (No seleccionada) */
.theme-minimalista #cardFullPrepaid .card-headline-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.theme-minimalista #cardFullPrepaid .card-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
}

.theme-minimalista #cardFullPrepaid .card-badge {
  background: #F3F4F6;
  color: #374151;
  border: none;
  border-radius: 4px;
  padding: 1.5px 6px;
  font-size: 10px;
  font-weight: 600;
}

.theme-minimalista #cardFullPrepaid .card-price-display {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  line-height: 1.1;
  margin: 2px 0;
}

.theme-minimalista #cardFullPrepaid .card-description {
  font-size: 10.5px;
  color: #6B7280;
  margin: 0;
}

/* Opción B: Abono Seleccionado (Fondo suave, borde activo de acento) */
.theme-minimalista #cardPartialDeposit.selected {
  background: var(--brand-primary-soft, #F9FAFB) !important;
  border: 1.5px solid var(--border-active, var(--brand-primary, #18181B)) !important;
  color: #111827 !important;
  box-shadow: none !important;
}

.theme-minimalista #cardPartialDeposit.selected .custom-radio {
  border-color: var(--border-active, var(--brand-primary, #18181B)) !important;
  background: #FFFFFF !important;
}

.theme-minimalista #cardPartialDeposit.selected .custom-radio-inner {
  background: var(--brand-primary, #18181B) !important;
}

.theme-minimalista #cardPartialDeposit.selected .card-headline-row .card-title {
  color: #111827 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
}

.theme-minimalista #cardPartialDeposit.selected .card-split-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: none;
  padding: 0;
  margin: 6px 0;
  gap: 0;
}

.theme-minimalista #cardPartialDeposit.selected .split-pill {
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.theme-minimalista #cardPartialDeposit.selected #partialPayNowPill {
  padding-right: 12px;
  border-right: 1px solid #E5E7EB;
}

.theme-minimalista #cardPartialDeposit.selected #partialDuePill {
  padding-left: 12px;
}

.theme-minimalista #cardPartialDeposit.selected .split-pill span {
  color: #6B7280 !important;
  font-size: 11px;
  font-weight: 500;
  text-transform: none !important;
  letter-spacing: 0;
  margin-bottom: 2px;
}

.theme-minimalista #cardPartialDeposit.selected .split-pill strong {
  color: #111827 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

.theme-minimalista #cardPartialDeposit.selected .card-description {
  color: #6B7280 !important;
  font-size: 10.5px;
  margin: 0;
}

/* Si el usuario selecciona Opción A en Minimalista */
.theme-minimalista #cardFullPrepaid.selected {
  background: var(--brand-primary-soft, #F9FAFB) !important;
  border: 1.5px solid var(--border-active, var(--brand-primary, #18181B)) !important;
  color: #111827 !important;
}

.theme-minimalista #cardFullPrepaid.selected .card-title,
.theme-minimalista #cardFullPrepaid.selected .card-price-display {
  color: #111827 !important;
}

.theme-minimalista #cardFullPrepaid.selected .card-description {
  color: #6B7280 !important;
}

.theme-minimalista #cardFullPrepaid.selected .custom-radio {
  border-color: var(--border-active, var(--brand-primary, #18181B)) !important;
  background: #FFFFFF !important;
}

.theme-minimalista #cardFullPrepaid.selected .custom-radio-inner {
  background: var(--brand-primary, #18181B) !important;
}

/* Fila Yappy: Texto simple y limpio alineado a la izquierda */
.theme-minimalista .yappy-indicator-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin-top: 8px;
  padding: 0;
}

.theme-minimalista .yappy-wallet-icon,
.theme-minimalista .yappy-dots,
.theme-minimalista .yappy-brand-name {
  display: none !important;
}

.theme-minimalista .yappy-label {
  display: inline !important;
  font-size: 11px;
  color: #4B5563;
  font-weight: 500;
}

/* Resumen de tu pedido */
.theme-minimalista .breakdown-box {
  background: transparent;
  border: none;
  border-top: 1px solid #E5E7EB;
  border-radius: 0;
  padding: 12px 0 6px 0;
  margin-bottom: 12px;
}

.theme-minimalista .breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #374151;
  margin-bottom: 5px;
}

.theme-minimalista #breakdownShippingLabel {
  color: #111827 !important;
  font-weight: 400 !important;
}

.theme-minimalista .breakdown-divider {
  height: 1px;
  background: #E5E7EB;
  margin: 8px 0;
  border: none;
}

.theme-minimalista .breakdown-total {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 6px;
}

/* Desglose de Pagas Hoy y Al Recibir en filas simples */
.theme-minimalista .breakdown-highlight-card {
  display: block;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-top: 4px;
}

.theme-minimalista .hl-left,
.theme-minimalista .hl-right {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  padding: 2px 0;
  text-align: left;
}

.theme-minimalista .hl-left h4,
.theme-minimalista .hl-right h4 {
  font-size: 11.5px;
  font-weight: 400 !important;
  text-transform: none !important;
  color: #4B5563;
  margin: 0;
}

.theme-minimalista .hl-left p,
.theme-minimalista .hl-right p {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

/* Botón Principal CTA al final */
.theme-minimalista .checkout-main-cta {
  margin: 12px auto 12px auto;
  width: calc(100% - 94px);
  max-width: 310px;
}

.theme-minimalista .btn-main-action {
  background: var(--brand-primary, #18181B);
  color: var(--brand-primary-btn-text, #FFFFFF);
  border-radius: 6px;
  height: 44px;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: none;
  transition: background 0.15s ease;
}

.theme-minimalista .btn-main-action:hover {
  background: var(--brand-primary-hover, #27272A);
}

/* Pie de confianza */
.theme-minimalista .checkout-trust-footer {
  text-align: center;
  margin: 0 auto;
  width: calc(100% - 94px);
  max-width: 310px;
  padding: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.theme-minimalista .trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  color: #4B5563;
}

.theme-minimalista .trust-divider {
  display: block;
  width: 100%;
  height: 1px;
  background: #E5E7EB;
  margin: 4px 0;
  border: none;
}

.theme-minimalista .trust-item-shipping {
  font-size: 10.5px;
  color: #6B7280;
}

.theme-minimalista .terms-note {
  font-size: 9.5px;
  color: #9CA3AF;
  margin-top: 2px;
}

.theme-minimalista .terms-note a {
  color: #4B5563;
  text-decoration: underline;
  font-weight: 500;
}
