/* MP Chistes (seo-pasatiempos, 25-11-2026). Mismo lenguaje que la portada (mp-seo-portada.php): Montserrat 800 en
   títulos, tinta #16323c, marca #29a5bc / #0f7f95, tarjetas de 18 px con borde de color, botones de 14 px.
   Todo va dentro de .mpch para no tocar el tema. Se genera desde /opt/seo-pasatiempos/web/mp-chistes/fuente. */
.mpch{--tinta:#16323c;--suave:#5b7480;--raya:#dfe8ec;--marca:#29a5bc;--marca-osc:#0f7f95;--fondo2:#f3f8fa;--c:#29a5bc;
  display:flex;flex-direction:column;gap:48px;margin:16px 0 48px;color:var(--tinta);font-family:'Montserrat',sans-serif;
  font-weight:500;font-size:16px;line-height:1.45;text-align:left}
.mpch *,.mpch *::before,.mpch *::after{box-sizing:border-box}
.mpch p,.mpch li,.mpch h2,.mpch span,.mpch a{text-align:left;text-justify:auto;hyphens:manual}
.mpch p{margin:0;padding:0}
.mpch ul{margin:0;padding:0;list-style:none}
.mpch li{margin:0;list-style:none}
.mpch li::before,.mpch li::marker{content:none}
.mpch h2{margin:0;padding:0;font-size:1.35rem;line-height:1.2;font-weight:800;color:var(--tinta);text-align:left;font-family:'Montserrat',sans-serif}
.mpch img{max-width:100%;border:0;box-shadow:none;margin:0;padding:0}
.mpch button{font:inherit;cursor:pointer;color:inherit;margin:0}
.mpch a{text-decoration:none}
.mpch button:focus-visible,.mpch a:focus-visible{outline:3px solid var(--marca-osc);outline-offset:2px}
.mpch svg{display:block}

