/*
 * Patrones a medida: estilos de pantalla e impresión con la marca de yo elijo Coser
 * (docs/MARCA.md: estilo "mesa de corte"). Sin recursos externos: Archivo y Caveat
 * van en comun/fuentes/ (subconjunto latino de Google Fonts, licencia OFL al lado).
 */
@font-face { font-family: 'Archivo'; src: url('fuentes/Archivo-variable-latin.woff2') format('woff2'); font-weight: 400 900; font-stretch: 62% 100%; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('fuentes/Caveat-700-latin.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  /* Tokens de marca (docs/MARCA.md, sección 9) */
  --yec-tinta: #17201B;
  --yec-papel: #FFF8EC;
  --yec-blanco: #FFFFFF;
  --yec-tapete: #1E5A43;
  --yec-mostaza: #F2C14E;
  --yec-rosa: #F5A9BC;
  --yec-azul: #A9CCE8;
  --yec-menta: #BFE3C8;
  --yec-lila: #CDBFEA;
  --yec-kraft: #EADFCB;
  --yec-lapiz: #4D5650;
  --yec-texto-tapete: #E6EEE9;
  --yec-migas-tapete: #DCE6E0;
  --yec-error: #A8322A;
  --yec-error-fondo: #F9E3DF;
  --yec-hecho-fondo: #DDEFE2;
  --yec-aviso-fondo: #FBEBC2;
  --yec-info-fondo: #DCE8F2;
  --yec-fuente: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --yec-fuente-cond: 'Archivo', 'Arial Narrow', sans-serif;
  --yec-fuente-mano: 'Caveat', 'Comic Sans MS', cursive;
  --yec-borde: 2px solid #17201B;
  --yec-radio-s: 8px;
  --yec-radio: 14px;
  --yec-radio-m: 18px;
  --yec-radio-l: 24px;
  --yec-sombra-boton: 4px 4px 0 #17201B;
  --yec-sombra: 5px 5px 0 #17201B;
  --yec-sombra-fuerte: 8px 8px 0 #17201B;
  /* Nombres que usa el motor */
  --tinta: var(--yec-tinta);
  --tinta-suave: var(--yec-lapiz);
  --fondo: var(--yec-papel);
  --tarjeta: var(--yec-blanco);
  --linea: var(--yec-kraft);
  --acento: var(--yec-tapete);
  --acento-oscuro: var(--yec-tapete);
  --acento-claro: var(--yec-hecho-fondo);
  --bien: var(--yec-tapete);
  --bien-fondo: var(--yec-hecho-fondo);
  --mal: var(--yec-error);
  --mal-fondo: var(--yec-error-fondo);
  --radio: var(--yec-radio-m);
  --letra: var(--yec-fuente);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--yec-papel);
  color: var(--yec-tinta);
  font: 400 17px/1.6 var(--yec-fuente);
}
a { color: var(--yec-tinta); text-decoration-color: var(--yec-tapete); text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--yec-tinta); outline-offset: 2px; }
.saltar { position: absolute; left: -999px; top: 8px; background: var(--yec-tinta); color: var(--yec-papel); padding: 8px 12px; z-index: 10; }
.saltar:focus { left: 8px; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cond { font-family: var(--yec-fuente-cond); font-stretch: 66%; font-weight: 850; text-transform: uppercase; letter-spacing: -0.005em; }
.hand { font-family: var(--yec-fuente-mano); font-weight: 700; }

h1 { font-family: var(--yec-fuente-cond); font-stretch: 66%; font-weight: 850; text-transform: uppercase; font-size: clamp(44px, 6vw, 86px); line-height: 0.88; margin: 14px 0 12px; color: var(--yec-papel); }

h2 { font-family: var(--yec-fuente-cond); font-stretch: 66%; font-weight: 850; text-transform: uppercase; font-size: 30px; line-height: 0.95; margin: 0 0 14px; }
h3 { font-size: 21px; font-weight: 800; line-height: 1.2; margin: 24px 0 8px; }

/* Formulario */
.campo { margin-bottom: 12px; }
.campo label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.unidad { font-weight: 400; color: var(--yec-lapiz); }
.campo input, .campo select {
  width: 100%; font: inherit; font-size: 16px; padding: 8px 12px; min-height: 44px;
  border: var(--yec-borde); border-radius: var(--yec-radio); background: var(--yec-blanco); color: var(--yec-tinta);
}
.campo input[aria-invalid="true"] { border-color: var(--yec-error); background: var(--yec-error-fondo); }
.ayuda { font-size: 14px; line-height: 1.45; color: var(--yec-lapiz); margin: 4px 0 0; }
.auto { display: block; color: var(--yec-tapete); font-weight: 600; }
.error { font-size: 14px; color: var(--yec-error); margin: 4px 0 0; font-weight: 700; }
.resumen-errores { background: var(--yec-error-fondo); color: var(--yec-error); border: 2px solid var(--yec-error); padding: 8px 12px; margin: 0 0 12px; font-weight: 700; border-radius: var(--yec-radio); }
.botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.boton {
  font: inherit; font-size: 16px; font-weight: 800; border: var(--yec-borde); background: var(--yec-tapete); color: var(--yec-papel);
  padding: 9px 18px; border-radius: var(--yec-radio); cursor: pointer; min-height: 46px; box-shadow: var(--yec-sombra-boton);
  text-decoration: none; display: inline-flex; align-items: center; transition: transform 0.12s, box-shadow 0.12s;
}
.boton:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--yec-tinta); }
.boton:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--yec-tinta); }
.boton.secundario { background: var(--yec-blanco); color: var(--yec-tinta); }

