/* =====================================================================
   Funciones en bento: tarjetas de distintos tamaños y colores,
   cada una con una mini demo que se puede tocar.
   ===================================================================== */
.bento-sec .bento-h { text-align: center; margin: 0 auto 44px; max-width: 16em; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.b-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 30px; border-radius: 32px; background: #fff; color: var(--ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 24px 48px -36px rgba(40, 30, 110, .35); transition: transform .3s cubic-bezier(.2, .8, .3, 1); }
.b-card:hover { transform: translateY(-3px); }
.b-card h3 { margin: 0; font-size: clamp(26px, 2.3vw, 32px); line-height: 1.05; letter-spacing: -.02em; font-weight: 800; }
.b-card > p, .b-top p { margin: 10px 0 0; font-size: 16px; line-height: 1.4; color: #5E616E; }
.b-foot { margin: auto 0 0 !important; padding-top: 18px; font-size: 13.5px !important; color: #8A8D99 !important; }
.b-agenda { grid-column: span 2; }
.b-more { grid-column: 1 / -1; }
.b-account { grid-column: span 2; }

/* ---------- Tu semana ---------- */
.b-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.b-top p { max-width: 30ch; }
.b-pills { display: flex; flex: 0 0 auto; gap: 6px; padding: 5px; border-radius: 999px; background: #F2F1F8; }
.b-pills button { border: 0; padding: 9px 14px; border-radius: 999px; background: none; font: inherit; font-size: 14px; font-weight: 700; color: #6B6E7A; cursor: pointer; transition: background .2s, color .2s; }
.b-pills button.on { background: #1E1F24; color: #fff; }
.b-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: 1fr; gap: 8px; margin-top: 24px; flex: 1; min-height: 210px; }
.bw-day { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-height: 172px; padding: 12px 7px; border-radius: 18px; background: #F5F4FA; }
.bw-day small { text-align: center; font-size: 12px; font-weight: 700; color: #8A8D99; }
.bw-day > b { align-self: center; display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 4px; border-radius: 50%; font-size: 17px; }
.bw-day.today > b { background: #1E1F24; color: #fff; }
.bw-c { display: block; padding: 7px 8px; border-radius: 10px; font-size: 11.5px; font-weight: 600; line-height: 1.25; transition: opacity .25s, transform .25s; }
.bw-c b { display: block; font-size: 13px; font-weight: 800; overflow-wrap: anywhere; }
.bw-free { margin-top: 4px; text-align: center; font-size: 12px; font-weight: 600; color: #B4B6C2; }
.c-v { background: #E9E6FF; color: #4338F2; }
.c-l { background: #EEF8CC; color: #4A6A00; }
.c-p { background: #FCE4F1; color: #B42A6A; }
.bw-c.fixed b::after { content: " ↻"; font-weight: 800; opacity: .7; }
.b-week.only-fixed .bw-c:not(.fixed) { opacity: .18; transform: scale(.94); }

/* ---------- Calculadora (lima) ---------- */
.b-calc { background: var(--lime); }
.b-calc > p { color: rgba(30, 31, 36, .7); }
.b-calc .calc-out { margin: 22px 0 2px; font-size: clamp(54px, 5.4vw, 72px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.b-calc .calc-out small { font-size: 22px; font-weight: 700; letter-spacing: 0; margin-left: 4px; color: rgba(30, 31, 36, .6); }
.b-calc .calc-year { margin: 6px 0 10px; font-size: 14px; font-weight: 600; color: rgba(30, 31, 36, .7); }
.b-calc .rng, .b-rate .rng { margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--ink); }
.b-calc .rng b, .b-rate .rng b { font-weight: 800; }
.b-calc .rng input, .b-rate .rng input { background: rgba(30, 31, 36, .14); height: 7px; }
.b-calc .rng input::-webkit-slider-thumb, .b-rate .rng input::-webkit-slider-thumb { width: 26px; height: 26px; background: #fff; border: 2.5px solid #1E1F24; box-shadow: 0 3px 8px rgba(0, 0, 0, .2); }
.b-calc .rng input::-moz-range-thumb, .b-rate .rng input::-moz-range-thumb { width: 20px; height: 20px; background: #fff; border: 2.5px solid #1E1F24; }
.b-calc .calc-note { margin: auto 0 0; padding-top: 14px; font-size: 12.5px; color: rgba(30, 31, 36, .6); }

/* ---------- ¿Cuánto deberías cobrar? (rosa) ---------- */
.b-rate { background: #FFC9E4; }
.b-rate > p { color: rgba(30, 31, 36, .7); }
.b-rate .calc-out { margin: 22px 0 2px; font-size: clamp(54px, 5.4vw, 72px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.b-rate .calc-out small { font-size: 22px; font-weight: 700; letter-spacing: 0; margin-left: 4px; color: rgba(30, 31, 36, .6); }
.b-rate .calc-year { margin: 6px 0 10px; font-size: 14px; font-weight: 600; color: rgba(30, 31, 36, .72); }
.b-rate .calc-note { margin: auto 0 0; padding-top: 14px; font-size: 12.5px; color: rgba(30, 31, 36, .62); }

/* ---------- Bono ---------- */
.b-bono .ticket { margin-top: 22px; }

/* ---------- QR ---------- */
.bq-box { position: relative; align-self: center; width: 190px; margin: 20px 0 18px; padding: 12px; border-radius: 22px; background: #fff; border: 3px solid #1E1F24; box-shadow: 0 6px 0 #1E1F24; }
.bq-box svg { display: block; width: 100%; height: auto; }
.bq-logo { position: absolute; left: 50%; top: 50%; width: 22%; height: 22%; margin: -11% 0 0 -11%; border-radius: 22%; border: 4px solid #fff; background: #fff; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .25s cubic-bezier(.2, 1.5, .4, 1); }
.bq-box.logo .bq-logo { opacity: 1; transform: none; }
.bq-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 15px; color: #5E616E; }
.bq-sw { display: flex; gap: 8px; }
.bq-sw button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; box-shadow: 0 0 0 2px #fff, 0 0 0 3px transparent; transition: box-shadow .2s; }
.bq-sw button.on { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c); }
.bq-tg { position: relative; width: 52px; height: 30px; border: 0; border-radius: 999px; background: #D9D8E3; cursor: pointer; transition: background .2s; }
.bq-tg i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .25); transition: transform .25s cubic-bezier(.2, 1.4, .4, 1); }
.bq-tg[aria-checked="true"] { background: #1E1F24; }
.bq-tg[aria-checked="true"] i { transform: translateX(22px); }
.b-qr .qr-cap { margin: 6px 0 0; text-align: left; font-size: 13.5px; }

/* ---------- Quién viene (violeta) ---------- */
.b-confirm { background: linear-gradient(160deg, #8B7BFF, #5B46F5); color: #fff; }
.b-confirm > p { color: rgba(255, 255, 255, .8); }
.cf-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 7px; }
.cf-list li { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 16px; background: rgba(255, 255, 255, .16); }
.cf-list li > div { flex: 1; min-width: 0; }
.cf-list b { display: block; font-size: 15.5px; font-weight: 700; }
.cf-list small { font-size: 12.5px; color: rgba(255, 255, 255, .75); }
.cf-av { flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 14px; font-weight: 800; }
.a-v { background: #fff; color: #5B46F5; } .a-l { background: var(--lime); color: #1E1F24; } .a-p { background: #FFD0E6; color: #B42A6A; } .a-k { background: #1E1F24; color: #fff; }
.cf-st { flex: 0 0 auto; padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; border: 0; font-family: inherit; }
.cf-st.yes { background: var(--lime); color: #1E1F24; }
.cf-st.no { background: rgba(255, 255, 255, .22); color: #fff; }
.cf-st.ask { background: #fff; color: #4338F2; cursor: pointer; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .5); }
.cf-st.wait { background: rgba(255, 255, 255, .3); color: #fff; }
.cf-st.pop { animation: cfPop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes cfPop { from { transform: scale(.6); } }
.b-confirm .b-foot { color: rgba(255, 255, 255, .8) !important; }
.b-confirm .b-foot b { color: #fff; }

/* ---------- Y además (oscura, ancho completo) ---------- */
.b-more { flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 24px; background: #1B1A23; color: #fff; padding: 34px 38px; }
.b-more p { color: rgba(255, 255, 255, .7) !important; max-width: 62ch; }
.b-more-btn { flex: 0 0 auto; background: var(--lime); color: #1E1F24; font-weight: 800; padding: 15px 24px; border-radius: 999px; box-shadow: 0 6px 0 #8DB31A; }
.b-more-btn:hover { transform: translateY(-1px); }
.b-more-btn .arr { margin-left: 8px; }
.b-more > div { flex: 1; min-width: 0; }
.b-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; }
.b-chips li { padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); font-size: 14px; font-weight: 600; color: #fff; }
.b-chips li::before { content: "✓"; margin-right: 7px; color: var(--lime); font-weight: 800; }

/* ---------- Tableta y móvil ---------- */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-agenda { grid-column: 1 / -1; }
  .b-account { grid-column: 1 / -1; }
  .b-more { grid-column: span 1; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 680px) {
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .b-card { padding: 24px 20px; border-radius: 28px; }
  .b-top { flex-direction: column; }
  .b-week { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .bw-day { min-height: 150px; padding: 9px 3px; border-radius: 12px; }
  .bw-day > b { width: 28px; height: 28px; font-size: 15px; }
  .b-week { min-height: 0; }
  .bw-c { padding: 5px 2px; font-size: 9.5px; border-radius: 7px; text-align: center; }
  .bw-c b { font-size: 10px; letter-spacing: -.03em; overflow-wrap: normal; word-break: keep-all; }
  .bw-c { letter-spacing: -.02em; }
  .b-week { gap: 3px; }
  .bw-day { padding: 9px 2px; }
  .bw-c.fixed b::after { content: ""; }
  .b-more { grid-column: auto; flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .b-account { grid-column: auto; grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .b-card, .bw-c, .bq-logo, .bq-tg i { transition: none; } .cf-st.pop { animation: none; } }

/* =====================================================================
   Maqueta de "Huecos libres": la página de reservas y, aparte, el QR
   impreso que lleva a ella (antes el QR estaba dentro de la página y no se entendía).
   ===================================================================== */
.mh2 { position: relative; width: min(390px, 100%); margin: 0 auto 30px; padding: 0 0 150px; }
.mh2-page { position: relative; z-index: 1; margin-left: 56px; padding: 14px 16px 16px; border-radius: 26px; background: #fff; transform: rotate(2.5deg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 34px 60px -34px rgba(40, 30, 110, .45); }
.mh2-url { display: flex; align-items: center; gap: 7px; width: fit-content; margin: 0 auto 14px; padding: 6px 12px; border-radius: 999px; background: #F3F2F8; font-size: 11.5px; font-weight: 600; color: #7A7D89; }
.mh2-url i { width: 8px; height: 8px; border-radius: 50%; background: #3DD37A; }
.mh2-who { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.mh2-av { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; color: #fff; font-weight: 800; font-size: 15px; background: linear-gradient(160deg, #8B7BFF, #5B46F5); }
.mh2-who b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.mh2-who small { font-size: 12.5px; color: #6B6E7A; }
.mh2-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.mh2-days span { display: flex; flex-direction: column; align-items: center; padding: 8px 0 7px; border-radius: 14px; background: #F5F4FA; font-size: 11px; font-weight: 600; color: #7A7D89; }
.mh2-days b { font-size: 19px; font-weight: 800; color: var(--ink); line-height: 1.15; }
.mh2-days em { font-style: normal; font-size: 9.5px; font-weight: 700; color: #149A4C; }
.mh2-days .on { background: linear-gradient(160deg, #8B7BFF, #5B46F5); color: #E6E3FF; box-shadow: 0 10px 18px -10px #5B46F5; }
.mh2-days .on b { color: #fff; } .mh2-days .on em { color: var(--lime); }
.mh2-days .none { background: rgba(245, 244, 250, .5); } .mh2-days .none b, .mh2-days .none em { color: #B4B6C2; }
.mh2-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mh2-slots span { position: relative; text-align: center; padding: 10px 0; border-radius: 12px; background: #F5F4FA; border: 1.5px solid #E9E8F2; font-size: 14px; font-weight: 700; }
.mh2-slots .on { background: linear-gradient(160deg, #8B7BFF, #5B46F5); border-color: transparent; color: #fff; }
.mh2-slots .on::after { content: "✓"; position: absolute; top: -7px; right: -7px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; background: var(--lime); color: #1E1F24; font-size: 11px; font-weight: 800; }
.mh2-slots .taken { color: #B4B6C2; text-decoration: line-through; background: #F7F7FA; border-color: transparent; }
.mh2-cta { display: block; margin-top: 14px; padding: 12px; border-radius: 999px; text-align: center; font-size: 14px; font-weight: 700; color: #fff; background: linear-gradient(160deg, #8B7BFF, #5B46F5); box-shadow: 0 14px 24px -14px #5B46F5; }
.mh2-qr { position: absolute; left: 0; bottom: 0; z-index: 2; display: flex; align-items: flex-end; gap: 14px; }
.mh2-qr-card { flex: 0 0 auto; width: 128px; padding: 10px 10px 12px; border-radius: 18px; background: #fff; border: 3px solid #1E1F24; box-shadow: 0 6px 0 #1E1F24; transform: rotate(-7deg); text-align: center; }
.mh2-qr-card svg { display: block; width: 100%; height: auto; }
.mh2-qr-card b { display: block; margin-top: 6px; font-size: 13px; font-weight: 800; line-height: 1.1; }
.mh2-arrow { position: absolute; left: 112px; bottom: 112px; width: 84px; height: auto; color: #5B46F5; transform: rotate(-12deg); }
.mh2-note { margin-bottom: 10px; max-width: 210px; font-size: 13px; line-height: 1.35; font-weight: 600; color: #5E616E; }
@media (max-width: 919px) {
  .mh2 { margin: 18px auto 70px; }
  .mh2-page { margin-left: 40px; }
  .mh2-qr-card { width: 112px; }
  .mh2-arrow { left: 96px; bottom: 100px; width: 70px; }
  .mh2-note { font-size: 12px; max-width: 180px; }
}

/* ---------- La carpeta de cada alumno (violeta) ---------- */
.b-folder { background: linear-gradient(160deg, #8B7BFF, #5B46F5); color: #fff; }
.b-folder > p { color: rgba(255, 255, 255, .82); }
.bf-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 7px; }
.bf-list li { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 16px; background: rgba(255, 255, 255, .16); }
.bf-list li.new { animation: bfIn .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes bfIn { from { opacity: 0; transform: translateY(-10px) scale(.96); } }
.bf-list b { display: block; font-size: 15px; font-weight: 700; }
.bf-list small { font-size: 12.5px; color: rgba(255, 255, 255, .75); }
.bf-ico { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; font-size: 13px; font-weight: 800; }
.bf-ico.n { background: #fff; color: #5B46F5; } .bf-ico.f { background: #FFE0DC; color: #D9382B; font-size: 10.5px; } .bf-ico.i { background: #DDF1FF; color: #1479C9; } .bf-ico.l { background: var(--lime); color: #1E1F24; }
.bf-add { margin-top: 12px; align-self: flex-start; padding: 10px 16px; border: 0; border-radius: 999px; background: #fff; color: #4338F2; font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .5); }
.bf-add:active { transform: scale(.97); }
.b-folder .b-foot { color: rgba(255, 255, 255, .8) !important; }

/* ---------- La cuenta del mes (ancha) ---------- */
.b-account { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 26px; align-items: center; }
.ba-copy .b-pills { margin-top: 20px; width: fit-content; }
.ba-copy > p { margin: 10px 0 0; font-size: 16px; line-height: 1.4; color: #5E616E; }
.ba-card { padding: 20px; border-radius: 26px; background: linear-gradient(160deg, #F6F2FF, #EFEDFB); box-shadow: inset 0 0 0 1px #ECE9FA; min-height: 300px; }
.ba-name b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.ba-name small { font-size: 14px; font-weight: 600; color: #5B46F5; }
.ba-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin: 12px 0; padding: 14px 16px; border-radius: 18px; color: #fff; background: linear-gradient(160deg, #8B7BFF, #5B46F5); }
.ba-hero.ok { background: linear-gradient(160deg, #3DD37A, #149A4C); }
.ba-hero span { font-size: 13px; font-weight: 600; opacity: .88; display: block; }
.ba-hero b { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.ba-hero em { font-style: normal; font-size: 12px; font-weight: 600; opacity: .85; text-align: right; }
.ba-list { padding: 10px 12px; border-radius: 16px; background: #fff; }
.ba-list h4 { margin: 4px 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.ba-list h4.due { color: #B5600F; } .ba-list h4.paid { color: #137A3E; margin-top: 10px; }
.ba-row { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 14px; font-weight: 600; }
.ba-row i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-style: normal; font-size: 12px; font-weight: 800; }
.ba-row.due i { background: #FFF1D6; color: #B5600F; } .ba-row.paid i { background: #E3F9EA; color: #137A3E; }
.ba-row span { flex: 1; } .ba-row b { font-weight: 700; } .ba-row.paid b { color: #8A8D99; }
.ba-card.swap { animation: baSwap .35s ease; }
@keyframes baSwap { from { opacity: .3; transform: translateY(6px); } }
