/* ============================================================
   PLASMART — Estimador (modo rapido)
   Usa los tokens de v3.css. No define colores ni tipografias
   propias: hereda --bg/--text/--accent/--display/--mono/--ease.
   Reusa .mf-row (inputs), .btn/.btn-solid y .modal-* del sitio.
   ============================================================ */

/* ---------- cabecera del wizard ---------- */
.cot-head { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 26px; }
.cot-steps { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.cot-bar { display: flex; gap: 6px; }
.cot-dot { width: 26px; height: 2px; background: var(--line-2); border-radius: 2px; transition: background .35s var(--ease); }
.cot-dot.on { background: var(--accent); box-shadow: 0 0 8px var(--accent-soft); }
.cot-title { font-size: clamp(30px, 4.4vw, 52px); font-weight: 200; letter-spacing: -.03em; line-height: 1.02; }
.cot-sub { color: var(--muted); font-size: 15px; font-weight: 300; margin-top: 8px; }

/* ---------- cuerpo ---------- */
.cot-body { display: flex; flex-direction: column; gap: 20px; }
.cot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cot-load { padding: 40px 0; color: var(--muted); }

/* select con el mismo trazo que los inputs de .mf-row */
.cot-select {
  background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  color: var(--text); font-family: var(--display); font-size: 16px; font-weight: 300;
  padding: 9px 2px; transition: border-color .3s; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: right 10px center, right 5px center;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.cot-select:focus { outline: none; border-color: var(--accent); }
.cot-select option { background: var(--panel); color: var(--text); }

/* ---------- segmentado medidas / m2 ---------- */
.cot-seg { display: flex; gap: 0; border: 1px solid var(--line-2); border-radius: 100px; padding: 3px; align-self: flex-start; }
.cot-segb {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 10px 18px; border-radius: 100px; transition: color .3s, background .3s var(--ease);
  min-height: 40px;
}
.cot-segb.on { background: var(--text); color: var(--bg); }

/* ---------- toggles de operaciones ---------- */
.cot-ops { display: flex; flex-direction: column; gap: 12px; }
.cot-chk {
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font-family: var(--display); font-size: 15px; font-weight: 300;
  padding: 6px 0; min-height: 40px; transition: color .3s;
}
.cot-box { width: 18px; height: 18px; border: 1px solid var(--line-2); border-radius: 3px; transition: .25s var(--ease); position: relative; flex: none; }
.cot-chk.on { color: var(--text); }
.cot-chk.on .cot-box { background: var(--accent); border-color: var(--accent); }
.cot-chk.on .cot-box::after {
  content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.cot-inline { max-width: 140px; }

/* ---------- notas y avisos ---------- */
.cot-note { font-size: 13.5px; line-height: 1.55; color: var(--muted); font-weight: 300; }
.cot-note b { color: var(--text); font-weight: 500; }
.cot-note-alt { padding-top: 14px; border-top: 1px solid var(--line); }
.cot-note-alt a { color: var(--text); border-bottom: 1px solid var(--accent); padding-bottom: 1px; }
.cot-hint { font-size: 11px; letter-spacing: .1em; color: var(--faint); margin-top: -12px; }
.cot-err { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: #ff8a9b; }
.cot-warn {
  border: 1px solid var(--line-2); border-left: 2px solid var(--accent);
  border-radius: 4px; padding: 16px 18px; font-size: 14px; font-weight: 300;
  line-height: 1.6; color: var(--muted); background: var(--bg-2);
}
.cot-warn b { color: var(--text); font-weight: 500; }

/* ---------- carga de plano DXF ---------- */
.cot-file { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; position: relative; }
.cot-file input[type="file"] {
  position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none;
}
.cot-filebtn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  border: 1px dashed var(--line-2); border-radius: 100px; cursor: pointer;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); transition: color .3s, border-color .3s;
}
.cot-filebtn:hover { color: var(--text); border-color: var(--accent); }
.cot-file input:focus-visible + .cot-filebtn { outline: 2px solid var(--accent); outline-offset: 3px; }
.cot-filename { font-size: 12px; color: var(--text); word-break: break-all; }

.cot-ok {
  border: 1px solid var(--line-2); border-left: 2px solid var(--accent);
  border-radius: 4px; padding: 14px 16px; font-size: 14px; font-weight: 300;
  line-height: 1.55; color: var(--muted); background: var(--bg-2);
}
.cot-ok b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }

.cot-warn ul { margin: 8px 0 10px; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; }
.cot-warn li { font-size: 13.5px; color: var(--text); }

/* ---------- el estimado ---------- */
.cot-est { border-top: 1px solid var(--line); }
.cot-row {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.cot-k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cot-v { font-family: var(--display); font-size: 17px; font-weight: 300; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.cot-n { grid-column: 1 / -1; font-size: 12px; color: var(--faint); font-weight: 300; }
.cot-row.strong { border-bottom: 0; padding-top: 20px; }
.cot-row.strong .cot-k { color: var(--text); }
.cot-row.strong .cot-v { font-size: clamp(28px, 5vw, 40px); font-weight: 200; letter-spacing: -.03em; }

.cot-legal {
  font-size: 12px; line-height: 1.6; color: var(--faint); font-weight: 300;
  border-top: 1px solid var(--line); padding-top: 16px;
}

/* ---------- pie ---------- */
.cot-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line);
}
.cot-back {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  padding: 10px 0; min-height: 40px; transition: color .3s;
}
.cot-back:hover { color: var(--text); }
.cot-foot .btn { height: 52px; padding: 0 26px; }

/* ---------- pagina standalone /cotizador/ ---------- */
.cot-page { padding-block: clamp(110px, 16vh, 190px) clamp(70px, 10vh, 120px); }
.cot-page-inner { max-width: 620px; }
.cot-page .cot-title { font-size: clamp(38px, 7vw, 78px); }

/* ---------- modal (usa .modal/.modal-card de v3.css) ---------- */
.modal-card.cot-card { max-width: 620px; padding: clamp(26px, 4vw, 42px); }

@media (max-width: 640px) {
  .cot-grid { grid-template-columns: 1fr; gap: 16px; }
  .cot-foot { flex-direction: row-reverse; }
  .cot-foot .btn { flex: 1; justify-content: center; }
  /* 16px evita el zoom automatico de iOS al enfocar un campo */
  .mf-row input, .cot-select { font-size: 16px; }
}
