/* ═══════════════════════════════════════════════════════════════════
   LS DOMÓTICA — cotizador.css
   ------------------------------------------------------------------
   Modal del cotizador (LS Smart + LS Pro).

   Layout:
     .cot-overlay     (fondo oscuro full-screen)
     └─ .cot-dialog   (caja centrada, max-width 1100px)
         ├─ .cot-header         (tabs + close)
         └─ .cot-tab-body       (grid 2 cols: form + summary)
             ├─ .cot-form
             └─ .cot-summary

   Responsive: en <900px se apila (summary abajo).
═══════════════════════════════════════════════════════════════════ */

/* ─── OVERLAY ─────────────────────────────────────────────────── */
.cot-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(7, 9, 15, 0.85);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t-normal), visibility 0s var(--t-normal);
  overflow-y: auto;
  padding: 40px 20px;
}
.cot-overlay.open,
.cot-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity var(--t-normal), visibility 0s 0s;
}

/* ─── DIALOG ──────────────────────────────────────────────────── */
.cot-dialog {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  animation: cotIn var(--t-normal) ease both;
}
.cot-overlay:not(.open) .cot-dialog {
  animation: none;
}
@keyframes cotIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* ─── HEADER (tabs + close) ───────────────────────────────────── */
.cot-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(12, 15, 26, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.cot-tabs {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 8px;
  flex-grow: 1;
  max-width: 720px;
}

.cot-tab-btn {
  flex: 1;
  min-height: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  cursor: pointer;
  transition: all var(--t-fast);
  line-height: 1;
}
.cot-tab-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}
.cot-tab-btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(88, 185, 255, 0.65);
}
.cot-tab-btn[data-tab="pro"]:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(143, 99, 245, 0.7);
}
.cot-tab-btn.active {
  background: linear-gradient(135deg, rgba(18, 166, 255, 0.2), rgba(28, 220, 255, 0.14));
  box-shadow: 0 10px 28px rgba(0, 149, 255, 0.22);
}
.cot-tab-btn[data-tab="pro"].active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.24), rgba(168, 85, 247, 0.2));
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.24);
}
.cot-tab-btn.active:focus-visible {
  box-shadow:
    0 10px 28px rgba(0, 149, 255, 0.22),
    inset 0 0 0 2px rgba(88, 185, 255, 0.65);
}
.cot-tab-btn[data-tab="pro"].active:focus-visible {
  box-shadow:
    0 10px 28px rgba(139, 92, 246, 0.24),
    inset 0 0 0 2px rgba(143, 99, 245, 0.7);
}
.cot-tab-brand {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.28em;
  width: 100%;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}
.cot-tab-brand-ls {
  color: #fff;
}
.cot-tab-brand-product {
  color: #8b94a8;
  transition: color var(--t-fast);
}
.cot-tab-brand-lite {
  color: #58b9ff;
}
.cot-tab-brand-pro {
  color: #8f63f5;
}
.cot-tab-btn:not(.active) .cot-tab-brand-ls {
  color: rgba(255, 255, 255, 0.58);
}
.cot-tab-btn:not(.active) .cot-tab-brand-product {
  opacity: 0.62;
}
.cot-tab-sub {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0;
}

.cot-close {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 300;
  cursor: pointer;
  transition: all var(--t-fast);
  flex-shrink: 0;
}
.cot-close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(90deg);
}

/* ─── BODY GRID ───────────────────────────────────────────────── */
.cot-tab-body {
  padding: 32px 32px 40px;
}

.cot-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.95fr);
  gap: 32px;
  align-items: start;
}

/* ─── INTRO ───────────────────────────────────────────────────── */
.cot-intro {
  margin-bottom: 20px;
}
.cot-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 6px;
}
.cot-intro p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* ─── CAMPOS (inputs / selects / textareas) ───────────────────── */
.cot-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.cot-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cot-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cot-label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}

.cot-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.cot-input-wrap input {
  flex: 1;
  width: 100%;
  padding: 12px 48px 12px 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.cot-input-wrap input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 149, 255, 0.15);
}
.cot-input-suffix {
  position: absolute;
  right: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  pointer-events: none;
}

