/* ¿Me queda? — Pruébalo aquí: tu prenda contra la que quieres comprar. Usa los tokens de estilos.css. */
.editor { max-width: 980px; margin: 0 auto; }
.editor-tarjeta {
  background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 1.1rem 1.1rem 1.2rem;
  display: grid; gap: 1.1rem;
}
.editor-lienzo { position: relative; background: var(--paper); border-radius: var(--radius-md); padding: 0.8rem 0.6rem 0.3rem; }
.editor-dibujo { display: block; width: 100%; max-width: 190px; height: auto; margin: 0 auto; }
.editor-leyenda { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin: 0.4rem 0 0.4rem; font-size: 0.82rem; color: var(--ink-soft); }
.editor-leyenda span { display: inline-flex; align-items: center; gap: 0.45em; }
.editor-leyenda i { width: 16px; height: 16px; border-radius: 4px; flex: none; }
.editor-leyenda i.lleno { background: #ebe3d7; border: 1.5px solid var(--ink); }
.editor-leyenda i[data-muestra] { border: 2px dashed var(--wine); opacity: 0.75; }
.editor-controles { display: grid; gap: 1rem; }
.editor-paso { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; align-items: center; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
.editor-paso--dos { grid-template-columns: minmax(0, 1fr); border-bottom: 0; padding-bottom: 0; }
.editor-paso b { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.02rem; }
.editor-paso small { display: block; margin-top: 0.15rem; font-size: 0.88rem; color: var(--ink-soft); line-height: 1.4; }
.paso-visor { width: 44px; height: 44px; flex: none; }
.paso-n {
  display: inline-grid; place-items: center; width: 1.55rem; height: 1.55rem; border-radius: 50%; flex: none;
  background: var(--wine); color: #fff; font-size: 0.82rem; font-weight: 750;
}
.paso-n--grande { width: 2.2rem; height: 2.2rem; font-size: 1rem; }
.editor-grupo { border: 0; margin: 0; padding: 0; }
.editor-grupo legend, .editor-etiqueta { padding: 0; margin: 0 0 0.45rem; font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.03em; }
.editor-opciones { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.editor-opcion { position: relative; }
.editor-opcion input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.editor-opcion span {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.4em 0.85em; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); font-size: 0.9rem; font-weight: 500;
}
.editor-opcion input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.editor-opcion input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 2px; }
.muestra { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(42, 38, 34, 0.25); }
.interruptor { display: inline-flex; align-items: center; gap: 0.6em; cursor: pointer; font-weight: 600; font-size: 0.95rem; }
.interruptor input { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 999px; background: var(--line); position: relative; margin: 0; cursor: pointer; transition: background 0.2s; flex: none; }
.interruptor input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(70, 40, 25, 0.3); transition: transform 0.25s var(--ease-out); }
.interruptor input:checked { background: var(--wine); }
.interruptor input:checked::after { transform: translateX(18px); }
.interruptor input:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.medida { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 0.8rem; align-items: center; }
.medida label { font-weight: 600; font-size: 0.95rem; }
.medida output { font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.medida output b { font-weight: 700; }
.medida input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: var(--wine); margin: 0; height: 28px; }
.editor-veredicto {
  display: flex; gap: 0.8rem; align-items: flex-start;
  padding: 0.9rem 1rem; border-radius: var(--radius-md); background: var(--wine-wash); color: var(--wine-deep);
}
.editor-veredicto p { margin: 0; font-size: 0.98rem; line-height: 1.45; }
.editor-veredicto p b { display: block; font-size: 1.25rem; font-weight: 750; color: var(--wine); margin-bottom: 0.1rem; }
.editor-veredicto p small { display: block; margin-top: 0.3rem; font-size: 0.82rem; color: var(--ink-soft); }
@media (min-width: 760px) {
  .editor-tarjeta { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; padding: 1.6rem; gap: 1.6rem 2rem; }
  .editor-lienzo { position: sticky; top: 1.5rem; }
  .editor-dibujo { max-width: 260px; }
  .editor-veredicto { grid-column: 1 / -1; }
}

