/* westudio · Página «Mascotas»: la función de mascotas del portal (agente + editor de personajes).
   Usa la disposición del inicio (home.css) y la tipografía suiza (tipo-suiza.css). El atlas del gato está en tipo-suiza.css. */

.mw .h1-m { font-family: var(--f-titular); font-weight: 600; font-size: clamp(56px, 9vw, 140px); line-height: .86; letter-spacing: -.065em; margin: 24px 0 0; max-width: 7em; }
.mw .px { image-rendering: pixelated; image-rendering: crisp-edges; }
.mw .rot-m { font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--tinta-3); }

/* ---------- Hero ---------- */
.mw .hero-m { position: relative; border-bottom: 2px solid var(--linea); overflow: hidden; background-image: linear-gradient(var(--linea-suave, rgba(14,17,22,.07)) 1px, transparent 1px), linear-gradient(90deg, var(--linea-suave, rgba(14,17,22,.07)) 1px, transparent 1px); background-size: 48px 48px; }
.mw .hero-m-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: end; padding-top: 104px; padding-bottom: 0; }
.mw .hero-m-texto { padding-bottom: 104px; }
.mw .hero-m .ww-bajada { max-width: 40ch; margin-top: 32px; }
.mw .hero-m .acciones { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 40px; align-items: center; }
.mw .rincon { position: relative; height: 520px; }
.mw .rincon .gw { left: auto; right: 72px; bottom: 0; }
.mw .menu-m { position: absolute; right: 24px; bottom: 100px; width: 300px; background: var(--hoja); border: 2px solid var(--linea); box-shadow: var(--sombra-l); }
.mw .menu-m::after { content: ""; position: absolute; right: 104px; bottom: -14px; width: 22px; height: 22px; background: var(--hoja); border-right: 2px solid var(--linea); border-bottom: 2px solid var(--linea); transform: rotate(45deg); }
.mw .menu-m .cab { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 2px solid var(--linea); background: var(--senal); }
.mw .menu-m .cab b { font-family: var(--f-titular); font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.mw .menu-m button { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; width: 100%; padding: 14px 16px; border-bottom: 2px solid var(--linea); cursor: pointer; font-size: 16px; line-height: 20px; transition: background 160ms; }
.mw .menu-m button:last-child { border-bottom: 0; }
.mw .menu-m button:hover, .mw .menu-m button:focus-visible { background: var(--papel); }
.mw .menu-m button:focus-visible { outline: 2px solid var(--acento); outline-offset: -4px; }
.mw .menu-m .ic { width: 28px; height: 28px; border: 2px solid var(--linea); display: grid; place-items: center; background: var(--hoja); }
.mw .menu-m .ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.mw .menu-m .k { font-family: var(--font-mono); font-size: 11px; color: var(--tinta-3); }
.mw .menu-m .n { min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; background: var(--acento); color: var(--sobre-acento); font-family: var(--font-mono); font-size: 11px; }
.mw .sticker-m { position: absolute; left: 0; top: 64px; --giro: -6deg; }

/* ---------- 01 · Agente ---------- */
.mw .agente-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.mw .pasos-a { list-style: none; margin: 40px 0 0; padding: 0; border-top: 2px solid var(--linea); }
.mw .pasos-a li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0 22px 28px; border-bottom: 2px solid var(--linea); position: relative; }
.mw .pasos-a li::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 8px; background: var(--senal); border: 2px solid var(--linea); opacity: 0; transform: scaleY(.4); transition: opacity 240ms, transform 240ms var(--ww-salida); }
.mw .pasos-a li .num { font-family: var(--font-mono); font-size: 32px; line-height: 1; letter-spacing: -.06em; color: var(--tinta-3); transition: color 240ms; }
.mw .pasos-a li b { display: block; font-family: var(--f-titular); font-weight: 600; font-size: 24px; letter-spacing: -.03em; margin-bottom: 6px; }
.mw .pasos-a li p { margin: 0; color: var(--tinta-2); font-size: 16px; line-height: 24px; }
.mw .pasos-a li.on .num { color: var(--acento-tx); }
.mw .pasos-a li.on::before { opacity: 1; transform: none; }

