/* ═══════════════════════════════════════════════════════════════
   Tibor1 Cotizador — CSS
   ═══════════════════════════════════════════════════════════════ */

:root {
  --t1-primary:  #0b3989;            /* azul de marca 2026 (23-07-2026) */
  --t1-primary-2:#174b9b;
  --t1-accent:   #0b3989;            /* mismo azul: acción y tinta unificadas */
  --t1-accent-2: #315ca8;
  --t1-grad:     linear-gradient(135deg,#315ca8,#0b3989 60%,#072866);
  --t1-navy-grad:linear-gradient(140deg,#072866,#111f92);
  --t1-green:    #16a34a;
  --t1-bg:       #f3f8fb;
  --t1-border:   #e2ecf3;
  --t1-text:     #0d2438;
  --t1-muted:    #5a738c;
  --t1-white:    #ffffff;
  --t1-radius:   14px;
  --t1-shadow:   0 1px 2px rgba(11,57,137,.05), 0 10px 26px rgba(11,57,137,.07);
}

/* ── Contenedor ──────────────────────────────────────────────── */
.t1-cotizador {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 14px;
  color: var(--t1-text);
  max-width: 960px;
  margin: 0 auto;
  padding: 0 8px;
  container-type: inline-size;
  container-name: cotizador;
}

/* ── Secciones numeradas ─────────────────────────────────────── */
.t1-section {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  background: var(--t1-white);
  border: 1px solid var(--t1-border);
  border-radius: var(--t1-radius);
  padding: 14px 16px;
  box-shadow: var(--t1-shadow);
}

.t1-section-num {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--t1-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.t1-section-body {
  flex: 1;
  min-width: 0;
}

.t1-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--t1-muted);
  margin-bottom: 12px;
}

/* ── Campo con label ─────────────────────────────────────────── */
.t1-field-group {
  margin-bottom: 14px;
}
.t1-field-group:last-child { margin-bottom: 0; }

.t1-field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--t1-text);
  margin-bottom: 7px;
}

/* ── Toggle buttons ──────────────────────────────────────────── */
.t1-toggle-group {
  display: inline-flex;
  border: 1.5px solid var(--t1-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--t1-white);
}

.t1-toggle {
  padding: 9px 22px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--t1-muted);
  transition: background .15s, color .15s;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.t1-toggle + .t1-toggle {
  border-left: 1.5px solid var(--t1-border);
}

.t1-toggle.active {
  background: var(--t1-primary);
  color: #fff;
}

.t1-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.t1-dot-dti { background: #3b82f6; }
.t1-dot-dtf { background: var(--t1-accent); }

/* Nota corte */
.t1-corte-note {
  margin-top: 7px;
  color: var(--t1-muted);
  font-size: 12px;
}

/* ── Dropzone ────────────────────────────────────────────────── */
.t1-dropzone {
  border: 2px dashed var(--t1-border);
  border-radius: var(--t1-radius);
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: var(--t1-white);
  margin-bottom: 10px;
}

.t1-dropzone:hover,
.t1-dropzone.drag-over {
  border-color: var(--t1-accent);
  background: #eef3fb;
}

.t1-dropzone-inner { pointer-events: none; }

.t1-upload-icon { margin-bottom: 8px; }

.t1-upload-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--t1-primary);
  margin-bottom: 7px;
}

.t1-upload-hints {
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: 12px;
  color: var(--t1-muted);
}

/* Archivo cargado */
.t1-file-loaded {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.t1-file-check { font-size: 22px; }

.t1-file-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--t1-primary);
  word-break: break-all;
}

.t1-file-change {
  font-size: 12px;
  color: var(--t1-accent);
  text-decoration: underline;
  cursor: pointer;
}

/* Error de subida */
.t1-upload-error {
  margin-bottom: 8px;
  padding: 9px 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 6px;
  font-size: 13px;
}

/* Notas de archivo */
.t1-file-notes {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  font-size: 12px;
  color: var(--t1-muted);
  line-height: 1.9;
}

/* Especificaciones (details) */
.t1-warning-block {
  border: 1px solid var(--t1-border);
  border-radius: 8px;
  overflow: hidden;
  font-size: 13px;
}

