/**
 * Diseñador de Pulseras - Estilos Principales y Responsive
 * Optimizado para Desktop e Hi-DPI y Experiencia Nativa Fluida en Smartphone
 */

:root {
  --bg-main: #0B0D14;
  --bg-card: rgba(18, 22, 34, 0.92);
  --bg-card-hover: rgba(28, 34, 52, 0.96);
  --bg-header: rgba(13, 16, 26, 0.96);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(132, 71, 215, 0.45);
  
  --primary: #8447D7;
  --primary-light: #A875F0;
  --primary-glow: rgba(132, 71, 215, 0.35);
  
  --accent-gold: #E5A93C;
  --accent-gold-light: #F3BA42;
  --accent-cyan: #2BC4BA;
  --accent-green: #22C55E;
  --accent-red: #EF4444;
  
  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 16px var(--primary-glow);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(132, 71, 215, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(229, 169, 60, 0.06) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ==========================================
   HEADER
   ========================================== */
.app-header {
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  flex-shrink: 0;
  gap: 12px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo-text-wrap {
  min-width: 0;
}

.app-icon-badge {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-gold) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px var(--primary-glow);
  font-size: 19px;
  flex-shrink: 0;
}

.app-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #FFFFFF, #E2E8F0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ==========================================
   BARRA SUPERIOR DE MÉTRICAS COMPACTA
   ========================================== */
.metrics-strip {
  background: rgba(18, 22, 34, 0.95);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
}

.metrics-strip::-webkit-scrollbar {
  height: 3px;
}

.metrics-strip::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.metric-chip strong {
  color: #FFFFFF;
  font-weight: 700;
}

.metric-chip.highlight {
  border-color: var(--primary-light);
  background: rgba(132, 71, 215, 0.15);
}

.metric-chip.gold {
  border-color: rgba(229, 169, 60, 0.4);
  color: var(--accent-gold);
}

.fit-pill {
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  flex-shrink: 0;
}

.fit-pill.success {
  background: rgba(34, 197, 94, 0.2);
  color: #4ADE80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.fit-pill.warning {
  background: rgba(239, 68, 68, 0.2);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.fit-pill.info {
  background: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* ==========================================
   LAYOUT PRINCIPAL
   ========================================== */
.app-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 16px;
  padding: 14px 18px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

/* Columna Izquierda: Simulación */
.studio-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.canvas-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.canvas-card-topbar {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  position: relative;
  z-index: 20;
}

.bead-prompt-help {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.canvas-circle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

#canvasCircle {
  display: block;
  touch-action: none;
  max-width: 100%;
  height: auto;
}

/* Toolbar de Perla Seleccionada */
.bead-context-toolbar {
  background: rgba(18, 22, 34, 0.98);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  display: none;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 16px var(--primary-glow);
  backdrop-filter: blur(10px);
}

.bead-context-toolbar.visible {
  display: flex;
}

.selected-bead-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #FFFFFF;
}

.bead-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.tb-btn-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Botones Rápidos de Herramientas */
.quick-tools-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-top: 10px;
}

.quick-tools-bar .btn {
  padding: 6px 10px;
  font-size: 0.76rem;
  white-space: nowrap;
}

.quick-tools-bar .btn.active {
  background: var(--primary);
  border-color: var(--primary-light);
  color: #FFFFFF;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Mesa de Trabajo Lineal */
.linear-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.linear-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.linear-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.canvas-linear-wrap {
  width: 100%;
  overflow-x: auto;
  display: flex;
  justify-content: center;
}

#canvasLinear {
  display: block;
}

/* ==========================================
   COLUMNA DERECHA / PANEL LATERAL
   ========================================== */
.sidebar-column {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  gap: 12px;
  min-width: 0;
}

.sidebar-nav-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px;
  border-radius: var(--radius-sm);
  gap: 4px;
  flex-shrink: 0;
}

.sidebar-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 7px 6px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.sidebar-tab-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.tab-pane {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.tab-pane.active {
  display: flex;
}

/* Selector de Diámetro */
.catalog-diameter-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.diameter-pills {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

.diameter-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 6px 2px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.diameter-pill.active {
  background: linear-gradient(135deg, var(--primary) 0%, #6830B5 100%);
  border-color: var(--primary-light);
  color: #FFFFFF;
  box-shadow: 0 0 8px var(--primary-glow);
}

.category-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.cat-tab-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  padding: 4px 9px;
  font-size: 0.72rem;
  cursor: pointer;
  white-space: nowrap;
}

.cat-tab-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
}

.search-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: #FFFFFF;
  font-size: 0.84rem;
  outline: none;
  box-sizing: border-box;
}

.search-input:focus {
  border-color: var(--primary-light);
}

/* Grid del Catálogo */
.stone-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.stone-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.stone-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.stone-preview-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
}

.stone-ball-preview {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 
    inset -3px -3px 6px rgba(0, 0, 0, 0.6),
    inset 3px 3px 6px rgba(255, 255, 255, 0.4),
    0 3px 8px rgba(0, 0, 0, 0.4);
}

.stone-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.2;
}

