/* ════════════════════════════════════════════════════════════════════
   PERSONALIZADOR DE REMERAS — estilos (PLAN-personalizador.md, Fase 1). FUENTE mantenida a mano desde el 12/11/2026.
   Salió de /opt/rueca/Rueca_Personalizador.html (ver extraido/estilos.css). Cambios: sin el @import de Google Fonts (las
   fuentes van por <link> en el <head>, como en el resto del sitio) y, al final, lo del envío (formulario, casilla,
   campo trampa y pantallas «Enviando» / «¡Listo!» / «No pudimos subir»). Al cambiarlo, subir la versión del nombre.
   ════════════════════════════════════════════════════════════════════ */
:root {
  --navy:#081832;
  --teal:#3a9e9d;
  --coral:#ec5a36;
  --paper:#f6f7f8;
  --muted:#73808e;
  --line:#e7ebef;
  --ink:#16283c;
  --mint:#e7f4f2;
  font-family:
    Inter,
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}
button:disabled {
  opacity: .4;
  cursor: not-allowed;
}
h1,
h2,
h3,
h4 {
  font-family:
    Archivo,
    system-ui,
    sans-serif;
}
button {
  transition:
    background .18s,
    color .18s,
    box-shadow .18s;
}
button:hover {
  filter: brightness(.98);
}
.header {
  height: 90px;
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  padding: 0 4.2%;
  gap: 26px;
}
.brand img {
  display: block;
  width: 147px;
  height: auto;
  max-height: 49px;
  object-fit: contain;
}
.header-divider {
  height: 30px;
  width: 1px;
  background: #ffffff30;
}
.studio-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 600;
  line-height: 1.8;
}
.studio-label small {
  display: block;
  letter-spacing: .1px;
  font-weight: 400;
  font-size: 12px;
  color: #a8b6c8;
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 12px;
}
.draft-label {
  color: #a8b6c8;
  font-size: 11px;
}
.header-btn {
  border: 1px solid #ffffff45;
  color: white;
  padding: 11px 16px;
  background: transparent;
  border-radius: 7px;
}
.contact-link {
  font-size: 13px;
}
.contact-link span {
  color: #80cecd;
  margin-left: 10px;
}
main {
  max-width: 1600px;
  margin: auto;
  padding: 38px 4.2% 0;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.6px;
  margin: 0 0 12px;
  color: var(--muted);
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  vertical-align: middle;
  margin-right: 6px;
}
.intro h1 {
  font-size: 36px;
  letter-spacing: -1.4px;
  line-height: 1.15;
  margin: 0 0 10px;
  font-weight: 700;
}
.intro h1 em {
  font-style: normal;
  color: var(--teal);
}
.intro p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.quiet-btn {
  padding: 11px 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
}
.quiet-btn span {
  margin-left: 9px;
  background: var(--mint);
  color: var(--teal);
  font-weight: 700;
  padding: 4px 7px;
  border-radius: 5px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 23px;
  align-items: start;
}
.viewer-card {
  position: sticky;
  top: 20px;
  min-height: 680px;
  height: calc(100vh - 160px);
  max-height: 820px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 45% 35%,
      #f5f7f8 0%,
      #e7edf0 67%,
      #dce4e8 100%);
  box-shadow: inset 0 0 0 1px #dfe6e9;
}
.viewer-top {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 21px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}
.viewer-pill {
  background: #ffffffb8;
  border: 1px solid #fff;
  border-radius: 30px;
  font-size: 9px;
  letter-spacing: 1.5px;
  padding: 9px 13px;
  font-weight: 600;
}
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 23px;
  border: 1px solid #e2e8eb;
}
#viewer {
  position: absolute;
  inset: 38px 0 145px;
  touch-action: none;
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: 0;
}
.loader,
#webglError {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 45%;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
#webglError {
  color: #a8382a;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
}
.model-caption {
  position: absolute;
  bottom: 127px;
  left: 28px;
  pointer-events: none;
}
.model-caption p {
  font-size: 10px;
  letter-spacing: 1.3px;
  margin: 0 0 7px;
  color: #657785;
}
.model-caption h2 {
  font-size: 23px;
  letter-spacing: -.7px;
  margin: 0 0 6px;
}
.model-caption p:last-child {
  font-size: 11px;
  letter-spacing: 0;
}
.viewer-controls {
  position: absolute;
  bottom: 57px;
  left: 25px;
  right: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}
