:root {
  --bg: #f4f6f8;
  --bg-2: #eef2f7;
  --card: #ffffff;
  --line: #d5dbe8;
  --navy: #1b3268;
  --ink: #101114;
  --cyan: #2ec4d6;
  --muted: #6e7c9a;
  --ok: #1f7a4d;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--navy);
  background: var(--bg);
  font-family: Outfit, sans-serif;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }

.wrap { width: 100%; margin: 0; padding: 0 18px 72px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
  border-bottom: 3px solid var(--cyan);
}
.ref-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 16px;
  background: var(--navy);
  color: #fff;
  font-size: 0.92rem;
}
.ref-banner[hidden] { display: none; }
.ref-banner > svg { width: 16px; height: 16px; flex-shrink: 0; }
.ref-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}
.ref-clear:hover { background: rgba(255, 255, 255, 0.28); }
.ref-clear svg { width: 12px; height: 12px; }
.ref-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ref-share a { color: var(--navy); font-weight: 600; word-break: break-all; }

.bar {
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 18px 0;
}

.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 68px; width: auto; display: block; }

.global-search {
  flex: 1;
  min-width: 180px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  background: #fff;
  border: 1px solid #c5cedd;
  border-radius: 999px;
  padding: 4px 4px 4px 18px;
}

.global-search input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: 0.98rem;
}

.global-search input::placeholder { color: #8b97ad; }
.global-search input:focus { outline: none; }
.global-search input::-webkit-search-cancel-button { appearance: none; }

.search-go {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: none;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
}

.search-go svg { width: 18px; height: 18px; }

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin: 0;
  padding: 10px 18px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
}
.nav-wa {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 500;
}
.nav-wa .btn { padding: 8px 14px; }
.nav a[aria-current="page"] { color: var(--navy); }

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 600;
  white-space: nowrap;
}
.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
}
.account-chip.on .avatar,
.account-chip[aria-current="page"] .avatar {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.avatar svg { width: 18px; height: 18px; }
#cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.4rem;
  height: 1.4rem;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 0.75rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
}


.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 32px;
  align-items: center;
  padding: 42px 0 32px;
  border-bottom: 1px solid var(--line);
}

.season-panel {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.season-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.season-track::-webkit-scrollbar { display: none; }

.season-slide {
  flex: 0 0 156px;
  min-width: 0;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.season-slide:hover,
.season-slide:focus-visible {
  border-color: var(--navy);
}

.season-skeleton {
  flex: 0 0 156px;
  height: 248px;
  border-radius: 14px;
  background: #e7ebf2;
}

.season-slide img,
.season-slide .thumb-missing {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f3f5f8;
}

.season-copy {
  display: grid;
  gap: 4px;
  padding: 10px 12px 12px;
}

.season-copy strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.86rem;
  line-height: 1.3;
}

.brand-rail { margin-top: 8px; }

.brand-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.brand-head h2 {
  margin: 0;
  font-family: Cinzel, serif;
  font-size: 1.2rem;
}

.brand-track {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, 76px);
  grid-auto-columns: 168px;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.brand-track::-webkit-scrollbar { display: none; }

.brand-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  scroll-snap-align: start;
}

.brand-chip img {
  width: 82%;
  height: 42px;
  object-fit: contain;
}

.brand-chip:hover,
.brand-chip:focus-visible {
  border-color: var(--navy);
  background: #fff;
}

.kicker {
  margin: 0 0 12px;
  color: var(--navy);
  letter-spacing: 0.22em;
  font-size: 0.75rem;
}

.hook {
  margin: 0 0 12px;
  max-width: 16em;
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  font-weight: 600;
  line-height: 1.15;
}

.lede { max-width: 38rem; color: var(--muted); font-size: 1.12rem; line-height: 1.5; }

.actions, .row { display: flex; flex-wrap: wrap; gap: 10px; }

.btn, .ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
}

.btn { background: var(--navy); color: #fff; }
.ghost { border-color: var(--navy); color: var(--navy); }
.btn:disabled, .ghost:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-wa { background: #25d366; color: #fff; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin: 36px 0 14px;
}

.section-head h2, .product-copy h1, .page-title {
  margin: 0;
  font-family: Cinzel, serif;
  font-weight: 600;
}

.section-head a { color: var(--navy); }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

.shelf { margin-top: 28px; }

.carousel-nav { display: flex; gap: 8px; }

.carousel-nav button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}

