:root {
  --ink: #050505;
  --paper: #f4f4f4;
  --panel: #ffffff;
  --muted: #5f5f5f;
  --soft: #ececec;
  --line: #d9d9d9;
  --dark-line: #242424;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.16);
  --radius: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 64px;
  padding: 0 clamp(20px, 2.7vw, 42px);
  background: rgba(244, 244, 244, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-width: 210px;
}

.brand strong {
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.brand span {
  color: #555;
  font-size: 0.56rem;
  letter-spacing: 0.42em;
}

.brand-logo {
  display: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px clamp(10px, 1.4vw, 18px);
}

.nav-links a {
  color: #3f3f3f;
  font-size: 0.78rem;
  font-weight: 700;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease, color 160ms ease;
}

.header-cta {
  color: #fff;
  background: #050505;
}

.button:hover:not(:disabled),
.header-cta:hover {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.44;
}

.button.primary {
  color: #050505;
  background: #fff;
}

.button.primary.light {
  color: #050505;
  background: #fff;
}

.button.secondary,
.button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.18);
}

.section-shell {
  width: min(100% - 8vw, 1390px);
  margin-inline: auto;
}

.eyebrow,
.panel-kicker {
  display: inline-block;
  margin-bottom: 18px;
  color: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: grid;
  align-content: end;
  min-height: calc(100svh - 64px);
  padding: clamp(70px, 8vw, 110px) clamp(22px, 2.7vw, 42px) clamp(42px, 5vw, 60px);
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.68) 42%, rgba(0, 0, 0, 0.76)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.08) 55%, rgba(0, 0, 0, 0.58)),
    url("assets/hero-printer.png") center / cover no-repeat;
}

.hero-copy {
  width: min(760px, 100%);
}

.hero h1 {
  margin-bottom: 22px;
  font-size: clamp(4.4rem, 7.4vw, 7.6rem);
  line-height: 0.78;
  font-weight: 950;
  letter-spacing: -0.085em;
}

.hero h1 span {
  display: block;
  color: rgba(255, 255, 255, 0.56);
}

.hero p {
  max-width: 760px;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
  margin-top: clamp(42px, 7vw, 72px);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-stats div {
  min-height: 102px;
  padding: 24px 26px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stats div:first-child {
  border-left: 0;
}

.hero-stats strong {
  display: block;
  font-size: clamp(1.75rem, 2.4vw, 2rem);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-stats span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.marquee-strip {
  display: flex;
  align-items: center;
  min-height: 52px;
  color: #cfcfcf;
  background: #030303;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee-slide 28s linear infinite;
}

.marquee-strip:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  position: relative;
  flex: 0 0 auto;
  padding-right: clamp(44px, 5vw, 84px);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-track span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 clamp(28px, 4vw, 56px) 0 clamp(18px, 2vw, 32px);
  border-radius: 50%;
  background: #5b5b5b;
  vertical-align: 2px;
}

@keyframes marquee-slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.about-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.76fr) minmax(420px, 1fr);
  gap: clamp(38px, 8vw, 110px);
  padding: clamp(92px, 10vw, 138px) 0;
}

.about-section h2,
.sectors-section h2,
.steps-section h2,
.summary-card h2,
.checkout-card h2,
.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(3rem, 5vw, 4.9rem);
  line-height: 0.88;
  font-weight: 950;
  letter-spacing: -0.085em;
}

.about-copy p {
  max-width: 820px;
  margin-bottom: 30px;
  font-size: clamp(1.06rem, 1.55vw, 1.28rem);
  line-height: 1.45;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 58px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 34px;
  font-size: 0.95rem;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  color: #fff;
  background: #050505;
  font-size: 0.78rem;
  font-weight: 900;
}

.sectors-section {
  padding: 0 0 clamp(64px, 8vw, 96px);
}

