/* ==========================================================
   QUICKDROP BUILDER™ - STYLESHEET (ESTILO ELEMENTOR)
   Constructor Visual de Tiendas de Dropshipping
   Paleta: Interfaz Oscura Pro + Temática Navideña de Alta Conversión
   ========================================================== */

:root {
  /* TEMA BUILDER (UI ELEMENTOR) */
  --builder-bg: #0f172a;
  --builder-sidebar-bg: #1e293b;
  --builder-border: #334155;
  --builder-accent: #38bdf8;
  --builder-text: #f8fafc;
  --builder-text-muted: #94a3b8;

  /* PALETA TIENDA NAVIDEÑA */
  --christmas-red: #c9182b;
  --christmas-red-hover: #a51221;
  --christmas-red-light: #fff1f2;
  --christmas-red-glow: rgba(201, 24, 43, 0.35);

  --christmas-green: #0d5f3a;
  --christmas-green-hover: #09472b;
  --christmas-green-light: #ecfdf5;

  --christmas-gold: #d97706;
  --christmas-gold-light: #fef3c7;
  --gold-gradient: linear-gradient(135deg, #fbbf24 0%, #d97706 60%, #b45309 100%);

  --bg-page: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-subtle: #e2e8f0;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.12);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--builder-bg);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* LIENZO DE NIEVE FLOTANTE */
.snow-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 998;
}

/* ==========================================================
   TOPBAR DEL CONSTRUCTOR VISUAL
   ========================================================== */
.builder-topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: #0b1120;
  border-bottom: 1px solid var(--builder-border);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.builder-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}

.logo-icon {
  font-size: 20px;
  background: var(--gold-gradient);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: #78350f;
}

.builder-logo strong {
  font-family: var(--font-heading);
  font-size: 14px;
  display: block;
  letter-spacing: -0.01em;
}

.builder-logo small {
  font-size: 10px;
  color: var(--builder-text-muted);
  display: block;
  margin-top: -3px;
}

.topbar-modes {
  display: flex;
  background: #1e293b;
  border-radius: var(--radius-pill);
  padding: 3px;
  border: 1px solid var(--builder-border);
}