.angle-controls {
  display: flex;
  gap: 2px;
  padding: 4px;
  background: #ffffff9c;
  border: 1px solid #fff;
  border-radius: 9px;
}
.angle-controls button {
  background: transparent;
  color: #667788;
  font-size: 11px;
  padding: 10px 14px;
  border-radius: 6px;
}
.angle-controls button.active {
  background: var(--navy);
  color: white;
}
.zoom-controls {
  display: flex;
  gap: 4px;
}
.zoom-controls button {
  width: 32px;
  height: 34px;
  font-size: 20px;
  background: #ffffffb0;
  border-radius: 6px;
}
.viewer-foot {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid #fff8;
  font-size: 9px;
  color: #6a7d8b;
  background: #fff3;
}
.config-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  min-height: 680px;
  display: flex;
  flex-direction: column;
}
.config-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 26px 21px;
}
.config-heading .eyebrow {
  font-size: 8px;
  margin-bottom: 7px;
}
.config-heading h2 {
  font-size: 25px;
  letter-spacing: -.8px;
  margin: 0;
}
.config-heading > span {
  font-family: monospace;
  font-size: 11px;
  color: #8b98a3;
}
.steps {
  display: flex;
  padding: 0 22px 20px;
  border-bottom: 1px solid var(--line);
}
.steps button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #84919d;
  font-size: 10px;
  position: relative;
  padding: 0;
}
.steps button:after {
  content: "";
  position: absolute;
  top: 14px;
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  height: 1px;
  background: var(--line);
}
.steps button:last-child:after {
  display: none;
}
.steps button b {
  font-size: 10px;
  border: 1px solid var(--line);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: white;
  z-index: 1;
}
.steps .current {
  color: var(--teal);
  font-weight: 700;
}
.steps .current b {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px #3a9e9d12;
}
.steps .done b {
  background: var(--mint);
  color: var(--teal);
  border-color: var(--mint);
}
.panel {
  padding: 24px 26px 26px;
  flex: 1;
  min-height: 390px;
}
.section-title {
  margin: 0 0 7px;
  font-size: 18px;
  letter-spacing: -.4px;
}
.section-subtitle {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 18px;
}
.filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 15px;
}
.filters button {
  padding: 7px 11px;
  font-size: 10px;
  border-radius: 6px;
  background: #f4f6f8;
  color: #7b8792;
}
.filters button.active {
  background: var(--navy);
  color: white;
}
.garments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-height: 365px;
  overflow: auto;
  padding: 2px 4px 5px 1px;
  scrollbar-width: thin;
  scrollbar-color: #d6e3e6 transparent;
}
.garment {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 9px 11px;
  text-align: left;
  position: relative;
  min-height: 127px;
}
.garment.selected {
  border: 1.5px solid var(--teal);
  background: #f8fcfb;
}
.garment.selected:after {
  content: "\2713";
  position: absolute;
  right: 7px;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  color: white;
  background: var(--teal);
  font-size: 9px;
  display: grid;
  place-items: center;
}
.garment-art {
  height: 69px;
  display: grid;
  place-items: center;
  margin-bottom: 7px;
}
.garment-art svg {
  height: 63px;
  width: 70px;
  filter: drop-shadow(0 3px 2px #07182f0a);
}
.garment strong {
  font-size: 10px;
  line-height: 1.4;
  display: block;
  font-weight: 600;
}
.garment small {
  font-size: 8px;
  color: #87939d;
  margin-top: 4px;
  display: block;
}
.note {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
  background: #f6f8f9;
  padding: 11px 13px;
  border-radius: 7px;
  margin: 16px 0 0;
}
.panel-nav {
  padding: 18px 26px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
}
.primary {
  background: var(--coral);
  color: white;
  border-radius: 7px;
  padding: 13px 18px;
  font-weight: 600;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.primary:hover {
  background: #d94e2c;
}
.back {
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  padding: 10px 0;
}
.panel-nav #navHint {
  font-size: 10px;
  color: var(--muted);
  flex: 1;
}
.panel-nav .primary {
  margin-left: auto;
}
.trust-row {
  padding: 25px 4px;
  display: flex;
  justify-content: space-around;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  color: #657383;
}
.trust-row b {
  font-family: monospace;
  color: var(--teal);
  margin-right: 13px;
  font-size: 10px;
}
footer {
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: space-between;
  padding: 23px 4px 30px;
  color: #8a95a0;
  font-size: 8px;
}
footer > span {
  letter-spacing: 1px;
  white-space: nowrap;
}
footer p {
  max-width: 500px;
  line-height: 1.6;
  margin: 0;
}
footer a {
  white-space: nowrap;
}
label.field {
  display: block;
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 600;
}
label.field > span {
  display: block;
  margin-bottom: 8px;
}
select,
input[type=text],
input[type=email],
input[type=tel] {
  background: #fff;
  border: 1px solid #dfe5e9;
  border-radius: 7px;
  width: 100%;
  padding: 12px;
  color: var(--ink);
  font-size: 12px;
}
select {
  cursor: pointer;
}
.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 21px 0 10px;
  font-size: 11px;
  font-weight: 600;
}
.label-row span {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
}
.swatches {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}
.swatch {
  width: 100%;
  aspect-ratio: 1;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #e6e9ed;
  position: relative;
}
.swatch.selected {
  box-shadow: 0 0 0 2px var(--teal);
}
.swatch.selected:after {
  content: "\2713";
  font-weight: 700;
  color: var(--check,#fff);
  font-size: 15px;
}
.segmented {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.segmented button {
  background: #f5f7f8;
  color: #687b8a;
  font-size: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.segmented button.active {
  border-color: var(--teal);
  background: var(--mint);
  color: #267573;
}
.fabric-card {
  border-left: 2px solid var(--teal);
  padding: 3px 0 3px 12px;
  margin-top: -4px;
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
}
.upload {
  display: block;
  border: 1.5px dashed #c5d8db;
  border-radius: 9px;
  background: #f8fbfb;
  text-align: center;
  padding: 23px 15px;
  cursor: pointer;
}
.upload .upload-icon {
  display: block;
  color: var(--teal);
  font-size: 25px;
  margin-bottom: 6px;
}
.upload strong {
  font-size: 12px;
  display: block;
}
.upload small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 6px;
}
.upload input {
  display: none;
}
.uploaded {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f4f8f8;
  border-radius: 8px;
  padding: 10px;
}
.uploaded img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #fff;
}
.uploaded span {
  flex: 1;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.text-btn {
  background: transparent;
  font-size: 11px;
  color: var(--teal);
  padding: 5px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
input[type=range] {
  width: 100%;
  accent-color: var(--teal);
  margin: 8px 0;
}
input[type=color] {
  border: 0;
  width: 30px;
  height: 30px;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.inline-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.sizes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.size-cell {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 5px 9px;
  text-align: center;
}
.size-cell > span {
  font-size: 12px;
  font-weight: 600;
}
.size-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-top: 10px;
}
.size-counter button {
  background: #f4f6f8;
  border-radius: 4px;
  width: 21px;
  height: 24px;
  font-size: 15px;
  color: #6c7a87;
}
.size-counter input {
  width: 30px;
  padding: 2px 0;
  text-align: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  appearance: textfield;
  -moz-appearance: textfield;
}
.size-counter input::-webkit-inner-spin-button {
  appearance: none;
}
.quantity-total {
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.quantity-total b {
  color: var(--teal);
}
.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.5;
}
.summary-line span {
  color: var(--muted);
}
.summary-line strong {
  text-align: right;
  font-weight: 500;
}
.summary-product {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 13px;
  background: #f3f8f8;
  border-radius: 8px;
  margin-bottom: 10px;
}
.summary-product svg {
  width: 40px;
  height: 45px;
}
.summary-product h4 {
  margin: 0 0 3px;
  font-size: 13px;
}
.summary-product p {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
.summary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 17px 0;
}
.secondary {
  border: 1px solid #cddddd;
  color: #337f7f;
  padding: 12px 9px;
  background: white;
  border-radius: 7px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.full {
  width: 100%;
}
.contact-fields {
  padding-top: 12px;
}
.contact-fields h3 {
  font-size: 13px;
  margin: 6px 0 15px;
}
.contact-fields .field {
  margin-bottom: 12px;
}
.form-error {
  color: #b33f2b;
  font-size: 11px;
  margin: 8px 0;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 30px);
  background: var(--navy);
  color: white;
  font-size: 12px;
  padding: 14px 23px;
  border-radius: 9px;
  box-shadow: 0 6px 30px #08183226;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: all .2s;
  max-width: 90vw;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  border: 0;
  border-radius: 14px;
  max-width: 500px;
  width: calc(100% - 32px);
  padding: 27px;
  color: var(--ink);
  box-shadow: 0 20px 100px #08183230;
}
dialog::backdrop {
  background: #08183270;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.dialog-head h2 {
  margin: 0;
  font-size: 22px;
}
dialog p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.guide-steps p {
  background: #f5f8f9;
  padding: 12px;
  border-radius: 8px;
}
.cart-item {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item h3 {
  font-size: 14px;
  margin: 0 0 7px;
}
.cart-item .cart-item-actions {
  display: flex;
  gap: 20px;
}
.cart-item p {
  margin: 0 0 8px;
}
.empty {
  padding: 22px 0;
  text-align: center;
}
.error-border {
  border-color: #bf4b36 !important;
}
.fabric-sample {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 2px;
  margin-right: 5px;
}
.custom-color-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 12px;
}
.pattern-detail {
  margin: 12px 0 0;
}
.pattern-detail label {
  font-size: 11px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.warning {
  background: #fff7eb;
  color: #946c30;
}
.view-loading {
  font-size: 10px;
  color: var(--muted);
}
@media (min-width:1550px) {
  .panel {
    padding: 28px 32px;
  }
  .garment-art {
    height: 80px;
  }
  .garment {
    min-height: 145px;
  }
}
@media (max-width:1150px) {
  .header {
    padding: 0 3%;
    gap: 18px;
  }
  .draft-label {
    display: none;
  }
  main {
    padding: 28px 3% 0;
  }
  .workspace {
    gap: 15px;
    grid-template-columns: 1fr 1fr;
  }
  .panel {
    padding: 21px 20px;
  }
  .config-heading {
    padding: 24px 20px 21px;
  }
  .panel-nav {
    padding: 17px 20px;
  }
  .panel-nav #navHint {
    display: none;
  }
  .intro h1 {
    font-size: 31px;
  }
  .garment {
    min-height: 125px;
    padding: 10px 7px;
  }
  .viewer-controls {
    left: 17px;
    right: 17px;
  }
  .angle-controls button {
    padding: 10px 11px;
  }
  .zoom-controls button {
    width: 27px;
  }
  .viewer-card {
    min-height: 680px;
  }
}
@media (max-width:760px) {
  .header {
    height: 70px;
    padding: 0 18px;
    gap: 14px;
  }
  .brand img {
    width: 113px;
  }
  .studio-label {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .studio-label small {
    font-size: 10px;
  }
  .header-divider {
    height: 25px;
  }
  .header-actions {
    gap: 0;
  }
  .contact-link {
    display: none;
  }
  .header-btn {
    font-size: 10px;
    padding: 9px;
  }
  .intro {
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 20px;
  }
  .intro .eyebrow {
    font-size: 7px;
    letter-spacing: 1px;
    line-height: 1.7;
    margin-bottom: 8px;
  }
  .intro h1 {
    font-size: 27px;
    max-width: 290px;
    line-height: 1.12;
  }
  .intro p:not(.eyebrow) {
    font-size: 11px;
    max-width: 240px;
    line-height: 1.5;
  }
  .quiet-btn {
    font-size: 0;
    padding: 8px;
    white-space: nowrap;
  }
  .quiet-btn:before {
    content: "Selecci\f3n";
    font-size: 10px;
  }
  .quiet-btn span {
    font-size: 10px;
    margin-left: 6px;
  }
  main {
    padding: 25px 14px 0;
  }
  .workspace {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .viewer-card {
    position: relative;
    top: auto;
    width: 100%;
    height: 440px;
    min-height: 440px;
    border-radius: 12px;
  }
  .viewer-top {
    left: 16px;
    right: 16px;
    top: 16px;
  }
  .viewer-pill {
    font-size: 8px;
    padding: 8px 10px;
  }
  .viewer-top .icon-btn {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }
  #viewer {
    inset: 30px 0 99px;
  }
  .model-caption {
    left: 20px;
    bottom: 103px;
  }
  .model-caption p {
    font-size: 8px;
    letter-spacing: 1px;
    margin-bottom: 4px;
  }
  .model-caption h2 {
    font-size: 19px;
  }
  .model-caption p:last-child {
    font-size: 9px;
  }
  .viewer-controls {
    bottom: 42px;
    left: 16px;
    right: 16px;
  }
  .angle-controls button {
    padding: 8px 12px;
    font-size: 10px;
  }
  .zoom-controls button {
    height: 30px;
    width: 30px;
  }
  .viewer-foot {
    font-size: 8px;
    padding: 12px 16px;
  }
  .config-card {
    width: 100%;
    min-height: 0;
    border-radius: 12px;
    scroll-margin-top: 12px;
  }
  .config-heading {
    padding: 21px 20px 20px;
  }
  .config-heading h2 {
    font-size: 24px;
  }
  .steps {
    padding: 0 16px 18px;
  }
  .panel {
    padding: 22px 20px;
    min-height: 340px;
  }
  .garments {
    max-height: 410px;
    grid-template-columns: repeat(3, 1fr);
  }
  .garment {
    min-height: 130px;
  }
  .garment strong {
    font-size: 10px;
  }
  .garment small {
    font-size: 8px;
  }
  .panel-nav {
    padding: 15px 20px;
    position: sticky;
    bottom: 0;
    z-index: 4;
    box-shadow: 0 -4px 15px #08183205;
  }
  .panel-nav #navHint {
    display: block;
    font-size: 9px;
  }
  .panel-nav .primary {
    padding: 13px 15px;
    gap: 15px;
  }
  .swatches {
    gap: 9px;
  }
  .trust-row {
    flex-direction: column;
    gap: 14px;
    padding: 26px 10px;
    font-size: 10px;
  }
  .trust-row b {
    margin-right: 10px;
  }
  footer {
    flex-wrap: wrap;
    gap: 14px;
    font-size: 8px;
  }
  footer p {
    order: 3;
  }
  .sizes {
    gap: 8px;
  }
  .size-cell {
    padding: 12px 3px;
  }
  .size-counter {
    gap: 0;
  }
  .size-counter button {
    width: 22px;
    height: 28px;
  }
  .size-counter input {
    width: 28px;
  }
  .section-subtitle {
    font-size: 11px;
  }
  .summary-actions {
    grid-template-columns: 1fr 1fr;
  }
}
@media (prefers-reduced-motion:reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.viewer-top-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}
.reference-btn {
  background: #ffffffcc;
  border: 1px solid #dbe4e8;
  color: #3e6271;
  font-size: 10px;
  border-radius: 6px;
  padding: 9px 11px;
}
#referenceLayer {
  position: absolute;
  inset: 0;
  background: #727376;
  z-index: 1;
}
#referenceLayer[hidden] {
  display: none;
}
#referenceLayer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#referenceLayer span {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: #081832c9;
  color: #fff;
  font-size: 10px;
  line-height: 1.6;
  padding: 10px 13px;
  border-radius: 6px;
}
.model-caption {
  pointer-events: none;
}
.pilot-garment {
  width: 100%;
  display: grid;
  grid-template-columns: 45% 1fr;
  align-items: center;
  padding: 0;
  overflow: hidden;
  min-height: 230px;
  text-align: left;
  cursor: default;
}
.pilot-garment img {
  height: 245px;
  width: 100%;
  object-fit: cover;
}
.pilot-garment > div {
  padding: 20px;
}
.pilot-garment strong {
  font-family:
    Archivo,
    system-ui,
    sans-serif;
  font-size: 18px;
  line-height: 1.3;
  margin: 13px 0;
}
.pilot-garment small {
  font-size: 11px;
  line-height: 1.8;
  color: #687a85;
}
.pilot-badge {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: #368f8e;
}
.pilot-status {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  background: #eef6f5;
  border-radius: 8px;
  padding: 14px;
  margin-top: 16px;
  font-size: 11px;
}
.pilot-status .dot {
  flex-shrink: 0;
  margin-top: 4px;
}
.pilot-status strong {
  color: #337d7a;
  font-weight: 600;
}
.pilot-status p {
  font-size: 10px;
  line-height: 1.7;
  color: #6e8187;
  margin: 5px 0 0;
}
@media (max-width:760px) {
  .viewer-card {
    height: 500px;
    min-height: 500px;
  }
  #viewer {
    inset: 35px 0 125px;
  }
  .pilot-garment {
    min-height: 210px;
  }
  .pilot-garment img {
    height: 220px;
  }
  .pilot-garment > div {
    padding: 14px;
  }
  .pilot-garment strong {
    font-size: 17px;
  }
  .pilot-garment small {
    font-size: 10px;
  }
  .reference-btn {
    padding: 8px 9px;
    font-size: 9px;
  }
  .intro h1 {
    font-size: 27px;
    max-width: 235px;
  }
}
.image-mode {
  background: #686a6d;
  box-shadow: none;
}
.image-mode .viewer-top {
  top: 18px;
  left: 18px;
  right: 18px;
}
.image-mode .viewer-pill {
  font-size: 8px;
  letter-spacing: 1.1px;
  padding: 9px 11px;
}
.image-mode .reference-btn {
  font-size: 10px;
  padding: 9px 11px;
}
.image-mode .mockup-stage {
  position: absolute;
  inset: 58px 0 107px;
}
.image-mode #viewer {
  position: absolute;
  inset: 0;
  touch-action: pan-y;
}
.image-mode canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  touch-action: none;
}
.image-mode .model-caption {
  left: 24px;
  bottom: 52px;
  color: white;
}
.image-mode .model-caption h2 {
  font-size: 18px;
  letter-spacing: -.3px;
  margin-bottom: 5px;
}
.image-mode .model-caption p {
  color: #d2d7da;
  font-size: 10px;
}
.image-mode .model-caption p:first-child {
  display: none;
}
.image-mode .viewer-controls {
  left: auto;
  right: 20px;
  bottom: 55px;
}
.image-mode .viewer-foot {
  background: #0000000d;
  color: #e0e2e5;
  border-color: #ffffff20;
  font-size: 9px;
}
.image-mode .loader {
  color: #f3f4f5;
}
.image-mode .zoom-controls button {
  background: #ffffffeb;
}
.image-mode .viewer-top .icon-btn {
  background: #ffffffeb;
}
.image-mode .pilot-status {
  color: var(--teal);
}
@media (max-width:760px) {
  .image-mode .viewer-pill {
    font-size: 7px;
    letter-spacing: .8px;
    padding: 8px 9px;
  }
  .image-mode .reference-btn {
    font-size: 9px;
    padding: 8px;
  }
  .image-mode .viewer-top {
    left: 12px;
    right: 12px;
    top: 13px;
  }
  .image-mode .mockup-stage {
    inset: 50px 0 98px;
  }
  .image-mode .model-caption {
    left: 17px;
    bottom: 47px;
  }
  .image-mode .model-caption h2 {
    font-size: 17px;
  }
  .image-mode .model-caption p {
    font-size: 9px;
  }
  .image-mode .viewer-controls {
    right: 16px;
    bottom: 50px;
  }
  .image-mode .viewer-foot {
    font-size: 7px;
    padding: 12px 14px;
  }
  .image-mode .zoom-controls button {
    width: 27px;
    height: 29px;
  }
}
.image-mode .mockup-stage {
  bottom: 157px;
}
.angle-strip {
  position: absolute;
  bottom: 105px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 3px;
  border-radius: 9px;
  background: #ffffffd9;
  padding: 4px;
  z-index: 3;
  white-space: nowrap;
}
.angle-strip button {
  background: transparent;
  border-radius: 6px;
  padding: 9px 18px;
  color: #4e6573;
  font-size: 11px;
}
.angle-strip button.active {
  background: var(--navy);
  color: white;
}
.angle-arrow {
  position: absolute;
  top: 48%;
  transform: translateY(-50%);
  z-index: 2;
  width: 33px;
  height: 43px;
  background: #ffffffe5;
  border: 1px solid #ffffff7a;
  color: #203b50;
  border-radius: 8px;
  font-size: 30px;
  line-height: 1;
  box-shadow: 0 3px 15px #00000008;
}
.prev-angle {
  left: 12px;
}
.next-angle {
  right: 12px;
}
.angle-name {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 3px;
  color: #e8edef;
  background: #08183265;
  border: 1px solid #ffffff20;
  border-radius: 20px;
  font-size: 9px;
  padding: 5px 10px;
  pointer-events: none;
}
.angle-loading {
  position: absolute;
  left: 20%;
  right: 20%;
  top: 45%;
  text-align: center;
  color: white;
  font-size: 12px;
  z-index: 2;
}
.angle-loading[hidden] {
  display: none;
}
.placement-view-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: #f0f7f7;
  border: 1px solid #e0eeed;
  padding: 11px 12px;
  border-radius: 7px;
  font-size: 11px;
  margin: 0 0 12px;
}
.placement-view-bar > span:last-child {
  color: #7c9399;
  font-size: 9px;
}
.logo-enable {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  line-height: 1.6;
  padding: 1px 0 15px;
  cursor: pointer;
}
.logo-enable input {
  accent-color: var(--teal);
  width: 17px;
  height: 17px;
  margin: 0;
}
.summary-line strong {
  white-space: pre-line;
}
@media (max-width:760px) {
  .image-mode {
    height: 560px;
    min-height: 560px;
  }
  .image-mode .mockup-stage {
    bottom: 150px;
  }
  .angle-strip {
    bottom: 101px;
  }
  .angle-strip button {
    font-size: 10px;
    padding: 9px 17px;
  }
  .angle-arrow {
    width: 30px;
    height: 40px;
  }
  .prev-angle {
    left: 10px;
  }
  .next-angle {
    right: 10px;
  }
  .angle-name {
    font-size: 8px;
    bottom: 2px;
    padding: 4px 9px;
  }
  .placement-view-bar {
    gap: 8px;
  }
  .placement-view-bar > span:last-child {
    max-width: 125px;
    text-align: right;
    font-size: 8px;
  }
  .image-mode .viewer-foot {
    font-size: 7px;
  }
}
.zone-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin: 16px 0;
}
.zone-tabs button {
  background: #f3f7f8;
  border: 1px solid #e1e9ea;
  border-radius: 6px;
  font-size: 11px;
  padding: 10px;
  color: #617985;
}
.zone-tabs button.active {
  background: #e9f5f3;
  border-color: var(--teal);
  color: #247a78;
}
.zone-tabs small {
  background: #fff;
  padding: 2px 5px;
  border-radius: 4px;
  margin-left: 5px;
}
.upload-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.add-logo {
  cursor: pointer;
}
.mini-help {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.7;
}
.empty-zone {
  font-size: 11px;
  color: #809097;
  text-align: center;
  padding: 20px;
  background: #f7f9fa;
  border: 1px dashed #d8e3e7;
  border-radius: 7px;
}
.artwork-list {
  display: grid;
  gap: 7px;
  margin: 16px 0;
}
.artwork-row {
  display: flex;
  align-items: center;
  border: 1px solid #e1e8eb;
  border-radius: 8px;
  overflow: hidden;
}
.artwork-row.selected {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal);
}
.artwork-select {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #fff;
  padding: 10px;
  min-width: 0;
  flex: 1;
  text-align: left;
}
.artwork-select img,
.text-symbol {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #edf1f4;
  border-radius: 4px;
}
.text-symbol {
  display: grid;
  place-items: center;
  font-family: serif;
  font-size: 24px;
}
.artwork-select span:not(.text-symbol) {
  min-width: 0;
}
.artwork-select b {
  display: block;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}
