:root {
  --ink: #0c0c0c;
  --paper: #fafafa;
  --paper-2: #f0f0f0;
  --line: #d4d4d4;
  --muted: #5a5a5a;
  --focus: #0c0c0c;
  --radius: 0;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --shell: min(1080px, calc(100% - 2rem));
  --stitch: repeating-linear-gradient(
    90deg,
    var(--ink) 0 5px,
    transparent 5px 11px
  );
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Firma: línea de puntada */
.stitch {
  height: 2px;
  background-image: var(--stitch);
  background-size: auto 2px;
  background-repeat: repeat-x;
}

.shell-stitch {
  width: var(--shell);
  margin: 0 auto 3rem;
}

/* ——— Announce ——— */
.announce {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  font-size: clamp(0.7rem, 2.2vw, 0.8rem);
  letter-spacing: 0.04em;
  padding: 0.55rem 1rem;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1.25rem;
  padding: 1rem 0 0.85rem;
}

.header-inner .brand {
  margin-right: auto;
}

.header-inner .eyebrow {
  margin: 0;
}

.header-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  padding: 0.5rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  white-space: nowrap;
}

.header-wa:hover {
  background: #2a2a2a;
}

.header-wa:active {
  transform: translateY(1px);
}

.header-wa svg {
  display: block;
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .header-inner {
    flex-wrap: wrap;
    row-gap: 0.25rem;
  }

  .header-inner .eyebrow {
    order: 3;
    flex: 1 0 100%;
  }

  .header-wa {
    padding: 0.45rem 0.7rem;
    font-size: 0.75rem;
  }
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6vw, 2.9rem);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-sm {
  font-size: 1.75rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* ——— Hero ——— */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  min-height: min(92vh, 920px);
  background: var(--paper-2);
}

.hero-media {
  order: -1;
  margin: 0;
  min-height: 48vh;
  overflow: hidden;
  background: #e8e8e8;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 48vh;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1);
}

.hero-copy {
  padding: 2rem 0 2.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.hero-copy .eyebrow {
  color: var(--ink);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 7.2vw, 3.35rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 14ch;
}

.hero-lead {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-secondary {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 0.5rem;
  width: 100%;
}

.hero-actions .btn {
  margin-top: 0;
  width: auto;
}

@media (max-width: 520px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (min-width: 600px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    column-gap: 1.25rem;
  }

  .hero-media {
    order: 0;
    min-height: auto;
  }

  .hero-media img {
    min-height: 100%;
  }

  .hero-copy {
    justify-content: center;
    padding: 2.5rem 1.5rem 2.5rem 0;
    padding-right: max(1.5rem, calc((100vw - 1080px) / 2 + 1rem));
    width: auto;
    max-width: none;
    margin-left: 0;
  }
}

/* ——— Proof strip ——— */
.proof-strip {
  border-block: 1px solid var(--ink);
  background: var(--paper);
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
  padding: 1rem 0;
  font-size: 0.92rem;
  font-weight: 500;
}

.proof-row p {
  margin: 0;
}

.proof-dot {
  width: 4px;
  height: 4px;
  background: var(--ink);
  border-radius: 50%;
}

/* ——— Trust ——— */
.trust {
  padding: 3.5rem 0 2.5rem;
}

.trust-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.trust-grid li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.85rem;
  row-gap: 0.15rem;
  align-items: start;
}

.trust-icon {
  grid-row: 1 / span 2;
  color: var(--ink);
  display: flex;
  margin-top: 0.1rem;
}

.trust-grid strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.trust-grid span:last-child {
  color: var(--muted);
  font-size: 0.88rem;
}

@media (min-width: 720px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* ——— Ideas ——— */
.ideas {
  padding: 4rem 0 2.5rem;
}

.ideas-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}

.idea-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 1.4rem 1.25rem 1.3rem;
  border: 1px solid var(--ink);
  background: #fff;
}

.idea-icon {
  color: var(--ink);
  display: flex;
  margin-bottom: 0.2rem;
}

.idea-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}

.idea-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

.idea-card .btn {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  padding: 0.5rem 0.85rem;
}

.ideas-wa {
  margin: 1.75rem 0 0;
  text-align: center;
}

