/* ══════════════════════════════════════════════════════════════════════════
   CLASES v3 DEL MÓVIL (maqueta v3 aprobada por Guille el 18/11/2026)
   https://claude.ai/artifact/4pVSmgfC6yoQ9Xt8F2bNs2 · mainmodule/clases_v3.py

   Mismas reglas que el kit y que du-clases-p10.css: todo dentro de `.pbc-du`, ni un
   color escrito a mano (pbc-design-tokens.css), la escala de letra de siempre y dos
   pesos, fotos enteras y zonas que se tocan de 44 px como poco.
   ══════════════════════════════════════════════════════════════════════════ */

/* Nunca palabras partidas con guion (Guille 18/11: «Cam-bia»): sin cortes automáticos. */
.pbc-du .pbc-p10 [class*="v3-"], .pbc-du .pbc-p10 [class*="v3-"] * {
  hyphens: manual;
  -webkit-hyphens: manual;
  overflow-wrap: normal;
  word-break: normal;
}
.pbc-du .v3-card-when, .pbc-du .v3-book, .pbc-du .v3-head-change, .pbc-du .v3-links a { white-space: nowrap; }

/* ── Arriba: «[bandera] Inglés · A2 · Tardes · Cambiar» ── */
.pbc-du .v3-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 14px;
  border: 1px solid hsl(var(--pbc-line));
  border-radius: var(--pbc-radius-field);
  background: hsl(var(--pbc-blue-soft));
  color: hsl(var(--pbc-blue-dark));
  font-size: var(--pbc-size-body);
  text-decoration: none;
}
.pbc-du .v3-head b { font-weight: var(--pbc-weight-bold); min-width: 0; }
.pbc-du .v3-head-flag { font-size: var(--pbc-size-title-s); border-radius: 3px; flex: 0 0 auto; }
.pbc-du .v3-head-change { margin-left: auto; text-decoration: underline; font-weight: var(--pbc-weight-bold); }

/* ── «Para ti»: tarjetas como los intercambios sugeridos ── */
.pbc-du .v3-parati { display: flex; flex-direction: column; gap: 12px; }
.pbc-du .v3-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
}
.pbc-du .v3-face {
  position: relative;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: hsl(var(--pbc-blue-soft));
  color: hsl(var(--pbc-blue-dark));
  cursor: pointer;
}
/* La inicial siempre debajo y la foto encima (si la foto falla, se ve la inicial). */
.pbc-du .v3-face img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.pbc-du .v3-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: var(--pbc-size-title-s);
  font-weight: var(--pbc-weight-bold);
}
.pbc-du .v3-info {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid hsl(var(--pbc-line));
  border-radius: 50%;
  background: hsl(var(--pbc-surface));
  color: hsl(var(--pbc-blue));
  font-size: var(--pbc-size-small);
  font-weight: var(--pbc-weight-bold);
}
.pbc-du .v3-card-mid { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; min-width: 0; }
.pbc-du .v3-card-when { font-size: var(--pbc-size-title-s); font-weight: var(--pbc-weight-bold); }
.pbc-du .v3-card-sub { color: hsl(var(--pbc-muted)); font-size: var(--pbc-size-body); }
.pbc-du .v3-book { width: auto; flex: 0 0 auto; min-height: 44px; padding-inline: 14px; }
.pbc-du .v3-seats { display: flex; align-items: center; gap: 4px; margin: 0; }
.pbc-du .v3-seat {
  width: 24px;
  height: 24px;
  border: 2px dashed hsl(var(--pbc-line));
  border-radius: 50%;
  box-sizing: border-box;
}
.pbc-du .v3-seat--on { border: 0; background: hsl(var(--pbc-gold-soft)); }
.pbc-du .v3-seats--big { justify-content: center; gap: 6px; }
.pbc-du .v3-seats--big .v3-seat { width: 40px; height: 40px; }
.pbc-du .v3-seat--you {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid hsl(var(--pbc-blue));
  color: hsl(var(--pbc-blue));
  font-size: var(--pbc-size-small);
  font-weight: var(--pbc-weight-bold);
}
.pbc-du .v3-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 4px 2px;
  font-size: var(--pbc-size-body);
  font-weight: var(--pbc-weight-bold);
}
.pbc-du .v3-links a, .pbc-du .v3-more, .pbc-du .v3-pide-note a, .pbc-du .v3-level-row a, .pbc-du .v3-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: hsl(var(--pbc-blue));
}
.pbc-du .v3-guarantee {
  margin: 0;
  color: hsl(var(--pbc-green-dark));
  font-size: var(--pbc-size-body);
  text-align: center;
}
.pbc-du .v3-empty { margin: 0; color: hsl(var(--pbc-muted)); font-size: var(--pbc-size-body); }
.pbc-du .v3-solo { margin: 0; color: hsl(var(--pbc-ink-soft)); font-size: var(--pbc-size-body); text-align: center; }

