:root {
  --ink: #07131f;
  --ink-soft: #142232;
  --paper: #f6f6f3;
  --surface: #ffffff;
  --surface-muted: #ecece8;
  --line: #d6d7d2;
  --muted: #686d76;
  --blue: #2f63ff;
  --blue-light: #8da6ff;
  --signal: #c8ff3d;
  --danger: #a12b36;
  --shadow: 0 18px 55px rgba(8, 11, 18, 0.1);
  --shell: 1240px;
  --radius: 2px;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 11rem;
}

body {
  max-width: 100%;
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

body.has-selection {
  padding-bottom: 6.5rem;
}

button,
input,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  width: min(calc(100% - 2rem), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  background: #fff;
  color: var(--ink);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  isolation: isolate;
}

.site-header::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -30%;
  background:
    radial-gradient(circle at 78% 38%, rgba(49, 92, 255, 0.4), transparent 17%),
    repeating-linear-gradient(90deg, transparent 0 8rem, rgba(255, 255, 255, 0.035) 8rem 8.0625rem),
    repeating-linear-gradient(0deg, transparent 0 8rem, rgba(255, 255, 255, 0.035) 8rem 8.0625rem);
  transform: rotate(-5deg);
}

.site-header::after {
  content: "VPM";
  position: absolute;
  z-index: -1;
  right: -0.08em;
  bottom: -0.24em;
  color: rgba(255, 255, 255, 0.035);
  font-size: clamp(12rem, 39vw, 36rem);
  font-weight: 900;
  letter-spacing: -0.12em;
  line-height: 0.72;
  pointer-events: none;
}

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.4rem;
  border-bottom: 1px solid #323746;
  color: #bcc5df;
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  background: linear-gradient(145deg, var(--blue), #1740c8);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.brand-lockup {
  display: grid;
  line-height: 0.9;
}

