/* RTM Calculadora v2 */
.rtm-calc {
  max-width: 480px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #1a1a1a;
  padding: 0;
}

.rtm-calc__title {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 4px;
  color: #1a1a1a;
}

.rtm-calc__subtitle {
  font-size: 13px;
  color: #666;
  margin: 0 0 16px;
}

/* Mensajes */
.rtm-calc__mensajes-box {
  border: 1px solid #f0d5c0;
  background: #fff8f4;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.rtm-calc__mensaje {
  font-size: 13px;
  color: #7a3a10;
  margin: 0 0 6px;
  line-height: 1.5;
}
.rtm-calc__mensaje:last-child {
  margin-bottom: 0;
}

/* Secciones */
.rtm-calc__section {
  margin-bottom: 20px;
}
.rtm-calc__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
  margin: 0 0 10px;
}

/* Colores */
.rtm-calc__swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  align-items: center;
}
.rtm-calc__swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: border-color 0.15s, transform 0.1s;
  position: relative;
  flex-shrink: 0;
}
.rtm-calc__swatch:hover {
  transform: scale(1.1);
}
.rtm-calc__swatch--selected {
  border-color: #e06b1e;
}
.rtm-calc__swatch--bicolor {
  /* Se aplica vía JS con gradient inline */
}
.rtm-calc__swatch--blanco {
  border-color: #ccc !important;
}

/* Stock real por color */
.rtm-calc__swatch-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.rtm-calc__swatch-stock {
  font-size: 10px;
  font-weight: 600;
  color: #16a34a;
  line-height: 1;
}
.rtm-calc__swatch-stock--0 {
  color: #b0b0b0;
  font-weight: 500;
}
.rtm-calc__swatch--agotado {
  cursor: not-allowed;
  opacity: 0.35;
  filter: grayscale(0.6);
}
.rtm-calc__swatch--agotado:hover {
  transform: none;
}
.rtm-calc__color-name {
  font-size: 12px;
  color: #666;
  margin: 0 0 10px;
}
.rtm-calc__loading {
  font-size: 12px;
  color: #aaa;
  margin: 0;
}

/* SKU */
.rtm-calc__sku {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #666;
  background: #f5f5f5;
  border: 0.5px solid #e0e0e0;
  border-radius: 6px;
  padding: 3px 8px;
  margin-top: 4px;
}
.rtm-calc__sku strong {
  color: #333;
}

/* Precio */
.rtm-calc__price-box {
  background: #f7f7f7;
  border: 0.5px solid #e8e8e8;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.rtm-calc__price-label {
  font-size: 11px;
  color: #888;
  margin: 0 0 2px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.rtm-calc__price-value {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  color: #1a1a1a;
}
.rtm-calc__price-sub {
  font-size: 11px;
  color: #aaa;
  margin: 2px 0 0;
}
.rtm-calc__produccion {
  font-size: 11px;
  color: #aaa;
  text-align: right;
  line-height: 1.4;
}

/* Resumen de pedido (al final, antes del botón) */
.rtm-calc__resumen {
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 4px 0 16px;
}
.rtm-calc__resumen-titulo {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e06b1e;
  margin: 0 0 2px;
}
.rtm-calc__resumen-tecnica {
  font-size: 12px;
  color: #888;
  margin: 0 0 12px;
  min-height: 14px;
}
.rtm-calc__resumen-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: #555;
  padding: 5px 0;
}
.rtm-calc__resumen-row span:last-child {
  font-weight: 600;
  color: #1a1a1a;
}
.rtm-calc__resumen-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid #e2e2e2;
}
.rtm-calc__resumen-total span:first-child {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}
.rtm-calc__resumen-total span:last-child {
  font-size: 22px;
  font-weight: 700;
  color: #e06b1e;
}
.rtm-calc__resumen-nota {
  font-size: 11px;
  color: #aaa;
  margin: 10px 0 0;
  text-align: center;
}

/* Descuento por volumen (informe v2, P5) */
.rtm-calc__volumen {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e2e2e2;
}
.rtm-calc__vol-bar {
  display: flex;
  width: 100%;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  background: #e5e7eb;
}
.rtm-calc__vol-paga {
  height: 100%;
  background: #cbd5e1;            /* gris = lo que paga (P_actual) */
  transition: width .25s ease;
}
.rtm-calc__vol-ahorro {
  height: 100%;
  background: #16A34A;            /* verde = ahorro por volumen */
  transition: width .25s ease;
}
.rtm-calc__vol-legend {
  font-size: 12px;
  color: #16A34A;
  font-weight: 600;
  margin: 8px 0 0;
  text-align: center;
}
.rtm-calc__volumen--ref .rtm-calc__vol-legend {
  color: #888;
  font-weight: 500;
}

