/* FASE NUEVE PC BUILDER · estilos de la página pública. Usa los mismos tokens de la tienda
   (fondo oscuro, acento naranja) y funciona desde 320 px. */

.pcb-page { padding: 28px 0 80px; }
.pcb-hero { max-width: 760px; margin: 18px 0 34px; }
.pcb-hero h1 { margin: 10px 0 14px; font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.02; letter-spacing: -.02em; }
.pcb-hero h1 span { display: block; opacity: .55; }
.pcb-lead { margin: 0 0 10px; font-size: clamp(1rem, 2.4vw, 1.12rem); line-height: 1.6; opacity: .82; }
.pcb-note { margin: 0; font-size: .86rem; line-height: 1.55; opacity: .6; }

.pcb-section { margin-top: 30px; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--cx-line, rgba(127, 127, 127, .22)); border-radius: 24px; background: rgba(12, 15, 20, .55); }
.pcb-head h2 { margin: 0 0 6px; font-size: clamp(1.25rem, 3.4vw, 1.7rem); letter-spacing: -.01em; }
.pcb-head p { margin: 0 0 16px; font-size: .92rem; line-height: 1.55; opacity: .72; }

.pcb-form { display: grid; gap: 14px; align-items: end; }
.pcb-form--stack { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .pcb-form:not(.pcb-form--stack) { grid-template-columns: minmax(0, 1fr) 220px auto; }
}

.pcb-goals { display: flex; flex-wrap: wrap; gap: 8px; }
.pcb-goal {
  appearance: none; min-height: 42px; padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px;
  background: transparent; color: inherit; font: inherit; font-size: .88rem; font-weight: 650; cursor: pointer;
}
.pcb-goal:hover { border-color: rgba(255, 255, 255, .38); }
.pcb-goal[aria-pressed="true"] { border-color: transparent; background: rgb(var(--f9-accent-rgb, 255, 90, 31)); color: #0b0d12; }
.pcb-goal:focus-visible { outline: 2px solid rgb(var(--f9-accent-rgb, 255, 90, 31)); outline-offset: 2px; }

.pcb-field { display: grid; gap: 6px; font-size: .82rem; }
.pcb-field > span { font-weight: 750; letter-spacing: .06em; text-transform: uppercase; opacity: .72; }
.pcb-field select, .pcb-field input {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px;
  background: rgba(8, 10, 14, .65); color: inherit; font: inherit; font-size: .95rem;
}
.pcb-field select:focus-visible, .pcb-field input:focus-visible { outline: 2px solid rgb(var(--f9-accent-rgb, 255, 90, 31)); outline-offset: 1px; }
.pcb-text { margin-top: 6px; }
.pcb-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pcb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .pcb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pcb-btn {
  appearance: none; min-height: 50px; padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, .26); border-radius: 999px;
  background: transparent; color: inherit; font: inherit;
  font-size: 11px; font-weight: 850; letter-spacing: .14em; cursor: pointer;
}
.pcb-btn:hover { background: rgba(255, 255, 255, .06); }
.pcb-btn--primary { border-color: transparent; background: rgb(var(--f9-accent-rgb, 255, 90, 31)); color: #0b0d12; }
.pcb-btn--ghost { margin-top: 14px; }
.pcb-btn:disabled { opacity: .55; cursor: default; }

.pcb-result { margin-top: 18px; display: grid; gap: 16px; }
.pcb-result:empty { display: none; }
.pcb-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 1rem; }
.pcb-muted { margin: 0; font-size: .88rem; line-height: 1.55; opacity: .7; }
.pcb-error { margin: 0; padding: 12px 14px; border: 1px solid rgba(255, 102, 115, .4); border-radius: 12px; background: rgba(255, 102, 115, .08); }

.pcb-chip { display: inline-flex; padding: 5px 10px; border-radius: 999px; font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.pcb-chip--compatible { background: rgba(49, 209, 124, .16); color: #7ef0b0; }
.pcb-chip--incompatible { background: rgba(255, 102, 115, .16); color: #ff9aa3; }
.pcb-chip--unverified { background: rgba(246, 196, 83, .16); color: #f7d67f; }

.pcb-table-wrap { width: 100%; overflow-x: auto; }
.pcb-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.pcb-table th, .pcb-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .08); vertical-align: top; }
.pcb-table th { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.pcb-table small { display: block; opacity: .6; }

.pcb-verdicts, .pcb-notes, .pcb-upgrades { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pcb-verdict { padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .1); border-left-width: 3px; border-radius: 12px; background: rgba(8, 10, 14, .5); }
.pcb-verdict--compatible { border-left-color: #31d17c; }
.pcb-verdict--incompatible { border-left-color: #ff6673; }
.pcb-verdict--unverified { border-left-color: #f6c453; }
.pcb-verdict__head { margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .92rem; }
.pcb-notes li { font-size: .88rem; opacity: .75; }
.pcb-upgrades li { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: .94rem; }
.pcb-upgrades small { width: 100%; opacity: .62; }

.pcb-power { padding: 14px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; background: rgba(8, 10, 14, .5); }
.pcb-power p { margin: 0 0 4px; font-size: .94rem; }
.pcb-advice h3 { margin: 16px 0 6px; font-size: 1rem; }

@media (max-width: 640px) {
  .pcb-table thead { display: none; }
  .pcb-table tr { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .pcb-table td { display: grid; grid-template-columns: 42% 1fr; gap: 10px; padding: 4px 0; border: 0; }
  .pcb-table td::before { content: attr(data-label); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
}
