/* =====================================================================
   COACH FERRI · Bloques de color, entrada con nick, foro de manos,
   ejercicios por spot, reto por quincenas, perfil con foto
   (se carga después de vistas.css y sustituye lo que haga falta)
   ===================================================================== */

/* ---------- utilidades ---------- */
.min0 { min-width: 0; }
.cta-ej-ic { background: var(--sec-bg-2); color: var(--sec); }
.com-coach { background: linear-gradient(90deg, rgba(124, 58, 237, .09), transparent 75%); box-shadow: inset 3px 0 0 #7C3AED; border-radius: var(--r); padding-left: 12px; margin-left: -6px; }
.tabbar .on { color: var(--sec-tx) !important; }
.franja .prosa p, .acc-nota p { margin: 0; }

/* =====================================================================
   ENTRAR
   ===================================================================== */
.acceso { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--brillo), var(--bg); }
.acc-lado { background: none; color: var(--tx); border-right: 0; padding: 48px 56px; gap: 40px; }
.acc-lado::after { content: none; }
.acc-marca b { font-size: 17px; font-weight: 750; }
.acc-sobre { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-3); }
.acc-titular h1 { font-size: 56px; line-height: 1.02; letter-spacing: -.055em; font-weight: 800; margin: 12px 0 16px; color: var(--tx); max-width: 560px; }
.acc-titular p { color: var(--tx-2); font-size: 16px; line-height: 1.55; max-width: 470px; }
.acc-h1-sep { color: var(--tx-4); font-weight: 600; }
.acc-h1-nombre { background: linear-gradient(120deg, #2563EB, #7C3AED 60%, #DB2777); -webkit-background-clip: text; background-clip: text; color: transparent; }
.acc-mosaico { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 580px; }
.acc-bloque {
  position: relative; overflow: hidden; isolation: isolate;
  height: 122px; padding: 14px 16px; border-radius: 22px; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--sec-grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 16px 30px -18px var(--sec-sombra);
  animation: entra .5s cubic-bezier(.2, .7, .2, 1) backwards;
}
.acc-bloque:nth-child(2) { animation-delay: .05s; } .acc-bloque:nth-child(3) { animation-delay: .1s; }
.acc-bloque:nth-child(4) { animation-delay: .15s; } .acc-bloque:nth-child(5) { animation-delay: .2s; } .acc-bloque:nth-child(6) { animation-delay: .25s; }
.acc-bloque::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(260px 140px at 0% -20%, rgba(255, 255, 255, .28), transparent 60%); }
.acc-bloque b { font-size: 17px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.acc-bloque-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .2); }
.acc-bloque-ic svg { width: 16px; height: 16px; }
.acc-bloque-ilus { position: absolute; right: -16px; bottom: -20px; z-index: -1; color: rgba(255, 255, 255, .16); transform: rotate(-10deg); }
.acc-bloque-ilus svg { width: 96px; height: 96px; }

.acc-der { padding: 40px 24px; gap: 16px; }
.acc-caja {
  width: min(440px, 100%); gap: 16px; padding: 32px;
  border-radius: 28px; background: var(--sf); border: 1px solid var(--ln);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 34px 70px -34px rgba(16, 24, 40, .38);
}
.acc-quien { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
.acc-av { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--sf-3); color: var(--tx-4); }
.acc-av > svg { width: 30px; height: 30px; }
.acc-av.conocido { background: none; animation: aparece-av .4s cubic-bezier(.2, .7, .2, 1); }
.acc-av .av { box-shadow: 0 0 0 3px var(--sf), 0 0 0 5px rgba(37, 99, 235, .35); }
@keyframes aparece-av { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.acc-saludo { min-width: 0; }
.acc-saludo h2 { margin: 0; font-size: 23px; font-weight: 800; letter-spacing: -.04em; line-height: 1.15; overflow-wrap: anywhere; }
.acc-saludo p { margin: 4px 0 0; color: var(--tx-2); font-size: 13.5px; }
.in-l { height: 48px; font-size: 15px; border-radius: 13px; padding: 0 15px; }
.acc-primera { display: flex; flex-direction: column; gap: 12px; animation: entra .25s ease; }
.acc-primera[hidden] { display: none; }
.acc-nota { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 13px; background: var(--am-bg); color: var(--tx-2); font-size: 13px; line-height: 1.5; }
.acc-nota > svg { width: 16px; height: 16px; color: var(--am); flex: none; margin-top: 2px; }
.acc-nota b { color: var(--tx); }
.acc-boton { height: 50px; border-radius: 14px; font-size: 15px; font-weight: 650; gap: 10px; }
.acc-boton svg { transition: transform var(--t); }
.acc-boton:hover svg { transform: translateX(3px); }
.acc-ayuda { margin: -2px 0 0; text-align: center; font-size: 12.5px; color: var(--tx-3); }
.acc-demo { width: min(440px, 100%); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 14px 18px; border-radius: 20px; border: 1px dashed var(--ln-3); font-size: 13px; color: var(--tx-2); background: color-mix(in srgb, var(--sf) 60%, transparent); }
.acc-demo p { margin: 0; line-height: 1.5; }
.acc-nick-demo { font-weight: 700; color: var(--az-tx); text-decoration: underline; text-underline-offset: 3px; }

/* =====================================================================
   INICIO: BLOQUES
   ===================================================================== */
.inicio-cab { align-items: flex-end; margin-bottom: 22px; }
.inicio-fecha { font-size: 13px; color: var(--tx-3); font-weight: 550; }
.inicio-cab h1 { font-size: 40px; font-weight: 800; letter-spacing: -.05em; margin-top: 4px; line-height: 1.05; }
.franjas { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.franja { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 20px; background: var(--sf); border: 1px solid var(--ln); box-shadow: var(--sombra-t); }
.franja-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--sec-grad); flex: none; }
.franja-ic svg { width: 18px; height: 18px; }
.franja-clase .clase-fecha { border-radius: 12px; }