/* Cantidad */
.rtm-calc__qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.rtm-calc__qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 0.5px solid #ddd;
  background: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: background 0.15s;
  flex-shrink: 0;
}
.rtm-calc__qty-btn:hover {
  background: #f0f0f0;
}
.rtm-calc__qty-input {
  flex: 1;
  height: 36px;
  border-radius: 8px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  border: 0.5px solid #ddd;
  background: #fff;
  color: #1a1a1a;
  -moz-appearance: textfield;
}
.rtm-calc__qty-input::-webkit-inner-spin-button,
.rtm-calc__qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.rtm-calc__qty-min {
  font-size: 12px;
  color: #aaa;
  margin: 0;
}

/* Tabs */
.rtm-calc__tabs {
  display: flex;
  background: #f0f0f0;
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
  margin-bottom: 12px;
}
.rtm-calc__tab {
  flex: 1;
  padding: 7px 10px;
  text-align: center;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  color: #666;
  background: transparent;
  border: none;
  transition: background 0.15s, color 0.15s;
}
.rtm-calc__tab--active {
  background: #e06b1e;
  color: #fff;
  font-weight: 600;
}

/* Radios "¿el producto lleva impresión?" (1er paso) */
.rtm-calc__radios {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.rtm-calc__radio {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  color: #444;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.rtm-calc__radio input {
  accent-color: #e06b1e;
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}
.rtm-calc__radio--on {
  border-color: #e06b1e;
  background: #fff6ef;
  color: #e06b1e;
  font-weight: 600;
}

/* Técnicas */
.rtm-calc__tecnicas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}
.rtm-calc__tec {
  border: 0.5px solid #e8e8e8;
  border-radius: 10px;
  padding: 14px 10px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s, background 0.15s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 70px;
  justify-content: center;
}
.rtm-calc__tec:hover {
  border-color: #e06b1e;
  background: #fff8f4;
}
.rtm-calc__tec--selected {
  border: 2px solid #e06b1e;
  background: #fff8f4;
}
.rtm-calc__tec-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
}
.rtm-calc__tec-badge--popular {
  background: #fff3e8;
  color: #b34d00;
}
.rtm-calc__tec-badge--premium {
  background: #e8f0ff;
  color: #1a3a8f;
}
.rtm-calc__tec-nombre {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  color: #1a1a1a;
  line-height: 1.3;
}