/* Vista del patrón */
.vista { border: var(--yec-borde); border-radius: var(--yec-radio); background: var(--yec-blanco); overflow: auto; max-height: 78vh; }
.vista svg { display: block; width: 100%; height: auto; }
.vista .pz-fondo, .pp-zoom-lienzo .pz-fondo { fill: #F3D9DF; }
[data-modelo="vestido"] .vista .pz-fondo, [data-modelo="vestido"] .pp-zoom-lienzo .pz-fondo { fill: #DCE8F2; }
.vista .pz-pespunte, .pp-zoom-lienzo .pz-pespunte { stroke: var(--yec-tapete); stroke-width: 0.5; }
.leyenda { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--yec-lapiz); }

/* Tablas */
.tabla-desliza { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabla { border-collapse: collapse; width: 100%; font-size: 15px; }
.tabla th, .tabla td { border-bottom: 1px solid var(--yec-kraft); padding: 8px; text-align: left; vertical-align: top; }
.tabla thead th { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--yec-lapiz); border-bottom: 2px solid var(--yec-tinta); }
.tabla td.estado { white-space: nowrap; }
.sello { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 800; font-size: 13px; border: 2px solid currentColor; }
tr.bien .sello { background: var(--yec-hecho-fondo); color: var(--yec-tapete); }
tr.mal .sello { background: var(--yec-error-fondo); color: var(--yec-error); }
.resumen { font-weight: 800; padding: 10px 14px; border-radius: var(--yec-radio); border: 2px solid currentColor; }
.resumen.bien { background: var(--yec-hecho-fondo); color: var(--yec-tapete); }
.resumen.mal { background: var(--yec-error-fondo); color: var(--yec-error); }
.avisos { color: var(--yec-error); }
#prenda td, #prenda th { white-space: nowrap; }
.tabla-tallas { font-size: 13px; }
.tabla-tallas td { text-align: right; font-variant-numeric: tabular-nums; }
.tabla-tallas th[scope="row"] { white-space: nowrap; }


/* Tela */
.tela-dibujo svg { width: 100%; height: auto; display: block; max-height: 420px; }
.fuentes li { margin-bottom: 6px; }

/* Comprobaciones en móvil: cada fila como una ficha */
@media (max-width: 600px) {
  #comprobaciones thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  #comprobaciones tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--yec-kraft); }
  #comprobaciones td, #comprobaciones th { display: block; border: 0; padding: 2px 0; }
}

/* Montaje animado: el escenario es el tapete de corte */
.mt-escenario { min-height: 180px; }
.mt-svg { display: block; width: 100%; height: auto; }
.mt-pieza { stroke: var(--yec-tinta); stroke-width: 1.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mt-puntada, .mt-costura-hecha { fill: none; stroke: var(--yec-tinta); stroke-linecap: round; vector-effect: non-scaling-stroke; }
.mt-puntada { stroke-width: 2.4; stroke-dasharray: 7 4; }
.mt-costura-hecha { stroke-width: 1.5; stroke-dasharray: 5 4; opacity: 0.85; }
.mt-puntada.mt-doble, .mt-doble-hecha { fill: none; stroke: var(--yec-tinta); stroke-width: 3.2; stroke-dasharray: 5 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.mt-aguja-halo { fill: rgba(255, 248, 236, 0.75); }
.mt-aguja-punto { fill: var(--yec-tinta); stroke: var(--yec-papel); stroke-width: 2; vector-effect: non-scaling-stroke; }
.mt-pulso { fill: rgba(242, 193, 78, 0.3); stroke: var(--yec-mostaza); stroke-width: 2.6; vector-effect: non-scaling-stroke; }
.mt-flecha, .mt-llave { fill: none; stroke: var(--yec-mostaza); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mt-abertura { stroke: var(--yec-tinta); stroke-width: 2.4; vector-effect: non-scaling-stroke; }
.mt-presilla { fill: none; stroke: var(--yec-tinta); stroke-width: 2; vector-effect: non-scaling-stroke; }
.mt-boton-cara { fill: var(--yec-papel); stroke: var(--yec-tinta); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.mt-boton-ojal { fill: var(--yec-tinta); }
.mt-vista-dentro { fill: none; stroke: var(--yec-tinta); stroke-width: 1.1; stroke-dasharray: 3 3; opacity: 0.6; vector-effect: non-scaling-stroke; }
.mt-dentro .mt-pieza { fill-opacity: 0.35; stroke-dasharray: 3 3; }
.mt-tira { stroke: var(--yec-tinta); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mt-plancha-base { fill: var(--yec-lapiz); stroke: var(--yec-tinta); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.mt-plancha-asa { fill: none; stroke: var(--yec-tinta); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.mt-rotulo-caja { fill: var(--yec-papel); stroke: var(--yec-tinta); stroke-width: 2; }
.mt-rotulo-sombra { fill: var(--yec-tinta); }
.mt-rotulo-texto { font: 700 19px/1 var(--yec-fuente); fill: var(--yec-tinta); text-anchor: middle; }
.mt-guia { fill: none; stroke: var(--yec-mostaza); stroke-width: 2; stroke-dasharray: 3 3; }
@media (max-width: 600px) {
  .mt-rotulo-texto { font-size: 22px; }
}

/* ===== Página del patrón (diseño de noviembre de 2026): clases pp- ===== */
.cond { font-family: var(--yec-fuente-cond); font-stretch: 66%; font-weight: 850; text-transform: uppercase; letter-spacing: -0.005em; }
.hand { font-family: var(--yec-fuente-mano); font-weight: 700; }
.tapete {
  background-color: var(--yec-tapete); color: var(--yec-papel);
  background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.tapete :focus-visible { outline-color: var(--yec-mostaza); }
.pp-regla {
  height: 34px; background-color: var(--yec-mostaza);
  background-image: repeating-linear-gradient(90deg, #17201B 0 2px, transparent 2px 60px), repeating-linear-gradient(90deg, #17201B 0 1px, transparent 1px 12px);
  background-size: 100% 14px, 100% 8px; background-repeat: no-repeat; border-top: var(--yec-borde); border-bottom: var(--yec-borde);
}
.pp-envoltura { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.pp-pagina h2 { margin: 0; line-height: 0.9; }
.pp-pagina h3 { margin: 0; }
.pp-pagina p { text-wrap: pretty; }

/* Cabecera */
.pp-cabecera { background: var(--yec-papel); border-bottom: var(--yec-borde); }
.pp-cabecera-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; }
.pp-logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; flex: 0 0 auto; color: var(--yec-tinta); }
.pp-logo-nombre { font-size: 32px; line-height: 1; }
.pp-logo-nota { font-size: 22px; color: var(--yec-lapiz); display: inline-block; transform: rotate(-4deg); }
.pp-prototipo { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 2px 10px; border-radius: 999px; border: var(--yec-borde); background: var(--yec-mostaza); text-decoration: none; }
.pp-nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 600; }
.pp-nav a { text-decoration: none; }
.pp-nav a:hover { color: var(--yec-tapete); }

/* Portada de la página */
.pp-hero { padding: 40px 0 56px; }
.pp-hero-fila { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.pp-hero-texto { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.pp-migas ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 600; color: var(--yec-migas-tapete); }
.pp-migas a { color: var(--yec-migas-tapete); }
.pp-migas li:last-child a { color: var(--yec-mostaza); }
.pp-hero-nota { font-size: 30px; line-height: 1.1; color: var(--yec-mostaza); transform: rotate(-2deg); transform-origin: left; align-self: flex-start; margin: 0; }
.pp-hero h1 { font-size: clamp(48px, 7vw, 96px); line-height: 0.86; margin: 0; color: var(--yec-papel); text-wrap: balance; }
.pp-hero-entrada { font-size: 19px; line-height: 1.55; color: var(--yec-texto-tapete); max-width: 620px; margin: 0; }
.pp-ficha { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; max-width: 660px; }
.pp-ficha li { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: var(--yec-radio); border: var(--yec-borde); background: var(--yec-papel); color: var(--yec-tinta); }
.pp-ficha-etq { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yec-lapiz); }
.pp-ficha-dato { font-size: 16px; font-weight: 800; line-height: 1.25; }
.pp-cta { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.pp-hero-foto { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; position: relative; padding: 20px 0; }
.pp-polaroid { margin: 0; position: relative; width: 100%; max-width: 440px; background: #fff; padding: 14px 14px 10px; transform: rotate(3deg); box-shadow: 0 18px 34px rgba(0, 0, 0, 0.3); display: flex; flex-direction: column; gap: 6px; }
.pp-polaroid-dibujo svg { display: block; width: 100%; height: auto; }
.pp-polaroid figcaption { font-size: 26px; line-height: 1.1; color: var(--yec-tinta); text-align: center; }
.pp-cinta { position: absolute; width: 92px; height: 26px; background: rgba(242, 193, 78, 0.85); left: 50%; top: -12px; margin-left: -46px; }
.pp-pegatina { position: absolute; left: 0; bottom: 6px; width: 104px; height: 104px; border-radius: 999px; background: var(--yec-mostaza); color: var(--yec-tinta); border: var(--yec-borde); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 22px; line-height: 0.92; transform: rotate(-12deg); }

/* Botones */
.pp-boton { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: var(--yec-radio); border: var(--yec-borde); font: inherit; font-weight: 800; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform 0.12s, box-shadow 0.12s; }
.pp-boton:hover { transform: translate(-1px, -1px); }
.pp-boton svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pp-boton-mostaza { background: var(--yec-mostaza); color: var(--yec-tinta); box-shadow: var(--yec-sombra-boton); min-height: 54px; padding: 0 26px; font-size: 17px; }
.pp-boton-linea { border-color: var(--yec-papel); color: var(--yec-papel); background: transparent; font-weight: 700; min-height: 54px; }
.pp-boton-tinta { background: var(--yec-tinta); color: var(--yec-papel); }
.pp-boton-rosa { background: var(--yec-rosa); color: var(--yec-tinta); }
.pp-boton-tapete { background: var(--yec-tapete); color: var(--yec-papel); box-shadow: var(--yec-sombra-boton); }
.pp-boton-pastilla { min-height: 48px; padding: 0 18px; border-radius: 999px; font-size: 15px; }
.pp-enlace { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--yec-tinta); text-decoration: underline; text-decoration-color: var(--yec-tapete); text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; min-height: 44px; text-align: left; }
.pp-enlace-linea { min-height: 0; text-decoration-color: currentColor; }
@media (prefers-reduced-motion: reduce) { .pp-boton { transition: none; } .pp-boton:hover { transform: none; } }

/* Los cuatro pasos */
.pp-pasos { background: var(--yec-blanco); border-bottom: var(--yec-borde); }
.pp-pasos ol { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.pp-pasos a { display: flex; align-items: center; gap: 12px; padding: 16px 12px 16px 0; text-decoration: none; }
.pp-pasos b { display: block; font-size: 16px; font-weight: 800; line-height: 1.3; }
.pp-pasos small { display: block; font-size: 14px; color: var(--yec-lapiz); line-height: 1.3; }
.pp-num { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 999px; border: var(--yec-borde); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.pp-c-mostaza { background: var(--yec-mostaza); }
.pp-c-rosa { background: var(--yec-rosa); }
.pp-c-azul { background: var(--yec-azul); }
.pp-c-menta { background: var(--yec-menta); }

/* Cajas y secciones */
.pp-caja { background: var(--yec-blanco); border: var(--yec-borde); border-radius: var(--yec-radio-m); box-shadow: var(--yec-sombra); padding: 26px; }
.pp-antetitulo { font-size: 14px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yec-lapiz); margin: 0 0 4px; }
.pp-seccion { padding: 64px 0; }
.pp-blanca { background: var(--yec-blanco); border-top: var(--yec-borde); border-bottom: var(--yec-borde); }
.pp-pila { display: flex; flex-direction: column; gap: 28px; }
.pp-gris { color: var(--yec-lapiz); }
.pp-pequeno { font-size: 14px; }
.pp-h2-grande { font-size: clamp(40px, 5vw, 60px); }
.pp-entrada-seccion { font-size: 16px; margin: 10px 0 0; max-width: 70ch; }

/* Paso 1: talla o medidas */
.pp-seccion-talla { padding: 56px 0 24px; }
.pp-talla-fila { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.pp-elige { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.pp-elige form { display: flex; flex-direction: column; gap: 20px; }
.pp-elige h2 { font-size: 44px; }
.pp-segmento { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border: var(--yec-borde); border-radius: var(--yec-radio); background: var(--yec-papel); gap: 4px; }
.pp-segmento button { min-height: 46px; border-radius: 10px; border: 0; background: transparent; color: var(--yec-tinta); font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
.pp-segmento button[aria-pressed="true"] { background: var(--yec-tinta); color: var(--yec-papel); }
.pp-bloque-talla, .pp-bloque-medidas { display: flex; flex-direction: column; gap: 20px; }
.pp-bloque-medidas { flex-flow: row wrap; gap: 18px; align-items: flex-start; }
.pp-bloque-talla[hidden], .pp-bloque-medidas[hidden], .pp-campo-manga[hidden] { display: none; }
.pp-grupo { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pp-grupo legend { font-weight: 800; font-size: 16px; padding: 0 0 8px; }
.pp-tallas { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.pp-opciones { display: grid; gap: 8px; }
.pp-opciones-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pp-opcion { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 4px; border-radius: 12px; border: var(--yec-borde); background: var(--yec-blanco); color: var(--yec-tinta); font: inherit; cursor: pointer; min-height: 56px; text-align: center; line-height: 1.2; }
.pp-opcion:hover { background: var(--yec-papel); }
.pp-opcion[aria-pressed="true"] { background: var(--yec-mostaza); box-shadow: 3px 3px 0 var(--yec-tinta); }
.pp-tallas .pp-opcion { min-height: 64px; }
.pp-opcion-grande { font-size: 26px; line-height: 1; }
.pp-opcion-metros { font-size: 28px; line-height: 1; }
.pp-opcion-nombre { font-weight: 800; font-size: 15px; }
.pp-opcion-sub { font-size: 14px; font-weight: 600; color: var(--yec-lapiz); }
.pp-ayuda { font-size: 14px; line-height: 1.5; color: var(--yec-lapiz); margin: 0; }
.pp-ayuda strong { color: var(--yec-tinta); }
.pp-aviso { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--yec-radio); border: var(--yec-borde); align-items: flex-start; }
.pp-aviso svg { width: 22px; height: 22px; flex: 0 0 auto; margin-top: 1px; fill: none; stroke: var(--yec-tinta); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pp-aviso p { margin: 0; font-size: 15px; line-height: 1.5; }
.pp-aviso-info { background: var(--yec-info-fondo); }
.pp-aviso-amarillo { background: var(--yec-aviso-fondo); }
.pp-aviso-amarillo p { font-size: 16px; line-height: 1.55; }
.pp-maniqui { margin: 0; flex: 0 0 150px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pp-maniqui figcaption { font-size: 14px; line-height: 1.4; color: var(--yec-lapiz); text-align: center; }
.pp-campos { flex: 1 1 220px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px 12px; }
.pp-campos .campo { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.pp-campos .campo label, .pp-campo-manga label { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-weight: 700; font-size: 14px; margin: 0; }
.pp-pagina .campo input { height: 44px; padding: 0 12px; border-radius: 12px; border: var(--yec-borde); background: #fff; font: inherit; font-size: 16px; color: var(--yec-tinta); width: 100%; }
.pp-campos .ayuda { font-size: 14px; line-height: 1.4; }
.pp-campo-num { width: 20px; height: 20px; flex: 0 0 auto; border-radius: 999px; border: 1.5px solid var(--yec-tinta); background: var(--yec-mostaza); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.pp-bloque-medidas > .pp-ayuda, .pp-bloque-medidas > .pp-detalle, .pp-bloque-medidas > .pp-enlace { flex: 1 1 100%; }
.pp-detalle summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.pp-detalle .pp-campos { margin-top: 10px; }
.pp-campo-manga { margin: 6px 0 0; max-width: 320px; }

/* Tu patrón */
.pp-columna-patron { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 980px) and (min-height: 860px) { .pp-columna-patron { position: sticky; top: 16px; } }
.pp-tu-patron { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.pp-fila-titulo { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }
.pp-tu-patron h2 { font-size: 36px; }
.pp-chip-ok { font-size: 14px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--yec-hecho-fondo); color: var(--yec-tapete); border: 2px solid var(--yec-tapete); }
.pp-vista { border-radius: 12px; max-height: none; overflow: hidden; }
.pp-vista svg { max-height: 520px; }
.pp-piezas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 6px 16px; }
.pp-piezas li { display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 1.35; }
.pp-letra { width: 28px; height: 28px; flex: 0 0 auto; border-radius: 999px; border: var(--yec-borde); display: inline-flex; align-items: center; justify-content: center; font-size: 17px; line-height: 1; }
.pp-letra-peq { width: 26px; height: 26px; font-size: 16px; }
.pp-pie-patron { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; border-top: 2px dashed #D9CDB6; }
.pp-interruptor { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: transparent; font: inherit; font-size: 15px; font-weight: 600; color: var(--yec-tinta); cursor: pointer; text-align: left; }
.pp-interruptor-pista { position: relative; width: 44px; height: 26px; flex: 0 0 auto; border-radius: 999px; border: var(--yec-borde); background: var(--yec-kraft); }
.pp-interruptor-pista span { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 999px; background: #fff; border: var(--yec-borde); transition: left 0.15s; }
.pp-interruptor[aria-pressed="true"] .pp-interruptor-pista { background: var(--yec-tapete); }
.pp-interruptor[aria-pressed="true"] .pp-interruptor-pista span { left: 20px; }
.pp-ok { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--yec-tapete); }
.pp-ok svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pp-ok.mal { color: var(--yec-error); }

/* Descarga: bloque mostaza con botones tinta (regla de la marca) */
.pp-descarga { background: var(--yec-mostaza); border: var(--yec-borde); border-radius: var(--yec-radio-m); box-shadow: 6px 6px 0 var(--yec-tinta); padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.pp-descarga h2 { font-size: 40px; }
.pp-descarga p { margin: 0; font-size: 14px; line-height: 1.5; }
.pp-descarga .pp-fila-titulo p { font-size: 15px; font-weight: 600; }
.pp-botones { display: flex; flex-wrap: wrap; gap: 10px; }

/* Así te quedará */
.pp-queda-seccion { padding: 32px 0 48px; }
.pp-queda { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; box-shadow: none; }
.pp-queda-texto { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pp-queda-texto h2 { font-size: 40px; }
.pp-queda-texto p { margin: 0; line-height: 1.6; }
.pp-nota-verde { font-size: 24px; line-height: 1.15 !important; color: var(--yec-tapete); transform: rotate(-2deg); transform-origin: left; }
.pp-holguras { flex: 2 1 480px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.pp-holgura { display: grid; grid-template-columns: 96px 1fr; gap: 6px 14px; align-items: center; }
.pp-holgura-nombre { font-weight: 800; font-size: 16px; }
.pp-holgura-dato { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pp-barra { position: relative; height: 18px; border-radius: 999px; background: #F7F1E6; border: var(--yec-borde); overflow: hidden; display: block; }
.pp-barra-prenda, .pp-barra-cuerpo { position: absolute; left: 0; top: 0; bottom: 0; }
.pp-barra-prenda { background: var(--yec-rosa); }
.pp-barra-cuerpo { background: var(--yec-tinta); opacity: 0.18; }
.pp-holgura-texto { font-size: 14px; color: var(--yec-lapiz); line-height: 1.4; }
.pp-holgura-texto strong { color: var(--yec-tinta); }
.pp-holguras-leyenda { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--yec-lapiz); padding-left: 110px; }
.pp-holguras-leyenda > span { display: inline-flex; align-items: center; gap: 6px; }
.pp-muestra-cuerpo, .pp-muestra-prenda { width: 16px; height: 10px; border-radius: 3px; display: inline-block; }
.pp-muestra-cuerpo { background: var(--yec-tinta); opacity: 0.18; }
.pp-muestra-prenda { background: var(--yec-rosa); border: 1px solid var(--yec-tinta); }

/* Paso 2: imprimir */
.pp-tarjetas-3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 18px; }
.pp-tarjeta-paso { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--yec-radio-m); border: var(--yec-borde); background: var(--yec-papel); }
.pp-tarjeta-paso h3 { font-size: 20px; font-weight: 800; line-height: 1.2; }
.pp-tarjeta-paso h3 .cond { font-size: 26px; color: var(--yec-tapete); }
.pp-tarjeta-paso p { margin: 0; font-size: 15px; line-height: 1.55; }
.pp-ilustra { height: 120px; border-radius: 12px; background: #fff; border: var(--yec-borde); display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 16px; overflow: hidden; }
.pp-ilustra-impresora { flex-direction: column; align-items: stretch; gap: 8px; }
.pp-ilustra-fila { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; }
.pp-ilustra-cien { padding: 2px 10px; border-radius: 6px; background: var(--yec-hecho-fondo); border: 1.5px solid var(--yec-tapete); color: var(--yec-tapete); }
.pp-ilustra-apagado { width: 34px; height: 20px; border-radius: 999px; background: var(--yec-kraft); border: 1.5px solid var(--yec-tinta); position: relative; }
.pp-ilustra-apagado::after { content: ""; position: absolute; left: 2px; top: 2px; width: 13px; height: 13px; border-radius: 999px; background: #fff; border: 1.5px solid var(--yec-tinta); }
.pp-ilustra-cuadro { width: 72px; height: 72px; border: var(--yec-borde); background: #F7F1E6; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.pp-ilustra-regla { width: 18px; height: 90px; border: var(--yec-borde); background-color: var(--yec-mostaza); background-image: repeating-linear-gradient(0deg, #17201B 0 1px, transparent 1px 9px); border-radius: 3px; }
.pp-ilustra-mapa { padding: 8px; }
.pp-ilustra-mapa svg { height: 100%; width: auto; max-width: 100%; display: block; }
.pp-sin-impresora { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; padding: 16px 20px; border-radius: var(--yec-radio); border: 2px dashed var(--yec-tinta); }
.pp-sin-impresora p { flex: 1 1 420px; margin: 0; font-size: 16px; line-height: 1.5; }
.pp-sin-impresora a { font-weight: 800; font-size: 15px; }

/* Paso 3: tela y corte */
.pp-tela-fila { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.pp-tela-texto { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.pp-tela-texto h3 { font-size: 20px; font-weight: 800; margin: 0 0 10px; }
.pp-tela-texto p { margin: 0; font-size: 15px; line-height: 1.55; }
.pp-chips { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pp-chips li { padding: 6px 14px; border-radius: 999px; border: var(--yec-borde); background: var(--yec-hecho-fondo); font-weight: 700; font-size: 14px; }
.pp-compra { list-style: none; margin: 0; padding: 0; }
.pp-compra label { display: flex; gap: 12px; align-items: center; min-height: 44px; padding: 6px 0; border-bottom: 1px solid var(--yec-kraft); font-size: 16px; line-height: 1.4; cursor: pointer; }
.pp-compra li:last-child label { border-bottom: 0; }
.pp-compra input { width: 20px; height: 20px; accent-color: var(--yec-tapete); flex: 0 0 auto; margin: 0; }
.pp-tela-figura { flex: 1 1 480px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; background: #fff; border: var(--yec-borde); border-radius: var(--yec-radio-m); padding: 20px; }
.pp-tela-figura figcaption { font-size: 15px; line-height: 1.55; }

/* Paso 4: tarjetas de costura */
.pp-coser-cabecera { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px; }
.pp-coser-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.pp-progreso { display: flex; flex-direction: column; gap: 6px; min-width: 220px; }
.pp-progreso-texto { font-size: 14px; font-weight: 800; }
.pp-progreso-pista { height: 14px; border-radius: 999px; border: var(--yec-borde); background: var(--yec-papel); overflow: hidden; display: block; }
.pp-progreso-barra { display: block; height: 100%; width: 0; background: var(--yec-tapete); transition: width 0.3s ease; }
.pp-pasos-coser { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 24px; }
.pp-paso { display: flex; flex-direction: column; border-radius: var(--yec-radio-m); border: var(--yec-borde); background: var(--yec-papel); box-shadow: var(--yec-sombra); overflow: hidden; scroll-margin-top: 16px; }
.pp-paso.hecho { box-shadow: none; }
.pp-paso-figura { position: relative; margin: 0; border-bottom: var(--yec-borde); background: var(--yec-tapete); aspect-ratio: 5 / 3; overflow: hidden; }
.pp-paso-figura > svg, .pp-paso-figura .mt-escenario, .pp-paso-figura .mt-escenario svg { display: block; width: 100%; height: 100%; min-height: 0; }
.mt-foto .mt-rotulo { display: none; }   /* en la tarjeta quieta, los rótulos saldrían ilegibles */
.pp-paso-num { position: absolute; top: 12px; left: 12px; padding: 4px 12px; border-radius: 10px; border: var(--yec-borde); background: var(--yec-rosa); font-size: 22px; line-height: 1; }
.pp-paso-despacio { position: absolute; top: 12px; right: 12px; padding: 5px 12px; border-radius: 999px; border: var(--yec-borde); background: var(--yec-aviso-fondo); font-size: 14px; font-weight: 800; line-height: 1.2; }
.pp-paso-play { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; border: var(--yec-borde); background: var(--yec-mostaza); color: var(--yec-tinta); font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; box-shadow: 3px 3px 0 var(--yec-tinta); }
.pp-paso-play svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pp-paso-figura[data-grande] { cursor: zoom-in; }
.pp-paso-figura :focus-visible { outline-color: var(--yec-mostaza); }
.pp-paso-cuerpo { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1 1 auto; }
.pp-paso-cuerpo h3 { font-size: 30px; line-height: 0.95; }
.pp-paso-cuerpo > p { margin: 0; font-size: 16px; line-height: 1.6; }
.pp-paso-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pp-plancha { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; border: var(--yec-borde); background: #fff; font-size: 14px; font-weight: 700; }
.pp-plancha svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pp-glosario { border-radius: 12px; border: 2px dashed var(--yec-tinta); background: #fff; padding: 0 14px; }
.pp-glosario summary, .pp-duda summary, .pp-metodo > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; }
.pp-glosario summary { font-size: 15px; font-weight: 700; }
.pp-glosario summary::-webkit-details-marker, .pp-duda summary::-webkit-details-marker, .pp-metodo > summary::-webkit-details-marker { display: none; }
.pp-chev { font-size: 22px; line-height: 1; transition: transform 0.2s; flex: 0 0 auto; }
details[open] > summary .pp-chev { transform: rotate(45deg); }
.pp-glosario p { margin: 0; font-size: 15px; line-height: 1.55; padding-bottom: 12px; }
.pp-hecho { align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: var(--yec-borde); background: #fff; color: var(--yec-tinta); font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
.pp-hecho[aria-pressed="true"] { background: var(--yec-menta); }
.pp-hecho[aria-pressed="true"]::before { content: "✓"; }
.pp-terminado { border-radius: 20px; border: var(--yec-borde); box-shadow: 6px 6px 0 var(--yec-tinta); padding: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.pp-terminado[hidden] { display: none; }
.pp-terminado p { margin: 0; }
.pp-terminado .cond { font-size: 52px; line-height: 0.9; }
.pp-terminado .hand { font-size: 28px; color: var(--yec-mostaza); }

/* Compartir, dudas y método */
.pp-compartir-seccion { padding: 56px 0 24px; }
.pp-compartir { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; padding: 28px; border-radius: 20px; border: 2px dashed var(--yec-tinta); background: #fff; }
.pp-compartir > div { flex: 1 1 420px; display: flex; flex-direction: column; gap: 8px; }
.pp-compartir h2 { font-size: 40px; }
.pp-compartir p { margin: 0; line-height: 1.6; }
.pp-dudas-seccion { padding: 40px 0 48px; }
.pp-estrecha { max-width: 880px; }
.pp-dudas { display: flex; flex-direction: column; gap: 16px; }
.pp-dudas h2 { font-size: 44px; }
.pp-duda { border-radius: var(--yec-radio); border: var(--yec-borde); background: #fff; padding: 0 20px; }
.pp-duda summary { padding: 16px 0; font-size: 18px; font-weight: 800; gap: 16px; line-height: 1.3; }
.pp-duda p { margin: 0; font-size: 16px; line-height: 1.65; padding-bottom: 16px; }
.pp-metodo-seccion { padding: 0 0 72px; }
.pp-metodo { border-radius: var(--yec-radio-m); border: var(--yec-borde); background: #fff; padding: 0 24px; }
.pp-metodo > summary { padding: 20px 0; gap: 16px; }
.pp-metodo-titulo { font-size: 32px; line-height: 0.95; display: block; }
.pp-metodo-sub { font-size: 15px; color: var(--yec-lapiz); display: block; margin-top: 4px; }
.pp-metodo-cuerpo { padding-bottom: 24px; font-size: 16px; line-height: 1.6; }
.pp-metodo-cuerpo h3 { font-size: 20px; font-weight: 800; margin: 28px 0 8px; }
.pp-metodo-cuerpo .resumen { margin: 8px 0; }

/* Pie */
.pp-pie { padding: 48px 0 28px; border-top: var(--yec-borde); }
.pp-pie-fila { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.pp-pie-logo { font-size: 44px; line-height: 0.9; display: block; }
.pp-pie-nota { font-size: 24px; color: var(--yec-mostaza); margin: 6px 0 0; }
.pp-pie-texto { font-size: 14px; color: var(--yec-migas-tapete); max-width: 460px; }
.pp-pie-texto p { margin: 0 0 4px; }

/* Barra de descarga fija en el móvil */
.pp-barra-movil { display: none; }
.pp-barra-movil > div { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.pp-barra-etq { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
#barra-texto { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Modo taller: el paso en grande, a pantalla completa */
html.pp-modal-abierto { overflow: hidden; }
.pp-visor, .pp-zoom { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--yec-papel); color: var(--yec-tinta); }
.pp-visor[open], .pp-zoom[open] { display: flex; flex-direction: column; }
.pp-visor::backdrop, .pp-zoom::backdrop { background: rgba(23, 32, 27, 0.6); }
.pp-visor-cabecera { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: var(--yec-borde); flex: 0 0 auto; }
.pp-visor-cerrar { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 999px; border: 2px solid var(--yec-papel); background: transparent; color: var(--yec-papel); display: grid; place-items: center; cursor: pointer; padding: 0; }
.pp-visor-cerrar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.pp-visor-que { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.pp-visor-etq { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yec-mostaza); }
.pp-visor-estado { font-size: 16px; font-weight: 700; color: var(--yec-texto-tapete); }
.pp-visor-luz { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 248, 236, 0.14); font-size: 14px; font-weight: 700; }
.pp-visor-luz[hidden] { display: none; }
.pp-visor-luz svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.pp-visor-marcas { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; padding: 8px 16px 0; flex: 0 0 auto; }
.pp-visor-marcas span { height: 7px; border-radius: 4px; background: var(--yec-kraft); }
.pp-visor-marcas span.hecho { background: var(--yec-tapete); }
.pp-visor-marcas span.actual { background: var(--yec-mostaza); }
.pp-visor-cuerpo { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 16px; }
.pp-visor-figura { position: relative; margin: 0; width: 100%; aspect-ratio: var(--ratio, 1.6667); border: var(--yec-borde); border-radius: 16px; overflow: hidden; background: var(--yec-tapete); flex: 0 0 auto; }
.pp-visor-figura .mt-escenario, .pp-visor-figura .mt-escenario svg { display: block; width: 100%; height: 100%; min-height: 0; }
.pp-visor-repetir { position: absolute; right: 10px; bottom: 10px; width: 52px; height: 52px; border-radius: 999px; border: var(--yec-borde); background: var(--yec-papel); color: var(--yec-tinta); display: grid; place-items: center; cursor: pointer; padding: 0; box-shadow: 3px 3px 0 var(--yec-tinta); }
.pp-visor-repetir svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pp-visor .mt-rotulo-texto { font-size: 26px; }
.pp-visor-texto h2 { font-size: 40px; line-height: 0.92; margin: 0 0 12px; }
.pp-visor-p { font-size: 20px; line-height: 1.5; margin: 0 0 14px; }
.pp-visor-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.pp-visor-chips .pp-letra { width: 34px; height: 34px; font-size: 20px; }
.pp-visor-chips .pp-plancha { font-size: 16px; padding: 4px 12px; }
.pp-despacio { padding: 5px 12px; border-radius: 999px; border: var(--yec-borde); background: var(--yec-aviso-fondo); font-size: 16px; font-weight: 800; }
.pp-visor-glosario { display: flex; flex-direction: column; gap: 8px; }
.pp-visor .pp-glosario summary { font-size: 18px; min-height: 52px; }
.pp-visor .pp-glosario p { font-size: 18px; }
.pp-visor-nav { display: grid; grid-template-columns: 76px 1fr; gap: 10px; padding: 12px 16px 16px; border-top: var(--yec-borde); background: #fff; flex: 0 0 auto; }
.pp-visor-ant { min-height: 64px; border-radius: 16px; border: var(--yec-borde); background: #fff; color: var(--yec-tinta); display: grid; place-items: center; cursor: pointer; padding: 0; }
.pp-visor-ant:disabled { opacity: 0.35; cursor: default; }
.pp-visor-sig { min-height: 64px; border-radius: 16px; border: var(--yec-borde); background: var(--yec-tapete); color: var(--yec-papel); font: inherit; font-weight: 800; font-size: 19px; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; box-shadow: 4px 4px 0 var(--yec-tinta); padding: 0 16px; }
.pp-visor-ant svg, .pp-visor-sig svg { width: 26px; height: 26px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 699px) {
  .pp-visor .mt-rotulo-texto { font-size: 36px; }
}
@media (min-width: 900px) {
  .pp-visor-cuerpo { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr); align-items: start; gap: 32px; padding: 20px 32px; }
  .pp-visor-figura { width: min(100%, calc((100dvh - 230px) * var(--ratio, 1.6667))); justify-self: center; }
  .pp-visor-texto h2 { font-size: 52px; }
  .pp-visor-p { font-size: 22px; }
  .pp-visor-nav { grid-template-columns: 96px minmax(0, 460px); justify-content: end; padding: 12px 32px 16px; }
}

/* Tu patrón en grande */
.pp-vista-marco { position: relative; }
.pp-vista-grande { position: absolute; right: 10px; bottom: 10px; }
.pp-zoom-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 16px; border-bottom: var(--yec-borde); flex: 0 0 auto; }
.pp-zoom-titulo { flex: 1 1 auto; font-size: 18px; font-weight: 800; color: var(--yec-papel); }
.pp-zoom-botones { display: flex; align-items: center; gap: 8px; color: var(--yec-papel); font-weight: 800; font-size: 16px; }
.pp-zoom-botones button { width: 48px; height: 48px; border-radius: 999px; border: 2px solid var(--yec-tinta); background: var(--yec-mostaza); color: var(--yec-tinta); font: inherit; font-size: 26px; font-weight: 800; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.pp-zoom-botones button:disabled { opacity: 0.4; cursor: default; }
.pp-zoom-nivel { min-width: 4.5em; text-align: center; }
.pp-zoom-lienzo { flex: 1 1 auto; min-height: 0; overflow: auto; background: #fff; -webkit-overflow-scrolling: touch; }
.pp-zoom-lienzo svg { display: block; height: auto; max-width: none; }
.pp-zoom-pie { margin: 0; padding: 8px 16px 12px; font-size: 15px; color: var(--yec-lapiz); border-top: var(--yec-borde); flex: 0 0 auto; }

/* Vestido: elasticidad de la tela, escote y plano de folios grande */
.pp-tela-medir { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--yec-radio); background: var(--yec-papel); border: 2px dashed var(--yec-tinta); }
.pp-tela-medir svg { flex: 0 0 auto; }
.pp-tela-medir p { margin: 0; font-size: 14px; line-height: 1.45; }
.pp-estiras { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.pp-estiras .pp-opcion { min-height: 60px; }
.pp-aviso-bien { background: var(--yec-hecho-fondo); }
.pp-aviso-error { background: var(--yec-error-fondo); }
.pp-campo-estira { margin: 0; max-width: 360px; }
.pp-campo-estira label { display: block; font-weight: 700; font-size: 14px; margin: 0 0 4px; }
.pp-opcion-escote { min-height: 88px; gap: 4px; padding: 10px 4px 8px; }
.pp-imprimir-dos { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.pp-imprimir-lista { flex: 1 1 360px; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.pp-imprimir-lista li { display: flex; gap: 14px; align-items: flex-start; }
.pp-imprimir-lista p { margin: 0; font-size: 17px; line-height: 1.55; padding-top: 8px; }
.pp-plano-figura { flex: 0 1 380px; margin: 0; display: flex; flex-direction: column; gap: 10px; background: #fff; border: var(--yec-borde); border-radius: var(--yec-radio-m); padding: 18px; }
.pp-plano-folios { display: grid; gap: 4px; }
.pp-plano-folios span { height: 40px; border: 1.5px solid var(--yec-tinta); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; background: var(--yec-aviso-fondo); }
.pp-plano-folios .pp-plano-blanco { background: #F3F1EC; border-style: dashed; border-color: #B9B3A8; }
.pp-plano-figura figcaption { font-size: 14px; color: var(--yec-lapiz); }
[data-modelo="vestido"] .pp-cinta { background: rgba(169, 204, 232, 0.9); }

/* Prenda azul en el vestido */
[data-modelo="vestido"] .pp-barra-prenda, [data-modelo="vestido"] .pp-muestra-prenda, [data-modelo="vestido"] .pp-paso-num { background: var(--yec-azul); }

@media (max-width: 900px) { .pp-nav { display: none; } }
@media (max-width: 720px) {
  .pp-barra-movil { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px 14px 16px; background: var(--yec-mostaza); border-top: var(--yec-borde); }
  .pp-barra-movil .pp-boton { min-height: 50px; padding: 0 18px; }
  body.pp-pagina { padding-bottom: 84px; }
}
@media (max-width: 640px) {
  .pp-envoltura { padding-left: 16px; padding-right: 16px; }
  .pp-caja { padding: 20px 16px; }
  .pp-seccion { padding: 44px 0; }
  .pp-logo-nombre { font-size: 24px; }
  .pp-logo-nota { font-size: 20px; }
  .pp-hero { padding: 18px 0 22px; }
  .pp-hero-fila { gap: 12px; }
  .pp-hero-texto { gap: 12px; }
  .pp-hero-foto { display: none; }
  .pp-hero h1 { font-size: 48px; }
  .pp-hero-nota { font-size: 24px; }
  .pp-hero-entrada { font-size: 16px; line-height: 1.45; }
  .pp-ficha { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pp-ficha li { padding: 8px 10px; border-radius: 12px; }
  .pp-ficha-dato { font-size: 14px; }
  .pp-regla { height: 22px; background-size: 100% 10px, 100% 6px; }
  .pp-pasos ol { grid-template-columns: 1fr 1fr; }
  .pp-pasos a { padding: 12px 8px 12px 0; gap: 8px; }
  .pp-num { width: 36px; height: 36px; font-size: 22px; }
  .pp-pasos b { font-size: 15px; }
  .pp-pasos small { font-size: 14px; }
  .pp-seccion-talla { padding: 24px 0 16px; }
  .pp-elige h2 { font-size: 34px; }
  .pp-tallas { display: flex; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding: 2px 16px 8px 0; }
  .pp-tallas::-webkit-scrollbar { display: none; }
  .pp-tallas .pp-opcion { flex: 0 0 62px; min-height: 60px; }
  .pp-maniqui { flex-basis: 100%; }
  .pp-holgura { grid-template-columns: 1fr; }
  .pp-holguras-leyenda { padding-left: 0; }
  .pp-terminado .cond { font-size: 40px; }
  .pp-metodo { padding: 0 16px; }
  .pp-metodo-titulo { font-size: 26px; }
}

/* Modo lámina (?lamina=...): solo el dibujo, para exportar imágenes */
.modo-lamina { background: #fff; padding: 0 !important; }
.modo-lamina > *:not(#vista) { display: none !important; }
.modo-lamina > #vista { border: 0; border-radius: 0; max-height: none; overflow: visible; margin: 0; }
.modo-lamina > #vista svg { max-height: none; }

/* Folios: ocultos en pantalla */
.impresion { display: none; }

@page { size: A4 portrait; margin: 0; }
@media print {
  html, body { background: #fff; margin: 0; }
  body > *:not(.impresion) { display: none !important; }
  .impresion { display: block !important; }
  .hoja {
    width: 210mm; height: 296mm; padding: 10mm; overflow: hidden; position: relative;
    break-after: page; page-break-after: always;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .hoja:last-child { break-after: auto; page-break-after: auto; }
  .hoja > svg { display: block; }
  /* Hoja de taller (portada nueva) */
  .ht { padding: 10mm 11mm; display: flex; flex-direction: column; gap: 3.2mm; font: 9.75pt/1.4 var(--yec-fuente); color: var(--yec-tinta); }
  .ht p { margin: 0; }
  .ht-cabecera { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 2mm; border-bottom: 0.5mm solid var(--yec-tinta); }
  .ht-logo { font-size: 16.5pt; line-height: 1; }
  .ht-gris { color: var(--yec-lapiz); font-size: 9pt; }
  .ht-web { font-size: 9pt; font-weight: 700; }
  .ht-titulo { display: flex; justify-content: space-between; align-items: flex-end; gap: 4mm; }
  .ht .ht-sec { font-size: 9pt; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yec-lapiz); margin: 0 0 1.5mm; }
  .ht .ht-titulo h2 { font-size: 32pt; line-height: 0.88; margin: 0; }
  .ht-datos { font-size: 9pt; line-height: 1.45; text-align: right; white-space: nowrap; flex: 0 0 auto; }
  .ht-medidas { font-size: 8.5pt; color: var(--yec-lapiz); }
  .ht-fila { display: flex; gap: 5.8mm; align-items: flex-start; }
  .ht-cuadro { flex: 0 0 100mm; }
  .ht-cuadro svg { display: block; }
  .ht-folios { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2.5mm; }
  .ht-folios ol { margin: 0; padding-left: 4.5mm; display: flex; flex-direction: column; gap: 1mm; }
  .ht-plano { display: grid; gap: 0.8mm; padding-top: 1mm; }
  .ht-plano span { height: var(--alto-folio, 13.5mm); border: 0.4mm solid var(--yec-tinta); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 10.5pt; }
  .ht-plano .ht-blanco { border-style: dashed; color: var(--yec-lapiz); font-weight: 600; font-size: 7pt; }
  .ht-nota { line-height: 1.4; }
  .ht-dos { display: grid; grid-template-columns: 1.25fr 1fr; gap: 5.8mm; }
  .ht-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.1mm; }
  .ht-lista li { display: flex; align-items: center; gap: 2.1mm; }
  .ht-leyenda li { gap: 2.6mm; }
  .ht-caja { width: 3.7mm; height: 3.7mm; border: 0.4mm solid var(--yec-tinta); border-radius: 0.8mm; flex: 0 0 auto; background: #fff; display: inline-block; }
  .ht-letra { width: 5.3mm; height: 5.3mm; border-radius: 999px; border: 0.4mm solid var(--yec-tinta); display: inline-flex; align-items: center; justify-content: center; font-size: 9.75pt; flex: 0 0 auto; }
  .ht-pasos { display: flex; flex-direction: column; gap: 2mm; }
  .ht-pasos-cabecera { display: flex; flex-direction: column; gap: 0.5mm; }
  .ht-pasos-cabecera .ht-sec { margin: 0; }
  .ht-pasos ol { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-template-columns: 1fr 1fr; gap: 1.6mm 5.8mm; line-height: 1.35; }
  .ht-pasos li { display: flex; gap: 2.1mm; align-items: flex-start; }
  .ht-pasos .ht-caja { margin-top: 0.3mm; }
  .ht-pie { display: flex; justify-content: space-between; align-items: center; gap: 4mm; padding-top: 2.6mm; border-top: 0.5mm solid var(--yec-tinta); margin-top: auto; }
  .ht-pie p { font-size: 9pt; line-height: 1.4; max-width: 125mm; }
  .ht .ht-mano { font-size: 16.5pt; max-width: none; text-align: right; }
}
