/**
 * configurator.css — Estilos del configurador en ficha de producto v3.0.0
 * Compatible con Warehouse 4.7.2
 */

/* ============================================================
   CONTENEDOR PRINCIPAL
   ============================================================ */
.dtfcalc-configurator {
  margin-top: 24px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  font-size: 14px;
  background: #fff;
}

.dtfcalc-configurator-header {
  background: linear-gradient(135deg, #e63312 0%, #c42a0e 100%);
  padding: 16px 24px;
}

.dtfcalc-configurator-title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dtfcalc-icon {
  font-size: 22px;
}

.dtfcalc-configurator-body {
  padding: 24px;
}

/* ============================================================
   CAMPOS DEL CONFIGURADOR
   ============================================================ */
.dtfcalc-conf-field {
  margin-bottom: 20px;
}

.dtfcalc-conf-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  font-size: 14px;
}

.dtfcalc-required {
  color: #e63312;
  margin-left: 2px;
}

/* ============================================================
   SELECTOR DE CANTIDAD
   ============================================================ */
.dtfcalc-cantidad-wrapper {
  display: flex;
  align-items: center;
  gap: 0;
  width: fit-content;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  overflow: hidden;
}

.dtfcalc-qty-btn {
  background: #f8f9fa;
  border: none;
  padding: 8px 14px;
  font-size: 18px;
  cursor: pointer;
  color: #333;
  transition: background 0.15s;
  line-height: 1;
}

.dtfcalc-qty-btn:hover {
  background: #e0e0e0;
}

.dtfcalc-conf-cantidad {
  width: 70px;
  text-align: center;
  border: none;
  border-left: 1px solid #dee2e6;
  border-right: 1px solid #dee2e6;
  padding: 8px;
  font-size: 16px;
  font-weight: 600;
  -moz-appearance: textfield;
}

.dtfcalc-conf-cantidad::-webkit-outer-spin-button,
.dtfcalc-conf-cantidad::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

/* ============================================================
   TABLA DE PRECIOS POR TRAMO
   ============================================================ */
.dtfcalc-tarifas-tabla {
  margin-top: 12px;
}

.dtfcalc-tabla-precios {
  width: auto;
  min-width: 200px;
  font-size: 13px;
  border-collapse: collapse;
}

.dtfcalc-tabla-precios th {
  background: #f8f9fa;
  padding: 5px 12px;
  text-align: center;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  color: #6c757d;
  border-bottom: 2px solid #dee2e6;
}

.dtfcalc-tabla-precios td {
  padding: 5px 12px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.dtfcalc-tabla-precios .dtfcalc-tarifa-precio {
  font-weight: 600;
}

.dtfcalc-tarifa-row.dtfcalc-tarifa-activa {
  background: rgba(230, 51, 18, 0.08);
}

.dtfcalc-tarifa-row.dtfcalc-tarifa-activa td {
  color: #e63312;
  font-weight: 700;
}

/* ============================================================
   GRID DE UBICACIONES
   ============================================================ */
.dtfcalc-ubicaciones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.dtfcalc-ubicacion-card {
  cursor: pointer;
}

.dtfcalc-ubicacion-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dtfcalc-ubicacion-hint {
  font-size: 12px;
  color: #6c757d;
  margin: 0 0 8px;
  font-style: italic;
}

.dtfcalc-ubicacion-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
  min-height: 90px;
  justify-content: center;
  gap: 4px;
}

.dtfcalc-ubicacion-card:has(input:checked) .dtfcalc-ubicacion-card-inner {
  border-color: #e63312;
  background: rgba(230, 51, 18, 0.05);
}

.dtfcalc-ubicacion-card-inner:hover {
  border-color: #e63312;
}

.dtfcalc-ubicacion-img {
  max-width: 60px;
  max-height: 50px;
  object-fit: contain;
  margin-bottom: 4px;
}

.dtfcalc-ubicacion-nombre {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: #333;
}

.dtfcalc-ubicacion-tamano {
  font-size: 10px;
  color: #6c757d;
}

.dtfcalc-ubicacion-extra {
  font-size: 11px;
  color: #e63312;
  font-weight: 600;
}

/* ============================================================
   SELECTOR DE DISEÑO
   ============================================================ */
.dtfcalc-diseno-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.dtfcalc-diseno-opcion {
  cursor: pointer;
}