.sectors-section h2 {
  max-width: 690px;
  margin-bottom: 48px;
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.sector-card {
  position: relative;
  min-height: 496px;
  overflow: hidden;
  color: #fff;
  background: #050505;
}

.sector-card.sector-wide {
  min-height: 560px;
}

.sector-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.sector-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 46%, rgba(0, 0, 0, 0.88));
}

.sector-card:hover img {
  transform: scale(1.035);
}

.sector-card-copy {
  position: absolute;
  z-index: 1;
  left: clamp(24px, 3vw, 34px);
  right: clamp(24px, 3vw, 34px);
  bottom: clamp(24px, 3vw, 34px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 24px;
  align-items: end;
}

.sector-card-copy span {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.sector-card-copy h3 {
  margin: 0;
  max-width: 560px;
  font-size: clamp(1.85rem, 2.8vw, 2.65rem);
  line-height: 0.86;
  font-weight: 950;
  letter-spacing: -0.075em;
}

.sector-card-copy a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  font-size: 1.25rem;
}

.steps-section {
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(620px, 1.22fr);
  gap: clamp(70px, 10vw, 155px);
  align-items: start;
  padding: clamp(104px, 8.5vw, 138px) max(6vw, calc((100vw - 1310px) / 2)) clamp(112px, 8.2vw, 126px);
  color: #fff;
  background: #030303;
}

.steps-intro {
  padding-top: 3px;
}

.steps-section h2 span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
}

.steps-intro p {
  max-width: 430px;
  margin: 28px 0 35px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
  line-height: 1.58;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-left: 1px solid var(--dark-line);
  border-top: 0;
}

.steps-grid article {
  min-height: 160px;
  padding: 28px 24px 26px;
  border-right: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
}

.steps-grid article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.steps-grid span {
  color: #8aa1ad;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.24em;
}

.steps-grid h3 {
  margin: 18px 0 13px;
  font-size: 1.16rem;
  line-height: 1.1;
}

.steps-grid p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.45;
}

.factory-compare {
  padding: clamp(88px, 8vw, 126px) 0 clamp(96px, 8vw, 134px);
}

.factory-compare h2,
.cases-section h2 {
  max-width: 820px;
  margin-bottom: 48px;
  font-size: clamp(3rem, 5vw, 4.6rem);
  line-height: 0.9;
  font-weight: 950;
  letter-spacing: -0.085em;
}

.compare-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.compare-column {
  padding: clamp(34px, 4vw, 54px);
}

.compare-column.factory {
  color: #fff;
  background: #030303;
}