.t1-warning-block summary {
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  color: var(--t1-primary);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.t1-warning-block summary::-webkit-details-marker { display: none; }
.t1-warning-block summary::after {
  content: '▼';
  font-size: 10px;
  margin-left: auto;
  transition: transform .2s;
}
.t1-warning-block[open] summary::after { transform: rotate(180deg); }

.t1-spec-list {
  margin: 0;
  padding: 4px 14px 10px 28px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--t1-text);
}

.t1-warning-box {
  margin: 0 14px 12px;
  padding: 10px 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  font-size: 12px;
  color: #92400e;
}

/* ── Tarifas compactas ───────────────────────────────────────── */
.t1-tiers-block {
  background: var(--t1-white);
  border: 1px solid var(--t1-border);
  border-radius: var(--t1-radius);
  padding: 12px 14px;
  margin-bottom: 12px;
  box-shadow: var(--t1-shadow);
}

.t1-tiers-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--t1-accent);
  margin-bottom: 10px;
}

.t1-tiers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.t1-tier-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--t1-bg);
  border: 1px solid var(--t1-border);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 12px;
}

.t1-tier-from {
  color: var(--t1-muted);
  font-size: 11px;
}

.t1-tier-price {
  font-weight: 700;
  color: var(--t1-primary);
}

/* ── Barra de portes ─────────────────────────────────────────── */
.t1-shipping-bar {
  padding: 9px 14px;
  background: #eef3fb;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  font-size: 13px;
  color: #0369a1;
  margin-bottom: 12px;
}

.t1-shipping-bar.free {
  background: #f0fdf4;
  border-color: #86efac;
  color: #15803d;
}

/* ── Barra de navegación ─────────────────────────────────────── */
.t1-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.t1-nav-label {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.t1-pedido-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--t1-primary);
}

/* ── Botones ─────────────────────────────────────────────────── */
.t1-btn-primary {
  padding: 11px 28px;
  background: var(--t1-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, opacity .2s;
  letter-spacing: .03em;
  white-space: nowrap;
}
.t1-btn-primary:hover:not(:disabled) { background: #2d3748; }
.t1-btn-primary:disabled { opacity: .4; cursor: not-allowed; }

.t1-btn-back {
  background: none;
  border: none;
  color: var(--t1-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════════
   PASO 2 — Preview
   ══════════════════════════════════════════════════════════════ */

.t1-preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 16px;
  align-items: start;
  margin-bottom: 12px;
}

@media (max-width: 680px) {
  .t1-preview-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* En sidebar estrecho (container query) — sin afectar modo ancho completo */
@container cotizador (max-width: 620px) {
  .t1-preview-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Canvas */
.t1-canvas-wrap {
  background: var(--t1-white);
  border: 1px solid var(--t1-border);
  border-radius: var(--t1-radius);
  overflow: hidden;
  box-shadow: var(--t1-shadow);
}

.t1-canvas-label {
  padding: 9px 14px 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--t1-muted);
  border-bottom: 1px solid var(--t1-border);
}

.t1-canvas-container {
  overflow-x: auto;        /* rollo HORIZONTAL: scroll a lo largo */
  overflow-y: hidden;      /* la tira de 570mm cabe en el alto: sin scroll vertical */
  height: 320px;
  background: #e5e7eb;
}

.t1-canvas-container canvas {
  display: block;
  max-width: none;
}

.t1-canvas-legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 7px 12px;
  font-size: 11px;
  color: var(--t1-muted);
  border-top: 1px solid var(--t1-border);
}

.t1-legend-billing::before { content: '🟧'; margin-right: 3px; }
.t1-legend-meter::before   { content: '⬜'; margin-right: 3px; }
.t1-legend-cut             { color: var(--t1-accent); }

/* Panel de precio */
.t1-price-panel {
  background: var(--t1-white);
  border: 1px solid var(--t1-border);
  border-radius: var(--t1-radius);
  padding: 14px;
  box-shadow: var(--t1-shadow);
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;   /* deja que el panel encoja en movil en vez de recortarse */
}

/* Badges */
.t1-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.t1-badge-tipo {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: #fef9c3;
  color: #854d0e;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.t1-badge-cut {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: #dcfce7;
  color: #15803d;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Dimensiones */
.t1-dims {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.t1-dim-box {
  background: var(--t1-bg);
  border-radius: 6px;
  padding: 8px 10px;
}

.t1-dim-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--t1-muted);
  margin-bottom: 2px;
}

.t1-dim-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--t1-primary);
}

/* Copias */
.t1-copies-wrap {
  border: 1px solid var(--t1-border);
  border-radius: 8px;
  padding: 10px;
}

.t1-copies-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--t1-muted);
  margin-bottom: 7px;
}