.cot-select,
.cot-textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--font-body);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.cot-select:focus,
.cot-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 149, 255, 0.15);
}
.cot-textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.5;
}

.cot-hint {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ─── MÓDULOS LITE (checkbox cards) ───────────────────────────── */
.cot-modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.cot-modules-loading {
  grid-column: 1 / -1;
  padding: 16px;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
  background: var(--bg3);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}

.cot-mod {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 4px;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--t-fast);
}
.cot-mod:hover {
  border-color: rgba(0, 149, 255, 0.35);
}
.cot-mod input[type="checkbox"] {
  grid-row: 1;
  grid-column: 1;
  width: 18px; height: 18px;
  cursor: pointer;
  accent-color: var(--accent);
  margin: 0;
}
.cot-mod:has(input[type="checkbox"]:checked) {
  border-color: var(--accent);
  background: rgba(0, 149, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(0, 149, 255, 0.35);
}
.cot-mod-name {
  grid-row: 1;
  grid-column: 2;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.cot-mod-price {
  grid-row: 1;
  grid-column: 3;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}
.cot-mod-qty {
  grid-row: 2;
  grid-column: 1 / -1;
  width: 90px;
  padding: 6px 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 4px;
  justify-self: start;
}
.cot-mod-qty:focus {
  outline: none;
  border-color: var(--accent);
}

/* ─── CHIPS PRO (toggle) ──────────────────────────────────────── */
.cot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cot-chip {
  padding: 8px 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
}
.cot-chip:hover {
  color: var(--text);
  border-color: rgba(99, 102, 241, 0.35);
}
.cot-chip.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(168, 85, 247, 0.14));
  border-color: rgba(99, 102, 241, 0.55);
  color: var(--text);
}

/* ─── DROPZONE ────────────────────────────────────────────────── */
.cot-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  background: var(--bg3);
  cursor: pointer;
  transition: all var(--t-fast);
}
.cot-dropzone:hover,
.cot-dropzone:focus-visible,
.cot-dropzone.dragover {
  border-color: var(--accent);
  background: rgba(0, 149, 255, 0.05);
  outline: none;
}
.cot-dz-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.cot-dz-ico {
  font-size: 2rem;
}
.cot-dz-content strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.cot-dz-hint {
  font-size: 0.82rem;
  color: var(--muted);
}
.cot-dz-btn {
  margin-top: 8px;
  padding: 8px 18px;
  font-size: 0.85rem;
}

.cot-files {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cot-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}
.cot-file-name {
  flex: 1;
  color: var(--text);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cot-file-size {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.cot-file-remove {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  transition: color var(--t-fast);
}
.cot-file-remove:hover {
  color: var(--danger);
}
.cot-file.error {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.08);
}
.cot-file.error .cot-file-size {
  color: var(--danger);
}

/* ─── SUMMARY / SIDEBAR ───────────────────────────────────────── */
.cot-summary {
  position: sticky;
  top: 92px;   /* espacio para el header sticky del modal */
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cot-sum-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  margin: 0;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.cot-sum-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cot-sum-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}
.cot-sum-row .cot-sum-key {
  flex: 1;
  line-height: 1.35;
}
.cot-sum-row .cot-sum-val {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cot-sum-note {
  font-size: 0.78rem;
  color: var(--warning);
  margin: 0;
  line-height: 1.4;
}

.cot-sum-divider {
  height: 1px;
  background: var(--border);
}

.cot-sum-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.cot-sum-total span {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.cot-sum-total strong {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cot-submit {
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.95rem 1.2rem;
  font-size: 0.98rem;
  width: 100%;
  box-shadow: var(--shadow-accent);
}
.cot-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.4);
  box-shadow: none;
}
[data-tab-content="pro"] .cot-submit {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.4);
}
.cot-cta-arrow {
  transition: transform var(--t-fast);
}
.cot-submit:hover:not(:disabled) .cot-cta-arrow {
  transform: translateX(4px);
}

.cot-disclaimer {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.45;
  text-align: center;
  margin: 0;
}

/* Summary Pro (lista de scope) */
.cot-pro-scope {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cot-pro-scope li {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.cot-pro-scope li::before {
  content: '✓ ';
  color: #a5a8ff;
  font-weight: 800;
  margin-right: 4px;
}
.cot-pro-scope .cot-scope-empty {
  color: var(--muted);
  font-style: italic;
  background: transparent;
  border-style: dashed;
}
.cot-pro-scope .cot-scope-empty::before {
  content: '';
  margin: 0;
}

/* ─── ÁREA INPUT + SLIDER ────────────────────────────────────── */
.cot-area-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cot-area-number {
  flex: 0 0 150px;
}

.cot-area-quick-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cot-quick-btn {
  padding: 8px 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
}
.cot-quick-btn:hover,
.cot-quick-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 149, 255, 0.08);
}

/* Range slider */
.cot-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--accent) 0%, var(--border) 0%);
  outline: none;
  cursor: pointer;
  margin-top: 10px;
}
.cot-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 3px solid var(--bg2);
  box-shadow: 0 2px 8px rgba(0, 149, 255, 0.5);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.cot-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 16px rgba(0, 149, 255, 0.6);
}
.cot-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 3px solid var(--bg2);
  box-shadow: 0 2px 8px rgba(0, 149, 255, 0.5);
}