.brand-lockup strong {
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.brand-lockup small {
  margin-top: 0.25rem;
  color: #9ba6ba;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.edition {
  text-align: right;
}

.edition::before {
  content: "";
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.55rem;
  background: var(--signal);
  vertical-align: 0.05rem;
}

.hero {
  min-height: 29rem;
  padding-block: clamp(3.6rem, 9vw, 7rem) 2.6rem;
}

.eyebrow {
  margin: 0;
  color: var(--blue-light);
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 12ch;
  margin: 1rem 0 1.4rem;
  font-size: clamp(3rem, 9.4vw, 7.2rem);
  line-height: 0.88;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 34rem;
  margin: 0;
  color: #c9ceda;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 42rem;
  margin-top: clamp(2.8rem, 7vw, 5rem);
  border-block: 1px solid #323746;
}

.hero-index > div {
  padding: 1.4rem 1rem;
  border-right: 1px solid #323746;
}

.hero-index > div:first-child {
  padding-left: 0;
}

.hero-index > div:last-child {
  border-right: 0;
}

.hero-index strong,
.hero-index span {
  display: block;
}

.hero-index strong {
  font-size: clamp(1.6rem, 5vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero-index span {
  margin-top: 0.7rem;
  color: #9299a8;
  font-family: "Courier New", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-tools {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 246, 243, 0.96);
  backdrop-filter: blur(18px);
}

.tools-inner {
  display: grid;
  gap: 1rem;
  min-width: 0;
  padding-block: 1rem 0.8rem;
}

.search-field,
.filter-block,
.results-row {
  min-width: 0;
  max-width: 100%;
}

.search-label,
.filter-label {
  display: block;
  margin-bottom: 0.42rem;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-control {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.25rem;
  padding-inline: 1rem;
  border: 1px solid #bfc1bd;
  background: #fff;
}

.search-control:focus-within {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.search-control svg {
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.6;
}

.search-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
}

.search-control input::placeholder {
  color: #8e9298;
}

.filter-list {
  display: flex;
  gap: 0.55rem;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  padding: 0.1rem 0.05rem 0.45rem;
  scrollbar-width: thin;
}

.filter-chip {
  flex: 0 0 auto;
  min-height: 2.6rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid #c4c6c2;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.9rem;
}

.filter-chip:hover {
  border-color: #8c9098;
}

.filter-chip[aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.results-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 1.8rem;
}

.results-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  cursor: pointer;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.text-button.danger {
  color: var(--danger);
}

.catalog-section {
  padding-block: clamp(3rem, 8vw, 6rem) 6rem;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 4px solid var(--blue);
}

.section-code {
  color: #9a9ea4;
  font-family: "Courier New", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.13em;
}

.section-heading h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
}

.product-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.product-card:hover {
  border-color: #aeb1b9;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.product-card.is-selected {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.image-button {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 46%, #fff 0 28%, transparent 58%),
    #eeede8;
  cursor: zoom-in;
}

.image-button::after {
  content: "Ampliar";
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  padding: 0.34rem 0.5rem;
  background: rgba(8, 11, 18, 0.82);
  color: #fff;
  font-family: "Courier New", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  opacity: 0;
  text-transform: uppercase;
  transition: opacity 180ms ease;
}

.image-button:hover::after,
.image-button:focus-visible::after {
  opacity: 1;
}

.product-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 260ms ease;
}

.image-button:hover .product-image {
  transform: scale(1.018);
}

.card-meta {
  position: relative;
  min-height: 11.6rem;
  padding: 1rem;
  overflow: hidden;
}

.reference-ghost {
  position: absolute;
  right: -0.15rem;
  bottom: -1.6rem;
  color: rgba(8, 11, 18, 0.045);
  font-family: "Courier New", monospace;
  font-size: clamp(4rem, 12vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -0.12em;
  pointer-events: none;
}

.card-copy,
.select-button {
  position: relative;
  z-index: 1;
}

.card-model {
  margin: 0;
  font-size: clamp(1rem, 3.4vw, 1.28rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.card-variant,
.card-color {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.card-variant {
  color: #303641;
}

.card-reference {
  margin: 0.8rem 0 1rem;
  color: var(--blue);
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.select-button {
  min-height: 2.6rem;
  padding: 0.58rem 0.75rem;
  border: 1px solid #bbbeba;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
}

.select-button:hover {
  border-color: var(--ink);
}

.product-card.is-selected .select-button {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3.1rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  background: var(--blue);
  color: #fff;
}

.button-primary:hover {
  background: #2149ef;
}

.button-secondary {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover {
  background: var(--ink);
  color: #fff;
}

.button-light {
  background: var(--signal);
  color: var(--ink);
}

.button-light:hover {
  background: #d6ff70;
}

.empty-state {
  padding: 4rem 1rem;
  border: 1px solid var(--line);
  background: #fff;
  text-align: center;
}

.empty-state span {
  color: rgba(8, 11, 18, 0.08);
  font-family: "Courier New", monospace;
  font-size: 5rem;
  font-weight: 700;
}

.empty-state h3 {
  margin: -0.8rem 0 0.4rem;
  font-size: 1.35rem;
}

.empty-state p {
  margin: 0 0 1.4rem;
  color: var(--muted);
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 10vw, 7rem) 2rem;
  background: var(--ink);
  color: #fff;
}

.site-footer::after {
  content: "";
  position: absolute;
  width: 32rem;
  aspect-ratio: 1;
  left: -20rem;
  bottom: -22rem;
  border: 3px solid var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(49, 92, 255, 0.06);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
}

.footer-grid h2 {
  max-width: 12ch;
  margin: 0.7rem 0 0;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.footer-action {
  align-self: end;
}

.footer-action p {
  max-width: 28rem;
  margin: 0 0 1.3rem;
  color: #b8bdc9;
}

.legal-line {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 4rem;
  padding-top: 1.2rem;
  border-top: 1px solid #323746;
  color: #9299a8;
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.visual-sources {
  position: relative;
  z-index: 1;
  margin-top: 1.2rem;
  color: #aeb4c0;
}

.visual-sources summary {
  width: fit-content;
  cursor: pointer;
  color: #d8dbe2;
  font-size: 0.86rem;
  font-weight: 700;
}

.visual-sources p {
  max-width: 38rem;
  margin: 0.85rem 0;
  font-size: 0.84rem;
}

.source-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.55rem 1.25rem;
}

.source-links a {
  color: var(--blue-light);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
  text-underline-offset: 0.2em;
}

.selection-bar {
  position: fixed;
  z-index: 50;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0.75rem 0 max(0.75rem, env(safe-area-inset-bottom));
  border-top: 1px solid #313746;
  background: rgba(8, 11, 18, 0.97);
  color: #fff;
  box-shadow: 0 -12px 35px rgba(8, 11, 18, 0.2);
  backdrop-filter: blur(15px);
}

.selection-bar-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.75rem;
}

.selection-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.5rem;
  min-width: 0;
  padding: 0.3rem 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.selection-summary strong {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--blue-light);
  font-size: 2rem;
  line-height: 1;
}

.selection-summary span,
.selection-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selection-summary span {
  align-self: end;
  font-size: 0.82rem;
}

.selection-summary small {
  align-self: start;
  color: #aab0bc;
  font-size: 0.72rem;
  text-decoration: underline;
}

.dialog {
  width: min(calc(100% - 1.5rem), 46rem);
  max-height: calc(100dvh - 1.5rem);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.35);
}

.dialog::backdrop {
  background: rgba(5, 7, 12, 0.76);
  backdrop-filter: blur(6px);
}

.dialog-close-row {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.94);
}

.icon-button {
  min-height: 2.6rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid #b8bbb7;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
}

.dialog-product-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #eeede8;
}

.dialog-product-meta {
  padding: 1.3rem 1.3rem 1.5rem;
}

.dialog-product-meta h2 {
  margin: 0.45rem 0;
  font-size: clamp(1.7rem, 6vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.dialog-product-meta p {
  margin: 0.35rem 0;
  color: var(--muted);
}

.dialog-product-meta .button {
  width: 100%;
  margin-top: 1.2rem;
}

.dialog-heading {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.dialog-heading h2 {
  margin: 0.35rem 0 0;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.selection-list {
  display: grid;
  gap: 0;
  padding: 0 1rem;
}

.selection-item {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.selection-item img {
  width: 4rem;
  aspect-ratio: 1;
  object-fit: cover;
  background: #eeede8;
}

.selection-item strong,
.selection-item span {
  display: block;
}

.selection-item strong {
  font-size: 0.92rem;
}

.selection-item span {
  margin-top: 0.18rem;
  color: var(--blue);
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
}

.remove-selection {
  min-height: 2.5rem;
  padding: 0.5rem;
  border: 0;
  background: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.selection-dialog-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
}

.noscript {
  position: fixed;
  z-index: 100;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  padding: 1rem;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (min-width: 700px) {
  .shell {
    width: min(calc(100% - 4rem), var(--shell));
  }

  .tools-inner {
    grid-template-columns: minmax(18rem, 0.7fr) minmax(0, 1.3fr);
    align-items: end;
  }

  .results-row {
    grid-column: 1 / -1;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    max-width: none;
    margin-inline: 0;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.6fr);
  }

  .legal-line {
    flex-direction: row;
    justify-content: space-between;
  }

  .selection-bar-inner {
    align-items: center;
  }

  .selection-bar .button {
    min-width: 13rem;
  }
}

@media (min-width: 1050px) {
  .hero {
    min-height: 43rem;
  }

  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .card-meta {
    min-height: 12.5rem;
    padding: 1.15rem;
  }
}

@media (max-width: 430px) {
  .shell {
    width: min(calc(100% - 1.25rem), var(--shell));
  }

  .topline {
    font-size: 0.67rem;
  }

  .brand-mark {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 0.64rem;
  }

  .hero {
    min-height: 27rem;
    padding-top: 3rem;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.9rem);
  }

  .section-code {
    display: none;
  }

  .hero-index > div {
    padding-inline: 0.55rem;
  }

  .hero-index > div:first-child {
    padding-left: 0;
  }

  .catalog-tools {
    position: relative;
  }

  .product-grid {
    gap: 1.1rem;
  }

  .card-meta {
    min-height: 10.8rem;
    padding: 1rem;
  }

  .card-color,
  .card-variant {
    font-size: 0.875rem;
  }

  .select-button {
    width: 100%;
    padding-inline: 0.45rem;
  }

  .selection-bar .button {
    min-width: 8.9rem;
    padding-inline: 0.8rem;
  }

  .selection-dialog-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .selection-dialog-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