.t1-copies-ctrl {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--t1-border);
  border-radius: 6px;
  overflow: hidden;
}

.t1-copies-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--t1-bg);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  color: var(--t1-primary);
  transition: background .15s;
  flex-shrink: 0;
  line-height: 1;
}
.t1-copies-btn:hover { background: var(--t1-border); }

.t1-copies-input {
  flex: 1;
  border: none;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--t1-primary);
  height: 36px;
  padding: 0 4px;
  min-width: 0;
  -moz-appearance: textfield;
}
.t1-copies-input::-webkit-inner-spin-button,
.t1-copies-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Stats */
.t1-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.t1-stat {
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
}

.t1-stat-area   { background: #fff7ed; border: 1px solid #fed7aa; }
.t1-stat-metros { background: #f0fdf4; border: 1px solid #bbf7d0; }

.t1-stat-val {
  display: block;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--t1-primary);
}

.t1-stat-area   .t1-stat-val { color: #c2410c; }
.t1-stat-metros .t1-stat-val { color: #15803d; }

.t1-stat-lbl {
  display: block;
  font-size: 10px;
  color: var(--t1-muted);
  margin-top: 2px;
}

/* Desglose */
.t1-breakdown {
  border: 1px solid var(--t1-border);
  border-radius: 8px;
  overflow: hidden;
  font-size: 13px;
}

.t1-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--t1-border);
  color: var(--t1-text);
}

.t1-breakdown-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--t1-primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.t1-breakdown-total span:last-child {
  font-size: 18px;
  font-weight: 800;
}

/* Aviso envío en paso 2 */
.t1-shipping-notice {
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 12px;
}

/* Botón carrito */
.t1-btn-cart {
  display: block;
  width: 100%;
  padding: 13px;
  background: var(--t1-accent);
  color: #fff;
  border: none;
  border-radius: var(--t1-radius);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, opacity .2s;
  letter-spacing: .03em;
}
.t1-btn-cart:hover:not(:disabled) { background: #c73c09; }
.t1-btn-cart:disabled { opacity: .5; cursor: not-allowed; }

/* Nav paso 2 */
.t1-nav-bar-preview {
  margin-top: 4px;
  padding: 10px 0 0;
  border-top: 1px solid var(--t1-border);
}

/* ══════════════════════════════════════════════════════════════
   PANEL CARRITO (slide-out)
   ══════════════════════════════════════════════════════════════ */

.t1-cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 9998;
  display: none;
  opacity: 0;
  transition: opacity .3s;
}
.t1-cart-backdrop.open {
  display: block;
  opacity: 1;
}

.t1-cart-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 390px;
  max-width: 96vw;
  height: 100%;
  background: var(--t1-white);
  z-index: 9999;
  box-shadow: -4px 0 24px rgba(0,0,0,.18);
  transition: right .3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.t1-cart-panel.open {
  right: 0;
}

.t1-cart-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--t1-border);
  flex-shrink: 0;
}

.t1-cart-icon { font-size: 20px; }

.t1-cart-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--t1-primary);
  text-transform: uppercase;
  letter-spacing: .06em;
  flex: 1;
}

.t1-cart-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--t1-muted);
  line-height: 1;
  padding: 0 4px;
  transition: color .15s;
}
.t1-cart-close:hover { color: var(--t1-text); }

.t1-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
}

/* Item en panel */
.t1-cart-item {
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--t1-border);
  margin-bottom: 14px;
}

.t1-cart-thumb-wrap {
  flex-shrink: 0;
}

.t1-cart-thumb {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  border: 1px solid var(--t1-border);
  object-fit: cover;
  display: block;
  background: #e5e7eb;
}

.t1-cart-item-info {
  flex: 1;
  min-width: 0;
}

.t1-cart-item-badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.t1-cart-badge-tipo {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  background: var(--t1-accent);
  color: #fff;
  text-transform: uppercase;
}

.t1-cart-badge-cut {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  background: #dcfce7;
  color: #15803d;
  text-transform: uppercase;
}