.blqs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 214px; gap: 18px; grid-auto-flow: row dense; }
.blq {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 20px 22px 22px; border-radius: 30px; color: #fff;
  background: var(--sec-grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 22px 40px -26px var(--sec-sombra);
  transition: transform .28s cubic-bezier(.2, .7, .2, 1), box-shadow .28s;
  animation: entra .45s cubic-bezier(.2, .7, .2, 1) backwards;   /* backwards: al acabar no bloquea el hover */
}
.blq:nth-child(2) { animation-delay: .03s; } .blq:nth-child(3) { animation-delay: .06s; } .blq:nth-child(4) { animation-delay: .09s; }
.blq:nth-child(5) { animation-delay: .12s; } .blq:nth-child(6) { animation-delay: .15s; } .blq:nth-child(7) { animation-delay: .18s; }
.blq:nth-child(8) { animation-delay: .21s; } .blq:nth-child(9) { animation-delay: .24s; } .blq:nth-child(10) { animation-delay: .27s; }
.blq::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(440px 240px at 0% -12%, rgba(255, 255, 255, .26), transparent 60%),
              radial-gradient(380px 280px at 110% 120%, rgba(0, 0, 0, .26), transparent 65%);
}
.blq:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 32px 52px -24px var(--sec-sombra); }
.blq:focus-visible { outline: 3px solid var(--sec); outline-offset: 3px; border-radius: 30px; }
.blq-g { grid-column: span 2; grid-row: span 2; padding: 30px 32px 32px; }
.blq-ancho { grid-column: span 2; }
.blq-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .22); }
.blq-ic svg { width: 22px; height: 22px; }
.blq-g .blq-ic { width: 56px; height: 56px; border-radius: 17px; }
.blq-g .blq-ic svg { width: 27px; height: 27px; }
/* ilustración de fondo (js/ilus.js): línea blanca muy suave que asoma por la esquina */
.ilus { display: block; overflow: visible; }
.blq-ilus { position: absolute; right: -28px; bottom: -34px; z-index: -1; color: rgba(255, 255, 255, .15); transform: rotate(-10deg); transition: transform .5s cubic-bezier(.2, .7, .2, 1), color .3s; pointer-events: none; }
.blq-ilus svg { width: 156px; height: 156px; }
.blq-g .blq-ilus { right: -30px; bottom: -54px; }
.blq-g .blq-ilus svg { width: 340px; height: 340px; }
.blq-ancho .blq-ilus svg { width: 200px; height: 200px; }
.blq:hover .blq-ilus { transform: rotate(-5deg) scale(1.04); color: rgba(255, 255, 255, .2); }
.blq-pie { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.blq-t { font-size: 31px; line-height: .98; font-weight: 800; letter-spacing: -.05em; text-shadow: 0 2px 16px rgba(0, 0, 0, .14); }
.blq-g .blq-t { font-size: 68px; letter-spacing: -.065em; }
.blq-ancho .blq-t { font-size: 38px; }
.blq-abrir {
  display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 5px 0 16px;
  border-radius: 999px; background: #fff; color: #0B0D14; font-size: 14px; font-weight: 700;
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .45);
}
.blq-g .blq-abrir { height: 44px; font-size: 15px; padding-left: 20px; }
.blq-flecha { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sec-pri); color: #fff; transition: transform var(--t); }
.blq-g .blq-flecha { width: 34px; height: 34px; }
.blq-flecha svg { width: 15px; height: 15px; }
.blq:hover .blq-flecha { transform: translateX(3px); }
.blq-badge {
  position: absolute; top: 22px; right: 20px; height: 26px; padding: 0 11px; border-radius: 999px;
  display: inline-flex; align-items: center; font-size: 12px; font-weight: 700;
  background: #fff; color: var(--sec-pri); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .45);
}
.blq-g .blq-badge { top: 34px; right: 30px; height: 30px; padding: 0 14px; font-size: 13px; }

/* =====================================================================
   FORO DE MANOS
   ===================================================================== */