.stone-category {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.btn-add-stone {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 5px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

.stone-card:hover .btn-add-stone {
  background: var(--primary);
  color: #FFFFFF;
}

/* ==========================================
   PESTAÑA: CALCULADOR INTELIGENTE
   ========================================== */
.wrist-calc-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.calc-res-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 9px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.calc-res-card:hover, .calc-res-card.active {
  border-color: var(--primary-light);
  background: rgba(132, 71, 215, 0.15);
}

.calc-res-card .res-diam {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.calc-res-card .res-count {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 2px 0;
}

.calc-res-card .res-desc {
  font-size: 0.68rem;
  color: var(--accent-gold);
  line-height: 1.2;
}

/* ==========================================
   BOTONES Y CONTROLES DE STEPPER
   ========================================== */
.btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  user-select: none;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #6830B5 100%);
  border-color: var(--primary-light);
  color: #FFFFFF;
}

.btn-magic {
  background: linear-gradient(135deg, #8447D7 0%, #D98C2B 100%);
  border: 1px solid #E5A93C;
  color: #FFFFFF;
  box-shadow: 0 0 10px rgba(229, 169, 60, 0.3);
}

.btn-gold {
  background: linear-gradient(135deg, #D98C2B 0%, #9E5B08 100%);
  border-color: #F3BA42;
  color: #FFFFFF;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #F87171;
}

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
}

/* STEPPER CONTROLS (Sin superposición jamás) */
.stepper-control {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.stepper-btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.stepper-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--primary-light);
}

.stepper-btn:active {
  transform: scale(0.92);
}

.stepper-btn-group {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

/* RANGE SLIDER CLEAN */
.range-slider-clean {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  padding: 0 !important;
  margin: 0;
  cursor: pointer;
}

.range-slider-clean::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--primary-light);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.range-slider-clean::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.range-slider-clean::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--primary-light);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

/* ==========================================
   MATERIALES Y RESUMEN
   ========================================== */
.materials-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
}

.material-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.stone-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

/* ==========================================
   MODALES
   ========================================== */
.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-container.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  background: #151926;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  max-width: 480px;
  width: 92%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10;
}

.wizard-modal-content {
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
}

.wiz-total-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wiz-total-pill:hover {
  color: #FFFFFF;
  border-color: var(--primary-light);
}

.wiz-total-pill.active {
  background: var(--primary);
  border-color: var(--primary-light);
  color: #FFFFFF;
  box-shadow: 0 0 10px var(--primary-glow);
}

.wizard-inputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
}

.wiz-full-row {
  grid-column: 1 / -1;
}

.wiz-stone-box {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wiz-accent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: center;
}

.wiz-patterns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.wizard-pat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wizard-pat-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.wizard-pat-card.active {
  border-color: var(--primary-light);
  background: rgba(132, 71, 215, 0.15);
  box-shadow: 0 0 16px var(--primary-glow);
}

.wiz-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.wiz-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF;
}

.wiz-card-badge {
  font-size: 0.7rem;
  color: var(--accent-gold);
  font-weight: 600;
}

.wiz-canvas-preview-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 0;
}

.wiz-mini-canvas {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
}

.wiz-card-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.wiz-counts-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.cnt-badge {
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  color: var(--text-main);
}

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

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 4px;
}

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

.form-control {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  color: #FFFFFF;
  font-size: 0.82rem;
  outline: none;
  box-sizing: border-box;
}

.form-control:focus {
  border-color: var(--primary-light);
}

/* ==========================================
   BARRA DE NAVEGACIÓN INFERIOR (SOLO MÓVIL)
   ========================================== */
.mobile-bottom-nav {
  display: none !important; /* Oculta en Desktop */
}

/* ==========================================
   RESPONSIVE (SMARTPHONE - EXPERIENCIA FLUIDA)
   ========================================== */
@media (max-width: 860px) {
  .app-container {
    grid-template-columns: 1fr;
    padding: 8px 10px;
    gap: 12px;
    margin-bottom: 68px; /* Espacio para barra inferior */
  }

  .app-header {
    padding: 8px 12px;
  }

  .header-actions .btn-text {
    display: none; /* En móvil muestra solo iconos táctiles limpios */
  }

  .header-actions .btn {
    width: 36px;
    height: 36px;
    padding: 0;
  }

  .quick-tools-bar .tool-label {
    display: none;
  }

  .quick-tools-bar .btn {
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 0.95rem;
  }

  /* En móvil, la columna de catálogo fluye naturalmente abajo de la pulsera */
  .studio-column {
    display: flex;
  }

  .sidebar-column {
    display: flex;
    width: 100%;
  }

  .stone-catalog-grid {
    max-height: 340px;
    grid-template-columns: repeat(2, 1fr);
  }

  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 16, 26, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-color);
    padding: 6px 8px env(safe-area-inset-bottom, 6px);
    justify-content: space-around;
    z-index: 100;
  }

  .mob-nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 0.68rem;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    min-width: 60px;
  }

  .mob-nav-btn.active {
    color: var(--primary-light);
    background: rgba(132, 71, 215, 0.15);
  }

  .mob-nav-icon {
    font-size: 1.15rem;
  }

  .wiz-accent-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