.t1-cart-filename {
  font-size: 12px;
  font-weight: 600;
  color: var(--t1-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.t1-cart-dims,
.t1-cart-metros {
  font-size: 12px;
  color: var(--t1-muted);
  margin-bottom: 2px;
}

.t1-cart-price-detail {
  font-size: 12px;
  color: var(--t1-text);
  margin-top: 4px;
}

/* Total */
.t1-cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--t1-primary);
  padding: 4px 0;
}

.t1-cart-total-val {
  font-size: 24px;
  font-weight: 900;
}

/* Footer */
.t1-cart-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--t1-border);
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.t1-cart-btn-continue {
  flex: 1;
  padding: 12px;
  border: 1.5px solid var(--t1-primary);
  background: var(--t1-white);
  color: var(--t1-primary);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.t1-cart-btn-continue:hover { background: var(--t1-bg); }

.t1-cart-btn-pay {
  flex: 1.3;
  padding: 12px;
  background: var(--t1-accent);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background .2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}
.t1-cart-btn-pay:hover { background: #c73c09; color: #fff; }

/* ══════════════════════════════════════════════════════════════
   LISTA DE ARCHIVOS — Paso 1
   ══════════════════════════════════════════════════════════════ */

.t1-file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.t1-file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8f9fb;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
}

/* Thumbnail del archivo — horizontal, sin deformar */
.t1-file-item-thumb {
  flex-shrink: 0;
  width: 88px;
  height: 58px;
  border-radius: 5px;
  overflow: hidden;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d1d5db;
}

.t1-file-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* mantiene proporción, sin recortar ni deformar */
  display: block;
}

.t1-file-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.t1-file-item-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--t1-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.t1-file-item-dims {
  font-size: 11px;
  color: var(--t1-muted);
}

.t1-file-item-valid {
  font-size: 11px;
  color: #15803d;
  font-weight: 600;
}

.t1-file-item-remove {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--t1-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color .15s;
}
.t1-file-item-remove:hover { color: var(--t1-accent); }

/* Dropzone compacto cuando ya hay archivos */
.t1-dropzone-compact {
  padding: 12px 16px;
}
.t1-dropzone-compact .t1-dropzone-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.t1-dropzone-compact .t1-upload-icon { margin-bottom: 0; }
.t1-dropzone-compact .t1-upload-icon svg { width: 24px; height: 24px; }
.t1-dropzone-compact .t1-upload-title { font-size: 12px; margin-bottom: 0; }
.t1-dropzone-compact .t1-upload-subtitle { display: none; }
.t1-dropzone-compact .t1-upload-hints { display: none; }

/* Subtítulo dropzone */
.t1-upload-subtitle {
  font-size: 12px;
  color: var(--t1-muted);
  margin-bottom: 6px;
}

/* ══════════════════════════════════════════════════════════════
   PANEL CARRITO — archivos y detalles extra
   ══════════════════════════════════════════════════════════════ */

.t1-cart-copies,
.t1-cart-corte {
  font-size: 12px;
  color: var(--t1-muted);
  margin-bottom: 1px;
}

.t1-cart-corte {
  color: var(--t1-text);
  font-weight: 600;
}

/* Lista de archivos en panel carrito (visible cuando hay más de 1) */
.t1-cart-files-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 10px 0;
  padding: 10px;
  background: var(--t1-bg);
  border-radius: 8px;
  border: 1px solid var(--t1-border);
}

.t1-cart-files-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--t1-muted);
  margin-bottom: 6px;
}

.t1-cart-file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--t1-border);
  font-size: 12px;
}
.t1-cart-file-item:last-child { border-bottom: none; padding-bottom: 0; }

.t1-cart-file-thumb {
  width: 44px;
  height: 30px;
  object-fit: contain;
  border-radius: 3px;
  background: #e5e7eb;
  flex-shrink: 0;
  display: block;
}

.t1-cart-file-name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  color: var(--t1-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.t1-cart-file-dims {
  font-size: 11px;
  color: var(--t1-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   PASO 2 — Indicador de archivos adjuntos (panel precio)
   ══════════════════════════════════════════════════════════════ */

.t1-step2-files {
  border: 1px solid var(--t1-border);
  border-radius: 8px;
  overflow: hidden;
  font-size: 12px;
}

.t1-s2f-label {
  padding: 6px 10px;
  background: var(--t1-bg);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--t1-muted);
  border-bottom: 1px solid var(--t1-border);
}

.t1-s2f-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--t1-border);
}
.t1-s2f-row:last-child { border-bottom: none; }