.mode-btn {
  background: transparent;
  color: var(--builder-text-muted);
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-btn.active {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

.topbar-center {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-label {
  color: var(--builder-text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.view-btn {
  background: #1e293b;
  color: var(--builder-text);
  border: 1px solid var(--builder-border);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-btn.active {
  background: var(--christmas-red);
  border-color: #ef4444;
  color: #ffffff;
}

.topbar-select {
  background: #1e293b;
  color: #ffffff;
  border: 1px solid var(--builder-border);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-btn {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.action-btn.secondary {
  background: #1e293b;
  color: var(--builder-text);
  border: 1px solid var(--builder-border);
}

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

.action-btn.success {
  background: #16a34a;
  color: #ffffff;
}

.action-btn.success:hover {
  background: #15803d;
}

.action-btn.primary {
  background: var(--gold-gradient);
  color: #78350f;
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.4);
}

.action-btn.primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* ==========================================================
   ESPACIO DE TRABAJO (SIDEBAR + CANVAS)
   ========================================================== */
.builder-workspace {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 58px);
}

/* PANEL LATERAL DE BLOQUES (TIPO ELEMENTOR) */
.builder-sidebar {
  width: 310px;
  background: var(--builder-sidebar-bg);
  border-right: 1px solid var(--builder-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: calc(100vh - 58px);
  position: sticky;
  top: 58px;
  overflow-y: auto;
  transition: transform 0.3s ease;
  z-index: 100;
}

/* En vista de previsualización de cliente (tienda en vivo), se oculta la interfaz de administración */
body.preview-active .builder-sidebar,
body.preview-active .builder-topbar {
  display: none !important;
}

body.preview-active {
  background-color: #f1f5f9;
}

body.preview-active .app-viewport-wrapper {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: 0 4px 25px rgba(0,0,0,0.06) !important;
  max-width: 600px;
  margin: 0 auto;
}

.sidebar-header {
  padding: 16px 18px 12px 18px;
  border-bottom: 1px solid var(--builder-border);
}

.sidebar-header h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  color: #ffffff;
  font-weight: 800;
}

.sidebar-header p {
  font-size: 11px;
  color: var(--builder-text-muted);
}

.blocks-accordion {
  padding: 12px 14px;
  flex: 1;
  overflow-y: auto;
}

.block-category {
  margin-bottom: 16px;
}

.category-header {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #38bdf8;
  margin-bottom: 8px;
  padding: 0 4px;
}

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

/* TARJETA DE BLOQUE ARRASTRABLE */
.draggable-block {
  background: #0f172a;
  border: 1px solid var(--builder-border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: grab;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.draggable-block:hover {
  border-color: #38bdf8;
  background: #172554;
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.draggable-block:active {
  cursor: grabbing;
}

.block-icon {
  font-size: 20px;
  width: 32px;
  height: 32px;
  background: #1e293b;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.block-info {
  flex: 1;
}

.block-info strong {
  display: block;
  font-size: 12px;
  color: #f1f5f9;
}

.block-info small {
  font-size: 10px;
  color: var(--builder-text-muted);
  display: block;
}

.btn-add-quick {
  background: #1e293b;
  color: #38bdf8;
  border: 1px solid var(--builder-border);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-add-quick:hover {
  background: #38bdf8;
  color: #0f172a;
}

.sidebar-tip {
  padding: 12px 14px;
  background: rgba(56, 189, 248, 0.08);
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  color: #93c5fd;
  font-size: 11px;
}

/* ==========================================================
   CANVAS CENTRAL (LIENZO DE LA TIENDA)
   ========================================================== */
.builder-canvas-area {
  flex: 1;
  background: #0f172a;
  padding: 24px 16px 80px 16px;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.app-viewport-wrapper {
  width: 100%;
  background-color: var(--bg-page);
  min-height: 80vh;
  transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 50px rgba(0,0,0,0.6);
  position: relative;
  z-index: 10;
}

body.mobile-preview-mode .app-viewport-wrapper {
  max-width: 480px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  border: 6px solid #1e293b;
}

body.desktop-preview-mode .app-viewport-wrapper {
  max-width: 960px;
  margin: 0 auto;
  border-radius: 0;
  border: none;
}

/* BANNER DE DETECCIÓN DE PAÍS */
.country-detect-banner {
  background: #f0fdf4;
  border-bottom: 1px solid #bbf7d0;
  color: #166534;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.country-detect-flag {
  font-size: 14px;
}

/* ==========================================================
   CONTENEDOR DE SECCIONES EN EL CANVAS
   ========================================================== */
.canvas-sections-container {
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

/* CADA SECCIÓN TIENE SU WRAPPER CON BARRA DE HERRAMIENTAS ELEMENTOR */
.canvas-section-wrapper {
  position: relative;
  transition: outline 0.2s ease, opacity 0.2s ease;
}

/* Borde azul tipo Elementor al pasar el cursor en modo Builder */
body:not(.preview-active) .canvas-section-wrapper:hover {
  outline: 2px dashed #0284c7;
  outline-offset: -2px;
}

/* BARRA DE HERRAMIENTAS FLOTANTE DE SECCIÓN (TIPO ELEMENTOR) */
.section-toolbar {
  position: absolute;
  top: 6px;
  right: 12px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  display: none;
  align-items: center;
  gap: 4px;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

body:not(.preview-active) .canvas-section-wrapper:hover .section-toolbar {
  display: flex;
}

.sec-tool-btn {
  background: transparent;
  color: #f1f5f9;
  border: none;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 6px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  transition: all 0.2s ease;
}

.sec-tool-btn:hover {
  background: #1e293b;
  color: #38bdf8;
}

.sec-tool-btn.btn-drag-handle {
  cursor: grab;
  color: #fbbf24;
}

.sec-tool-btn.btn-delete {
  color: #f87171;
}

.sec-tool-btn.btn-delete:hover {
  background: #7f1d1d;
  color: #fff;
}

/* ÁREA DE SOLTADO FINAL */
.drop-target-placeholder {
  border: 2px dashed #94a3b8;
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 16px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
  background: #f8fafc;
}

body.preview-active .drop-target-placeholder {
  display: none;
}

.drop-target-placeholder.drag-over {
  border-color: #0284c7;
  background: #f0f9ff;
  color: #0284c7;
  transform: scale(1.01);
}

/* ==========================================================
   ESTILOS DE CADA BLOQUE / SECCIÓN DE TIENDA
   ========================================================== */

/* 1. BARRA DE ANUNCIOS */
.announcement-bar {
  background: linear-gradient(90deg, #991b1b 0%, #c9182b 50%, #991b1b 100%);
  color: #ffffff;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.announcement-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dot-sep { opacity: 0.5; }

/* 2. BARRA DE URGENCIA */
.urgency-bar {
  background: #7f1d1d;
  color: #fee2e2;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.urgency-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.countdown {
  display: inline-flex;
  gap: 2px;
  font-weight: 800;
}

.time-box {
  background: #450a0a;
  color: #fef08a;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

/* 3. GALERÍA DE FOTOS */
.block-gallery-wrap {
  padding: 16px 16px 8px 16px;
  background: #ffffff;
}

.main-image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f1f5f9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tag-floating {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--christmas-red);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.thumbnails-track {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.thumb-btn {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  background: #f8fafc;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
}

.thumb-btn.active {
  border-color: var(--christmas-red);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 4. PRECIO & STOCK */
.block-pricing-wrap {
  padding: 12px 16px;
  background: #ffffff;
}

.product-intro-meta {
  margin-bottom: 12px;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.product-subtitle {
  font-size: 13px;
  color: #475569;
  margin-top: 4px;
}

.price-card-box {
  background: #fef2f2;
  border: 1px dashed #fca5a5;
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.current-price {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
  color: var(--christmas-red);
}

.compare-price {
  font-size: 14px;
  color: #94a3b8;
  text-decoration: line-through;
}

.discount-pill {
  background: var(--christmas-red);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-left: auto;
}

.stock-status {
  font-size: 12px;
  color: #991b1b;
  margin-top: 6px;
  font-weight: 600;
}

/* 5. SELECTOR DE BUNDLES */
.block-bundles-wrap {
  padding: 16px;
  background: #ffffff;
}

.bundles-label {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
  display: block;
}

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

.bundle-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  background: #ffffff;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.bundle-option.selected {
  border-color: var(--christmas-red);
  background: #fffafa;
}

.popular-ribbon {
  position: absolute;
  top: -10px;
  right: 14px;
  background: var(--gold-gradient);
  color: #78350f;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

.bundle-cost {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 900;
  color: var(--christmas-red);
}

/* BOTONES CTA */
.dual-cta-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.btn-primary-cta {
  background: linear-gradient(135deg, #dc2626 0%, #c9182b 60%, #991b1b 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px var(--christmas-red-glow);
  font-weight: 900;
  font-size: 15px;
}

/* 6. FORMULARIO CHECKOUT COD */
.block-checkout-wrap {
  padding: 20px 16px;
  background: #f1f5f9;
}

.form-container {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow-card);
}

.input-group {
  margin-bottom: 12px;
}

.input-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 4px;
}

.input-group input, .input-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.phone-input-wrap {
  display: flex;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.country-prefix {
  padding: 10px 10px;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
  border-right: 1px solid var(--border-subtle);
}

.phone-input-wrap input {
  border: none !important;
}

.btn-submit-order {
  width: 100%;
  background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 15px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(22, 163, 74, 0.35);
}

/* 7. SELLOS DE CONFIANZA */
.block-trust-wrap {
  padding: 16px;
  background: #ffffff;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px;
  background: var(--surface-alt);
  border-radius: var(--radius-md);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
}

.courier-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.courier-badge {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

/* 8. BENEFICIOS CON EMOJIS */
.block-benefits-wrap {
  padding: 24px 16px;
  background: #ffffff;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
}

.benefits-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.benefit-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.benefit-emoji {
  font-size: 24px;
}

/* 9. ANTES VS DESPUÉS */
.block-transformation-wrap {
  padding: 24px 16px;
  background: #f8fafc;
}

.transformation-banner {
  background: #0f172a;
  color: #ffffff;
  padding: 18px 16px;
  border-radius: var(--radius-lg);
}

.before-after-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.ba-col {
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
}

.ba-col.before {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.ba-col.after {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

/* 10. TABLA COMPARATIVA */
.block-comparison-wrap {
  padding: 24px 16px;
  background: #ffffff;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.comparison-table th, .comparison-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th.highlight, .comparison-table td.highlight {
  background: #fff1f2;
  color: #991b1b;
  font-weight: 700;
}

/* 11. FAQS */
.block-faqs-wrap {
  padding: 24px 16px;
  background: #ffffff;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}

.faq-header {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.faq-body {
  padding: 0 14px 12px 14px;
  font-size: 12px;
  color: #475569;
  display: none;
}

.faq-item.open .faq-body {
  display: block;
}

/* 12. RESEÑAS */
.block-reviews-wrap {
  padding: 24px 16px;
  background: #f8fafc;
}

.review-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
}

.rev-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

/* 13. FOOTER */
.block-footer-wrap {
  background: #0f172a;
  color: #94a3b8;
  padding: 24px 16px 80px 16px;
  text-align: center;
  font-size: 11px;
}

/* ==========================================================
   STICKY BOTTOM BAR (MOBILE)
   ========================================================== */
.sticky-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding: 10px 16px;
  z-index: 990;
}

body.mobile-preview-mode .sticky-bottom-bar {
  max-width: 480px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 16px 16px 0 0;
}

body.desktop-preview-mode .sticky-bottom-bar {
  display: none;
}

.sticky-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sticky-buy-btn {
  background: var(--christmas-red);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  cursor: pointer;
}

/* ==========================================================
   MODAL DE EDICIÓN Y COMPRA
   ========================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 460px;
  width: 100%;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-card.modal-wide {
  max-width: 580px;
}

.modal-header-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.btn-close-modal-icon {
  background: #f1f5f9;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
}

.modal-footer-between {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.btn-modal {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
}

.btn-modal.primary {
  background: var(--christmas-red);
  color: #ffffff;
}

.btn-modal.secondary {
  background: #f1f5f9;
  color: #334155;
}

.whatsapp-prompt-box {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 12px;
  border-radius: var(--radius-md);
  margin: 14px 0;
}

.btn-whatsapp-confirm {
  display: block;
  background: #16a34a;
  color: #ffffff;
  padding: 10px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