.mw .demo-a { position: relative; background: var(--hoja); border: 2px solid var(--linea); box-shadow: var(--sombra-l); }
.mw .demo-a .cabeza { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-bottom: 2px solid var(--linea); background: var(--papel); font-family: var(--font-mono); font-size: 12px; color: var(--tinta-3); }
.mw .demo-a .cabeza i { width: 12px; height: 12px; border: 2px solid var(--linea); display: block; }
.mw .demo-a .cabeza i:first-child { background: var(--senal); }
.mw .demo-a .cabeza span { margin-left: 12px; }
.mw .demo-a .cabeza .repetir { margin-left: auto; all: unset; margin-left: auto; cursor: pointer; font-family: var(--font-mono); font-size: 12px; color: var(--tinta); text-decoration: underline; text-underline-offset: 4px; }
.mw .demo-a .cuerpo-a { position: relative; min-height: 470px; padding: 28px 28px 132px; display: flex; flex-direction: column; gap: 16px; }
.mw .pedido { align-self: flex-end; max-width: 82%; padding: 14px 18px; background: var(--acento); color: var(--sobre-acento); border: 2px solid var(--linea); font-size: 17px; line-height: 25px; min-height: 55px; }
.mw .pedido .cursor { display: inline-block; width: 2px; height: 1.1em; background: currentColor; vertical-align: -3px; margin-left: 2px; animation: mw-parpadeo 900ms steps(1) infinite; }
@keyframes mw-parpadeo { 50% { opacity: 0; } }
.mw .pensando { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--tinta-3); opacity: 0; transition: opacity 200ms; }
.mw .plan { border: 2px solid var(--linea); background: var(--hoja); opacity: 0; transform: translateY(12px); transition: opacity 320ms var(--ww-salida), transform 320ms var(--ww-salida); }
.mw .plan .t { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 2px solid var(--linea); background: var(--papel); }
.mw .plan .t b { font-family: var(--f-titular); font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.mw .plan ol { list-style: none; margin: 0; padding: 0; }
.mw .plan li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 12px 16px; border-bottom: 2px solid var(--linea); font-size: 15px; line-height: 22px; }
.mw .plan li small { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--tinta-3); margin-top: 2px; }
.mw .plan .caja { width: 20px; height: 20px; border: 2px solid var(--linea); margin-top: 1px; position: relative; background: var(--hoja); transition: background 160ms; }
.mw .plan li.hecho .caja { background: var(--senal); }
.mw .plan li.hecho .caja::after { content: ""; position: absolute; left: 4px; top: 0; width: 6px; height: 11px; border-right: 2px solid var(--linea); border-bottom: 2px solid var(--linea); transform: rotate(45deg); }
.mw .plan li.hecho span:not(.caja) { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--tinta-2); }
.mw .plan .pie-p { display: flex; justify-content: flex-end; gap: 12px; padding: 12px 16px; }
.mw .plan .pie-p .ww-btn { height: 40px; padding: 0 16px; font-size: 14px; box-shadow: var(--sombra-s); }
.mw .plan .pie-p .ww-btn.pulsado { transform: translate(4px, 4px); box-shadow: none; }
.mw .listo { position: absolute; left: 28px; bottom: 34px; font-family: var(--f-titular); font-weight: 600; font-size: 22px; letter-spacing: -.03em; opacity: 0; transform: translateY(8px); transition: opacity 300ms, transform 300ms; }
.mw .listo mark { background: var(--senal); padding: 0 .1em; }
.mw .demo-a .piso-a { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; border-top: 2px solid var(--linea); background: var(--papel); }
.mw .demo-a .gw { left: auto; right: 40px; bottom: 0; }
.mw .demo-a[data-fase="pensando"] .pensando { opacity: 1; }
.mw .demo-a[data-fase="plan"] .plan, .mw .demo-a[data-fase="haciendo"] .plan, .mw .demo-a[data-fase="listo"] .plan { opacity: 1; transform: none; }
.mw .demo-a[data-fase="listo"] .listo { opacity: 1; transform: none; }