/* ── Hoja «Tu plaza» ── */
.pbc-du .v3-sheet {
  width: 100%;
  max-width: 560px;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 24px 24px 0 0;
  background: hsl(var(--pbc-surface));
}
.pbc-du .v3-sheet::backdrop { background: hsl(var(--pbc-ink) / .45); }
.pbc-du .v3-sheet-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 12px 20px 24px;
  text-align: center;
}
.pbc-du .v3-sheet-body > p { margin: 0; }
.pbc-du .v3-sheet-body .pbc-k-btn { align-self: stretch; }
.pbc-du .v3-grip { width: 44px; height: 5px; border-radius: 3px; background: hsl(var(--pbc-line)); }
.pbc-du .v3-face--big { width: 96px; height: 96px; }
.pbc-du .v3-sheet-name { display: flex; flex-direction: column; gap: 2px; font-size: var(--pbc-size-title-s); }
.pbc-du .v3-sheet-name span { color: hsl(var(--pbc-muted)); font-size: var(--pbc-size-body); }
.pbc-du .v3-sheet-when { font-size: var(--pbc-size-title-m); font-weight: var(--pbc-weight-bold); }
.pbc-du .v3-sheet-zone { color: hsl(var(--pbc-muted)); font-size: var(--pbc-size-body); }
.pbc-du .v3-chips { display: flex; gap: 8px; justify-content: center; }
.pbc-du .v3-paywith { color: hsl(var(--pbc-muted)); font-size: var(--pbc-size-body); }
.pbc-du .v3-plans { margin: 0; color: hsl(var(--pbc-ink)); font-size: var(--pbc-size-body); }
.pbc-du .v3-plans a { font-weight: var(--pbc-weight-bold); color: hsl(var(--pbc-blue)); }

/* ── «Tus clases» y «Pide tu hora» ── */
.pbc-du .v3-prefs, .pbc-du .v3-pide { display: flex; flex-direction: column; gap: 18px; }
.pbc-du .v3-title { margin: 0; font-size: var(--pbc-size-title-l); font-weight: var(--pbc-weight-bold); }
.pbc-du .v3-block { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; border: 0; }
.pbc-du .v3-block legend { padding: 0 0 10px; font-size: var(--pbc-size-body); font-weight: var(--pbc-weight-bold); }
.pbc-du .v3-langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.pbc-du .v3-lang, .pbc-du .v3-level, .pbc-du .v3-any {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 8px;
  border: 1px solid hsl(var(--pbc-line));
  border-radius: var(--pbc-radius-field);
  font-size: var(--pbc-size-body);
  cursor: pointer;
}
.pbc-du .v3-lang { flex-direction: column; }
.pbc-du .v3-lang input, .pbc-du .v3-level input, .pbc-du .v3-cell input, .pbc-du .v3-any input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pbc-du .v3-lang:has(input:checked), .pbc-du .v3-level:has(input:checked), .pbc-du .v3-any:has(input:checked) {
  border-color: hsl(var(--pbc-blue));
  background: hsl(var(--pbc-blue));
  color: hsl(var(--pbc-surface));
  font-weight: var(--pbc-weight-bold);
}
.pbc-du .v3-lang:has(input:focus-visible), .pbc-du .v3-level:has(input:focus-visible),
.pbc-du .v3-cell:has(input:focus-visible), .pbc-du .v3-any:has(input:focus-visible) {
  outline: 3px solid hsl(var(--pbc-blue) / .45);
  outline-offset: 2px;
}
/* Banderas redondas de verdad (Guille 19/11: «parecen achatadas»): la de flag-icons mide
   4:3; aquí un círculo con la bandera recortada al centro, como en Conecta. */
.pbc-du .v3-flag {
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px hsl(var(--pbc-line));
}
.pbc-du .v3-flag.pbc-flag-fb { font-size: var(--pbc-size-small); }
.pbc-du .v3-head-flag {
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}
.pbc-du .v3-levels { display: flex; gap: 6px; }
.pbc-du .v3-level { flex: 1 1 0; }
.pbc-du .v3-level-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin: 0; font-size: var(--pbc-size-body); color: hsl(var(--pbc-muted)); }
.pbc-du .v3-level-row a { font-weight: var(--pbc-weight-bold); }
.pbc-du .v3-grid {
  display: grid;
  grid-template-columns: 64px repeat(7, minmax(0, 1fr));
  gap: 4px;
  align-items: center;
  font-size: var(--pbc-size-small);
  text-align: center;
}
.pbc-du .v3-grid-part { text-align: left; color: hsl(var(--pbc-muted)); }
.pbc-du .v3-cell { position: relative; display: block; cursor: pointer; }
.pbc-du .v3-cell span { display: block; height: 44px; border-radius: 8px; background: hsl(var(--pbc-line-soft)); }
.pbc-du .v3-cell:has(input:checked) span { background: hsl(var(--pbc-blue)); }
.pbc-du .v3-any { align-self: flex-start; border-radius: 999px; padding-inline: 14px; }
.pbc-du .v3-save { margin-top: 8px; }