.artwork-select small {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.remove-art {
  background: transparent;
  font-size: 20px;
  color: #81959e;
  width: 35px;
  align-self: stretch;
}
.artwork-editor {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.cm-fields input {
  padding: 11px;
  border: 1px solid #c9dedd;
  border-radius: 7px;
  width: 100%;
  font-weight: 600;
  color: #1b595c;
  font-size: 14px;
  background: #fbfefe;
}
.ratio-lock {
  display: flex;
  gap: 8px;
  font-size: 11px;
  align-items: center;
  margin: 0 0 14px;
}
.ratio-lock input {
  accent-color: var(--teal);
}
.cm-presets {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 9px;
  color: var(--muted);
}
.cm-presets button {
  padding: 6px 8px;
  background: #edf5f4;
  color: #3b8786;
  border-radius: 4px;
  font-size: 10px;
}
.cm-note {
  font-size: 9px;
}
.copy-art-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 18px 0 0;
}
.copy-art-row label {
  flex: 1;
  margin: 0;
}
.copy-art-row button {
  height: 41px;
}
.size-table-scroll {
  max-height: 400px;
  overflow: auto;
  border: 1px solid #e0e9ec;
  border-radius: 8px;
}
.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  text-align: center;
}
.size-table th,
.size-table td {
  padding: 11px 6px;
  border-bottom: 1px solid #e9eef0;
}
.size-table thead th {
  position: sticky;
  top: 0;
  background: #edf5f5;
  color: #336d70;
  font-size: 9px;
  line-height: 1.5;
}
.size-table th:first-child {
  text-align: left;
  padding-left: 12px;
}
.size-table tbody tr:hover {
  background: #f6fafa;
}
.size-table .text-btn {
  font-size: 10px;
}
.measure-pending {
  font-size: 11px !important;
  background: #fff7eb;
  color: #946b2f !important;
  padding: 12px;
  border-radius: 7px;
}
.angle-strip button {
  padding: 9px 11px;
  font-size: 10px;
}
@media (max-width:760px) {
  .angle-strip button {
    padding: 8px 10px;
    font-size: 9px;
  }
  .artwork-select b {
    max-width: 200px;
  }
  .zone-tabs button {
    font-size: 10px;
  }
  .copy-art-row {
    align-items: flex-end;
  }
  .cm-presets {
    gap: 4px;
  }
}