.t1-s2f-thumb {
  width: 36px;
  height: 24px;
  object-fit: contain;
  border-radius: 3px;
  background: #e5e7eb;
  flex-shrink: 0;
  display: block;
}

.t1-s2f-name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  color: var(--t1-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.t1-s2f-dims {
  font-size: 11px;
  color: var(--t1-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.t1-s2f-primary {
  font-size: 10px;
  background: #dbeafe;
  color: #1d4ed8;
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 600;
  flex-shrink: 0;
}

/* Papelera: eliminar el archivo antes de añadirlo al carrito */
.t1-s2f-remove {
  flex-shrink: 0;
  background: none;
  border: none;
  margin: 0;
  padding: 4px;
  line-height: 0;
  color: var(--t1-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: color .15s, background .15s;
}
.t1-s2f-remove svg { display: block; }
.t1-s2f-remove:hover,
.t1-s2f-remove:focus-visible {
  color: #dc2626;
  background: #fee2e2;
}

/* Fila en dos líneas: el panel mide ~290 px (también en escritorio) y con
   medidas + «Vista previa» + papelera el nombre se quedaba en una letra.
   Línea 1: miniatura · nombre · papelera. Línea 2: medidas · badge. */
.t1-s2f-row     { flex-wrap: wrap; row-gap: 2px; }
.t1-s2f-thumb   { order: 0; }
.t1-s2f-name    { order: 1; flex: 1 1 calc(100% - 76px); } /* 36 miniatura + 24 papelera + 2 huecos */
.t1-s2f-remove  { order: 2; }
.t1-s2f-dims    { order: 3; margin-left: 44px; }            /* alineado bajo el nombre */
.t1-s2f-primary { order: 4; }

/* ══════════════════════════════════════════════════════════════
   CARRITO — Ítems dinámicos acumulativos
   ══════════════════════════════════════════════════════════════ */

.t1-cart-items-list {
  overflow-y: auto;
  max-height: 55vh;
  padding: 0 18px;
}

.t1-ci {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--t1-border);
}
.t1-ci:last-child { border-bottom: none; }

.t1-ci-thumb-wrap {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--t1-bg);
  border: 1px solid var(--t1-border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.t1-ci-thumb-icon { font-size: 22px; }

.t1-ci-info {
  flex: 1;
  min-width: 0;
}

.t1-ci-badge {
  display: inline-block;
  background: var(--t1-primary);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .4px;
  padding: 1px 5px;
  border-radius: 3px;
  margin-bottom: 3px;
}

.t1-ci-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--t1-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 1px;
}

.t1-ci-dims,
.t1-ci-metros {
  font-size: 11px;
  color: var(--t1-muted);
  line-height: 1.4;
}

.t1-ci-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--t1-accent);
  margin-top: 3px;
}

.t1-ci-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.t1-ci-copies-row {
  display: flex;
  align-items: center;
  border: 1px solid var(--t1-border);
  border-radius: 6px;
  overflow: hidden;
}

.t1-ci-btn {
  background: var(--t1-bg);
  border: none;
  width: 26px;
  height: 26px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  color: var(--t1-text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.t1-ci-btn:hover { background: var(--t1-border); }

.t1-ci-copies-val {
  min-width: 26px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 0 2px;
}

.t1-ci-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  color: var(--t1-muted);
  padding: 2px 4px;
  line-height: 1;
}
.t1-ci-remove:hover { color: var(--t1-accent); }

.t1-cart-empty {
  padding: 28px 18px;
  text-align: center;
  color: var(--t1-muted);
  font-size: 13px;
}

/* ── Botón Ver Carrito (badge en nav) ───────────────────────── */
.t1-btn-cart-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--t1-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .02em;
}
.t1-btn-cart-view:hover { background: #0d0d1f; }

.t1-cart-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--t1-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  line-height: 1;
}

/* ══════════════════════════════════════════════════════════════
   SELECTOR DE PEDIDOS  [tibor_selector]
   ══════════════════════════════════════════════════════════════ */

.t1-selector {
  font-family: 'Inter', Arial, sans-serif;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 16px 56px;
}

.t1-selector-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: var(--t1-muted);
  margin: 0 0 44px;
  letter-spacing: .01em;
}