.foro { gap: 18px; }
.fpost { display: grid; grid-template-columns: 150px minmax(0, 1fr); background: var(--sf); border: 1px solid var(--ln); border-radius: 22px; box-shadow: var(--sombra-t); overflow: hidden; }
.fp-autor { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 22px 12px; border-right: 1px solid var(--ln); background: color-mix(in srgb, var(--sf-2) 55%, var(--sf)); }
.fp-av { display: block; margin-bottom: 4px; border-radius: 50%; }
.fp-nombre { font-size: 14px; font-weight: 750; letter-spacing: -.01em; color: var(--az-tx); overflow-wrap: anywhere; line-height: 1.25; }
.fp-grupo { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 650; background: var(--sf-3); color: var(--tx-2); }
.fp-grupo svg { width: 11px; height: 11px; }
.fp-stats { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--tx-3); font-family: var(--mono); }
.fp-stats svg { width: 12px; height: 12px; }
.insignia-coach { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 750; color: #fff; background: linear-gradient(135deg, #2563EB, #7C3AED); box-shadow: 0 6px 14px -6px rgba(124, 58, 237, .65); }
.insignia-coach svg { width: 12px; height: 12px; }
.fp-cuerpo { padding: 18px 24px 16px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.fp-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--tx-3); font-weight: 500; flex-wrap: wrap; }
.fp-n { font-family: var(--mono); font-weight: 600; color: var(--tx-4); }
.fp-hud { display: flex; gap: 10px; flex-wrap: wrap; }
.fp-hud a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--ln-2); box-shadow: 0 10px 22px -14px rgba(0, 0, 0, .5); transition: transform var(--t); background: #0A1A10; }
.fp-hud a:hover { transform: scale(1.02); }
.fp-hud img { max-height: 210px; max-width: 100%; width: auto; }
.fpost .mano-bloque { margin: 0; }
.fp-h { margin: 0 0 8px; font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--tx-3); }
.fp-coms .prosa { font-size: 15px; }
.fp-rival { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fp-pie { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--ln); flex-wrap: wrap; }
.megusta { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--ln-2); color: var(--tx-3); font-size: 12.5px; font-weight: 650; transition: all var(--t); }
.megusta svg { width: 15px; height: 15px; transition: transform var(--t); }
.megusta:hover { border-color: rgba(225, 29, 72, .4); color: #E11D48; }
.megusta.on { background: rgba(225, 29, 72, .09); border-color: rgba(225, 29, 72, .35); color: #E11D48; }
.megusta.on svg { fill: currentColor; transform: scale(1.08); }
.respuestas { display: flex; flex-direction: column; gap: 14px; }
.resp-titulo { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--tx-3); margin: 8px 0 -2px; }
.resp-titulo::after { content: ''; flex: 1; height: 1px; background: var(--ln-2); }
.fpost-resp { grid-template-columns: 124px minmax(0, 1fr); }
.fpost-resp .fp-autor { padding: 18px 10px; }
.fpost-resp .fp-cuerpo { padding: 14px 20px 12px; gap: 10px; }
.fpost-resp .fp-pie { border-top: 0; padding-top: 0; }
.fpost-coach {
  border: 2px solid transparent;
  background: linear-gradient(var(--sf), var(--sf)) padding-box, linear-gradient(135deg, #2563EB, #7C3AED 55%, #DB2777) border-box;
  box-shadow: 0 26px 48px -30px rgba(124, 58, 237, .6);
}
.fpost-coach .fp-autor { background: linear-gradient(180deg, rgba(37, 99, 235, .09), rgba(124, 58, 237, .07)); border-right-color: rgba(124, 58, 237, .18); }
.fpost-coach .fp-nombre { color: var(--tx); }
.fpost-coach .av { box-shadow: 0 0 0 3px var(--sf), 0 0 0 5px rgba(124, 58, 237, .45); }
.sello-profe { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 750; color: #6D28D9; background: rgba(124, 58, 237, .1); }
.sello-profe svg { width: 13px; height: 13px; }
:root[data-theme="dark"] .sello-profe { color: #C4B5FD; background: rgba(124, 58, 237, .22); }
.fpost-nueva .fp-autor { justify-content: flex-start; }
.fpost-nueva .fp-h { color: var(--tx); font-size: 14px; letter-spacing: -.01em; text-transform: none; }
.fpost-nueva .fp-pie { border-top: 0; padding-top: 0; }

/* formulario: imagen del HUD y rival */
.ft-hud { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.hud-mini { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--ln-2); background: #0A1A10; }
.hud-mini img { height: 104px; width: auto; }
.hud-quitar { position: absolute; top: 6px; right: 6px; background: rgba(0, 0, 0, .62) !important; color: #fff !important; border: 0 !important; }
.subida-hud { min-height: 104px; min-width: 260px; flex: 1; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; border: 1.5px dashed var(--ln-3); cursor: pointer; color: var(--tx-2); transition: border-color var(--t), background var(--t); }
.subida-hud:hover { border-color: var(--sec); background: var(--sec-bg); }
.subida-hud > svg { width: 26px; height: 26px; color: var(--sec); flex: none; }
.seg-rival button { min-width: 74px; justify-content: center; }
.chips-bote { display: flex; flex-wrap: wrap; gap: 6px; }
.ft-spot2 .seg { align-self: flex-start; }
.chips-bote button { height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--ln-2); background: var(--sf); font-size: 13px; font-weight: 650; color: var(--tx-2); display: inline-flex; align-items: center; gap: 6px; transition: all var(--t); }
.chips-bote button:hover { border-color: var(--ln-3); color: var(--tx); background: var(--sf-2); }
.chips-bote button.on { background: var(--sec-pri); border-color: transparent; color: #fff; box-shadow: 0 6px 14px -8px var(--sec-sombra); }
.auto-pt { width: 6px; height: 6px; border-radius: 50%; background: #2563EB; flex: none; }
.chips-bote button.on .auto-pt { background: #fff; }
.mchip-rival { background: rgba(224, 154, 6, .12) !important; color: #A15C07 !important; }
:root[data-theme="dark"] .mchip-rival { color: #FCD34D !important; }

/* =====================================================================
   EJERCICIOS
   ===================================================================== */
.ej-elegir .sec-cab { margin-bottom: 16px; flex-wrap: wrap; }
.ej-h2 { font-size: 24px; font-weight: 800; letter-spacing: -.04em; }
.ej-tipos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ej-tipo {
  position: relative; overflow: hidden; isolation: isolate; text-align: left;
  height: 124px; padding: 16px 18px; border-radius: 22px; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  background: var(--sec-grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 16px 30px -20px var(--sec-sombra);
  transition: transform .22s cubic-bezier(.2, .7, .2, 1), box-shadow .22s;
}
.ej-tipo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(260px 140px at 0% -20%, rgba(255, 255, 255, .26), transparent 60%); }
.ej-tipo b { font-size: 20px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.ej-tipo-n { font-size: 12.5px; font-weight: 650; opacity: .88; }
.ej-tipo:hover:not([disabled]) { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 24px 40px -20px var(--sec-sombra); }
.ej-tipo[disabled] { opacity: .35; filter: saturate(.4); cursor: not-allowed; }
.ej-tipo-azar { grid-column: span 3; }
@media (max-width: 1100px) { .ej-tipo-azar { grid-column: span 2; } }
.ej-tipo-azar b { font-size: 26px; }
.ej-tipo-ic { position: absolute; top: 14px; left: 16px; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); }
.ej-tipo-ic svg { width: 18px; height: 18px; }
.ej-tipo-ilus { position: absolute; right: -8px; bottom: -28px; z-index: -1; color: rgba(255, 255, 255, .15); transform: rotate(-10deg); }
.ej-tipo-ilus svg { width: 128px; height: 128px; }
.ej-responder { border-color: var(--sec-ln); }
.ej-preg { font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.ej-duda-al { border: 1px solid var(--ln); border-radius: 16px; background: var(--sf); padding: 12px 16px; box-shadow: var(--sombra-t); }
.ej-duda-al summary { cursor: pointer; font-weight: 650; font-size: 13.5px; display: flex; align-items: center; gap: 8px; color: var(--tx-2); list-style: none; }
.ej-duda-al summary::-webkit-details-marker { display: none; }
.ej-duda-al summary svg { width: 15px; height: 15px; }
.ej-duda-al[open] summary { margin-bottom: 8px; }
.ej-comparar { display: flex; flex-direction: column; gap: 12px; }
.ej-mia { border-left: 4px solid var(--sec); }
.ej-mia .etiqueta { margin-bottom: 6px; }
.ej-hist { gap: 12px; flex-wrap: wrap; }

/* =====================================================================
   RETO DE 15 DÍAS
   ===================================================================== */
.reto-quincena { display: flex; align-items: center; gap: 28px; padding: 18px 22px; margin-bottom: 16px; flex-wrap: wrap; }
.rq-info { display: flex; flex-direction: column; gap: 2px; min-width: 170px; }
.rq-nombre { font-size: 26px; font-weight: 800; letter-spacing: -.045em; line-height: 1.1; }
.rq-barra { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 12px; }
.rq-barra .barra-p { flex: 1; height: 10px; border-radius: 6px; }
.rq-barra .barra-p > i { border-radius: 6px; background: var(--sec-grad); }
.aviso-reto { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 12px; border-color: var(--sec-ln); background: linear-gradient(90deg, var(--sec-bg), var(--sf) 72%); flex-wrap: wrap; }
.aviso-reto > div { min-width: 200px; }
.aviso-reto-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: var(--sec-grad); flex: none; box-shadow: 0 8px 18px -8px var(--sec-sombra); }
.aviso-reto-ic svg { width: 20px; height: 20px; }
.reto-filtros { margin: 24px 0 14px; }
.reto-feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.reto-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.reto-card.mio { border-color: var(--sec-ln); }
.rc-cab { display: flex; align-items: center; gap: 12px; }
.rc-cab > .etq { flex: none; }
.rc-titulo { display: block; font-size: 13px; font-weight: 650; color: var(--tx-2); margin-top: 1px; }
.rc-intro { padding: 10px 14px; border-radius: 12px; background: var(--sf-2); }
.ro-grupos { display: flex; flex-direction: column; gap: 12px; }
.ro-cat { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--sec-tx); }
.ro-cat svg { width: 13px; height: 13px; }
.ro-lista { list-style: none; margin: 7px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.ro-obj { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; }
.ro-marca { width: 20px; height: 20px; border-radius: 6px; flex: none; margin-top: 1px; display: grid; place-items: center; border: 1.5px solid var(--ln-3); color: #fff; }
.ro-marca svg { width: 13px; height: 13px; stroke-width: 3; }
.ro-ok .ro-marca { background: var(--ok); border-color: var(--ok); }
.ro-medias .ro-marca { background: #E09A06; border-color: #E09A06; }
.ro-no .ro-marca { background: var(--ko); border-color: var(--ko); }
.ro-no .ro-txt > span:first-child { color: var(--tx-2); }
.ro-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ro-util { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.ro-util.si { background: var(--ok-bg); color: var(--ok); }
.ro-util.no { background: var(--sf-3); color: var(--tx-3); }
.ro-nota { font-size: 13px; color: var(--tx-2); }
.rc-reflexion { padding: 12px 14px; border-radius: 12px; background: var(--sec-bg); }
.rc-reflexion .etiqueta { margin-bottom: 4px; }
.rc-pie { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--ln); flex-wrap: wrap; }
.punto-coach { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #2563EB, #7C3AED); margin-left: 2px; }
.form-reto, .form-balance { max-width: 880px; }
.rf-cab { display: flex; gap: 22px; align-items: flex-end; flex-wrap: wrap; }
.rf-num { width: 110px; }
.rf-q { font-size: 18px; font-weight: 800; letter-spacing: -.03em; }
.rf-lista { display: flex; flex-direction: column; gap: 8px; }
.rf-obj { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.bal-obj { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.bal-cab { display: flex; flex-direction: column; gap: 4px; }
.bal-txt { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.bal-ctrl { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.bal-util { display: flex; align-items: center; gap: 8px; }
.seg-estado button.on.est-si { background: var(--ok); color: #fff; }
.seg-estado button.on.est-medias { background: #D58E05; color: #fff; }
.seg-estado button.on.est-no { background: var(--ko); color: #fff; }

/* =====================================================================
   PERFIL
   ===================================================================== */
.perfil-cab {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; gap: 24px; padding: 30px 32px;
  border-radius: var(--r-xxl); color: #fff; border: 0;
  background: var(--sec-grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 24px 46px -28px var(--sec-sombra);
}
.perfil-cab::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(560px 280px at 8% -40%, rgba(255, 255, 255, .30), transparent 62%), radial-gradient(420px 320px at 102% 130%, rgba(0, 0, 0, .28), transparent 70%); }
.perfil-cab h1 { font-size: 38px; font-weight: 800; letter-spacing: -.05em; color: #fff; margin: 0; overflow-wrap: anywhere; }
.perfil-av { position: relative; flex: none; }
.perfil-av .av { box-shadow: 0 0 0 4px rgba(255, 255, 255, .35); }
.perfil-camara { position: absolute; right: -2px; bottom: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--sec-pri); cursor: pointer; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .45); transition: transform var(--t); }
.perfil-camara:hover { transform: scale(1.08); }
.perfil-camara svg { width: 16px; height: 16px; }
.etq-blanca { background: rgba(255, 255, 255, .2); color: #fff; }
.perfil-desde { font-size: 12.5px; color: rgba(255, 255, 255, .82); }
.stat-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--sec-grad); color: #fff; flex: none; }
.stat-ic svg { width: 14px !important; height: 14px !important; }
.stat .stat-l { color: var(--tx-2); gap: 8px; }
.aj-foto .av { flex: none; }

/* =====================================================================
   PANEL DEL COACH: ALUMNOS POR NICK
   ===================================================================== */
.acc-info { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.acc-info > div { min-width: 240px; }
.acc-info-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--sec-grad); color: #fff; flex: none; }
.acc-info-ic svg { width: 20px; height: 20px; }
.al-grupos { align-items: start; }
.al-fila2 { gap: 12px; }
.al-fila2.inactivo { opacity: .55; }
.av-pend { background: var(--sf-3) !important; color: var(--tx-3); border: 1.5px dashed var(--ln-3); box-shadow: none !important; }

/* =====================================================================
   CALENDARIO
   ===================================================================== */
.cal { padding: 18px 18px 20px; }
.cal-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 0 4px; }
.cal-mes { margin: 0; font-size: 23px; font-weight: 800; letter-spacing: -.04em; }
.cal-semana { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
.cal-semana span { text-align: center; font-size: 11px; font-weight: 750; letter-spacing: .08em; color: var(--tx-3); padding: 4px 0; }
.cal-dias { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: minmax(98px, auto); gap: 6px; }
.cal-dia { position: relative; border-radius: 14px; padding: 7px; background: var(--sf-2); border: 1px solid transparent; display: flex; flex-direction: column; gap: 4px; min-width: 0; transition: border-color var(--t), background var(--t); }
.cal-dia.fuera { opacity: .38; }
.cal-dia.pasado .cal-num span { color: var(--tx-3); }
.cal-dia.hoy { background: var(--sf); border-color: var(--sec-ln); box-shadow: 0 0 0 3px var(--sec-bg); }
.cal-dia.hoy .cal-num span { background: var(--sec-pri); color: #fff; }
.cal-num { display: flex; align-items: center; justify-content: space-between; }
.cal-num span { min-width: 26px; height: 26px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; padding: 0 6px; }
.cal-mas { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; color: var(--tx-3); opacity: 0; transition: opacity var(--t), background var(--t), color var(--t); }
.cal-mas svg { width: 14px; height: 14px; }
.cal-dia:hover .cal-mas, .cal-mas:focus-visible { opacity: 1; }
.cal-mas:hover { background: var(--sec-bg-2); color: var(--sec-tx); }
.cal-clase { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; text-align: left; padding: 6px 8px; border-radius: 9px; background: var(--sec-grad); color: #fff; font-size: 11.5px; line-height: 1.25; box-shadow: 0 6px 14px -8px var(--sec-sombra); transition: transform var(--t); }
.cal-clase:hover { transform: translateY(-1px); }
.cal-clase b { font-size: 10.5px; font-weight: 700; opacity: .9; }
.cal-clase span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; width: 100%; }
.cal-clase.hecha { background: var(--sf-4); color: var(--tx-2); box-shadow: none; }
.cal-prox { width: 100%; gap: 12px; }
.cal-prox > svg { width: 16px; height: 16px; color: var(--tx-3); }
.cal-prox .clase-fecha span { color: var(--sec-tx); }

/* =====================================================================
   BLOQUES: ANIMACIÓN SUAVE AL PASAR EL CURSOR
   - el brillo del degradado se desliza
   - una luz difusa sigue al ratón (--mx / --my los pone app.js)
   - el iconito se inclina un poco
   ===================================================================== */
.blq, .ej-tipo { transition: transform .28s cubic-bezier(.2, .7, .2, 1), box-shadow .28s, filter .6s ease; }
.blq:hover, .ej-tipo:hover:not([disabled]) { filter: saturate(1.12) brightness(1.04); }
.blq::after, .ej-tipo::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  opacity: 0; transition: opacity .45s ease;
  background: radial-gradient(320px circle at var(--mx, 70%) var(--my, 30%), rgba(255, 255, 255, .24), rgba(255, 255, 255, .06) 40%, transparent 70%);
}
.blq-g::after { background: radial-gradient(480px circle at var(--mx, 70%) var(--my, 30%), rgba(255, 255, 255, .22), rgba(255, 255, 255, .05) 40%, transparent 70%); }
.blq:hover::after, .ej-tipo:hover:not([disabled])::after { opacity: 1; }
.blq-ic, .ej-tipo-ic { transition: transform .45s cubic-bezier(.2, .7, .2, 1), background .3s; }
.blq:hover .blq-ic, .ej-tipo:hover:not([disabled]) .ej-tipo-ic { transform: rotate(-8deg) scale(1.07); background: rgba(255, 255, 255, .26); }
@media (prefers-reduced-motion: reduce) {
  .blq, .ej-tipo, .blq-ic, .ej-tipo-ic { transition: none !important; }
  .blq:hover, .blq:hover .blq-ic { transform: none !important; }
  .blq::after, .ej-tipo::after { display: none; }
}

/* =====================================================================
   MANO CON FORMATO EDUCAPOKER (Mano.educa)
   ===================================================================== */
.mano-educa { font-size: 14px; line-height: 1.7; color: var(--tx); }
.mano-educa p { margin: 0 0 12px; }
.mano-educa p:last-child { margin-bottom: 0; }
.me-b { font-weight: 700; }
.me-stacks { margin: 0 0 14px; padding-left: 22px; }
.me-stacks li { margin: 1px 0; padding-left: 2px; }
.me-stacks li::marker { color: var(--tx-2); font-weight: 400; }
.me-calle b { font-weight: 700; }
.me-decision { color: var(--az-tx); }
.me-crudo { white-space: normal; font-size: 13px; color: var(--tx-2); }
.ce {
  display: inline-flex; align-items: center; justify-content: center; gap: 1px;
  min-width: 26px; height: 21px; padding: 0 6px; margin: 0 1px;
  border: 1.5px solid #C5CAD3; border-radius: 999px; background: var(--sf);
  font-size: 12.5px; font-weight: 700; line-height: 1; vertical-align: 1px; white-space: nowrap;
}
.ce b { color: var(--tx); font-weight: 700; }
.ce i { font-style: normal; font-size: 13px; }
.ce.palo-s i { color: var(--p-s); }
.ce.palo-h i { color: var(--p-h); }
.ce.palo-d i { color: var(--p-d); }
.ce.palo-c i { color: var(--p-c); }
:root[data-theme="dark"] .ce { border-color: var(--ln-3); }
.me-vistas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.me-vistas .enlace-s { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--tx-3); }
.me-vistas .enlace-s:hover { color: var(--az-tx); }
.me-vistas .enlace-s svg { width: 14px; height: 14px; }
.ft-prev-educa { padding: 16px 18px; background: var(--sf); }
/* en la ficha de la tutoría, todo un poco más grande */
.fpost-tuto .mano-educa { font-size: 16px; line-height: 1.8; }
.fpost-tuto .mano-educa p { margin-bottom: 14px; }
.fpost-tuto .ce { height: 25px; min-width: 31px; padding: 0 8px; font-size: 14.5px; }
.fpost-tuto .ce i { font-size: 15px; }
.fpost-tuto .fp-coms { font-size: 16px; }
.fpost-tuto .fp-coms .prosa { font-size: 16px; line-height: 1.75; }
.fpost-tuto .fp-hud img { max-height: 280px; }
.fpost-tuto .fp-cuerpo { padding: 22px 30px 18px; gap: 20px; }
.fpost-resp .prosa { font-size: 15.5px; }
.tuto-h1 { font-size: 30px; }
.tuto-rejilla { grid-template-columns: minmax(0, 1fr) 290px; gap: 22px; }
@media (max-width: 1100px) { .tuto-rejilla { grid-template-columns: minmax(0, 1fr); } }

/* ---------- respuestas en audio ---------- */
.audio-zona { margin-top: -4px; position: relative; }
.audio-botones { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.audio-ayuda svg { width: 12px; height: 12px; vertical-align: -1px; }
.audio-subir { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--tx-3); cursor: pointer; }
.audio-subir:hover { color: var(--az-tx); }
.audio-subir svg { width: 14px; height: 14px; }
.mic-btn {
  width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #2563EB, #7C3AED); box-shadow: 0 10px 22px -10px rgba(124, 58, 237, .7);
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  transition: transform .18s cubic-bezier(.2, .7, .2, 1), background .2s;
}
.mic-btn svg { width: 21px; height: 21px; pointer-events: none; }
.mic-btn:hover { transform: scale(1.06); }
.mic-btn.activo { background: #E11D48; transform: scale(1.3); box-shadow: 0 0 0 8px rgba(225, 29, 72, .14), 0 12px 26px -10px rgba(225, 29, 72, .7); animation: mic-pulso 1.4s ease-in-out infinite; }
@keyframes mic-pulso { 0%, 100% { box-shadow: 0 0 0 6px rgba(225, 29, 72, .16), 0 12px 26px -10px rgba(225, 29, 72, .7); } 50% { box-shadow: 0 0 0 14px rgba(225, 29, 72, .05), 0 12px 26px -10px rgba(225, 29, 72, .7); } }
.audio-grabando.manteniendo { position: relative; padding-right: 12px; user-select: none; -webkit-user-select: none; }
.audio-t { font-size: 14px; font-weight: 600; color: var(--tx); min-width: 38px; }
.audio-desliza { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--tx-3); animation: desliza 1.6s ease-in-out infinite; }
.audio-desliza svg { width: 14px; height: 14px; }
@keyframes desliza { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-6px); } }
.mic-candado {
  position: absolute; right: 12px; bottom: calc(100% + 10px); width: 40px; padding: 8px 0 6px; border-radius: 20px;
  display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--tx-2);
  background: var(--sf); border: 1px solid var(--ln-2); box-shadow: var(--sombra-2); opacity: .45; transition: opacity .15s;
}
.mic-candado svg { width: 16px; height: 16px; }
.mic-flecha { display: grid; animation: sube 1.2s ease-in-out infinite; }
@keyframes sube { 0%, 100% { transform: translateY(2px); opacity: .5; } 50% { transform: translateY(-3px); opacity: 1; } }
.audio-grabando.bloqueado .faint svg { width: 12px; height: 12px; vertical-align: -1px; }
.mic-enviar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #2563EB, #7C3AED); box-shadow: 0 8px 18px -8px rgba(124, 58, 237, .7); transition: transform .15s; }
.mic-enviar:hover { transform: scale(1.08); }
.mic-enviar svg { width: 18px; height: 18px; }
.audio-grabando, .audio-prev { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border-radius: 14px; border: 1px solid var(--ln-2); background: var(--sf-2); flex-wrap: wrap; }
.audio-grabando { border-color: rgba(217, 45, 69, .35); background: rgba(217, 45, 69, .06); }
.audio-grabando b { font-size: 13px; }
.audio-grabando .mono { font-size: 13px; color: var(--tx-2); }
.punto-rec { width: 10px; height: 10px; border-radius: 50%; background: #E11D48; animation: latido-rec 1.1s ease-in-out infinite; }
@keyframes latido-rec { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
.audio-prev > svg { width: 16px; height: 16px; color: var(--sec-tx); }
.audio-prev audio, .audio-resp audio { height: 38px; flex: 1; min-width: 200px; max-width: 460px; }
.audio-resp { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; border-radius: 16px; background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(124, 58, 237, .08)); border: 1px solid rgba(124, 58, 237, .18); flex-wrap: wrap; }
.audio-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #2563EB, #7C3AED); flex: none; }
.audio-ic svg { width: 16px; height: 16px; }

/* =====================================================================
   GANADOR DEL QUIZ
   ===================================================================== */
.gan-ops { display: flex; flex-wrap: wrap; gap: 8px; }
.gan-op { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--ln-2); background: var(--sf); font-size: 13px; font-weight: 600; color: var(--tx); transition: all var(--t); }
.gan-op:hover { border-color: var(--ln-3); background: var(--sf-2); }
.gan-acerto { display: none; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--ok); }
.gan-acerto svg { width: 12px; height: 12px; }
.gan-op.acerto .gan-acerto { display: inline-flex; }
.gan-corona { display: none; color: #B7791F; }
.gan-corona svg { width: 15px; height: 15px; }
.gan-op.on { border-color: #E0A100; background: linear-gradient(135deg, rgba(250, 204, 21, .22), rgba(224, 154, 6, .14)); box-shadow: 0 0 0 3px rgba(224, 154, 6, .16); }
.gan-op.on .gan-corona { display: inline-flex; }
.ganador {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 22px; color: #fff;
  background: var(--sec-grad); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 20px 40px -24px var(--sec-sombra);
}
.ganador::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px 200px at 0% -30%, rgba(255, 255, 255, .3), transparent 60%); }
.ganador-ilus { position: absolute; right: -18px; bottom: -30px; z-index: -1; color: rgba(255, 255, 255, .16); transform: rotate(-10deg); }
.ganador-ilus svg { width: 150px; height: 150px; }
.ganador-avs { display: flex; flex: none; }
.ganador-avs .av { box-shadow: 0 0 0 3px rgba(255, 255, 255, .55); }
.ganador-avs .av + .av { margin-left: -14px; }
.ganador-sobre { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.ganador-sobre svg { width: 14px; height: 14px; }
.ganador-nom { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.04em; line-height: 1.15; margin-top: 2px; }
.ganador-txt { margin: 6px 0 0; font-size: 13.5px; opacity: .92; font-style: italic; }
.ganador-txt span { font-style: normal; opacity: .8; }
.ganador .btn { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .3); color: #fff; flex: none; }
.ganador .btn:hover { background: rgba(255, 255, 255, .28); }
.gan-vacio { display: flex; align-items: center; gap: 10px; color: var(--tx-2); }
.gan-vacio > svg { width: 18px; height: 18px; color: #B7791F; }
.etq-oro { background: rgba(224, 154, 6, .16); color: #A15C07; }
:root[data-theme="dark"] .etq-oro { color: #FCD34D; }
.quiz-r-gana { background: linear-gradient(90deg, rgba(224, 154, 6, .1), transparent 70%); }
.quiz-gana { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; color: #A15C07; padding: 3px 10px 3px 6px; border-radius: 999px; background: rgba(224, 154, 6, .12); white-space: nowrap; }
.quiz-gana > svg { width: 14px; height: 14px; }
:root[data-theme="dark"] .quiz-gana { color: #FCD34D; }
.rk-gan { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: #B7791F; font-family: var(--mono); margin-left: 4px; }
.rk-gan svg { width: 13px; height: 13px; }

/* =====================================================================
   EDITOR DE APUNTES (js/editor-rico.js) Y CÓMO SE VEN
   ===================================================================== */
.er { position: relative; border: 1px solid var(--ln-2); border-radius: 16px; background: var(--sf); box-shadow: var(--sombra-t); transition: border-color var(--t), box-shadow var(--t); }
.er:focus-within { border-color: var(--sec-ln); box-shadow: 0 0 0 3px var(--sec-bg); }
.er.soltar { border-color: var(--sec); border-style: dashed; }
.er-barra {
  position: sticky; top: 60px; z-index: 5; display: flex; align-items: center; flex-wrap: wrap; gap: 3px;
  padding: 8px 10px; border-bottom: 1px solid var(--ln); border-radius: 16px 16px 0 0;
  background: color-mix(in srgb, var(--sf) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.er-sel {
  height: 32px; border-radius: 9px; border: 1px solid var(--ln-2); background-color: var(--sf-2); color: var(--tx);
  padding: 0 28px 0 10px; font-size: 12.5px; font-weight: 600; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A8194' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center;
}
.er-sel:focus { outline: none; border-color: var(--sec-ln); }
.er-b { height: 32px; min-width: 32px; padding: 0 8px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--tx-2); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background var(--t), color var(--t); }
.er-b svg { width: 16px; height: 16px; }
.er-b:hover { background: var(--sf-2); color: var(--tx); }
.er-b.on { background: var(--sec-bg-2); color: var(--sec-tx); }
.er-b-tuto { color: var(--sec-tx); background: var(--sec-bg); margin-left: 2px; }
.er-b-tuto:hover { background: var(--sec-bg-2); color: var(--sec-tx); }
.er-b-txt { font-family: var(--mono); font-size: 11.5px; padding: 0 7px; }
.er-sep { width: 1px; height: 20px; background: var(--ln-2); margin: 0 4px; }
.er-area { position: relative; padding: 18px 22px; outline: none; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.er.vacio .er-area::before { content: attr(data-placeholder); position: absolute; top: 18px; left: 22px; color: var(--tx-4); pointer-events: none; }
.er-area img { cursor: pointer; }
.er-area img.er-sel { outline: 3px solid var(--sec); outline-offset: 2px; }
.er-ayuda { margin: 0; padding: 9px 14px 11px; border-top: 1px solid var(--ln); }
.er-img-barra { position: absolute; z-index: 6; display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-radius: 12px; background: var(--sf); border: 1px solid var(--ln-2); box-shadow: var(--sombra-2); flex-wrap: wrap; max-width: calc(100% - 16px); }
.er-img-barra[hidden] { display: none; }
.er-img-barra .faint { padding: 0 4px; }
.er-img-barra input[type="range"] { width: 110px; accent-color: var(--sec); }

.prosa img.ap-img { display: block; margin: 14px auto; height: auto; max-height: none; object-fit: initial; border-radius: 12px; border: 1px solid var(--ln); }
.prosa img.ap-img.izq { float: left; margin: 6px 20px 10px 0; }
.apunte-cuerpo::after, .er-area::after { content: ''; display: block; clear: both; }
.prosa .fs-s { font-size: .84em; }
.prosa .fs-l { font-size: 1.25em; }
.prosa .fs-xl { font-size: 1.6em; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.prosa a.enl-tuto {
  color: inherit; text-decoration: none; font-weight: 600; padding: 0 2px; border-radius: 3px;
  background: linear-gradient(transparent 60%, rgba(37, 99, 235, .2) 0); border-bottom: 2px solid #2563EB;
  transition: background var(--t);
}
.prosa a.enl-tuto:hover { background: rgba(37, 99, 235, .14); }
.enl-tuto-ic svg { width: 12px; height: 12px; margin-left: 4px; vertical-align: -1px; color: #2563EB; }
.er-area a.enl-tuto { cursor: text; }
.apunte-frase { display: block; margin-top: 5px; font-size: 12.5px; color: var(--tx-2); font-style: italic; line-height: 1.45; }

/* =====================================================================
   ADAPTACIÓN A TABLET Y MÓVIL
   ===================================================================== */
@media (max-width: 1100px) {
  .blqs { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 188px; }
  .blq-g { grid-row: span 1; }
  .blq-g .blq-t { font-size: 52px; }
  .blq-g .blq-ilus svg { width: 250px; height: 250px; }
  .ej-tipos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reto-feed { grid-template-columns: minmax(0, 1fr); }
  .acc-titular h1 { font-size: 46px; }
}
@media (max-width: 860px) {
  .cab-pag { padding: 22px 20px 20px; min-height: 0; border-radius: 24px; }
  .cab-pag h1 { font-size: 28px; }
  .cab-ilus { right: -6px; bottom: -34px; }
  .cab-ilus svg { width: 140px; height: 140px; }
  .acceso { grid-template-columns: minmax(0, 1fr); }
  .acc-lado { padding: 26px 20px 4px; gap: 18px; }
  .acc-titular h1 { font-size: 34px; margin: 6px 0 8px; }
  .acc-titular p { font-size: 14.5px; }
  .acc-mosaico { display: none; }
  .acc-der { padding: 12px 16px 32px; justify-content: flex-start; }
  .acc-caja { padding: 22px 20px; border-radius: 24px; }
  .inicio-cab h1 { font-size: 30px; }
  .blqs { gap: 12px; grid-auto-rows: 160px; }
  .blq { padding: 16px 16px 16px; border-radius: 24px; }
  .blq-g { padding: 20px 20px 18px; }
  .blq-t { font-size: 23px; }
  .blq-g .blq-t { font-size: 40px; }
  .blq-ancho .blq-t { font-size: 28px; }
  .blq-ic { width: 38px; height: 38px; border-radius: 12px; }
  .blq-ic svg { width: 19px; height: 19px; }
  .blq-g .blq-ic { width: 44px; height: 44px; }
  .blq-abrir { height: 32px; font-size: 13px; padding-left: 12px; }
  .blq-flecha { width: 24px; height: 24px; }
  .blq-g .blq-abrir { height: 36px; }
  .blq-badge { top: 14px; right: 12px; height: 22px; font-size: 11px; padding: 0 8px; }
  .blq-g .blq-badge { top: 20px; right: 18px; height: 26px; font-size: 12px; }
  .blq-ilus { right: -18px; bottom: -24px; }
  .blq-ilus svg { width: 124px; height: 124px; }
  .fpost, .fpost-resp { grid-template-columns: minmax(0, 1fr); border-radius: 18px; }
  .fp-autor { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; text-align: left; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--ln); gap: 8px 10px; }
  .fpost-resp .fp-autor { padding: 10px 14px; }
  .fp-autor .av-xl, .fp-autor .av-l { width: 38px; height: 38px; font-size: 14px; }
  .fp-av { margin: 0; }
  .fp-cuerpo { padding: 14px 16px; }
  .fpost-nueva .fp-autor { display: none; }
  .ej-tipos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ej-tipo { height: 104px; padding: 14px; border-radius: 18px; }
  .ej-tipo b { font-size: 17px; }
  .ej-tipo-azar b { font-size: 21px; }
  .rf-obj { grid-template-columns: minmax(0, 1fr) auto; }
  .rf-obj .rf-cat { grid-column: 1 / -1; width: auto; }
  .perfil-cab { padding: 22px 20px; gap: 16px; border-radius: 24px; }
  .perfil-cab h1 { font-size: 28px; }
  .perfil-av .av-xxl { width: 72px; height: 72px; font-size: 24px; }
  .reto-quincena { gap: 14px; }
  .cal { padding: 12px 10px 14px; }
  .cal-mes { font-size: 19px; }
  .cal-dias, .cal-semana { gap: 3px; }
  .cal-dias { grid-auto-rows: 54px; }
  .cal-dia { padding: 4px 2px; border-radius: 10px; align-items: center; gap: 3px; flex-wrap: wrap; flex-direction: row; justify-content: center; align-content: flex-start; }
  .cal-num { width: 100%; justify-content: center; }
  .cal-num span { min-width: 22px; height: 22px; font-size: 12px; padding: 0 4px; }
  .cal-mas { display: none; }
  .cal-clase { width: 9px; height: 9px; padding: 0; border-radius: 50%; box-shadow: none; }
  .cal-clase b, .cal-clase span { display: none; }
}
@media (max-width: 420px) {
  .blqs { grid-auto-rows: 148px; }
  .blq-t { font-size: 20px; }
  .blq-abrir { font-size: 0; gap: 0; padding: 0 4px; }
  .blq-g .blq-abrir { font-size: 13px; gap: 8px; padding: 0 4px 0 14px; height: 34px; }
  .blq-g .blq-flecha { width: 26px; height: 26px; }
}