/* Precio: columna derecha (por unidad) */
.rtm-calc__unitario {
  font-size: 11px;
  color: #aaa;
  text-align: right;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.rtm-calc__unitario span {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 0;
}

/* Técnica no disponible para este producto */
.rtm-calc__tec--off {
  background: #fafafa;
  color: #bbb;
  cursor: not-allowed;
  opacity: 0.55;
}
.rtm-calc__tec--off:hover {
  border-color: #e8e8e8;
  background: #fafafa;
}
.rtm-calc__tec--off .rtm-calc__tec-nombre {
  color: #aaa;
}

/* Mensajes */
.rtm-calc__vacio {
  font-size: 12px;
  color: #aaa;
  margin: 0;
}
.rtm-calc__msg {
  font-size: 13px;
  color: #7a3a10;
  background: #fff8f4;
  border: 1px solid #f0d5c0;
  border-radius: 10px;
  padding: 10px 14px;
  margin: 10px 0 0;
}
.rtm-calc__msg:empty { display: none; }

@media (max-width: 480px) {
  .rtm-calc__tecnicas { grid-template-columns: repeat(2, 1fr); }
}

/* Logos */
.rtm-calc__label-extra {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #bbb;
}
.rtm-calc__upload {
  border: 1.5px dashed #ddd;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s;
}
.rtm-calc__upload:hover { border-color: #e06b1e; }
.rtm-calc__upload--full { border-color: #16A34A; cursor: not-allowed; }
.rtm-calc__upload-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 6px 0 2px;
}
.rtm-calc__upload-sub { font-size: 11px; color: #aaa; margin: 0; }
.rtm-calc__upload-status {
  font-size: 12px;
  color: #e06b1e;
  margin: 6px 0 0;
  min-height: 16px;
}
.rtm-calc__logos { list-style: none; margin: 10px 0 0; padding: 0; }
.rtm-calc__logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0.5px solid #e8e8e8;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
  font-size: 13px;
  background: #fff;
}
.rtm-calc__logo-nombre {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #444;
}
.rtm-calc__logo-quitar {
  border: none;
  background: none;
  color: #aaa;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.rtm-calc__logo-quitar:hover { color: #d63638; }

/* CTA */
.rtm-calc__cta {
  width: 100%;
  background: #e06b1e;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 4px;
}
.rtm-calc__cta:hover { background: #c55a14; }
.rtm-calc__cta:disabled { background: #ccc; cursor: not-allowed; }
.rtm-calc__cta-sub {
  font-size: 11px;
  color: #aaa;
  text-align: center;
  margin: 8px 0 0;
}

/* Serigrafía: logos + colores */
#rtm-seccion-serigrafia .rtm-calc__serig-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}
#rtm-seccion-serigrafia .rtm-calc__serig-row label {
  font-size: 14px;
  color: #333;
}
#rtm-seccion-serigrafia input[type="number"] {
  width: 72px;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  text-align: center;
}
.rtm-calc__serig-nota {
  font-size: 12px;
  color: #777;
  margin: 10px 0 0;
  line-height: 1.5;
}
.rtm-calc__serig-nota #rtm-serig-total {
  display: block;
  margin-top: 4px;
  font-weight: 700;
  color: #e06b1e;
}

/* Bug 3: aviso cuando el producto no tiene técnicas de impresión disponibles */
.rtm-calc__sin-tecnicas {
  padding: 16px;
  background: #fff8e6;
  border: 1px solid #f0d98a;
  border-radius: 8px;
  text-align: center;
}
.rtm-calc__sin-tecnicas p {
  margin: 0 0 10px;
  color: #7a5c00;
  font-size: 14px;
}
.rtm-calc__cta-sin {
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.rtm-calc__cta-sin:hover { background: #128a3d; }

/* ============================================================
   RTM Calculadora de precios — ajustes de UI (Lisbeth 04-ago-2026)
   Solo apariencia. No toca calculos, AJAX, validaciones,
   estructura de datos, carrito ni el envio a Odoo.
   ============================================================ */

/* --- 1. Tecnicas de impresion: chips compactos ---
   Las tecnicas no disponibles ya no se renderizan (cambio en el JS). */
.rtm-calc__tecnicas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rtm-calc__tec {
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 0;
  padding: 7px 12px;
  border-radius: 6px;
}

/* El borde de 2px de la seleccionada movia los chips vecinos: se iguala a 1px. */
.rtm-calc__tec--selected {
  border-width: 1px;
}

.rtm-calc__tec-nombre {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

/* --- 2. Aviso "sin costos de impresion": horizontal y compacto --- */
.rtm-calc__sin-tecnicas {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-align: left;
}

.rtm-calc__sin-tecnicas p {
  margin: 0;
  flex: 1;
  font-size: 12px;
  line-height: 1.35;
}

.rtm-calc__cta-sin {
  flex: none;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

/* --- 3. N de logos y Colores por logo: campos de 70px, uno bajo el otro --- */
#rtm-num-logos {
  width: 70px;
  text-align: center;
  padding: 8px 6px;
}

#rtm-seccion-serigrafia .rtm-calc__serig-row {
  display: block;
}

#rtm-seccion-serigrafia .rtm-calc__serig-row label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  color: #555;
}

#rtm-seccion-serigrafia .rtm-serig-color {
  width: 70px;
  font-size: 14px;
  text-align: center;
}

#rtm-seccion-serigrafia .rtm-calc__serig-nota {
  margin-top: 10px;
}

/* --- 4. Tu logo: rectangulo a todo el ancho (antes ~135px de alto) --- */
.rtm-calc__upload {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 14px;
  text-align: left;
}

.rtm-calc__upload svg {
  flex: none;
  width: 22px;
  height: 22px;
}

.rtm-calc__upload-title {
  margin: 0;
  font-size: 13px;
}

.rtm-calc__upload-sub {
  font-size: 11px;
  line-height: 1.4;
}

.rtm-calc__upload-status {
  margin: 0;
  min-height: 0;
}

/* --- 5. Resumen del pedido: compacto, sin barra de scroll --- */
.rtm-calc__resumen {
  padding: 14px 16px;
}

.rtm-calc__resumen-tecnica {
  margin: 0 0 8px;
}

.rtm-calc__resumen-row {
  padding: 3px 0;
  font-size: 13px;
}

.rtm-calc__resumen-total {
  margin-top: 8px;
  padding-top: 10px;
}

/* --- 6. Aviso de ahorro por volumen (Poppins ya esta cargada en el sitio) --- */
.rtm-calc__vol-legend {
  font-family: Poppins, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #cb6ce6;
}

.rtm-calc__vol-legend strong,
.rtm-calc__vol-legend b {
  color: inherit;
}
