/* WOPE, el entrenador virtual que acompaña en toda la web. */
.wm {
	--wm-piel: #c98a5b; --wm-pelo: #2b2118; --wm-remera: #f0a418; --wm-short: #26046e;
	position: fixed; left: 16px; bottom: 16px; z-index: 9000;
	display: flex; align-items: flex-end; gap: 10px; font-family: Inter, system-ui, sans-serif;
}
.wm.is-der { left: auto; right: 16px; flex-direction: row-reverse; }
.wm.is-mudo { opacity: .45; }
.wm-yo {
	position: relative; flex: none; width: 74px; height: 74px; padding: 0; border: 0; cursor: pointer;
	border-radius: 50%; background: radial-gradient(circle at 50% 120%, #4607c7, #1a0550 70%);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .45), 0 0 0 3px rgba(240, 164, 24, .85);
	overflow: hidden; transition: transform .2s;
}
.wm-yo:hover { transform: translateY(-3px) scale(1.04); }
.wm-yo:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.wm-svg { position: absolute; left: 50%; bottom: -14%; width: 112%; transform: translateX(-50%); }
.wm-punto { position: absolute; top: 4px; right: 6px; width: 12px; height: 12px; border-radius: 50%; background: #f0a418; box-shadow: 0 0 0 2px #1a0550; animation: wm-lat 2.4s ease-in-out infinite; }
@keyframes wm-lat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }

/* el dibujo */
.wm-cara { fill: var(--wm-piel); }
.wm-oreja { fill: var(--wm-pelo); }
.wm-oreja-in { fill: var(--wm-piel); opacity: .75; }
/* La frente del mono: el mismo pelo, un punto más oscuro para que se note el relieve. */
.wm-frente { fill: color-mix(in srgb, var(--wm-pelo) 80%, #000); }
.wm-hocico { fill: color-mix(in srgb, var(--wm-piel) 86%, #fff); }
.wm-nariz { fill: #5c3425; }
.wm-pupila circle { fill: #2a1b12; }
.wm-pelo { fill: var(--wm-pelo); }
.wm-barba { fill: var(--wm-pelo); opacity: .92; }
.wm-ceja { fill: none; stroke: var(--wm-pelo); stroke-width: 3.4; stroke-linecap: round; }
.wm-ojos circle { fill: #fff; }
.wm-boca { fill: none; stroke: #7a3b2a; stroke-width: 3.2; stroke-linecap: round; }
.wm-cuello { fill: var(--wm-piel); }
.wm-torso { fill: var(--wm-remera); }
/* Brazos de mono: más gruesos que los de antes. */
.wm-br { fill: none; stroke: var(--wm-pelo); stroke-width: 13.5; stroke-linecap: round; }
.wm-pl { fill: var(--wm-piel); }
.wm-dedo { stroke: var(--wm-piel); stroke-width: 5; stroke-linecap: round; }
.wm-dedo { stroke: var(--wm-piel); stroke-width: 7; stroke-linecap: round; }
.wm-gorra { fill: var(--wm-short); }
.wm-gorra2 { fill: var(--wm-short); filter: brightness(1.4); }
.wm-banda { fill: var(--wm-short); }
.wm-cuerpo { transform-origin: 62px 120px; }
.wm.is-on .wm-cuerpo { animation: wm-bob 2.6s ease-in-out infinite; }
@keyframes wm-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(-1.5deg); } }

/* lo que dice */
.wm-globo {
	position: relative; max-width: min(330px, calc(100vw - 118px));
	background: var(--w3-text); color: var(--w3-bg); border-radius: 16px 16px 16px 4px;
	padding: 14px 16px 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
	animation: wm-sube .22s ease-out;
}
.wm.is-der .wm-globo { border-radius: 16px 16px 4px 16px; }
@keyframes wm-sube { from { opacity: 0; transform: translateY(10px); } }
.wm-globo::after { content: ''; position: absolute; bottom: 10px; right: -7px; width: 14px; height: 14px; background: var(--w3-text); transform: rotate(45deg); }
.wm.is-der .wm-globo::after { right: auto; left: -7px; }
.wm-txt { margin: 0; font-size: 15.5px; line-height: 1.45; padding-right: 14px; }
.wm-x { position: absolute; top: 4px; right: 6px; width: 26px; height: 26px; border: 0; background: none; color: #8a8a8a; font-size: 14px; cursor: pointer; border-radius: 50%; }
.wm-x:hover { background: var(--w3-text); color: var(--w3-bg); }
.wm-acc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.wm-acc:empty { display: none; }
.wm-b { border: 0; border-radius: 99px; padding: 8px 14px; background: #26046e; color: #fff; font: 600 13.5px Inter, sans-serif; cursor: pointer; }
.wm-b:hover { background: #f0a418; color: #1d1400; }

/* vestidor */
.wm-vest { display: grid; gap: 10px; margin-bottom: 10px; }
.wm-fila b { display: block; font-size: 12.5px; color: #666; margin-bottom: 4px; }
.wm-fila > div { display: flex; flex-wrap: wrap; gap: 6px; }
.wm-color { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--w3-soft); background: var(--c); cursor: pointer; padding: 0; }
.wm-color.is-on { border-color: var(--w3-bg); box-shadow: 0 0 0 2px #f0a418; }
.wm-tog { border: 1.5px solid var(--w3-soft); background: #fff; border-radius: 99px; padding: 5px 10px; font-size: 13px; cursor: pointer; }
.wm-tog.is-on { border-color: var(--w3-bg); background: #fff6e2; font-weight: 600; }

@media (max-width: 520px) {
	.wm { left: 10px; bottom: 10px; gap: 8px; }
	.wm.is-der { right: 10px; }
	.wm-yo { width: 60px; height: 60px; }
	.wm-txt { font-size: 15px; }
}
@media print { .wm { display: none; } }

/* ---- el asistente: panel ancho con tarjetas ---- */
.wm.is-ancho .wm-globo { width: min(340px, calc(100vw - 32px)); max-height: min(70vh, 560px); overflow-y: auto; }
.wm-cards { display: grid; gap: 8px; margin: 10px 0 4px; }
.wm-card { display: flex; gap: 10px; align-items: center; text-decoration: none; color: inherit; padding: 8px; border-radius: 12px; border: 1px solid rgba(128,128,128,.28); background: rgb(var(--w3-tinte) / .03); }
.wm-card:hover { border-color: var(--wope-oro, #e8b84b); transform: translateY(-1px); }
.wm-card-img { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 9px; overflow: hidden; background: rgba(128,128,128,.18); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.wm-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wm-card-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.wm-card-eti { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.wm-card-t { font-size: 14px; line-height: 1.25; }
.wm-card-d { font-size: 12px; opacity: .75; line-height: 1.35; }
.wm-card-p { font-size: 12px; font-weight: 700; color: var(--wope-oro, #e8b84b); margin-top: 2px; }
.wm-paso { font-size: 11px; opacity: .6; margin: 0 0 8px; letter-spacing: .06em; text-transform: uppercase; }
.wm-b.is-wa { background: #25d366; color: #0b2b16; border-color: transparent; font-weight: 700; }
.wm-b.is-chico { font-size: 12px; opacity: .75; padding: 6px 10px; }
.wm-expansor { fill: var(--w3-bg); }
.wm-bigote { fill: var(--wm-pelo, #241a14); }
.wm-copete { fill: var(--wm-pelo, #241a14); }
.wm-tira { stroke: var(--wm-remera, var(--w3-bg)); stroke-width: 7; fill: none; stroke-linecap: round; }
.wm-piel-t { fill: var(--wm-piel, #c08457); }
.wm-logo { fill: none; stroke: var(--wm-logo, #f0b429); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.wm-logo-l { stroke-width: 2.2; opacity: .85; }