.t1-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

/* ── Tarjeta ─────────────────────────────────────────────────── */

.t1-sel-card {
  --card-color: #475569;
  --card-bg: #f1f5f9;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1.5px solid #e8edf3;
  border-radius: 20px;
  padding: 32px 28px 28px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition:
    transform .28s cubic-bezier(.4, 0, .2, 1),
    box-shadow .28s cubic-bezier(.4, 0, .2, 1),
    border-color .28s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

/* Barra de color superior que se despliega en hover */
.t1-sel-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  border-radius: 20px 20px 0 0;
}

.t1-sel-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 16px 48px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  border-color: var(--card-color);
  text-decoration: none;
  color: inherit;
}

.t1-sel-card:hover::before {
  transform: scaleX(1);
}

/* ── Icono ───────────────────────────────────────────────────── */

.t1-sel-icon {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: var(--card-bg);
  color: var(--card-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 22px;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  transition: transform .25s cubic-bezier(.4, 0, .2, 1), box-shadow .25s;
}

.t1-sel-card:hover .t1-sel-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,.14);
}

/* ── Textos ──────────────────────────────────────────────────── */

.t1-sel-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--t1-primary);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1.2;
}

.t1-sel-desc {
  font-size: 13.5px;
  color: var(--t1-muted);
  line-height: 1.6;
  flex: 1;
  margin: 0 0 24px;
}

/* ── CTA ─────────────────────────────────────────────────────── */

.t1-sel-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--card-color);
  text-transform: uppercase;
  letter-spacing: .07em;
  transition: gap .2s ease;
}

.t1-sel-arrow {
  display: inline-block;
  font-style: normal;
  transition: transform .2s ease;
}

.t1-sel-card:hover .t1-sel-cta {
  gap: 9px;
}

.t1-sel-card:hover .t1-sel-arrow {
  transform: translateX(4px);
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 768px) {
  .t1-selector { padding: 32px 16px 40px; }
  .t1-selector-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .t1-sel-card { padding: 24px 20px 20px; }
}