.dtfcalc-diseno-opcion input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dtfcalc-diseno-opcion-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  border: 2px solid #dee2e6;
  border-radius: 10px;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
}

.dtfcalc-diseno-opcion:has(input:checked) .dtfcalc-diseno-opcion-inner {
  border-color: #e63312;
  background: rgba(230, 51, 18, 0.05);
}

.dtfcalc-diseno-opcion-inner:hover {
  border-color: #e63312;
}

.dtfcalc-diseno-icon {
  font-size: 28px;
}

.dtfcalc-diseno-opcion-inner strong {
  font-size: 13px;
  color: #333;
}

.dtfcalc-diseno-opcion-inner small {
  font-size: 11px;
  color: #6c757d;
}

/* ============================================================
   ÁREA DE UPLOAD (en ficha de producto)
   ============================================================ */
.dtfcalc-upload-area,
.dtfcalc-servicios-area {
  margin-top: 8px;
}

.dtfcalc-drop-zone {
  border: 2px dashed #dee2e6;
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: #f8f9fa;
  position: relative;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dtfcalc-drop-zone:hover,
.dtfcalc-drop-zone.dtfcalc-dragover {
  border-color: #e63312;
  background: rgba(230, 51, 18, 0.03);
}

.dtfcalc-drop-placeholder {
  pointer-events: none;
}

.dtfcalc-drop-placeholder p {
  margin: 8px 0 4px;
  font-size: 14px;
  color: #555;
}

.dtfcalc-browse-link {
  color: #e63312;
  text-decoration: underline;
  font-weight: 600;
}

.dtfcalc-drop-placeholder small {
  font-size: 11px;
  color: #6c757d;
}

/* Barra de progreso */
.dtfcalc-upload-progress {
  width: 100%;
}

.dtfcalc-progress-bar {
  width: 100%;
  height: 6px;
  background: #dee2e6;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.dtfcalc-progress-fill {
  height: 100%;
  background: #e63312;
  transition: width 0.2s;
  width: 0%;
}

.dtfcalc-progress-text {
  font-size: 12px;
  color: #6c757d;
}

/* Estado completado */
.dtfcalc-upload-done {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  color: #155724;
  font-size: 13px;
}

.dtfcalc-check {
  font-size: 18px;
  color: #28a745;
}

.dtfcalc-remove-file {
  margin-left: auto;
  background: none;
  border: none;
  color: #721c24;
  cursor: pointer;
  font-size: 16px;
  padding: 2px 6px;
  border-radius: 4px;
}

.dtfcalc-remove-file:hover {
  background: rgba(0,0,0,0.05);
}

/* ============================================================
   GRID DE SERVICIOS DE DISEÑO
   ============================================================ */
.dtfcalc-servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.dtfcalc-servicio-card {
  cursor: pointer;
}

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

.dtfcalc-servicio-card-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
  position: relative;
}

.dtfcalc-servicio-card:has(input:checked) .dtfcalc-servicio-card-inner {
  border-color: #e63312;
  background: rgba(230, 51, 18, 0.05);
}

.dtfcalc-servicio-card-inner:hover {
  border-color: #e63312;
}

.dtfcalc-servicio-nombre {
  font-size: 13px;
  font-weight: 700;
  color: #333;
}

.dtfcalc-servicio-desc {
  font-size: 11px;
  color: #6c757d;
  line-height: 1.3;
}

.dtfcalc-servicio-precio {
  font-size: 14px;
  font-weight: 700;
  color: #e63312;
  margin-top: 4px;
}

.dtfcalc-verificacion-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-top: 4px;
}

.dtfcalc-verificacion-badge.dtfcalc-hidden {
  display: none;
}

.dtfcalc-verificado-pagado {
  background: #d4edda;
  color: #155724;
}

.dtfcalc-verificado-no-pagado {
  background: #f8f9fa;
  color: #6c757d;
}

/* ============================================================
   RESUMEN DE PRECIO (en ficha de producto)
   ============================================================ */
.dtfcalc-conf-precio-resumen {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 16px;
  margin: 20px 0;
}

.dtfcalc-conf-precio-linea {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 3px 0;
  color: #555;
}

.dtfcalc-conf-total-linea {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  margin-top: 8px;
  border-top: 2px solid #dee2e6;
  font-size: 16px;
}

.dtfcalc-total-valor {
  color: #e63312;
  font-size: 20px;
}