.mw .tres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 88px; border-top: 2px solid var(--linea); border-left: 2px solid var(--linea); }
.mw .tres > div { padding: 32px 28px 36px; border-right: 2px solid var(--linea); border-bottom: 2px solid var(--linea); display: flex; flex-direction: column; gap: 12px; background: var(--hoja); }
.mw .tres b { font-family: var(--f-titular); font-weight: 600; font-size: 30px; line-height: 1; letter-spacing: -.04em; }
.mw .tres p { margin: 0; color: var(--tinta-2); font-size: 16px; line-height: 24px; }
.mw .tres .aviso-mini { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; }
.mw .tres .aviso-mini span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; border: 2px solid var(--linea); padding: 4px 8px; }
.mw .tres .aviso-mini span:first-child { background: var(--senal); }

/* ---------- 02 · Editor ---------- */
.mw .editor { background: var(--hoja); border: 2px solid var(--linea); box-shadow: var(--sombra-xl, var(--sombra-l)); }
.mw .editor .cabeza { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-bottom: 2px solid var(--linea); background: var(--papel); font-family: var(--font-mono); font-size: 12px; color: var(--tinta-3); }
.mw .editor .cabeza i { width: 12px; height: 12px; border: 2px solid var(--linea); display: block; }
.mw .editor .cabeza i:first-child { background: var(--senal); }
.mw .editor .cabeza span { margin-left: 12px; }
.mw .ed-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 2px solid var(--linea); }
.mw .ed-barra .esp { flex: 1; }
.mw .ed-btn { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border: 2px solid var(--linea); background: var(--hoja); font-size: 14px; font-weight: 500; cursor: pointer; box-shadow: 3px 3px 0 var(--linea); transition: transform 120ms, box-shadow 120ms; white-space: nowrap; }
.mw .ed-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--linea); }
.mw .ed-btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--linea); }
.mw .ed-btn:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
.mw .ed-btn.pri { background: var(--acento); color: var(--sobre-acento); }
.mw .ed-btn.senal { background: var(--senal); }
.mw .ed-btn.chico { height: 30px; padding: 0 10px; font-size: 13px; box-shadow: 2px 2px 0 var(--linea); }
.mw .ed-nombre { height: 36px; width: 220px; padding: 0 12px; border: 2px solid var(--linea); background: var(--hoja); color: var(--tinta); font: 500 15px/1 var(--f-titular); }
.mw .ed-nombre:focus { outline: 2px solid var(--acento); outline-offset: 1px; }
.mw .ed-cuerpo { display: grid; grid-template-columns: 250px minmax(0, 1fr) 250px; }
.mw .ed-col { padding: 18px; min-width: 0; }
.mw .ed-col + .ed-col { border-left: 2px solid var(--linea); }
.mw .ed-h { margin: 0 0 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--tinta); }
.mw .ed-grupo { margin: 16px 0 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--tinta-3); }
.mw .ed-grupo:first-of-type { margin-top: 0; }
.mw .ed-anim { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 5px 10px; border: 2px solid transparent; font-size: 14px; line-height: 18px; cursor: pointer; }
.mw .ed-anim:hover { border-color: var(--linea); }
.mw .ed-anim:focus-visible { outline: 2px solid var(--acento); outline-offset: -2px; }
.mw .ed-anim.on { background: var(--acento); color: var(--sobre-acento); border-color: var(--linea); }
.mw .ed-anim .n { font-family: var(--font-mono); font-size: 11px; opacity: .7; }
.mw .ed-anim .ob { font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; padding: 1px 4px; background: var(--senal); color: var(--sobre-senal); border: 1px solid var(--linea); margin-left: 6px; }
.mw .ed-area { display: flex; gap: 14px; align-items: flex-start; }
.mw .ed-herr { display: flex; flex-direction: column; gap: 6px; }
.mw .ed-herr button { all: unset; box-sizing: border-box; width: 40px; height: 40px; display: grid; place-items: center; border: 2px solid var(--linea); background: var(--hoja); cursor: pointer; transition: background 120ms; }
.mw .ed-herr button:hover { background: var(--papel); }
.mw .ed-herr button:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
.mw .ed-herr button.on { background: var(--senal); box-shadow: 2px 2px 0 var(--linea); }
.mw .ed-herr svg { width: 20px; height: 20px; fill: none; stroke: var(--tinta); stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
.mw .ed-herr hr { width: 24px; height: 2px; margin: 4px auto; border: 0; background: var(--linea); }
.mw .ed-herr .muestra-c { width: 40px; height: 40px; border: 2px solid var(--linea); box-shadow: inset 0 0 0 3px var(--hoja); }
.mw .ed-lienzo-caja { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.mw .ed-lienzo { display: block; width: 100%; max-width: 448px; aspect-ratio: 1; border: 2px solid var(--linea); cursor: crosshair; touch-action: none; background: var(--hoja); }
.mw .ed-info { display: flex; justify-content: space-between; align-items: center; gap: 10px; max-width: 448px; flex-wrap: wrap; }
.mw .ed-info b { font-family: var(--f-titular); font-weight: 600; font-size: 20px; letter-spacing: -.03em; }
.mw .ed-ayuda { margin: 0; max-width: 448px; color: var(--tinta-2); font-size: 13.5px; line-height: 20px; }
.mw .ed-tira { display: flex; gap: 6px; overflow-x: auto; padding: 4px 4px 8px 0; max-width: 100%; }
.mw .ed-tira button { all: unset; flex: none; width: 52px; height: 52px; border: 2px solid var(--linea); background: var(--hoja); cursor: pointer; position: relative; }
.mw .ed-tira button.on { box-shadow: 0 0 0 3px var(--acento); }
.mw .ed-tira button span { position: absolute; left: 2px; top: 1px; font-family: var(--font-mono); font-size: 9px; color: var(--tinta-3); }
.mw .ed-tira canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.mw .ed-ctrl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mw .ed-ms { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--tinta-3); }
.mw .ed-ms input { width: 64px; height: 30px; padding: 0 8px; border: 2px solid var(--linea); background: var(--hoja); color: var(--tinta); font: 500 13px/1 var(--font-mono); }
.mw .ed-paleta { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 12px; }
.mw .ed-paleta button { all: unset; box-sizing: border-box; aspect-ratio: 1; border: 2px solid var(--linea); cursor: pointer; }
.mw .ed-paleta button.on { box-shadow: 0 0 0 2px var(--hoja), 0 0 0 4px var(--acento); }
.mw .ed-paleta button:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }
.mw .ed-nuevo-c { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--tinta-2); }
.mw .ed-nuevo-c input { width: 40px; height: 30px; padding: 0; border: 2px solid var(--linea); background: none; cursor: pointer; }
.mw .ed-vistas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.mw .ed-vistas canvas { width: 100%; aspect-ratio: 1; display: block; image-rendering: pixelated; border: 2px solid var(--linea); }
.mw .ed-vistas canvas.osc { background: #0e1116; }
.mw .ed-vistas canvas.cla { background: #f2f0e9; }
.mw .ed-tam { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mw .ed-tam button { all: unset; cursor: pointer; padding: 4px 8px; border: 2px solid var(--linea); font-size: 12px; }
.mw .ed-tam button.on { background: var(--tinta); color: var(--papel); }
.mw .ed-aviso { position: absolute; left: 50%; bottom: 24px; translate: -50% 0; padding: 10px 16px; background: var(--tinta); color: var(--papel); border: 2px solid var(--linea); font-size: 14px; opacity: 0; transform: translateY(8px); transition: opacity 200ms, transform 200ms; pointer-events: none; white-space: nowrap; z-index: 5; }
.mw .ed-aviso.on { opacity: 1; transform: none; }
.mw .editor-caja { position: relative; }

.mw .como { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 72px; }
.mw .como > div { border-top: 2px solid var(--linea); padding-top: 20px; }
.mw .como .num { font-family: var(--font-mono); font-size: 48px; line-height: 1; letter-spacing: -.06em; color: var(--acento-tx); }
.mw .como b { display: block; margin: 16px 0 8px; font-family: var(--f-titular); font-weight: 600; font-size: 26px; letter-spacing: -.035em; line-height: 1.05; }
.mw .como p { margin: 0; color: var(--tinta-2); font-size: 16px; line-height: 24px; }

/* ---------- 03 · Momentos ---------- */
.mw .momentos { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; }
.mw .vitrina { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.mw .vitrina-esc { position: relative; height: 300px; border: 2px solid var(--linea); background: var(--hoja); box-shadow: var(--sombra-m); overflow: hidden; background-image: linear-gradient(rgba(14,17,22,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(14,17,22,.06) 1px, transparent 1px); background-size: 32px 32px; }
.mw .vitrina-esc::after { content: ""; position: absolute; left: 0; right: 0; bottom: 48px; height: 2px; background: var(--linea); }
.mw .vitrina-esc .gw { --e: 6; left: 50%; bottom: 50px; margin-left: -96px; cursor: default; }
.mw .vitrina .nombre-v { font-family: var(--f-titular); font-weight: 600; font-size: 32px; letter-spacing: -.04em; line-height: 1; }
.mw .vitrina .ayuda-v { margin: 0; color: var(--tinta-2); font-size: 16px; line-height: 24px; min-height: 48px; }
.mw .grupos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
.mw .grupo h3 { margin: 0 0 4px; display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--tinta); padding-bottom: 10px; border-bottom: 2px solid var(--linea); }
.mw .grupo h3 span { color: var(--tinta-3); }
.mw .mom { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; width: 100%; padding: 14px 10px 14px 0; border-bottom: 2px solid var(--linea); cursor: pointer; transition: padding 200ms var(--ww-salida), background 200ms; }
.mw .mom b { font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.mw .mom .n { font-family: var(--font-mono); font-size: 11px; color: var(--tinta-3); align-self: center; }
.mw .mom p { grid-column: 1 / -1; margin: 0; color: var(--tinta-2); font-size: 14px; line-height: 20px; }
.mw .mom:hover, .mw .mom:focus-visible, .mw .mom.on { padding-left: 12px; background: linear-gradient(90deg, var(--senal) 0 4px, transparent 4px); }
.mw .mom:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
.mw .mom .ob { font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; padding: 1px 4px; background: var(--senal); border: 1px solid var(--linea); margin-left: 8px; vertical-align: 2px; }

@media (max-width: 1100px) {
  .mw .hero-m-grid, .mw .agente-grid, .mw .momentos { grid-template-columns: 1fr; gap: 48px; }
  .mw .hero-m-texto { padding-bottom: 0; }
  .mw .rincon { height: 440px; }
  .mw .ed-cuerpo { grid-template-columns: 220px minmax(0, 1fr); }
  .mw .ed-cuerpo .ed-der { grid-column: 1 / -1; border-left: 0; border-top: 2px solid var(--linea); }
  .mw .vitrina { position: static; }
}
@media (max-width: 760px) {
  .mw .ed-cuerpo { grid-template-columns: 1fr; }
  .mw .ed-col + .ed-col { border-left: 0; border-top: 2px solid var(--linea); }
  .mw .tres, .mw .como, .mw .grupos { grid-template-columns: 1fr; }
  .mw .menu-m { right: 0; width: min(300px, 100%); bottom: 80px; }
  .mw .sticker-m { display: none; }
  .mw .vitrina-esc .gw { --e: 4; margin-left: -64px; }
}
@media (prefers-reduced-motion: reduce) {
  .mw .plan, .mw .listo { transition: none; }
}
.mw .plan .t .ya { display: none; }
.mw .demo-a[data-fase="haciendo"] .plan .t .aun, .mw .demo-a[data-fase="listo"] .plan .t .aun { display: none; }
.mw .demo-a[data-fase="haciendo"] .plan .t .ya, .mw .demo-a[data-fase="listo"] .plan .t .ya { display: inline; }