.ideas-wa-link {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.ideas-wa-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

@media (min-width: 640px) {
  .ideas-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

@media (min-width: 960px) {
  .ideas-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ——— Section heads ——— */
.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0.35rem 0 0.5rem;
  line-height: 1.15;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

.panel-subtitle {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  margin: 1.5rem 0 0.35rem;
}

#design-position-block {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}

#preview-prenda-area {
  margin-top: 1rem;
}

.wizard-section .section-head {
  max-width: 800px;
  margin-inline: auto;
}
.wizard-section {
  padding: 4rem 0 4.5rem;
  scroll-margin-top: 5.75rem;
}

.wizard-alt {
  max-width: 800px;
  margin: 0 auto 1.25rem;
}

.wizard-alt .btn {
  width: auto;
  max-width: 100%;
  margin-left: 0;
  font-size: 0.88rem;
  padding: 0.65rem 1rem;
  white-space: normal;
  text-align: center;
}

.wizard {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 800px;
  margin-inline: auto;
  border: 1px solid var(--ink);
  padding: 1.6rem 1.35rem 1.7rem;
  background: #fff;
  box-shadow: 0 12px 40px rgba(12, 12, 12, 0.07);
}

@media (min-width: 720px) {
  .wizard {
    padding: 2.25rem 2.25rem 2.35rem;
  }
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.steps li {
  position: relative;
  padding-right: 0.75rem;
}

.steps li:not(:last-child)::after {
  content: '·';
  position: absolute;
  right: 0;
  color: var(--line);
}

.steps li.is-current {
  color: var(--ink);
  font-weight: 600;
}

.steps li.is-done {
  color: var(--ink);
  opacity: 0.55;
}

.panel-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 500;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.panel-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: 36rem;
}

.panel[data-step='diseno'] .panel-lead {
  margin-bottom: 1.75rem;
}

.panel[data-step='diseno'] .mode-row {
  margin-bottom: 1.35rem;
}

.panel[data-step='diseno'] #design-sugerido,
.panel[data-step='diseno'] #design-libre {
  margin-bottom: 1.5rem;
}

.grid {
  display: grid;
  gap: 0.75rem;
}

.products {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.designs {
  grid-template-columns: repeat(auto-fill, minmax(150px, 180px));
  justify-content: start;
  gap: 1rem;
}

.choice {
  appearance: none;
  border: 1px solid var(--ink);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  padding: 1rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.product-choice {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.product-carousel,
.product-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--paper-2);
  border-bottom: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
}

.product-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.55s ease;
  background: var(--paper-2);
}

.product-slide.is-active {
  opacity: 1;
}

.product-choice .choice-name {
  padding: 0.75rem 0.85rem 0.15rem;
}

.product-choice .choice-meta {
  padding: 0 0.85rem 0.85rem;
}

.product-choice:hover,
.product-choice.is-selected {
  background: var(--ink);
  color: var(--paper);
}

.product-choice:hover .product-placeholder,
.product-choice.is-selected .product-placeholder {
  color: var(--paper);
  opacity: 0.85;
}

.choice:hover {
  background: var(--ink);
  color: var(--paper);
}

.choice.is-selected {
  background: var(--ink);
  color: var(--paper);
}

.choice-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.choice-meta {
  font-size: 0.85rem;
  opacity: 0.8;
}

.design-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  max-width: 180px;
}

.design-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #fff;
  border-bottom: 1px solid var(--ink);
  filter: grayscale(1);
}

.design-card .choice-name {
  padding: 0.75rem 0.85rem 0.9rem;
  font-size: 1.15rem;
  margin-bottom: 0;
}

.chip-row,
.mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#prenda-extra-row {
  margin-top: 1rem;
}

.chip,
.mode-btn {
  appearance: none;
  border: 1px solid var(--ink);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.chip:hover,
.mode-btn:hover,
.chip.is-selected,
.mode-btn.is-active {
  background: var(--ink);
  color: var(--paper);
}

.chip.is-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.color-swatch {
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--ink);
  flex-shrink: 0;
}

.prenda-preview {
  margin: 1.25rem 0 0;
  border: 1px solid var(--ink);
  border-bottom: none;
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 1rem 1rem 0.75rem;
}

.prenda-preview-host {
  width: min(100%, 280px);
}

.prenda-preview-host.is-fotos {
  width: min(100%, 320px);
}

.prenda-foto-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--paper-2);
  overflow: hidden;
}

.prenda-foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.32s ease;
  pointer-events: none;
}

.prenda-foto.is-front {
  opacity: 1;
  z-index: 1;
}

.prenda-foto-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  background: var(--paper-2);
}

.prenda-foto-placeholder[hidden] {
  display: none !important;
}

.prenda-preview-fallback {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 2rem 1rem;
}