.dtfcalc-iva-nota {
  font-size: 11px;
  color: #6c757d;
  display: block;
  margin-top: 4px;
}

.dtfcalc-conf-total-sub {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  font-size: 12px;
  color: #6c757d;
}

/* ============================================================
   TEXTAREA
   ============================================================ */
.dtfcalc-conf-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.dtfcalc-conf-textarea:focus {
  outline: none;
  border-color: #e63312;
  box-shadow: 0 0 0 3px rgba(230, 51, 18, 0.1);
}

.dtfcalc-field-help {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #6c757d;
}

/* ============================================================
   BOTÓN AÑADIR AL CARRITO (configurador)
   ============================================================ */
.dtfcalc-conf-actions {
  margin-top: 20px;
}

.dtfcalc-btn-carrito {
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  transition: background 0.15s, transform 0.1s;
}

.dtfcalc-btn-carrito:not(:disabled):hover {
  transform: translateY(-1px);
}

.dtfcalc-btn-carrito:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Spinner */
.dtfcalc-btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: dtfcalc-spin 0.7s linear infinite;
}

@keyframes dtfcalc-spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   UTILIDADES
   ============================================================ */
.dtfcalc-hidden {
  display: none !important;
}

.dtfcalc-no-ubicaciones,
.dtfcalc-no-servicios {
  color: #6c757d;
  font-size: 13px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 576px) {
  .dtfcalc-ubicaciones-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dtfcalc-diseno-selector {
    grid-template-columns: 1fr;
  }

  .dtfcalc-servicios-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dtfcalc-configurator-body {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dtfcalc-btn-spinner {
    animation: none;
  }
}

/* ============================================================
   MULTI-UPLOAD POR UBICACIÓN
   ============================================================ */
.dtfcalc-multi-upload-hint {
  color: #6c757d;
  font-size: 13px;
  font-style: italic;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 6px;
  margin: 0;
}

.dtfcalc-upload-ub-item {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background: #fafafa;
}

.dtfcalc-upload-ub-label {
  margin: 0 0 8px;
  font-size: 13px;
  color: #444;
}

.dtfcalc-drop-zone-ub {
  min-height: 90px;
  padding: 16px;
}

/* ============================================================
   ADMIN — Orden tab
   ============================================================ */
.dtfcalc-order-card {
  margin-bottom: 20px;
}

.dtfcalc-order-item + .dtfcalc-order-item {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #dee2e6;
}

/* Drag & drop admin */
.dtfcalc-dragging {
  opacity: 0.5;
}

.dtfcalc-drag-over {
  background: rgba(230, 51, 18, 0.05);
  border: 1px dashed #e63312 !important;
}

/* ============================================================
   EXTRAS (recargos opcionales) — v3.5.0
   ============================================================ */
.dtfcalc-extras-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.dtfcalc-extra-card {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
  margin: 0;
}
.dtfcalc-extra-card:hover {
  border-color: #c0c0c0;
}
.dtfcalc-extra-card:has(input:checked) {
  border-color: #e25c3a;
  background-color: #fdf3f0;
}
.dtfcalc-extra-checkbox {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
}
.dtfcalc-extra-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.dtfcalc-extra-nombre {
  font-weight: 600;
  color: #333;
}
.dtfcalc-extra-desc {
  font-size: .85em;
  color: #888;
}
.dtfcalc-extra-precio {
  flex: 0 0 auto;
  font-weight: 700;
  color: #e25c3a;
  white-space: nowrap;
}
.dtfcalc-extra-ubicacion {
  flex: 1 1 100%;
  margin-top: 8px;
}
.dtfcalc-extra-ubic-select {
  width: 100%;
  max-width: 320px;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* Refuerzo v3.5.0: asegurar apilado de nombre/descripción del extra */
.dtfcalc-extra-card .dtfcalc-extra-info {
  display: flex !important;
  flex-direction: column !important;
}
.dtfcalc-extra-card .dtfcalc-extra-nombre,
.dtfcalc-extra-card .dtfcalc-extra-desc {
  display: block !important;
  line-height: 1.3;
}
.dtfcalc-extra-card .dtfcalc-extra-desc {
  margin-top: 2px;
}

/* ============================================================
   AVISO DE CONSULTA EN "DISEÑO POR KAMISETAK" — v3.6.0
   ============================================================ */
.dtfcalc-diseno-aviso {
  background: #fff8e6;
  border: 1px solid #e8c45a;
  border-left: 4px solid #e0a030;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.dtfcalc-diseno-aviso p {
  margin: 0 0 12px;
  font-size: .92em;
  color: #6a5212;
  line-height: 1.4;
}
.dtfcalc-diseno-aviso-botones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.dtfcalc-aviso-btn {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: .9em;
  text-decoration: none;
  transition: opacity .15s;
}
.dtfcalc-aviso-btn:hover { opacity: .85; text-decoration: none; }
.dtfcalc-aviso-wa { background: #25d366; }
.dtfcalc-aviso-mail { background: #3f7e90; }
.dtfcalc-aviso-wa,
.dtfcalc-aviso-wa:hover,
.dtfcalc-aviso-wa:focus,
.dtfcalc-aviso-mail,
.dtfcalc-aviso-mail:hover,
.dtfcalc-aviso-mail:focus { color: #fff !important; }

/* Imagen de servicio de diseño (front) — v3.6.1 */
.dtfcalc-servicio-img {
  display: block;
  width: 100%;
  max-width: 140px;
  height: auto;
  margin: 0 auto 6px;
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
}

/* ============================================================
   EMPAQUETADO (¿Te lo empaquetamos?) — v3.7.0
   ============================================================ */
.dtfcalc-empaquetado-ayuda {
  font-size: .88em;
  color: #888;
  margin: 4px 0 10px;
}
.dtfcalc-empaquetado-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dtfcalc-empaquetado-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
  margin: 0;
}
.dtfcalc-empaquetado-card:hover { border-color: #c0c0c0; }
.dtfcalc-empaquetado-card:has(input:checked) {
  border-color: #e25c3a;
  background-color: #fdf3f0;
}
.dtfcalc-empaquetado-radio { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; }
.dtfcalc-empaquetado-info { flex: 1 1 auto; display: flex; flex-direction: column; }
.dtfcalc-empaquetado-nombre { font-weight: 600; color: #333; }
.dtfcalc-empaquetado-desc { font-size: .85em; color: #888; }
.dtfcalc-empaquetado-precio { flex: 0 0 auto; font-weight: 700; color: #e25c3a; white-space: nowrap; }

/* Caja informativa de producto de empaquetado (no vendible suelto) — v3.7.0 */
.dtfcalc-empaquetado-info-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #eaf4f8;
  border: 1px solid #9fcfe0;
  border-left: 4px solid #4aa3c0;
  border-radius: 10px;
  padding: 18px 20px;
  margin: 16px 0;
}
.dtfcalc-empaquetado-info-icon { font-size: 2em; line-height: 1; }
.dtfcalc-empaquetado-info-texto strong { display: block; color: #1f5a6e; margin-bottom: 4px; font-size: 1.05em; }
.dtfcalc-empaquetado-info-texto p { margin: 0; color: #2a6076; font-size: .92em; line-height: 1.45; }

/* ============================================================
   OPCIÓN B — Diseño por ubicación (v4.0.18)
   ============================================================ */

/* Casilla "mismo diseño para todas las ubicaciones" — destacada (es decisión clave) */
.dtfcalc-mismo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  padding: 14px 16px;
  background: #fff4ef;
  border: 2px solid #e63312;
  border-radius: 10px;
  font-size: 1.02em;
  font-weight: 600;
  color: #2b2b2b;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(230, 51, 18, .08);
}
.dtfcalc-mismo-wrap:hover { background: #ffece4; }
.dtfcalc-mismo-wrap input {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: #e63312;
  cursor: pointer;
}

/* Lista de diseños */
.dtfcalc-disenos-lista { margin: 8px 0 16px; }
.dtfcalc-disenos-titulo {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: .95em;
  color: #333;
}
.dtfcalc-diseno-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #ececec;
  border-radius: 8px;
  margin-bottom: 8px;
}
.dtfcalc-diseno-nombre { white-space: nowrap; font-size: .95em; }
.dtfcalc-diseno-servicio,
.dtfcalc-asig-select {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  background: #fff;
  font-size: .92em;
}
.dtfcalc-diseno-servicio:focus,
.dtfcalc-asig-select:focus { border-color: #e63312; outline: none; }
.dtfcalc-diseno-del {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  color: #999;
  cursor: pointer;
  line-height: 1;
  transition: border-color .15s, color .15s;
}
.dtfcalc-diseno-del:hover { border-color: #e63312; color: #e63312; }
.dtfcalc-diseno-add {
  margin-top: 4px;
  padding: 7px 14px;
  border: 1px dashed #cdcdcd;
  border-radius: 6px;
  background: #fff;
  color: #444;
  font-size: .9em;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.dtfcalc-diseno-add:hover { border-color: #e63312; color: #e63312; }

/* Asignación ubicación → diseño */
.dtfcalc-asignacion {
  padding-top: 4px;
  border-top: 1px solid #f0f0f0;
}
.dtfcalc-asig-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid #ececec;
  border-radius: 8px;
  margin-bottom: 6px;
}
.dtfcalc-asig-ub { white-space: nowrap; font-size: .92em; }
.dtfcalc-asig-select { max-width: 60%; }

/* Aviso de campos faltantes (A3) */
.dtfcalc-conf-aviso-falta {
  margin: 8px 0;
  padding: 10px 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #9a3412;
  font-size: .9em;
  line-height: 1.4;
}
.dtfcalc-aviso-falta-icon { margin-right: 4px; }

/* Aviso de límite de diseños (Opción B) */
.dtfcalc-disenos-hint {
  margin: 4px 0 0;
  padding: 8px 10px;
  font-size: .85em;
  color: #6b7280;
  background: #f7f7f7;
  border-radius: 6px;
  line-height: 1.4;
}

/* Descripción por diseño + ayuda (v4.0.21) */
.dtfcalc-diseno-item {
  display: block;            /* pasa a columna: cabecera + descripción */
}
.dtfcalc-diseno-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dtfcalc-diseno-desc {
  width: 100%;
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  font-size: .9em;
  font-family: inherit;
  resize: vertical;
  min-height: 60px;
  box-sizing: border-box;
}
.dtfcalc-diseno-desc:focus { border-color: #e63312; outline: none; }
.dtfcalc-disenos-ayuda {
  margin: 0 0 12px;
  padding: 9px 12px;
  background: #eef6fb;
  border-left: 3px solid #4aa3c0;
  border-radius: 6px;
  font-size: .88em;
  color: #2a6076;
  line-height: 1.45;
}

.dtfcalc-disenos-add-hint {
  margin: 8px 0 6px;
  font-size: .85em;
  color: #777;
}

/* ============================================================
   AYUDA AL CLIENTE (enlace + modal) — v4.0.22
   ============================================================ */
.dtfcalc-configurator-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.dtfcalc-ayuda-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, .18);
  border: 1.5px solid rgba(255, 255, 255, .9);
  color: #fff;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: .9em;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.dtfcalc-ayuda-link:hover { background: #fff; color: #e63312; }
.dtfcalc-ayuda-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font-size: .8em;
  font-weight: 700;
}
.dtfcalc-ayuda-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4vh 16px;
  overflow-y: auto;
}
.dtfcalc-ayuda-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
}
.dtfcalc-ayuda-modal-caja {
  position: relative;
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 580px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
  animation: dtfcalc-ayuda-in .15s ease;
}
@keyframes dtfcalc-ayuda-in { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
.dtfcalc-ayuda-modal-cab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}
.dtfcalc-ayuda-modal-cab strong { font-size: 1.1em; }
.dtfcalc-ayuda-modal-x {
  background: none;
  border: none;
  font-size: 1.2em;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}
.dtfcalc-ayuda-modal-x:hover { color: #e63312; }
.dtfcalc-ayuda-modal-cuerpo { padding: 18px 20px; }
.dtfcalc-ayuda-cliente ol { margin: 0; padding-left: 0; list-style: none; counter-reset: paso; }
.dtfcalc-ayuda-cliente li {
  position: relative;
  counter-increment: paso;
  padding: 0 0 14px 40px;
  line-height: 1.6;
  font-size: .95em;
  color: #444;
}
.dtfcalc-ayuda-cliente li::before {
  content: counter(paso);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff4ef;
  color: #e63312;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dtfcalc-ayuda-cliente li strong { color: #2b2b2b; }
.dtfcalc-ayuda-cliente p {
  margin: 8px 0 0;
  padding: 12px 14px;
  background: #fff4ef;
  border-radius: 8px;
  font-size: .92em;
  color: #712b13;
}