.compare-kicker {
  display: block;
  margin-bottom: 26px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.compare-column.factory .compare-kicker {
  color: #8aa1ad;
}

.compare-column ul,
.cases-grid {
  margin: 0;
  padding: 0;
  list-style: none;
}

.compare-column li {
  position: relative;
  margin-top: 20px;
  padding-left: 34px;
  font-size: 1.02rem;
  line-height: 1.35;
}

.compare-column li:first-child {
  margin-top: 0;
}

.compare-column li::before {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.compare-column.distributor li::before {
  content: "-";
  color: #777;
  background: #e0e0e0;
}

.compare-column.factory li::before {
  content: "+";
  color: #050505;
  background: #fff;
}

.cases-section {
  padding: clamp(88px, 8vw, 126px) 0 clamp(86px, 8vw, 116px);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.cases-grid article {
  display: grid;
  align-content: start;
  min-height: 210px;
  padding: 28px 26px 24px;
  border: 1px solid var(--line);
  background: #fff;
}

.cases-grid article > span {
  margin-bottom: 24px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.cases-grid h3 {
  margin-bottom: 14px;
  font-size: 1.18rem;
  line-height: 1.12;
}

.cases-grid p {
  margin-bottom: 28px;
  color: #333;
  font-size: 0.93rem;
  line-height: 1.45;
}

.cases-grid a {
  align-self: end;
  width: max-content;
  color: #333;
  font-size: 1.22rem;
}

.customizer-section,
.summary-section,
.checkout-section {
  padding: clamp(42px, 5vw, 76px) 0;
}

.customizer-section {
  min-height: calc(100svh - 64px);
  background: linear-gradient(180deg, #f4f4f4 0%, #ececec 100%);
}

.section-heading-simple {
  grid-template-columns: 1fr;
  margin-bottom: 28px;
}

.hero-direct {
  min-height: min(88svh, 820px);
  align-content: center;
}

.hero-direct .hero-copy {
  width: min(820px, 100%);
}

.help-strip {
  padding: 0 0 clamp(28px, 4vw, 48px);
  margin-top: -28px;
  position: relative;
  z-index: 2;
}

.help-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.help-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.06em;
  font-weight: 950;
  line-height: 0.95;
}

.help-card p {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
  line-height: 1.45;
}

.order-steps {
  padding: clamp(42px, 6vw, 72px) 0;
}

.order-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.order-steps-grid article {
  padding: 24px 22px;
  border: 1px solid var(--line);
  background: #fff;
}

.order-steps-grid span {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.order-steps-grid h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.order-steps-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.category-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.apps-section {
  padding: 0 0 clamp(48px, 7vw, 80px);
}

.apps-section h2 {
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  letter-spacing: -0.07em;
  font-weight: 950;
  line-height: 0.92;
}

.apps-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.apps-grid span {
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.92rem;
  font-weight: 700;
}

.fabric-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.fabric-type-card {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 6px;
  align-items: center;
  cursor: pointer;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  padding: 5px 6px;
  min-height: 0;
}

.fabric-type-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fabric-type-media {
  display: block;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ddd;
}

.fabric-swatch {
  background-size: cover;
}

.fabric-swatch-licra {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.35), rgba(0,0,0,0.05)),
    repeating-linear-gradient(0deg, #dfe4e1 0 1px, #ecefec 1px 3px);
}

.fabric-swatch-terciopelo {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(0,0,0,0.35)),
    repeating-linear-gradient(0deg, #241c28 0 2px, #322833 2px 4px);
}

.fabric-swatch-saten {
  background:
    linear-gradient(115deg, rgba(255,255,255,0.55) 10%, rgba(230,214,190,0.2) 42%, rgba(0,0,0,0.12) 78%),
    #efe4d4;
}

.fabric-type-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fabric-type-meta {
  display: grid;
  gap: 0;
  padding: 0;
  min-width: 0;
}

.fabric-type-meta strong {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.fabric-type-meta small {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 700;
}

.fabric-type-card:has(input:checked) {
  border-color: #050505;
  box-shadow: inset 0 0 0 1px #050505;
}

.segmented-control-compact {
  border-radius: 10px;
}

.segmented-control-compact span {
  min-height: 26px;
  padding: 0 6px;
  font-size: 0.64rem;
  border-radius: 8px;
}

.upload-box-compact {
  padding: 8px 10px;
  gap: 4px;
}

.upload-box-compact .upload-icon {
  width: 22px;
  height: 22px;
  font-size: 1.2rem;
}

.upload-box-compact strong {
  font-size: 0.78rem;
}

.upload-box-compact small {
  font-size: 0.62rem;
}

.pattern-help,
.discount-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.discount-hint {
  margin-top: -2px;
  margin-bottom: 4px;
  font-weight: 700;
}

.canvas-stage-compact {
  height: clamp(420px, 52svh, 620px) !important;
}

.range-row-with-action {
  grid-template-columns: 1fr auto auto;
  align-items: center;
}

.range-row-with-action input[type="range"] {
  grid-column: 1 / -1;
}

.mini-button {
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
}

.mini-button:hover {
  border-color: #050505;
  background: #050505;
  color: #fff;
}

.drag-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

canvas.has-image {
  cursor: grab;
}

canvas.has-image.is-dragging {
  cursor: grabbing;
}

.contact-card {
  align-items: center;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.contact-links a {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .help-card,
  .order-steps-grid,
  .fabric-type-grid {
    grid-template-columns: 1fr;
  }

  .help-card .button {
    width: 100%;
  }
}

.section-heading {
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.customizer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 350px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.customizer-grid .controls-panel {
  order: 1;
}

.customizer-grid .preview-panel {
  order: 2;
}

.wizard-step {
  display: grid;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.wizard-step:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.wizard-step-header {
  display: grid;
  gap: 4px;
}

.wizard-step-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.wizard-step-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.wizard-next,
.wizard-back {
  min-height: 42px;
  font-size: 0.82rem;
}

.mobile-step-nav {
  display: none;
}

.glass-panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.controls-panel {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: clamp(10px, 1.2vw, 14px);
}

.panel-block,
.mode-controls {
  display: grid;
  gap: 8px;
}

.upload-box {
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: 12px;
  border: 1px dashed #7a7a7a;
  background: #f7f7f7;
  cursor: pointer;
  transition: transform 160ms ease;
}

.upload-box:hover {
  transform: translateY(-2px);
}

.upload-box.is-dragging {
  border-color: #050505;
  background: #fff;
  box-shadow: inset 0 0 0 2px #050505;
  transform: translateY(-2px);
}

.upload-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  background: #050505;
}

.upload-box strong {
  font-size: 0.92rem;
  font-weight: 900;
  text-transform: uppercase;
}

.upload-box small,
.control-label,
.number-field span,
.note-field span,
.price-pill span,
.range-row label,
.color-field span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
}

.segmented-control.is-three {
  grid-template-columns: 1fr 1fr 1fr;
  border-radius: 18px;
}

.segmented-control.is-three span {
  min-height: 48px;
  padding: 6px 4px;
  border-radius: 14px;
  text-align: center;
  line-height: 1.15;
}

.segmented-control.is-three small {
  display: block;
  margin-top: 2px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  opacity: 0.75;
}

.segmented-control label {
  min-width: 0;
}

.segmented-control input {
  position: absolute;
  opacity: 0;
}

.segmented-control span {
  display: grid;
  place-items: center;
  min-height: 32px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease;
}

.segmented-control input:checked + span {
  color: #fff;
  background: #050505;
}

.color-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.color-field input {
  width: 42px;
  height: 28px;
  padding: 2px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.range-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 10px;
  align-items: center;
}

.range-row output {
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
}

input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: #050505;
}

.is-hidden {
  display: none;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.toggle-row input {
  width: 20px;
  height: 20px;
  accent-color: #050505;
}

.compact-grid {
  grid-template-columns: 1fr 1fr;
}

.number-field,
.note-field,
.price-pill {
  display: grid;
  gap: 5px;
}

.number-field input,
.note-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  outline: none;
}

.number-field input {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.92rem;
  font-weight: 900;
}

.note-field textarea {
  resize: vertical;
  min-height: 52px;
  padding: 9px 10px;
  line-height: 1.3;
}

.number-field input:focus,
.note-field textarea:focus {
  border-color: #050505;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
}

.price-pill {
  justify-content: center;
  min-height: 34px;
  padding: 5px 10px;
  color: #fff;
  background: #050505;
}

.price-pill span {
  color: rgba(255, 255, 255, 0.68);
}

.price-pill strong {
  font-size: 0.98rem;
}

.info-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.info-chips span {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.preview-panel {
  display: grid;
  grid-template-rows: auto auto;
  min-height: 0;
  align-content: start;
  overflow: hidden;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px clamp(12px, 1.6vw, 18px);
  border-bottom: 1px solid var(--line);
}

.preview-toolbar .eyebrow {
  margin-bottom: 4px;
}

.preview-toolbar h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
  font-weight: 950;
  letter-spacing: -0.07em;
}

.preview-toolbar .button.ghost {
  min-height: 40px;
  color: #050505;
  border-color: var(--line);
  background: #fff;
}

.canvas-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  width: 100%;
  height: clamp(420px, 52svh, 620px);
  overflow: hidden;
  padding: 4px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    #ebebeb;
  background-size: 34px 34px;
}

.canvas-stage.is-vertical {
  height: clamp(420px, 54svh, 640px);
}

.canvas-stage.is-horizontal {
  height: clamp(420px, 52svh, 620px);
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

canvas.is-horizontal {
  width: 100%;
}

.empty-state {
  position: absolute;
  display: grid;
  gap: 8px;
  justify-items: center;
  max-width: 320px;
  padding: 22px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  text-align: center;
  box-shadow: var(--shadow);
  transition: opacity 180ms ease, transform 180ms ease;
}

.empty-state strong {
  font-weight: 900;
  text-transform: uppercase;
}

.empty-state.is-hidden {
  display: grid;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.summary-card,
.checkout-card {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: stretch;
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.summary-card p,
.checkout-card p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.55;
}

.summary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.summary-list div {
  padding: 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.summary-list dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.summary-list dd {
  margin: 8px 0 0;
  font-size: clamp(2rem, 3.2vw, 3.7rem);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.checkout-card {
  color: #fff;
  background: #050505;
}

.checkout-card .eyebrow,
.form-message {
  color: rgba(255, 255, 255, 0.68);
}

.checkout-card p {
  color: rgba(255, 255, 255, 0.72);
}

.form-message.has-error {
  color: #ffb2a9;
}

.checkout-button {
  align-self: center;
  min-width: 260px;
  color: #050505;
  background: #fff;
}

.customizer-buy-button {
  width: 100%;
  min-width: 0;
  margin-top: 4px;
  color: #fff;
  background: #050505;
}

.customizer-buy-message {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.35;
}

.customizer-buy-message.has-error {
  color: #b42318;
}

.site-footer {
  padding: clamp(70px, 7vw, 106px) clamp(26px, 3vw, 48px) 96px;
  color: #fff;
  background: #030303;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(320px, 1.35fr) minmax(140px, 0.5fr) minmax(140px, 0.5fr) minmax(220px, 0.75fr);
  gap: clamp(42px, 8vw, 100px);
  padding-bottom: 68px;
}

.footer-brand strong {
  display: block;
  margin-bottom: 14px;
  font-size: clamp(4.2rem, 6vw, 5.6rem);
  line-height: 0.9;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.footer-brand p {
  max-width: 390px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.38;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  color: #fff;
  font-size: 0.92rem;
}

.footer-main nav,
.footer-social {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-main nav span,
.footer-social > span {
  margin-bottom: 8px;
  color: #8a8a8a;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.footer-main nav a {
  color: #fff;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.footer-social a::before {
  content: "◎";
  margin-right: 10px;
  font-size: 1.1rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto;
    gap: 16px;
  }

  .nav-links {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .hero-stats,
  .about-section,
  .steps-section,
  .compare-panel,
  .customizer-grid,
  .summary-card,
  .checkout-card {
    grid-template-columns: 1fr;
  }

  .sector-grid {
    grid-template-columns: 1fr;
  }

  .cases-grid,
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    padding-block: 14px;
  }

  .header-cta {
    min-height: 42px;
    padding: 0 16px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: auto;
    padding-top: 84px;
  }

  .hero h1 {
    font-size: clamp(4rem, 18vw, 5.9rem);
  }

  .hero-stats {
    display: grid;
  }

  .hero-stats div {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .about-section,
  .steps-section,
  .customizer-section,
  .summary-section,
  .checkout-section {
    padding-inline: 18px;
  }

  .section-shell {
    width: 100%;
  }

  .feature-list,
  .steps-grid,
  .cases-grid,
  .footer-main,
  .section-heading,
  .compact-grid,
  .summary-list {
    grid-template-columns: 1fr;
  }

  .about-section h2,
  .sectors-section h2,
  .steps-section h2,
  .summary-card h2,
  .checkout-card h2,
  .section-heading h2 {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .sector-card,
  .sector-card.sector-wide {
    min-height: 440px;
  }

  .compare-column {
    padding: 28px 22px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .preview-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .canvas-stage {
    min-height: 450px;
  }

  .canvas-stage.is-vertical,
  .canvas-stage.is-horizontal {
    height: auto;
  }

  canvas {
    min-height: 420px;
  }
}

.section-lead {
  max-width: 54ch;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.45;
}

.catalog-section {
  padding: clamp(42px, 6vw, 80px) 0;
}

.catalog-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.catalog-item {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(180px, 0.7fr);
  gap: 0;
  min-height: 210px;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}

.catalog-item-alt {
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.15fr);
}

.catalog-item-alt .catalog-item-copy {
  order: 2;
}

.catalog-item-alt .catalog-item-visual {
  order: 1;
}

.catalog-item-copy {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: clamp(22px, 3vw, 34px);
}

.catalog-kicker {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.catalog-item-copy h3 {
  margin: 0;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  letter-spacing: -0.05em;
  font-weight: 950;
  line-height: 0.95;
}

.catalog-item-copy p {
  margin: 0;
  max-width: 48ch;
  color: var(--muted);
  line-height: 1.45;
}

.text-link {
  width: max-content;
  margin-top: 6px;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.catalog-item-visual {
  min-height: 210px;
  background-position: center;
  background-size: cover;
}

.catalog-visual-moda {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.35)),
    url("assets/card-moda.png");
}

.catalog-visual-carnaval {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.4)),
    url("assets/card-carnaval.png");
}

.catalog-visual-deporte {
  background-image:
    linear-gradient(135deg, rgba(10, 30, 40, 0.35), rgba(0,0,0,0.45)),
    linear-gradient(90deg, #1d2a32 0%, #4a6570 50%, #1d2a32 100%);
}

.catalog-visual-laser {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.55)),
    url("assets/card-laser.png");
}

.catalog-visual-proyecto {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.5)),
    url("assets/card-fabrica.png");
}

.about-section-clean {
  border-top: 1px solid var(--line);
}

.clients-section {
  padding: 0 0 clamp(48px, 7vw, 84px);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.clients-grid article {
  padding: 22px 18px;
  border: 1px solid var(--line);
  background: #fff;
}

.clients-grid h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.clients-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .catalog-item,
  .catalog-item-alt {
    grid-template-columns: 1fr;
  }

  .catalog-item-alt .catalog-item-copy,
  .catalog-item-alt .catalog-item-visual {
    order: initial;
  }

  .catalog-item-visual {
    min-height: 160px;
  }

  .clients-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .clients-grid {
    grid-template-columns: 1fr;
  }
}

.fabric-picker-button {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.fabric-picker-button:hover,
.fabric-dropdown.is-open .fabric-picker-button {
  border-color: #050505;
}

.fabric-picker-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.fabric-picker-meta strong {
  font-size: 0.78rem;
  font-weight: 900;
}

.fabric-picker-meta small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.fabric-picker-chevron {
  color: #050505;
  font-size: 0.85rem;
  line-height: 1;
  transition: transform 140ms ease;
}

.fabric-dropdown.is-open .fabric-picker-chevron {
  transform: rotate(180deg);
}

.fabric-dropdown {
  position: relative;
  z-index: 20;
}

.fabric-dropdown-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  gap: 4px;
  max-height: min(320px, 46vh);
  overflow: auto;
  padding: 6px;
  border: 1px solid #050505;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.fabric-dropdown-panel[hidden] {
  display: none !important;
}

.fabric-dropdown-option {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 6px 7px;
  border: 1px solid transparent;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.fabric-dropdown-option:hover,
.fabric-dropdown-option.is-selected {
  border-color: #050505;
  background: #f7f7f7;
}

.fabric-dropdown-option .fabric-type-media {
  width: 28px;
  height: 28px;
}

.fabric-modal-option-meta {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.fabric-modal-option-meta strong {
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.15;
}

.fabric-modal-option-meta small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
}

.fabric-swatch-sarga1 {
  background:
    repeating-linear-gradient(135deg, #d9d2c5 0 4px, #cfc6b6 4px 8px);
}
.fabric-swatch-sarga2 {
  background:
    repeating-linear-gradient(135deg, #cfc7b8 0 4px, #bdb3a2 4px 8px);
}
.fabric-swatch-sarga3 {
  background:
    repeating-linear-gradient(135deg, #bdb4a4 0 4px, #a89e8d 4px 8px);
}
.fabric-swatch-microfibra {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.4), rgba(0,0,0,0.05)),
    #e7eaed;
}
.fabric-swatch-microfibra_elastica {
  background:
    repeating-linear-gradient(90deg, #dde4e8 0 2px, #d2dbe1 2px 4px);
}
.fabric-swatch-velo {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.15)),
    #f5f2ea;
}
.fabric-swatch-softshell {
  background:
    linear-gradient(135deg, #505a66, #2f3740 55%, #505a66);
}
.fabric-swatch-lino {
  background:
    repeating-linear-gradient(0deg, #e2d5bc 0 2px, #d7c7aa 2px 4px);
}
.fabric-swatch-tejido_deportivo {
  background:
    repeating-linear-gradient(0deg, #d5dde2 0 3px, #c6d0d7 3px 6px);
}
.fabric-swatch-tecnico_perforado {
  background:
    radial-gradient(circle at 30% 30%, rgba(0,0,0,0.18) 0 1.2px, transparent 1.4px),
    radial-gradient(circle at 70% 70%, rgba(0,0,0,0.14) 0 1.2px, transparent 1.4px),
    #cfd6db;
  background-size: 8px 8px, 8px 8px, auto;
}
.fabric-swatch-felpa_sudadera {
  background:
    repeating-linear-gradient(0deg, #d8d2cb 0 2px, #cbc3ba 2px 3px);
}
.fabric-swatch-felpa_lisa {
  background:
    linear-gradient(180deg, #e6e0d8, #ddd7d0);
}

@media (max-width: 900px) {
  .customizer-heading-desktop {
    display: none;
  }

  .customizer-section {
    position: relative;
    min-height: calc(100svh - 64px);
    padding-bottom: 92px;
  }

  .customizer-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .customizer-grid .preview-panel,
  .customizer-grid .controls-panel {
    order: initial;
  }

  .preview-panel {
    position: sticky;
    top: 0;
    z-index: 5;
  }

  .preview-toolbar {
    display: none;
  }

  .canvas-stage,
  .canvas-stage-compact,
  .canvas-stage.is-horizontal,
  .canvas-stage.is-vertical {
    height: clamp(46svh, 52svh, 420px) !important;
    min-height: 280px;
  }

  .controls-panel {
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
  }

  .wizard-step {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    padding: 14px 12px 16px;
    border-bottom: 1px solid var(--line);
  }

  .wizard-step.is-active {
    display: grid;
  }

  .wizard-next,
  .wizard-back {
    display: inline-flex;
  }

  .mobile-step-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    min-height: 72px;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
  }

  .mobile-step-btn {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 8px 4px;
    border: 0;
    background: transparent;
    color: #7a7a7a;
    cursor: pointer;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .mobile-step-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: #111;
    font-size: 1rem;
    line-height: 1;
  }

  .mobile-step-btn.is-active {
    color: #050505;
  }

  .mobile-step-btn.is-active .mobile-step-icon {
    box-shadow: inset 0 0 0 1.5px #050505;
  }

  .fabric-dropdown {
    z-index: 40;
  }

  .fabric-dropdown-panel {
    max-height: min(42vh, 280px);
  }
}

@media (min-width: 901px) {
  .mobile-step-nav {
    display: none !important;
  }

  .wizard-next,
  .wizard-back,
  .wizard-step-actions {
    display: none !important;
  }

  .wizard-step {
    display: grid !important;
  }
}