.color-pickers {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0;
  padding: 0.75rem 1rem 1rem;
  border: 1px solid var(--ink);
  border-top: none;
  background: var(--paper-2);
}

.color-group-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.fieldset {
  border: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.fieldset legend {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.5rem;
  padding: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.field > span {
  font-size: 0.85rem;
  color: var(--muted);
}

.field input:not([type='file']),
.field textarea {
  font: inherit;
  color: inherit;
  border: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.85);
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
}

.field input:not([type='file']):focus,
.field textarea:focus,
.choice:focus-visible,
.chip:focus-visible,
.mode-btn:focus-visible,
.btn:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.field input:not([type='file']):disabled,
.field textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.hint {
  color: var(--muted);
  font-size: 0.8rem;
}

.gen-limit-hint {
  margin: 0 0 1.25rem;
}

.file-field {
  margin-bottom: 0.75rem;
}

.file-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.5rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.file-drop:hover,
.file-drop.is-dragover {
  background: var(--ink);
  color: var(--paper);
}

.file-drop:hover .file-drop-hint,
.file-drop.is-dragover .file-drop-hint {
  color: rgba(250, 250, 250, 0.72);
}

.file-drop:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.file-drop.has-file {
  background: var(--paper-2);
}

.file-drop.has-file:hover {
  background: var(--ink);
  color: var(--paper);
}

.file-drop-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  pointer-events: none;
}

.file-drop-cta {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.file-drop-hint {
  font-size: 0.8rem;
  color: var(--muted);
}

.design-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
}

.mockup-area {
  margin-top: 0.5rem;
}

.mockup-placeholder,
.mockup-loading {
  border: 1px dashed var(--line);
  min-height: 200px;
  display: grid;
  place-items: center;
  gap: 0.75rem;
  color: var(--muted);
  background: var(--paper-2);
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.mockup-loading p {
  margin: 0;
}

.mockup-bordando {
  gap: 1.15rem;
  min-height: 220px;
}

.bordando-stage {
  position: relative;
  width: min(100%, 220px);
  height: 88px;
}

.bordando-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.bordando-path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: butt;
  stroke-linejoin: round;
  /* Pares de puntada + gap final = pathLength; al animar dashoffset se "cose" */
  stroke-dasharray: 5 6 5 6 5 6 5 6 5 6 5 6 5 6 5 6 5 6 100;
  animation: bordando-sew 2.8s ease-in-out infinite;
}

.bordando-needle {
  position: absolute;
  top: 0;
  left: 0;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  background: var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--paper-2);
  offset-path: path('M16 52 C 48 18, 72 78, 108 38 S 168 18, 184 48');
  offset-rotate: 0deg;
  animation: bordando-needle 2.8s ease-in-out infinite;
}

.bordando-phrases {
  position: relative;
  width: min(100%, 16rem);
  min-height: 1.5em;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
}

.bordando-phrase {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  animation: bordando-phrase 10s ease-in-out infinite;
}

.bordando-phrase:nth-child(1) {
  animation-delay: 0s;
}

.bordando-phrase:nth-child(2) {
  animation-delay: 2.5s;
}

.bordando-phrase:nth-child(3) {
  animation-delay: 5s;
}

.bordando-phrase:nth-child(4) {
  animation-delay: 7.5s;
}

@keyframes bordando-sew {
  0% {
    stroke-dashoffset: 100;
    opacity: 0.35;
  }
  12% {
    opacity: 1;
  }
  72% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  88%,
  100% {
    stroke-dashoffset: 0;
    opacity: 0.2;
  }
}