.cot-slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ─── COMBO CARDS (desglosable) ───────────────────────────────── */
.cot-combo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.cot-combo-badge {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-display);
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(0, 149, 255, 0.12);
  color: var(--accent);
  border: 1px solid rgba(0, 149, 255, 0.25);
  white-space: nowrap;
  transition: all var(--t-fast);
}
.cot-combo-badge.partial {
  background: rgba(245, 158, 11, 0.12);
  color: var(--warning, #f59e0b);
  border-color: rgba(245, 158, 11, 0.3);
}

.cot-combo-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 10px;
  line-height: 1.4;
}

.cot-combo-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cot-combo-card {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 0 12px;
  padding: 13px 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--t-fast);
  user-select: none;
}
.cot-combo-card:hover {
  border-color: rgba(0, 149, 255, 0.3);
}
.cot-combo-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent);
  margin: 0;
  flex-shrink: 0;
}
.cot-combo-card:has(input[type="checkbox"]:checked) {
  border-color: var(--accent);
  background: rgba(0, 149, 255, 0.06);
}
.cot-combo-card:has(input[type="checkbox"]:not(:checked)) {
  opacity: 0.55;
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.01);
}
.cot-combo-card:has(input[type="checkbox"]:not(:checked)):hover {
  opacity: 0.75;
}

.cot-combo-ico {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}
.cot-combo-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cot-combo-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cot-combo-desc {
  font-size: 0.77rem;
  color: var(--muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cot-combo-price {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  text-align: right;
  flex-shrink: 0;
}
.cot-combo-card:has(input[type="checkbox"]:not(:checked)) .cot-combo-price {
  color: var(--muted);
  text-decoration: line-through;
}

/* Mandatory combo cards (always included, no checkbox) */
.cot-combo-card.cot-combo-mandatory {
  cursor: default;
  background: linear-gradient(135deg, rgba(0, 149, 255, 0.08), rgba(0, 149, 255, 0.03));
  border-color: rgba(0, 149, 255, 0.25);
  grid-template-columns: auto auto 1fr auto;
}
.cot-combo-card.cot-combo-mandatory:hover {
  border-color: rgba(0, 149, 255, 0.35);
}
.cot-combo-lock {
  font-size: 0.95rem;
  opacity: 0.8;
  flex-shrink: 0;
}
.cot-combo-included {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(0, 149, 255, 0.15);
  color: var(--accent);
  border: 1px solid rgba(0, 149, 255, 0.3);
  white-space: nowrap;
}

/* Module description (smaller second line) */
.cot-mod-desc {
  display: block;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.35;
}

.cot-has-info {
  cursor: help;
  padding-right: 36px;
}

.cot-info-cue {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 149, 255, 0.45);
  background: rgba(0, 149, 255, 0.16);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
  box-shadow: 0 0 16px rgba(0, 149, 255, 0.18);
}

.cot-info-popover {
  position: fixed;
  z-index: calc(var(--z-modal, 1000) + 40);
  width: min(360px, calc(100vw - 28px));
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 149, 255, 0.38);
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 149, 255, 0.22), transparent 40%),
    rgba(9, 13, 23, 0.97);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52), 0 0 40px rgba(0, 149, 255, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px) scale(0.98);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility 0s var(--t-fast);
}