@media (max-width: 480px) {
  .t1-selector-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   SKIN 2026 — look&feel turquesa (solo presentación, aditivo).
   Corrige los hex naranjas hardcodeados y añade gradientes/sombras
   elegantes sobre las clases existentes. No toca markup ni JS.
   ═══════════════════════════════════════════════════════════════ */

/* Número de sección: chip con gradiente turquesa */
.t1-section-num{
  background:var(--t1-grad);
  box-shadow:0 6px 14px rgba(11,57,137,.32);
}
/* Tarjetas de sección: hover sutil */
.t1-section{ transition:box-shadow .2s, border-color .2s, transform .2s; }
.t1-section:hover{ border-color:#cfe6f1; box-shadow:0 1px 2px rgba(11,57,137,.05),0 14px 32px rgba(11,57,137,.10); }

/* Toggles activos con gradiente de marca */
.t1-toggle.active{ background:var(--t1-grad); color:#fff; }
.t1-toggle:hover:not(.active){ color:var(--t1-accent); }

/* Dropzone: tinte turquesa al arrastrar/hover */
.t1-dropzone:hover,
.t1-dropzone.drag-over{ border-color:var(--t1-accent); background:#ecfaff; }

/* Botón SIGUIENTE (primary): gradiente + elevación */
.t1-btn-primary{ background:var(--t1-grad); box-shadow:0 8px 20px rgba(11,57,137,.30); }
.t1-btn-primary:hover:not(:disabled){ background:var(--t1-grad); filter:brightness(1.06); transform:translateY(-1px); }

/* Botón AÑADIR AL CARRITO y PAGAR: gradiente turquesa */
.t1-btn-cart{ background:var(--t1-grad); box-shadow:0 10px 24px rgba(11,57,137,.32); }
.t1-btn-cart:hover:not(:disabled){ background:var(--t1-grad); filter:brightness(1.06); }
.t1-cart-btn-pay{ background:var(--t1-grad); }
.t1-cart-btn-pay:hover{ background:var(--t1-grad); filter:brightness(1.06); color:#fff; }

/* Botón "ver carrito" (nav): navy + hover suave */
.t1-btn-cart-view{ background:var(--t1-navy-grad); }
.t1-btn-cart-view:hover{ filter:brightness(1.12); }

/* Total del desglose: barra navy con gradiente */
.t1-breakdown-total{ background:var(--t1-navy-grad); }

/* Stat de área: pasa de naranja a turquesa (metros se queda verde para contraste) */
.t1-stat-area{ background:#e9f7fc; border-color:#bfe6f1; }
.t1-stat-area .t1-stat-val{ color:var(--t1-accent); }

/* Badge de tipo: chip turquesa suave en vez de amarillo */
.t1-badge-tipo{ background:#e4f6fb; color:#026a86; }

/* Panel de precio y canvas: sombra/borde alineados */
.t1-price-panel,.t1-canvas-wrap,.t1-tiers-block{ border-color:#e7eef4; }

/* Chips de tarifa: un punto más elegantes */
.t1-tier-chip{ background:#fff; border-color:#dcecf5; }
.t1-tier-chip:hover{ border-color:var(--t1-accent-2); }

/* ── Zona de subida limpia y elegante (estilo modal de upload) ── */
.t1-dropzone:not(.t1-dropzone-compact){
  border:2px dashed #cfe0ec; border-radius:16px; padding:34px 20px; background:#fbfdff;
}
.t1-dropzone:not(.t1-dropzone-compact):hover,
.t1-dropzone.drag-over:not(.t1-dropzone-compact){ border-color:var(--t1-accent); background:#f2fbff; }
/* Icono de subida como botón "pill" blanco (estilo botón Upload del modal) */
.t1-dropzone:not(.t1-dropzone-compact) .t1-upload-icon{
  display:inline-flex; align-items:center; justify-content:center;
  width:auto; height:auto; margin:0 auto 14px; padding:10px 22px;
  border-radius:10px; background:#fff; border:1px solid #d7e3ec;
  box-shadow:0 2px 6px rgba(11,57,137,.06); transition:border-color .18s, box-shadow .18s;
}
.t1-dropzone:not(.t1-dropzone-compact):hover .t1-upload-icon{
  border-color:var(--t1-accent-2); box-shadow:0 6px 14px rgba(11,57,137,.18);
}
.t1-dropzone:not(.t1-dropzone-compact) .t1-upload-icon svg{ stroke:var(--t1-accent); width:20px; height:20px; }
.t1-upload-title{ font-size:15px; letter-spacing:.01em; color:var(--t1-primary); }
/* Pistas como pills suaves */
.t1-upload-hints{ gap:8px; margin-top:12px; }
.t1-upload-hints span{ background:#eef6fb; color:var(--t1-muted); border-radius:999px; padding:4px 11px; font-weight:600; }

/* ── Filas de archivo: tarjetas suaves + estado "válido" tipo pill ── */
.t1-file-item{
  background:#fff; border:1px solid #e7eef4; border-radius:14px; padding:10px 12px;
  box-shadow:0 1px 2px rgba(11,57,137,.05); transition:border-color .18s, box-shadow .18s;
}
.t1-file-item:hover{ border-color:#cfe6f1; box-shadow:0 8px 20px rgba(11,57,137,.08); }
.t1-file-item-thumb{ border-radius:10px; border-color:#e2ecf3; }
.t1-file-item-valid{
  display:inline-flex; align-items:center; gap:5px; width:fit-content;
  background:#e7f7ee; color:#16a34a; border-radius:999px; padding:2px 10px; font-weight:600;
}
.t1-file-item-remove{ transition:color .15s, background .15s; border-radius:8px; }
.t1-file-item-remove:hover{ color:#ef4444; background:#fef2f2; }

/* Aviso "Especificaciones" un poco más limpio */
.t1-warning-block{ border-color:#e7eef4; border-radius:12px; }
.t1-warning-block summary{ color:var(--t1-primary); }

/* Avisos refinados (22-10-2026): mismo acabado que el personalizador y WooCommerce. Fondo
   claro, franja de color a la izquierda, esquinas suaves y sombra ligera. Se conservan el
   color del texto, los tamaños y la posición; solo cambia el acabado. */
.t1-upload-error { border-radius: 12px; box-shadow: 0 1px 4px rgba(15, 23, 42, .06); }
.t1-upload-error { border: 1px solid #f5d0d0; border-left: 3px solid #dc2626; background: #fffafa; }