@keyframes bordando-needle {
  0% {
    offset-distance: 0%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  72% {
    offset-distance: 100%;
    opacity: 1;
  }
  88%,
  100% {
    offset-distance: 100%;
    opacity: 0;
  }
}

@keyframes bordando-phrase {
  0%,
  22% {
    opacity: 1;
  }
  28%,
  100% {
    opacity: 0;
  }
}

.spinner {
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  justify-self: center;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.mockup-result {
  margin: 0;
  border: 1px solid var(--ink);
  background: #fff;
}

.mockup-result img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background:
    linear-gradient(45deg, #eee 25%, transparent 25%) 0 0 / 16px 16px,
    linear-gradient(-45deg, #eee 25%, transparent 25%) 0 8px / 16px 16px,
    linear-gradient(45deg, transparent 75%, #eee 75%) 8px -8px / 16px 16px,
    linear-gradient(-45deg, transparent 75%, #eee 75%) -8px 0 / 16px 16px,
    #fff;
}

.mockup-result figcaption {
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.attempt-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.attempt-thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 1px solid var(--line);
  background:
    linear-gradient(45deg, #eee 25%, transparent 25%) 0 0 / 10px 10px,
    linear-gradient(-45deg, #eee 25%, transparent 25%) 0 5px / 10px 10px,
    linear-gradient(45deg, transparent 75%, #eee 75%) 5px -5px / 10px 10px,
    linear-gradient(-45deg, transparent 75%, #eee 75%) -5px 0 / 10px 10px,
    #fff;
  cursor: pointer;
  overflow: hidden;
}

.attempt-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.attempt-thumb.is-selected {
  border-color: var(--ink);
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.attempt-thumb:disabled {
  cursor: default;
  opacity: 0.7;
}

.summary-thumb {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
  border: 1px solid var(--ink);
  background: #fff;
  margin-bottom: 0.85rem;
}

.summary {
  border-top: 1px solid var(--ink);
  padding-top: 1rem;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.summary dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  margin: 0;
}

.summary dt {
  color: var(--muted);
}

.summary dd {
  margin: 0;
}

.summary .total {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  margin-top: 0.5rem;
}

.btn {
  appearance: none;
  border: 1px solid var(--ink);
  font: inherit;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  margin-left: auto;
}

.btn-primary:hover {
  background: #2a2a2a;
}

.hero .btn-primary,
.hero-actions .btn-primary,
.wizard-alt .btn-primary,
.design-actions .btn-primary {
  margin-left: 0;
}

.design-actions .btn-primary {
  min-width: 11rem;
  padding: 0.8rem 1.35rem;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn:disabled {
  cursor: not-allowed;
  transform: none;
}

.btn-primary:disabled,
.btn-primary:disabled:hover {
  background: var(--paper-2);
  color: var(--muted);
  border-color: var(--line);
  opacity: 1;
}

.btn-ghost:disabled,
.btn-ghost:disabled:hover {
  opacity: 0.4;
  background: transparent;
  color: var(--ink);
}

#whatsapp-link {
  width: 100%;
  margin: 0 0 0.75rem;
}

#restart-btn {
  width: 100%;
}

/* ——— Clientes marquee ——— */
.clientes {
  padding: 1.25rem 0 0;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.clientes-marquee {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.clientes-marquee-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  animation: clientes-marquee 40s linear infinite;
  will-change: transform;
}

@keyframes clientes-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@supports not (offset-path: path('M0 0')) {
  .bordando-needle {
    offset-path: none;
    animation: bordando-needle-fallback 2.8s ease-in-out infinite;
  }

  @keyframes bordando-needle-fallback {
    0% {
      left: 8%;
      top: 65%;
      opacity: 0;
    }
    10% {
      opacity: 1;
    }
    35% {
      left: 36%;
      top: 28%;
    }
    55% {
      left: 54%;
      top: 48%;
    }
    72% {
      left: 92%;
      top: 60%;
      opacity: 1;
    }
    88%,
    100% {
      left: 92%;
      top: 60%;
      opacity: 0;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .clientes-marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    padding: 0 1rem 1rem;
  }

  .bordando-path,
  .bordando-needle,
  .bordando-phrase {
    animation: none;
  }

  .bordando-path {
    stroke-dasharray: 5 6;
    stroke-dashoffset: 0;
    opacity: 1;
  }

  .bordando-needle {
    offset-distance: 100%;
    opacity: 1;
  }

  .bordando-phrase:first-child {
    opacity: 1;
  }
}

.clientes-slide {
  margin: 0;
  flex: 0 0 min(42vw, 220px);
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  background: var(--paper-2);
  overflow: hidden;
}

.clientes-slide img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.clientes-marquee-track:not(.is-ready) {
  animation-play-state: paused;
}

/* ——— FAQ ——— */
.faq {
  padding: 3.5rem 0 4.5rem;
}

.faq-list {
  border-top: 1px solid var(--ink);
}

.faq-list details {
  border-bottom: 1px solid var(--ink);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 0;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: '−';
}

.faq-list details p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  max-width: 40rem;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--paper);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 0 2.5rem;
}

.footer-brand p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.footer-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
}

.footer-nav a:hover {
  border-bottom-color: var(--ink);
}

.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-wa svg {
  display: block;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .nav-bar {
    flex-direction: column-reverse;
  }

  .btn-primary,
  #btn-back {
    width: 100%;
    margin-left: 0;
  }

  .proof-dot {
    display: none;
  }

  .proof-row {
    flex-direction: column;
    text-align: center;
  }
}