/* ─── Fase 1: envío del diseño ─────────────────────────────────────────────── */
.check-field {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 11px;
  line-height: 1.55;
  color: var(--ink);
  margin: 4px 0 6px;
  cursor: pointer;
}
.check-field input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 1px 0 0;
  accent-color: var(--teal);
}
.check-field a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.campo-trampa {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.mail-aviso {
  margin-top: -4px;
}
.mail-aviso .btn-corregir-mail {
  background: transparent;
  color: var(--teal);
  text-decoration: underline;
  font-size: 11px;
  padding: 0 2px;
}
.envio-estado {
  margin-top: 18px;
  padding: 18px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  gap: 10px;
}
.envio-estado h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}
.envio-estado p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.envio-estado.enviando {
  grid-template-columns: auto 1fr;
  align-items: center;
}
.envio-estado.listo {
  border-color: #9fd3cf;
  background: var(--mint);
}
.envio-estado.listo b {
  font-family: Archivo, system-ui, sans-serif;
  letter-spacing: .5px;
  white-space: nowrap;
}
.envio-estado.error {
  border-color: #f0c2b4;
  background: #fff6f2;
}
.envio-estado .text-btn {
  justify-self: center;
}
.envio-spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--coral);
  animation: envio-gira .9s linear infinite;
}
@keyframes envio-gira {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .envio-spinner {
    animation-duration: 3s;
  }
}