.pbc-du .v3-pide-lang { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--pbc-size-body); }
.pbc-du .v3-days, .pbc-du .v3-hours { display: grid; gap: 6px; }
.pbc-du .v3-days { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pbc-du .v3-hours { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pbc-du .v3-day, .pbc-du .v3-hour {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid hsl(var(--pbc-line));
  border-radius: var(--pbc-radius-field);
  color: hsl(var(--pbc-ink));
  font-size: var(--pbc-size-body);
  text-decoration: none;
}
.pbc-du .v3-day span { color: hsl(var(--pbc-muted)); font-size: var(--pbc-size-small); }
.pbc-du .v3-day b { font-size: var(--pbc-size-title-s); }
.pbc-du .v3-day.is-on, .pbc-du .v3-hour.is-on {
  border-color: hsl(var(--pbc-blue));
  background: hsl(var(--pbc-blue));
  color: hsl(var(--pbc-surface));
  font-weight: var(--pbc-weight-bold);
}
.pbc-du .v3-day.is-on span { color: hsl(var(--pbc-surface)); }
.pbc-du .v3-pide-note { margin: 0; text-align: center; color: hsl(var(--pbc-muted)); font-size: var(--pbc-size-body); }
.pbc-du .v3-pide-group { display: flex; flex-direction: column; gap: 8px; }
.pbc-du .v3-pide-groupt { margin: 0; color: hsl(var(--pbc-muted)); font-size: var(--pbc-size-body); font-weight: var(--pbc-weight-bold); }
.pbc-du .v3-pide-send { margin: 0; }
.pbc-du .v3-pide-send .pbc-k-btn { width: 100%; }

/* ── «Tu clase fija» (maqueta Fija, mainmodule/clase_fija.py) ──
   Sale también en la Clases de quien paga (fuera de .pbc-p10): misma regla sin cortes. */
.pbc-du .v3-fija, .pbc-du .v3-fija *, .pbc-du .v3-fija-offer, .pbc-du .v3-fija-offer * {
  hyphens: manual;
  -webkit-hyphens: manual;
  overflow-wrap: normal;
  word-break: normal;
}
.pbc-du .v3-fija, .pbc-du .pbc-mclases-card.v3-fija {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border: 2px solid hsl(var(--pbc-blue));
}
.pbc-du .v3-fija-top { display: flex; align-items: center; gap: 12px; }
.pbc-du .v3-face--fija { width: 60px; height: 60px; cursor: default; }
.pbc-du .v3-fija-what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pbc-du .v3-fija-kicker {
  color: hsl(var(--pbc-muted));
  font-size: var(--pbc-size-small);
  font-weight: var(--pbc-weight-bold);
  text-transform: uppercase;
}
.pbc-du .v3-fija-when { font-size: var(--pbc-size-title-m); font-weight: var(--pbc-weight-bold); }
.pbc-du .v3-fija-seats .v3-seat { width: 34px; height: 34px; }
.pbc-du .v3-fija-weeks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
.pbc-du .v3-fija-week {
  display: flex;
  flex-direction: column;
  padding: 8px 2px;
  border-radius: 12px;
  font-size: var(--pbc-size-small);
}
.pbc-du .v3-fija-week strong { font-size: var(--pbc-size-title-s); font-weight: var(--pbc-weight-bold); }
.pbc-du .v3-fija-week small { font-size: var(--pbc-size-small); line-height: 1.2; }
.pbc-du .v3-fija-week--ok { background: hsl(var(--pbc-green-soft)); color: hsl(var(--pbc-green-dark)); }
.pbc-du .v3-fija-week--ok strong { color: hsl(var(--pbc-ink)); }
.pbc-du .v3-fija-week--off { background: hsl(var(--pbc-line) / .55); color: hsl(var(--pbc-muted)); }
.pbc-du .v3-fija-change, .pbc-du .v3-fija-offer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  color: hsl(var(--pbc-blue));
  font-size: var(--pbc-size-body);
  font-weight: var(--pbc-weight-bold);
}
.pbc-du .v3-fija-offer { justify-content: space-between; padding: 0 4px; color: hsl(var(--pbc-ink)); font-weight: var(--pbc-weight-regular); }
.pbc-du .v3-fija-offer b { color: hsl(var(--pbc-blue)); font-weight: var(--pbc-weight-bold); white-space: nowrap; }
.pbc-du .v3-fija-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pbc-du .v3-fija-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 8px 12px;
  border: 1px solid hsl(var(--pbc-line));
  border-radius: var(--pbc-radius-field);
}
.pbc-du .v3-fija-row-day { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: var(--pbc-size-body); }
.pbc-du .v3-fija-row-day small { color: hsl(var(--pbc-muted)); font-size: var(--pbc-size-small); }
.pbc-du .v3-fija-row form { margin: 0; flex: 0 0 auto; }
.pbc-du .v3-fija-act { width: auto; min-height: 44px; padding-inline: 14px; white-space: nowrap; }
.pbc-du .v3-fija-explain { margin: 0; color: hsl(var(--pbc-ink-soft)); font-size: var(--pbc-size-body); }
.pbc-du .v3-fija-quit { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.pbc-du .v3-fija-quit p { margin: 0; font-size: var(--pbc-size-body); }
.pbc-du .v3-fija-remove { color: hsl(var(--pbc-muted)); }
.pbc-du .v3-head-change { display: inline-flex; align-items: center; gap: 4px; }
.pbc-du .v3-head-pencil { flex: 0 0 auto; }
/* Las tarjetas de Clases v3 también en el calendario de la oferta (fuera de .pbc-p10). */
.pbc-du .v3-cal { margin: 0 0 12px; }
.pbc-du .v3-card, .pbc-du .v3-card * { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; word-break: normal; }
.pbc-du .v3-level-hint { min-height: 1.4em; margin: 0; color: hsl(var(--pbc-ink-soft)); font-size: var(--pbc-size-body); font-weight: var(--pbc-weight-bold); }

/* ── Correcciones de Guille 19/11 (revisión con su alumna de prueba) ── */
/* Profes: la MISMA cara redonda para todas (antes cada foto con su forma) y sin hueco. */
.pbc-du .v3-teachers .pbc-p10-teacher { flex: 0 0 min(44%, 172px); align-items: center; text-align: center; }
.pbc-du .v3-teachers .pbc-p10-face {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.pbc-du .v3-teachers .pbc-p10-face img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.pbc-du .v3-teachers .pbc-p10-initial { width: 100%; height: 100%; aspect-ratio: auto; }
.pbc-du .v3-teachers .pbc-p10-tname { justify-content: center; }
.pbc-du .v3-teachers .pbc-p10-rating { align-self: center; margin-bottom: 0; }
/* Vídeos de alumnas: cuadro vertical como el vídeo (antes 4:3 cortaba las caras). */
.pbc-du .pbc-p10 .pbc-svid-frame { aspect-ratio: 9 / 16; }
.pbc-du .pbc-p10 .pbc-svid-poster { background-size: cover; background-position: center 20%; }
/* Cursos sugeridos debajo de las clases. */
.pbc-du .v3-cursos { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.pbc-du .v3-curso { text-decoration: none; color: hsl(var(--pbc-ink)); }
.pbc-du .v3-curso-title { font-size: var(--pbc-size-body); font-weight: var(--pbc-weight-bold); line-height: 1.3; }
/* «Planes y precios» desplegable ahí mismo. */
.pbc-du .v3-planes > summary { list-style: none; cursor: pointer; }
.pbc-du .v3-planes > summary::-webkit-details-marker { display: none; }
.pbc-du .v3-planes[open] .v3-planes-chev { transform: rotate(180deg); }
.pbc-du .v3-planes-list { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 8px; }
.pbc-du .v3-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid hsl(var(--pbc-line));
  border-radius: var(--pbc-radius-field);
}
.pbc-du .v3-plan--rec { border: 2px solid hsl(var(--pbc-blue)); }
.pbc-du .v3-plan-tag { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: hsl(var(--pbc-blue)); color: hsl(var(--pbc-surface)); font-size: var(--pbc-size-small); font-weight: var(--pbc-weight-bold); }
.pbc-du .v3-plan-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pbc-du .v3-plan-name { font-size: var(--pbc-size-title-s); font-weight: var(--pbc-weight-bold); }
.pbc-du .v3-plan-price { font-size: var(--pbc-size-title-s); font-weight: var(--pbc-weight-bold); white-space: nowrap; }
.pbc-du .v3-plan-price small { color: hsl(var(--pbc-muted)); font-size: var(--pbc-size-small); font-weight: var(--pbc-weight-regular); }
.pbc-du .v3-plan-classes { margin: 0; color: hsl(var(--pbc-ink-soft)); font-size: var(--pbc-size-body); }
/* Vídeo vertical más estrecho (se ve el siguiente asomando, como en Inicio). */
.pbc-du .pbc-p10 .pbc-svid .pbc-comu-slide { flex: 0 0 min(62%, 260px); }