.carousel-nav button:hover,
.carousel-nav button:focus-visible { border-color: var(--navy); }

.carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-track .card {
  flex: 0 0 200px;
  min-width: 0;
  scroll-snap-align: start;
}

.carousel-track .card strong {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.card:hover { border-color: var(--navy); }

.card { display: flex; flex-direction: column; }
.card img, .frame img, .thumb-missing {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f3f5f8;
}
.thumb-missing { display: block; }
.card-body, .product-copy { padding: 12px 14px 16px; display: grid; gap: 6px; }
.marca, .muted { color: var(--muted); font-size: 0.86rem; }
.price { color: var(--navy); font-weight: 650; }
.price sup { font-size: 0.65em; }
.price s { color: var(--muted); font-weight: 400; margin-right: 6px; }
.price-stack { display: grid; gap: 1px; }
.price-regular { color: #c02323; font-size: 0.78rem; font-weight: 650; }
.price-stack .price { color: var(--ok); font-size: 0.92rem; }
.product-copy .price-stack .price { font-size: 1.05rem; }
.product-copy .price-regular { font-size: 0.95rem; }
.stock-ok { color: var(--ok); font-size: 0.8rem; }
.stock-no { color: #8a3a44; font-size: 0.8rem; }

.filters { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 10px; margin: 18px 0; }
.catalog {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.catalog-side {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.catalog-side > * { min-width: 0; }
.catalog-side h3 {
  margin: 0 0 8px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.filters-stack { display: grid; gap: 10px; }
.filter-list { display: grid; gap: 2px; }
.filter-list button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--navy);
  font-weight: 600;
}
.filter-list button svg { width: 16px; height: 16px; flex: none; }
.filter-list button.on,
.filter-list button:hover { background: var(--bg-2); }
.filter-subs { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-subs button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--navy);
  font-size: 0.82rem;
}
.filter-subs button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.catalog-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

input, select, textarea {
  width: 100%;
  background: #f3f5f8;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

textarea { min-height: 90px; resize: vertical; }

.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; color: var(--muted); }

.product {
  display: grid;
  grid-template-columns: minmax(280px, 480px) minmax(0, 1fr);
  gap: 28px;
  padding-top: 28px;
}

.frame {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #f3f5f8;
}

.checks { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.checks input { width: auto; }

.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line img { width: 72px; height: 72px; object-fit: contain; background: #f3f5f8; border-radius: 10px; }

.qty { display: flex; align-items: center; gap: 8px; }
.qty button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.order {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.order-form {
  display: grid;
  gap: 12px;
}

.order-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.order-send { width: 100%; justify-content: center; }

.job-form { display: grid; gap: 12px; max-width: 720px; }
.job-form label, .job-roles legend {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}
.job-roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}
.job-roles label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
}
.job-roles input { width: auto; }
.job-form .btn { justify-content: center; }
.job-profile {
  max-width: 720px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.job-profile h3 { margin: 0; font-family: Cinzel, serif; }

.order-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0;
  color: var(--navy);
}

.order-total { border-top: 1px solid var(--line); padding-top: 8px; }
.order-total .price { font-size: 1.45rem; }

.terms-note { margin: 8px 0 0; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.terms-note a, .footer-prices a, .terms-check a { color: var(--navy); font-weight: 600; }
.terms-check { display: flex; align-items: flex-start; gap: 8px; color: var(--navy); font-size: 0.92rem; line-height: 1.4; }
.terms-check input { margin-top: 3px; }
.legal { max-width: 46rem; }
.legal h2 { margin: 28px 0 8px; font-family: Cinzel, serif; font-size: 1.15rem; font-weight: 600; }
.legal p, .legal li { line-height: 1.55; }
.legal ul { margin: 8px 0 0; padding-left: 1.2rem; }
.legal li { margin: 6px 0; }
.note {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: var(--bg-2);
  color: var(--muted);
}

.site-footer {
  margin-top: 12px;
  border-top: 3px solid var(--cyan);
  background: #fff;
  color: var(--muted);
}

.footer-inner {
  width: 100%;
  margin: 0;
  padding: 32px 18px 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-brand img { height: 84px; width: auto; display: block; }
.footer-brand p { max-width: 26rem; margin: 4px 0 0; line-height: 1.5; }

.footer-col { display: grid; align-content: start; gap: 10px; padding-top: 18px; }
.footer-col h2 {
  margin: 0 0 4px;
  font-family: Cinzel, serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}
.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--navy);
  font-weight: 600;
}
.footer-col svg { width: 16px; height: 16px; }

.footer-prices {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  line-height: 1.5;
}
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}
.footer-base a { color: var(--navy); font-weight: 600; }
.footer-credit {
  margin: 14px 0 0;
  font-size: 0.86rem;
  line-height: 1.5;
  text-align: center;
}
.footer-credit a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-weight: 600;
}
.footer-credit svg { width: 16px; height: 16px; }

#build-search { grid-template-columns: minmax(0, 1fr) auto; }
#build-search:has(select) { grid-template-columns: auto minmax(0, 1fr) auto; }

.builder {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) minmax(320px, 340px);
  gap: 14px;
  align-items: start;
  margin-top: 18px;
}

.slots, .quote {
  display: grid;
  gap: 8px;
  position: sticky;
  top: 132px;
}
.slots {
  max-height: calc(100vh - 160px);
  overflow: auto;
  align-content: start;
  padding-right: 2px;
}

.slot-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px;
  align-items: center;
}

