/* PrintFactory Configurador — Estilos */
#pf-configurador {
  font-family: 'Segoe UI', system-ui, sans-serif;
  margin: 20px 0;
}

.pfc-wrap {
  background: #0f0f0f;
  border-radius: 14px;
  overflow: hidden;
  color: #f0f0f0;
  border: 1px solid #222;
}

/* STEPS */
.pfc-steps {
  display: flex;
  background: #141414;
  border-bottom: 1px solid #222;
  overflow-x: auto;
  scrollbar-width: none;
}
.pfc-steps::-webkit-scrollbar { display: none; }

.pfc-step {
  flex: 1;
  min-width: 80px;
  padding: 14px 8px;
  text-align: center;
  font-size: 11px;
  color: #555;
  border-bottom: 3px solid transparent;
  transition: all .2s;
  white-space: nowrap;
}
.pfc-step.active { color: #e8ff00; border-bottom-color: #e8ff00; }
.pfc-step.done { color: #00cc66; border-bottom-color: #00cc66; }
.pfc-step .step-num {
  display: block;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #222;
  margin: 0 auto 4px;
  line-height: 24px;
  font-size: 12px;
  font-weight: 700;
}
.pfc-step.active .step-num { background: #e8ff00; color: #000; }
.pfc-step.done .step-num { background: #00cc66; color: #000; }

/* CONTENT */
.pfc-content { padding: 24px; }
.pfc-panel { display: none; }
.pfc-panel.active { display: block; }

.pfc-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.pfc-subtitle {
  font-size: .85rem;
  color: #888;
  margin-bottom: 20px;
}

/* TÉCNICAS */
.pfc-tecnicas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.pfc-tec-card {
  background: #1a1a1a;
  border: 2px solid #2a2a2a;
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
}
.pfc-tec-card:hover { border-color: #e8ff00; }
.pfc-tec-card.selected { border-color: #e8ff00; background: rgba(232,255,0,.07); }
.pfc-tec-card .tec-icon { font-size: 1.8rem; margin-bottom: 6px; }
.pfc-tec-card .tec-name { font-size: .8rem; font-weight: 600; }
.pfc-tec-card .tec-desc { font-size: .72rem; color: #666; margin-top: 2px; }

/* UPLOAD */
.pfc-upload-zone {
  border: 2px dashed #333;
  border-radius: 10px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  margin-bottom: 16px;
}
.pfc-upload-zone:hover, .pfc-upload-zone.dragover { border-color: #e8ff00; background: rgba(232,255,0,.04); }
.pfc-upload-icon { font-size: 2.5rem; margin-bottom: 10px; }
.pfc-upload-txt { color: #888; font-size: .875rem; }
.pfc-upload-txt strong { color: #e8ff00; }

.pfc-val-result {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: .85rem;
  margin-bottom: 12px;
}
.pfc-val-ok { background: rgba(0,204,102,.1); border: 1px solid rgba(0,204,102,.3); color: #00cc66; }
.pfc-val-err { background: rgba(255,68,68,.1); border: 1px solid rgba(255,68,68,.3); color: #ff6666; }
.pfc-val-warn { background: rgba(255,170,0,.1); border: 1px solid rgba(255,170,0,.3); color: #ffaa00; }

/* CAMPOS */
.pfc-field { margin-bottom: 14px; }
.pfc-field label {
  display: block;
  font-size: .78rem;
  color: #888;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.pfc-field input, .pfc-field select, .pfc-field textarea {
  width: 100%;
  padding: 10px 12px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 7px;
  color: #f0f0f0;
  font-size: .9rem;
  font-family: inherit;
}
.pfc-field input:focus, .pfc-field select:focus { outline: none; border-color: #e8ff00; }
.pfc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pfc-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* MOCKUP PREVIEW */
.pfc-mockup-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 20px;
  display: block;
}
.pfc-mockup-canvas {
  width: 100%;
  border-radius: 10px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
}
.pfc-mockup-placeholder {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, #1a1a1a, #222);
  border-radius: 10px;
  border: 2px dashed #333;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: #555;
  font-size: .85rem;
}

/* PRECIO */
.pfc-precio-box {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 16px;
}
.pfc-precio-row {
  display: flex;
  justify-content: space-between;
  font-size: .875rem;
  padding: 6px 0;
  border-bottom: 1px solid #1e1e1e;
}
.pfc-precio-row:last-child { border-bottom: none; }
.pfc-precio-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.3rem;
  font-weight: 800;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 2px solid #2a2a2a;
}
.pfc-precio-total .monto { color: #e8ff00; }

/* PUNTADAS */
.pfc-complejidad-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.pfc-comp-card {
  background: #1a1a1a;
  border: 2px solid #2a2a2a;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  text-align: center;
  font-size: .82rem;
  transition: all .15s;
}
.pfc-comp-card:hover { border-color: #e8ff00; }
.pfc-comp-card.selected { border-color: #e8ff00; background: rgba(232,255,0,.06); }
.pfc-comp-card .comp-icon { font-size: 1.4rem; display: block; margin-bottom: 4px; }

/* BOTONES */
.pfc-btns { display: flex; gap: 10px; margin-top: 20px; }
.pfc-btn {
  padding: 13px 24px;
  border-radius: 8px;
  border: none;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
}
.pfc-btn:hover { opacity: .85; }
.pfc-btn-primary { background: #e8ff00; color: #000; flex: 1; }
.pfc-btn-secondary { background: #1e1e1e; color: #888; border: 1px solid #2a2a2a; }
.pfc-btn:disabled { opacity: .4; cursor: not-allowed; }

/* BORDADO ESTIMACIÓN */
.pfc-puntadas-est {
  background: rgba(170,102,255,.1);
  border: 1px solid rgba(170,102,255,.3);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
  font-size: .85rem;
}
.pfc-puntadas-est .est-num { font-size: 1.5rem; font-weight: 800; color: #aa66ff; }

/* MATERIALES UV */
.pfc-material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.pfc-mat-card {
  background: #1a1a1a;
  border: 2px solid #2a2a2a;
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  font-size: .78rem;
  transition: all .15s;
}
.pfc-mat-card:hover { border-color: #00d4ff; }
.pfc-mat-card.selected { border-color: #00d4ff; background: rgba(0,212,255,.07); color: #00d4ff; }
.pfc-mat-card .mat-icon { font-size: 1.4rem; display: block; margin-bottom: 4px; }

/* PRESUPUESTO */
.pfc-presupuesto-box {
  background: rgba(255,170,0,.08);
  border: 1px solid rgba(255,170,0,.3);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  font-size: .85rem;
  color: #ffaa00;
}

/* RESPONSIVE */
@media (max-width: 480px) {
  .pfc-content { padding: 16px; }
  .pfc-tecnicas-grid { grid-template-columns: 1fr 1fr; }
  .pfc-grid-2, .pfc-grid-3 { grid-template-columns: 1fr; }
  .pfc-complejidad-grid { grid-template-columns: 1fr 1fr; }
  .pfc-material-grid { grid-template-columns: repeat(3, 1fr); }
}