/* Comparador (2026-10-08): tipo de prenda, tabla de medidas y botón al ejemplo */
.ir-ejemplo { margin: 0.9rem 0 0; text-align: center; }
.ir-ejemplo .boton { display: inline-flex; align-items: center; gap: 0.45em; text-decoration: none; padding: 0.65em 1.2em; }
.ir-ejemplo svg { width: 16px; height: 16px; }
.editor-bloque { display: grid; gap: 0.55rem; }
.editor-pregunta { display: flex; align-items: center; gap: 0.55rem; margin: 0; font-weight: 700; font-size: 1.08rem; }
.editor-ayuda { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }
.editor-leyenda i.punteado { border: 2px dashed var(--wine); background: rgba(123, 33, 66, 0.10); }
.editor-tabla { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.editor-tabla th, .editor-tabla td { padding: 0.5rem 0.35rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.editor-tabla thead th { font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); vertical-align: bottom; }
.editor-tabla thead th small { display: block; font-weight: 500; }
.editor-tabla tbody th { font-weight: 600; }
.editor-tabla .dif { font-weight: 650; color: var(--wine); font-size: 0.88rem; }
.editor-tabla .dif.igual { color: var(--ink-soft); font-weight: 500; }
@media (max-width: 420px) {
  .editor-tabla th, .editor-tabla td { padding: 0.45rem 0.2rem; }
}
@media (min-width: 760px) {
  /* Dibujo a la izquierda; pasos 1 y 2 a la derecha; el 3 abajo, a lo ancho */
  .editor-tarjeta { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .editor-lienzo { grid-column: 1; grid-row: 1 / span 2; }
  .editor-bloque--tuya { grid-column: 2; grid-row: 1; }
  .editor-bloque--quiere { grid-column: 2; grid-row: 2; }
  .editor-bloque--compara { grid-column: 1 / -1; grid-row: 3; }
}

/* De dónde salen las medidas de cada prenda (2026-10-08) */
.fuente-tuya { background: var(--paper); border: 1px solid var(--line); }
.fuente-quiere { background: #fff; border: 1.5px dashed var(--wine); }

/* Bolsillo: ¿cabe tu celular? (2026-10-08) */
.editor-tabla tbody th small { display: block; font-size: 0.75rem; font-weight: 500; color: var(--ink-soft); }
.editor-celular { margin: 0.2rem 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem; font-size: 0.92rem; }
.editor-celular label { font-weight: 600; }
.editor-celular input {
  width: 4.2rem; font: inherit; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink);
  padding: 0.35em 0.5em; border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
}
.editor-celular input:focus { outline: 2px solid var(--wine); outline-offset: 1px; }
.veredicto-bolsillo { display: block; margin-top: 0.3rem; font-weight: 650; }

/* Comparador en 3 pasos: tus medidas, la que quieres, compara (2026-10-08) */
.editor-fuente {
  display: flex; align-items: center; gap: 0.7rem; margin: 0;
  padding: 0.6rem 0.8rem; border-radius: var(--radius-md); font-size: 0.86rem; color: var(--ink-soft); line-height: 1.4;
}
.editor-fuente svg { width: 44px; height: 44px; flex: none; }
.editor-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.8rem, 1fr)); gap: 0.6rem; }
.campo { display: grid; gap: 0.25rem; align-content: end; }
.campo span { font-weight: 600; font-size: 0.9rem; }
.campo small { display: block; font-size: 0.74rem; font-weight: 500; color: var(--ink-soft); }
.campo input {
  width: 100%; font: inherit; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink);
  padding: 0.45em 0.6em; border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
}
.campo input[data-lado="quiere"] { border: 1.5px dashed var(--wine); background: #fff; }
.campo input:focus { outline: 2px solid var(--wine); outline-offset: 1px; }
.editor-tabla td { font-weight: 650; font-variant-numeric: tabular-nums; }
.editor-bloque--compara { gap: 0.8rem; }
