/* Intercambios con «Mis preferencias» (Guille 19/11/2026), prefijo mp-. Con el interruptor
   apagado esta hoja no se carga.
   1 · «Cambiar» de «Tus idiomas»: era un enlace subrayado diminuto; ahora un botón de
       verdad, de al menos 44 px de alto (tamaño de dedo).
   2 · Filtro de hora «Mis horas · Todas» y, sin horas, «Elige tus horas».
   3 · Intercambio lleno: chapa pequeña en la tarjeta y la hoja «¿Quieres apuntarte?». */
.du-cn-edit.mp-edit,
.pbc-du .du-cn-edit.mp-edit,
body.pbc-rvm .rvm-langs .du-cn-edit.mp-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 18px;
  box-sizing: border-box;
  border: 2px solid hsl(var(--pbc-blue, 209 92% 41%));
  border-radius: var(--pbc-radius-field, 14px);
  background: hsl(var(--pbc-blue-soft, 212 83% 95%));
  color: hsl(var(--pbc-blue, 209 92% 41%));
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}
.du-cn-edit.mp-edit svg { flex: none; }
.du-cn-edit.mp-edit:active { transform: translateY(1px); }

/* 2 · Filtro de hora */
.mp-hf { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.mp-hf-ico { flex: none; color: hsl(var(--pbc-muted, 213 17% 43%)); }
.mp-hf-seg { display: inline-flex; padding: 3px; gap: 3px; border-radius: 14px; background: hsl(var(--pbc-line-soft, 215 35% 93%)); }
.mp-hf-opt {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 40px; padding: 0 14px; border-radius: 11px;
  color: hsl(var(--pbc-ink-soft, 211 24% 34%)); font-size: 15px; font-weight: 700;
  text-decoration: none; white-space: nowrap;
}
.mp-hf-opt.is-on { background: #fff; color: hsl(var(--pbc-blue, 209 92% 41%)); box-shadow: 0 1px 3px rgba(21,38,59,.14); }
.mp-hf-opt small { font-size: 13px; font-weight: 600; color: hsl(var(--pbc-muted, 213 17% 43%)); }
.mp-hf-ask {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 14px; border: 2px dashed hsl(var(--pbc-blue, 209 92% 41%) / .45);
  color: hsl(var(--pbc-blue, 209 92% 41%)); font-size: 15px; font-weight: 700; text-decoration: none;
}
.mp-hf-none { margin: 0 0 12px; font-size: 14px; color: hsl(var(--pbc-muted, 213 17% 43%)); }

/* 3 · Intercambio lleno: la chapa, discreta (antes una caja amarilla en cada tarjeta) */
.tandem-slot__students {
  display: inline-flex; align-items: center; gap: 4px; align-self: flex-start;
  margin-top: 4px; padding: 2px 8px; border-radius: 999px;
  background: hsl(var(--pbc-gold-soft, 49 100% 90%)); color: hsl(var(--pbc-gold-ink, 32 100% 18%));
  font-size: 12px; font-weight: 700; line-height: 1.4; white-space: nowrap;
}
.tandem-slot__students svg { flex: none; }

/* La hoja «¿Quieres apuntarte?» */
.mp-sheet { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: flex-end; justify-content: center; }
.mp-sheet[hidden] { display: none; }
.mp-sheet-bg { position: absolute; inset: 0; background: rgba(21,38,59,.45); }
.mp-sheet-box {
  position: relative; width: min(100%, 480px); box-sizing: border-box;
  padding: 22px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  border-radius: 22px 22px 0 0; background: #fff; text-align: center;
  display: flex; flex-direction: column; gap: 12px;
  font-family: var(--pbc-font, inherit); color: hsl(var(--pbc-ink, 213 48% 16%));
  box-shadow: 0 -8px 32px rgba(21,38,59,.18);
}
.mp-sheet-ico { margin: 0 auto; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: hsl(var(--pbc-gold-soft, 49 100% 90%)); color: hsl(var(--pbc-gold-dark, 48 100% 42%)); }
.mp-sheet-box h2 { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 800; }
.mp-sheet-box p { margin: 0; font-size: 16px; line-height: 1.45; color: hsl(var(--pbc-ink-soft, 211 24% 34%)); -webkit-hyphens: manual; hyphens: manual; }
.mp-sheet-go {
  display: flex; align-items: center; justify-content: center; min-height: 54px; margin-top: 4px;
  border-radius: var(--pbc-radius-button, 16px); border: 2px solid hsl(var(--pbc-gold, 49 100% 56%));
  background: hsl(var(--pbc-gold, 49 100% 56%)); color: hsl(var(--pbc-ink, 213 48% 16%));
  box-shadow: 0 4px 0 hsl(var(--pbc-gold-dark, 48 100% 42%));
  font-size: 17px; font-weight: 700; text-decoration: none;
}
.mp-sheet-no { min-height: 46px; border: 0; background: transparent; color: hsl(var(--pbc-blue, 209 92% 41%)); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
@media (min-width: 768px) {
  .mp-sheet { align-items: center; }
  .mp-sheet-box { border-radius: 22px; }
}