.slot {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  color: var(--navy);
  cursor: pointer;
}

.slot-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
}
.slot-clear:hover { color: var(--navy); border-color: var(--navy); }
.slot-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 8px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
}
.slot-add:hover { border-color: var(--navy); }
.slot-add svg { width: 14px; height: 14px; }
.slot-clear svg { width: 12px; height: 12px; }

.slot svg { width: 14px; height: 14px; }
.slot small { display: block; color: var(--muted); font-size: 0.64rem; line-height: 1.2; }
.slot strong {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 118px;
}
.slot em { font-style: normal; font-size: 0.64rem; color: var(--navy); text-align: right; }
.slot em .price-stack { gap: 0; justify-items: end; }
.slot em .price-regular { font-size: 0.58rem; }
.slot em .price { font-size: 0.66rem; }
.slot.on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }

.pick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pick {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  color: var(--navy);
  cursor: pointer;
}
.pick img, .pick .thumb-missing { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f3f5f8; }
.pick.on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.pick.blocked { opacity: 0.55; cursor: not-allowed; }
.pick .block-note { display: block; margin-top: 6px; color: #8a3040; font-size: 0.75rem; }
.pick strong { font-size: 0.86rem; }

.quote {
  min-width: 0;
  max-height: calc(100vh - 148px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}
.quote h3 { margin: 0; font-family: Cinzel, serif; font-size: 1rem; }
.quote > p { margin: 8px 0; font-size: 0.78rem; line-height: 1.35; overflow-wrap: anywhere; }
.quote-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; align-items: start; margin: 6px 0; font-size: 0.74rem; }
.quote-copy { min-width: 0; display: grid; gap: 1px; }
.quote-copy small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.quote-copy strong {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.quote-line .price-stack { justify-items: end; text-align: right; }
.quote-line .price-regular { font-size: 0.62rem; }
.quote-line .price { font-size: 0.74rem; }
.quote-total { display: flex; justify-content: space-between; gap: 12px; align-items: end; font-size: 0.82rem; }
.quote-total .price-stack { justify-items: end; text-align: right; }
.quote-total .price-regular { font-size: 0.7rem; }
.quote-total .price { font-size: 0.92rem; }
.section-head .price-stack { justify-items: end; text-align: right; }
.quote-remove {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.quote-remove svg { width: 12px; height: 12px; }
.quote .total,
.quote-total { border-top: 1px solid var(--line); padding-top: 8px; }
.quote .btn, .quote .ghost, .quote input {
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
  white-space: normal;
  line-height: 1.2;
  text-align: center;
}
.quote .btn, .quote .ghost { padding: 10px 12px; }
.build-share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.build-share-actions .ghost { width: 100%; min-width: 0; }
.quote .terms-note { overflow-wrap: anywhere; }
.saved-builds { display: grid; gap: 8px; margin-top: 8px; }
.saved-builds h4 { margin: 4px 0 0; font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.saved-build { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.saved-load {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  padding: 8px 10px;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.saved-build .quote-remove svg { width: 14px; height: 14px; }

.assistant {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--cyan);
  border-radius: 18px;
  background: #fff;
}

.assistant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.assistant h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: Cinzel, serif;
  font-size: 1.35rem;
}

.assistant h2 svg { width: 22px; height: 22px; }
.assistant-head .muted { margin: 4px 0 0; }

.assistant-promo {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.assistant-promo p { margin: 0; font-size: 1.2rem; }
.assistant-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.assistant-actions .muted { margin: 0; font-size: 0.95rem; }

.account {
  max-width: 440px;
  margin: 36px auto 0;
  display: grid;
  gap: 10px;
}
.account > p { margin: 0; }
.account-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.account-msg {
  margin: 0;
  color: #8a2b2b;
  font-size: 0.92rem;
}
.account-switch { text-align: center; }
.account-switch a { color: var(--navy); font-weight: 600; }
.account .btn, .account .ghost { justify-content: center; }
.account-admin { max-width: none; }
.stock-panel { margin-top: 18px; text-align: left; }
.stock-panel h3 { margin: 0 0 8px; font-family: Cinzel, serif; }
.stock-fechas { margin: 0; font-weight: 600; color: var(--navy); }
.stock-head { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 8px; color: var(--navy); }
.stock-head span { display: inline-flex; align-items: center; gap: 6px; }
.stock-panel .stock-ok,
.stock-panel .stock-no { display: inline-flex; align-items: center; gap: 4px; font-size: 0.95rem; }
.stock-panel svg { width: 16px; height: 16px; }
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 14px; }
.chart-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.chart-card .ref-subtitle { display: flex; align-items: center; gap: 8px; }
.stock-panel .chart { width: 100%; display: block; }
.stock-panel .chart-dias { height: 210px; }
.chart-leyenda { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--muted); font-size: 0.9rem; }
.swatch { width: 12px; height: 12px; border-radius: 3px; background: var(--navy); display: inline-block; }
.swatch.enviado { background: var(--cyan); margin-left: 8px; }
.term-row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; gap: 10px; align-items: center; margin: 8px 0; }
.term-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-track { display: block; min-width: 0; }
.term-bar { display: block; height: 14px; border-radius: 4px; background: var(--navy); }
.term-count { color: var(--muted); font-variant-numeric: tabular-nums; }

.assistant-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  margin: 0;
  min-width: min(460px, 100%);
}

.advice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.advice-summary { margin: 0 0 12px; }
.advice-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 14px;
  background: var(--bg);
}
.advice-item strong { display: block; }
.advice-item p { margin: 4px 0 0; color: var(--muted); }
.advice-item.problema { background: #f8eef0; }
.advice-item.ojo { background: #f7f3e8; }
.advice-item.bien { background: #eef6f1; }

.ref-join {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr auto;
  gap: 10px;
  align-items: end;
  margin-top: 16px;
}
.ref-join label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}
.ref-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 16px; }
.score {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.score h3 { margin: 0; font-family: Cinzel, serif; }
.score-number { margin: 8px 0 0; font-size: 2.4rem; font-weight: 700; }
.score p { margin: 6px 0; }
.ref-subtitle { margin: 28px 0 10px; font-family: Cinzel, serif; }
.table-wrap { overflow-x: auto; }
.ref-table { width: 100%; border-collapse: collapse; }
.ref-table th, .ref-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ref-table .ghost { padding: 8px 12px; }

.empty { color: var(--muted); padding: 28px 0; }

@media (max-width: 900px) {
  .hero, .product, .order, .builder { grid-template-columns: 1fr; }
  .carousel-track .card { flex-basis: calc((100% - 14px) / 2); }
  .pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slots, .quote { position: static; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .filters, .catalog, .ref-join, .job-roles, .chart-grid { grid-template-columns: 1fr; }
  .filter-list { display: flex; gap: 8px; width: 100%; min-width: 0; overflow-x: auto; }
  .filter-list button { width: auto; white-space: nowrap; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bar { flex-wrap: wrap; gap: 12px; padding-bottom: 10px; }
  .global-search { flex: 1 0 100%; order: 5; height: 44px; }
  .nav-toggle { display: inline-flex; }
  .account-chip { margin-left: auto; }
  .account-name { display: none; }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    flex-direction: column;
  }
  .nav.open { display: flex; }
  .nav-wa {
    margin-left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
  .footer-grid, .footer-base, .assistant-form, .advice { grid-template-columns: 1fr; flex-direction: column; }
  .assistant-head { flex-direction: column; align-items: stretch; }
  .footer-col { padding-top: 0; }
}
