/* ===== Asistente "Armá tu proyecto" (usa las variables de styles.css) ===== */
.nav a[aria-current="page"] { color: var(--text); }
.btn-ghost { background: transparent; }

.as-hero { padding: 64px 0 24px; text-align: center; }
.as-hero h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; }
.as-hero p { max-width: 680px; margin: 0 auto; font-size: 17px; }
.as-main { padding: 24px 0 96px; }
.as-small { font-size: 14px; }

/* ----- Wizard ----- */
.as-wizard {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; max-width: 980px; margin: 0 auto;
}
.as-progress { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 28px; }
.as-progress li { flex: 1; position: relative; }
.as-progress li::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; background: var(--border); border-radius: 2px; }
.as-progress li.done::before, .as-progress li.on::before { background: var(--orange); }
.as-progress button {
  position: relative; display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto;
  border-radius: 50%; border: 2px solid var(--border); background: var(--bg); color: var(--muted);
  font: 700 13px "Montserrat", Arial, sans-serif; cursor: pointer;
}
.as-progress li.done button { border-color: var(--orange); color: var(--orange); }
.as-progress li.on button { border-color: var(--orange); background: var(--orange); color: #0B1220; }

.as-step h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; margin-bottom: 6px; }
.as-step > p { margin-bottom: 22px; }
.as-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.as-opt {
  display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 14px 10px 10px;
  background: var(--bg); color: var(--text); border: 1.5px solid var(--border); border-radius: 12px;
  font: inherit; cursor: pointer; transition: border-color .15s, background .15s, transform .15s;
}
.as-opt:hover { border-color: var(--blue); transform: translateY(-1px); }
.as-opt.on { border-color: var(--orange); background: rgba(244,162,48,.10); }
.as-opt-img {
  flex-shrink: 0; width: 54px; height: 54px; border-radius: 9px; background: #fff;
  display: grid; place-items: center; overflow: hidden;
}
.as-opt-img img { width: 100%; height: 100%; object-fit: contain; }
.as-ico { width: 30px; height: 30px; fill: none; stroke: #2385E0; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.as-opt-txt { display: grid; gap: 2px; font-size: 15px; line-height: 1.3; }
.as-opt-txt small { color: var(--muted); font-size: 13px; }
.as-unico { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.as-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.as-hint { margin: 0; color: #F07A73; font-size: 14px; text-align: center; flex: 1; }

/* ----- Resultado ----- */
.as-result-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.as-result-head h2 { font-size: clamp(24px, 3.5vw, 34px); font-weight: 800; margin-bottom: 6px; }
.as-result-head p { margin: 0; }
.as-result-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.as-result-actions .btn { padding: 9px 16px; font-size: 14px; }

.as-kit {
  background: linear-gradient(135deg, rgba(244,162,48,.16), rgba(35,133,224,.10));
  border: 1px solid var(--orange); border-radius: 12px; padding: 16px 20px; margin-bottom: 20px; color: var(--text);
}
.as-kit a { color: var(--orange); font-weight: 600; }

.as-diagram {
  position: relative; display: grid; grid-template-columns: 1fr minmax(220px, .8fr) 1fr; gap: 56px;
  align-items: center; padding: 28px; border-radius: var(--radius);
  background:
    radial-gradient(circle at 1px 1px, rgba(90,169,240,.13) 1px, transparent 0) 0 0 / 22px 22px,
    var(--bg-alt);
  border: 1px solid var(--border);
}
.as-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.as-lines path { fill: none; stroke: var(--orange); stroke-width: 2; opacity: .85; }
.as-lines path.as-wireless { stroke: var(--blue-light); stroke-dasharray: 6 6; }
.as-lines circle { fill: var(--orange); }
.as-col { position: relative; display: grid; gap: 12px; align-content: center; z-index: 1; }
.as-col h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 2px; }
.as-center { gap: 40px; }
.as-empty { font-size: 14px; margin: 0; padding: 14px; border: 1px dashed var(--border); border-radius: 10px; text-align: center; }

.as-card {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  transition: border-color .15s, transform .15s;
}
a.as-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.as-card img { flex-shrink: 0; width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 8px; }
.as-card-txt { display: grid; gap: 2px; line-height: 1.25; min-width: 0; }
.as-card-txt strong { font-size: 14px; }
.as-card-txt em { color: var(--orange); font-style: normal; }
.as-card-txt small { color: var(--muted); font-size: 12px; }
.as-board { flex-direction: column; text-align: center; padding: 14px; border: 2px solid var(--orange); box-shadow: 0 10px 30px rgba(244,162,48,.15); }
.as-board img { width: 150px; height: 150px; }
.as-board .as-card-txt strong { font-size: 16px; }
.as-phone { justify-content: center; border-style: dashed; border-color: var(--blue-light); }
.as-phone .as-ico { width: 40px; height: 40px; stroke: var(--blue-light); }

.as-wiring { margin-top: 24px; }
.as-wiring h3, .as-notes h3, .as-list h3, .as-form h3 { font-size: 20px; margin-bottom: 10px; }
.as-wiring-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.as-card-sm img { width: 48px; height: 48px; }

.as-notes { margin-top: 28px; display: grid; gap: 8px; }
.as-notes h3 { margin-bottom: 4px; }
.as-note { margin: 0; padding: 12px 16px; border-radius: 10px; background: var(--surface); border-left: 3px solid var(--blue-light); color: var(--text); font-size: 15px; }
.as-note.as-warn { border-left-color: var(--orange); }
.as-note.as-ok { border-left-color: #5BD18B; }

.as-list { margin-top: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.as-row {
  display: grid; grid-template-columns: 22px 48px 1fr auto auto auto; gap: 14px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border); cursor: pointer;
}
.as-row input { width: 18px; height: 18px; accent-color: var(--orange); }
.as-row img { width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 8px; }
.as-row-name { display: grid; line-height: 1.3; min-width: 0; }
.as-row-name small { color: var(--muted); font-size: 13px; }
.as-row-qty { color: var(--muted); font-size: 14px; }
.as-row-price { font-weight: 600; min-width: 90px; text-align: right; }
.as-row-link { color: var(--blue-light); font-size: 14px; }
.as-row.off { opacity: .45; }
.as-row.off .as-row-price { text-decoration: line-through; }
.as-total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 4px; font-size: 18px; }
.as-total strong { font-family: "Montserrat", Arial, sans-serif; font-size: 26px; color: var(--orange); }
.as-buy { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

.as-form { margin-top: 24px; }
.as-form h3 { margin: 0; }
.as-form .as-small { margin: -12px 0 0; }

/* ----- Responsive ----- */
@media (max-width: 860px) {
  .as-diagram { grid-template-columns: 1fr; gap: 36px; padding: 20px; }
  .as-center { order: 2; }
  #col-in { order: 1; }
  #col-out { order: 3; }
  .as-board { flex-direction: row; text-align: left; }
  .as-board img { width: 90px; height: 90px; }
}
@media (max-width: 720px) {
  .as-wizard, .as-list { padding: 20px; }
  .as-options, .as-unico { grid-template-columns: 1fr; }
  .as-row { grid-template-columns: 22px 44px 1fr auto; }
  .as-row-qty, .as-row-link { display: none; }
  .as-buy .btn { width: 100%; }
}