/* Arriba: la frase de entrada y «Compartir con tu clase» */
.mpch .cabecera{display:flex;flex-wrap:wrap;gap:20px 32px;align-items:center;justify-content:space-between}
.mpch .entrada{color:var(--suave);font-size:1.05rem;flex:1 1 320px}
.mpch .boton{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:999px;padding:14px 28px;font-weight:700;font-size:1.05rem;background:var(--marca-osc);color:#fff;text-decoration:none;transition:transform .15s,background .15s}
.mpch .boton:hover{transform:translateY(-2px);color:#fff}
.mpch .boton.linea{background:#fff;color:var(--marca-osc);box-shadow:inset 0 0 0 2px var(--raya)}
.mpch .boton.linea:hover{color:var(--marca-osc)}
.mpch .boton svg{width:20px;height:20px;flex:none}
.mpch .trazo svg{fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.mpch .panel[hidden]{display:none}

/* Tipos de chistes: como «Por curso» en la portada; son enlaces, cada tipo tiene su página */
.mpch .juego{display:flex;flex-direction:column;gap:28px;scroll-margin-top:90px}
.mpch .rotulo{font-weight:800;font-size:.95rem;margin-bottom:-12px}
.mpch .filtros{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:16px}
.mpch .chip{display:flex;align-items:center;gap:10px;min-height:58px;padding:10px 14px 10px 10px;border-radius:14px;background:var(--c);color:#fff;font-weight:700;font-size:.9rem;line-height:1.15;text-align:left;transition:filter .15s,transform .15s}
.mpch .chip:hover{filter:brightness(1.08);transform:translateY(-2px);color:#fff}
.mpch .chip i{flex:none;width:34px;height:34px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;font-style:normal;font-weight:800;font-size:.85rem;color:var(--c)}
.mpch .chip[aria-current="page"]{box-shadow:0 0 0 3px #fff,0 0 0 6px var(--c)}

/* La tarjeta del juego: el dibujo con el color de su casilla + el chiste */
.mpch .tarjeta{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);border:2px solid var(--c);border-radius:18px;overflow:hidden;background:#fff}
.mpch .franja{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 24px;padding:16px 24px;background:color-mix(in srgb,var(--c) 12%,#fff);border-bottom:2px solid var(--c)}
.mpch .franja-izq,.mpch .franja-der{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px}
.mpch .etiqueta{background:var(--c);color:#fff;border-radius:10px;padding:7px 14px;font-size:.85rem;letter-spacing:.05em;text-transform:uppercase;font-weight:800}
.mpch .cuenta{color:var(--suave);font-size:.9rem;font-weight:600}
/* «Empezar de nuevo»: al lado del contador, callado (texto subrayado), para que no compita con «Siguiente» */
.mpch .reiniciar{display:inline-flex;align-items:center;gap:6px;border:0;background:none;padding:6px 2px;color:var(--tinta);font-size:.88rem;font-weight:700;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1.5px}
.mpch .reiniciar:hover{color:var(--c)}
.mpch .reiniciar svg{width:16px;height:16px;flex:none}
.mpch .reiniciar[hidden]{display:none}
.mpch .cara{position:relative;min-height:420px;background:#fff;overflow:hidden}
.mpch .cara img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block;animation:mpch-entra .35s ease-out}
.mpch .lado{padding:36px;display:flex;flex-direction:column;gap:24px;min-width:0}
.mpch .texto{font-size:1.5rem;line-height:1.4;font-weight:600;white-space:pre-line;flex:0 1 auto}
.mpch .texto.extenso{font-size:1.15rem;line-height:1.55;font-weight:500}
.mpch .remate-j{font-size:1.55rem;line-height:1.4;font-weight:800;color:var(--c);white-space:pre-line;animation:mpch-entra .35s ease-out}
.mpch .remate-j.extenso{font-size:1.2rem}
.mpch .remate-j[hidden]{display:none}
.mpch .botones{display:flex;gap:16px;margin-top:auto}
.mpch .tecla{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:14px;padding:11px 18px;font-weight:700;font-size:.95rem;line-height:1.15;background:#fff;color:var(--tinta);box-shadow:0 3px 0 rgba(22,50,60,.28);transition:transform .1s,box-shadow .1s,filter .15s}
.mpch .tecla:hover{filter:brightness(1.06)}
.mpch .tecla:active{transform:translateY(3px);box-shadow:0 0 0 rgba(22,50,60,.28)}
.mpch .tecla svg{width:20px;height:20px;flex:none}
.mpch .tecla[hidden]{display:none}
.mpch .tecla.puesto{background:#ffd23f}
.mpch .franja .tecla{box-shadow:0 3px 0 rgba(22,50,60,.22),inset 0 0 0 1.5px var(--raya)}
.mpch .tecla.grande{flex:1 1 0;min-width:0;padding:17px 20px;font-size:1.1rem;font-weight:800;color:#fff}
.mpch .tecla.grande:hover{color:#fff}
.mpch .tecla.naranja{background:#f2711c;box-shadow:0 4px 0 #b84e08}
.mpch .tecla.verde{background:#1f9d55;box-shadow:0 4px 0 #14703b}
.mpch .tecla.grande:active{transform:translateY(4px);box-shadow:0 0 0 transparent}
@keyframes mpch-entra{from{transform:scale(.85);opacity:0}to{transform:scale(1);opacity:1}}
@media (prefers-reduced-motion:reduce){.mpch .chip,.mpch .tecla,.mpch .boton{transition:none}.mpch .cara img,.mpch .remate-j{animation:none}}

/* Todos los chistes escritos, con su dibujo */
.mpch .tema{display:flex;flex-direction:column;gap:20px}
.mpch .cab{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.mpch .cab a{font-weight:700;color:var(--marca-osc);font-size:.92rem;padding:8px 0}
.mpch .chistes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.mpch .chistes.una{grid-template-columns:1fr}
.mpch .chistes li{display:grid;grid-template-columns:168px minmax(0,1fr);gap:20px;align-items:center;background:#fff;border:2px solid var(--c);border-radius:18px;padding:20px 24px 20px 16px}
.mpch .chistes img{display:block;width:100%;height:auto;aspect-ratio:3/2;border-radius:12px}
.mpch .ch{display:flex;flex-direction:column;gap:10px}
.mpch .antes{white-space:pre-line;font-weight:600;font-size:1.05rem;line-height:1.5}
.mpch .remate{white-space:pre-line;font-weight:800;font-size:1.05rem;line-height:1.5;color:var(--c)}
@media (max-width:860px){.mpch .chistes{grid-template-columns:1fr}}
@media (max-width:760px){
  .mpch{gap:40px}
  .mpch .tarjeta{grid-template-columns:1fr}
  .mpch .cara{min-height:0;aspect-ratio:3/2}
  .mpch .lado{padding:24px}.mpch .texto{font-size:1.25rem}.mpch .remate-j{font-size:1.25rem}
  .mpch .largo{display:none}.mpch .tecla.grande{padding:16px 10px;font-size:1rem}.mpch .franja{padding:14px 16px}
  .mpch .filtros{display:flex;overflow-x:auto;padding:8px 4px 12px;scrollbar-width:none}.mpch .chip{flex:0 0 auto}
  .mpch .chistes li{grid-template-columns:120px minmax(0,1fr);gap:16px;padding:16px}
}

/* «Compartir con tu clase»: el de los entrenadores (mp-entrenadores/assets/compartir-0.1.1.css, estilo «b»), con sus
   medidas y colores (27-11-2026). Si cambia allí, se cambia aquí: que no haya dos «Compartir» en la web. */
.mpch .compartir{position:relative;flex:0 0 auto;text-align:left}
.mpch button.compartir-boton{display:inline-flex;align-items:center;gap:10px;height:46px;padding:0 22px;background:#e3f6fa;color:#1b6f80;border:2px solid #7cc9d8;border-radius:999px;font-size:15px;font-weight:700;line-height:1;white-space:nowrap;cursor:pointer;transition:background-color .15s,border-color .15s}
.mpch button.compartir-boton:hover,.mpch .compartir-abierto button.compartir-boton{background:#cfeef5;border-color:#29a5bc}
.mpch .compartir svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mpch button.compartir-boton svg{stroke:#f26b1d;stroke-width:2.4}
.mpch .compartir-panel{position:absolute;top:calc(100% + 12px);right:0;z-index:50;width:500px;max-width:calc(100vw - 48px);padding:28px;background:#fff;border:2px solid #9fd2dd;border-radius:22px;box-shadow:0 18px 40px rgba(11,61,110,.18);text-align:left}
.mpch .compartir-panel[hidden]{display:none}
.mpch button.compartir-cerrar{position:absolute;top:14px;right:14px;display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;background:transparent;color:#5d6b70;border:0;border-radius:50%;cursor:pointer}
.mpch button.compartir-cerrar:hover{background:#e7fafd;color:#0b3d6e}
.mpch p.compartir-titulo{margin:0 48px 0 0;padding:0;font-size:19px;font-weight:800;line-height:1.3;color:#0b3d6e}
.mpch p.compartir-que{margin:12px 0 0;padding:0;font-size:15px;line-height:1.5;color:#393f40}
.mpch p.compartir-que strong{color:#0b3d6e;font-weight:700}
.mpch .compartir-acciones{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:24px}
.mpch .compartir-accion{display:flex;align-items:center;justify-content:center;gap:10px;height:52px;padding:0 16px;border-radius:14px;font-family:inherit;font-size:15px;font-weight:700;line-height:1.2;text-align:center;white-space:nowrap;text-decoration:none;cursor:pointer;box-sizing:border-box;transition:background-color .15s,border-color .15s}
.mpch a.compartir-classroom,.mpch a.compartir-classroom:visited{background:#1b6f80;color:#fff;border:2px solid #1b6f80}
.mpch a.compartir-classroom:hover,.mpch a.compartir-classroom:focus{background:#0b3d6e;border-color:#0b3d6e;color:#fff}
.mpch button.compartir-copiar{background:#fff;color:#1b6f80;border:2px solid #9fd2dd}
.mpch button.compartir-copiar:hover{background:#e7fafd;border-color:#29a5bc}
.mpch input.compartir-enlace{display:block;width:100%;height:42px;margin:20px 0 0;padding:0 14px;background:#f5fbfc;color:#5d6b70;border:1px solid #d3ecf1;border-radius:10px;box-shadow:none;font-family:inherit;font-size:13px;line-height:40px}
.mpch input.compartir-enlace:focus{outline:2px solid #29a5bc;outline-offset:1px}
.mpch p.compartir-aviso{margin:0;padding:0;font-size:14px;line-height:1.4}
.mpch p.compartir-aviso:empty{display:none}
.mpch p.compartir-aviso.bien,.mpch p.compartir-aviso.mal{margin-top:14px}
.mpch p.compartir-aviso.bien{color:#1f9d63;font-weight:700}
.mpch p.compartir-aviso.mal{color:#e0474c}
@media (max-width:640px){
  .mpch .cabecera .compartir{flex:1 1 100%;text-align:center}
  .mpch button.compartir-boton{height:44px;padding:0 20px;font-size:14px}
  .mpch .compartir-panel{left:0;right:0;width:auto;max-width:none;padding:24px 20px}
  .mpch p.compartir-titulo{font-size:17px;margin-right:44px}
  .mpch .compartir-acciones{grid-template-columns:1fr;gap:12px;margin-top:20px}
}