.cot-info-popover.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility 0s 0s;
}

.cot-info-pop-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 4px;
}

.cot-info-pop-text {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  margin-bottom: 10px;
}

.cot-info-pop-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.cot-info-pop-images img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

/* Quantity stepper for adicionales */
.cot-mod-qty-wrap {
  grid-row: 2;
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 4px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: max-content;
}
.cot-mod-qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(0, 149, 255, 0.1);
  border: 1px solid rgba(0, 149, 255, 0.25);
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}
.cot-mod-qty-btn:hover {
  background: rgba(0, 149, 255, 0.2);
  border-color: var(--accent);
}
.cot-mod-qty-wrap .cot-mod-qty {
  width: 50px;
  margin: 0;
  text-align: center;
  padding: 4px 6px;
  background: transparent;
  border: none;
}
.cot-mod-qty-wrap .cot-mod-qty:focus {
  outline: 1px solid var(--accent);
  outline-offset: 1px;
}
.cot-mod-qty-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  margin-left: 4px;
  margin-right: 6px;
}
/* Hide native number input arrows in the stepper */
.cot-mod-qty-wrap .cot-mod-qty::-webkit-outer-spin-button,
.cot-mod-qty-wrap .cot-mod-qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.cot-mod-qty-wrap .cot-mod-qty {
  -moz-appearance: textfield;
}

/* Mini-tag for "incluido" in sidebar */
.cot-mini-tag {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(0, 149, 255, 0.12);
  color: var(--accent);
  border: 1px solid rgba(0, 149, 255, 0.25);
  white-space: nowrap;
}

/* ─── COMBO MINI (sidebar) ────────────────────────────────────── */
.cot-combo-mini {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 4px;
}
.cot-combo-mini-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
}
.cot-combo-mini-ico {
  font-size: 0.85rem;
  flex-shrink: 0;
}
.cot-combo-mini-name {
  flex: 1;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cot-combo-mini-val {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
.cot-combo-mini-row.inactive .cot-combo-mini-name {
  color: var(--muted);
  text-decoration: line-through;
}
.cot-combo-mini-row.inactive .cot-combo-mini-val {
  color: var(--muted);
  text-decoration: line-through;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .cot-body-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .cot-summary {
    position: static;
  }
  .cot-tab-body {
    padding: 24px 20px 30px;
  }
  .cot-row {
    grid-template-columns: 1fr;
  }
  .cot-tab-btn {
    min-height: 64px;
    padding: 8px 10px;
  }
  .cot-tab-brand {
    font-size: 1.25rem;
  }
  .cot-tab-sub {
    font-size: 0.72rem;
  }
  .cot-combo-desc {
    display: none;
  }
  .cot-area-input-row {
    gap: 8px;
  }
}

@media (max-width: 520px) {
  .cot-overlay {
    padding: 12px 8px;
  }
  .cot-tabs {
    gap: 6px;
    padding: 6px;
    border-radius: 14px;
  }
  .cot-tab-btn {
    min-height: 58px;
    border-radius: 11px;
  }
  .cot-tab-brand {
    font-size: 1.05rem;
  }
  .cot-tab-sub {
    display: none;
  }
  .cot-dialog {
    border-radius: var(--radius);
  }
  .cot-tab-body {
    padding: 18px 16px 24px;
  }
  .cot-sum-total strong {
    font-size: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cot-dialog,
  .cot-submit,
  .cot-cta-arrow,
  .cot-close {
    animation: none !important;
    transition: none !important;
  }
}
