/* t2291 (24-oct-2026): arreglos de la verificación v2289 en las 4 apps. Va la última. DESHACER en antes-t2291-cabecera-24oct */

/* 1) cabecera: menos de 375 px no caben 7 botones de 44 px → «Tema» e «Idioma» van juntos en un botón de ajustes */
.t2291-aj,.t2291-pop{display:none}
@media (max-width:374px){
  html body .mbar.t2291-mbar>.tema-btn,html body .mbar.t2291-mbar>.idioma-sel{display:none!important}
  html body .mbar.t2291-mbar>.t2291-aj{display:inline-flex!important;align-items:center;justify-content:center;flex:none;width:44px!important;height:44px!important;min-width:44px!important;padding:0!important}
  html body .mbar.t2291-mbar>.t2291-aj[aria-expanded="true"]{border-color:#1F5BFF!important;color:#1F5BFF!important}
  html body .mbar.t2291-mbar>.t2291-aj .ic-m{width:20px;height:20px}
  html body .mbar.t2291-mbar{gap:6px!important;padding-left:10px!important;padding-right:10px!important}
  html body .mbar.t2291-mbar>.hueco{flex:1 1 0!important;min-width:0!important;width:auto!important}
  html body .t2291-pop:not([hidden]){display:flex;flex-direction:column;gap:6px;position:absolute;top:calc(100% + 6px);left:56px;z-index:95;
    width:212px;padding:8px;border-radius:18px;background:#fff;color:#0E1729;border:1px solid #E3E7F0;
    box-shadow:0 18px 40px -14px rgba(11,20,48,.45),0 2px 8px rgba(11,20,48,.12);font:700 14.5px/1.2 Manrope,system-ui,sans-serif}
  html:not([data-tema]) body .t2291-pop:not([hidden]){background:#17244F;color:#F4F7FF;border-color:rgba(244,247,255,.14)}
  html[data-tema="noche"] body .t2291-pop:not([hidden]){background:#2A161C;color:#F3E4D8;border-color:rgba(243,228,216,.16)}
  html body .t2291-pop .t2291-tema{display:flex!important;align-items:center;gap:12px;width:100%!important;min-height:44px!important;height:auto!important;
    padding:0 12px 0 10px!important;border:0!important;border-radius:12px!important;background:transparent!important;box-shadow:none!important;color:inherit!important;font:inherit!important;text-align:left;cursor:pointer}
  html body .t2291-pop .t2291-tema .ic-m{width:22px!important;height:22px!important;flex:none}
  html body .t2291-pop .t2291-fila{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:0 4px 0 12px;border-top:1px solid rgba(127,140,170,.22);padding-top:6px}
  html body .t2291-pop .t2291-idioma{display:inline-flex!important;gap:4px!important;height:44px!important;transform:none!important;zoom:1!important}
  html body .t2291-pop .t2291-idioma a{display:inline-flex!important;align-items:center;justify-content:center;min-width:44px!important;height:44px!important;padding:0 8px!important;
    border-radius:12px!important;border:1px solid rgba(127,140,170,.35)!important;background:transparent!important;color:inherit!important;font:800 13.5px/1 Manrope,system-ui,sans-serif!important;text-decoration:none;box-shadow:none!important;opacity:1!important;visibility:visible!important;position:static!important;width:auto!important}
  html body .t2291-pop .t2291-idioma a.on{background:#1F5BFF!important;border-color:#1F5BFF!important;color:#fff!important}
}

/* 1b) franja «Instálala en tu móvil»: si no cabe en una línea, texto y «Cómo se hace» en dos líneas; × de 44 px siempre */
html body #instTira #instNo{width:44px!important;height:44px!important;min-width:44px!important;flex:none}
@media (max-width:419px){
  html body #instTira.inst-tira{gap:8px!important;padding-left:12px!important;padding-right:6px!important;min-height:52px!important}
  html body #instTira.inst-tira>span{flex:1 1 auto!important;min-width:0!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.2!important}
  html body #instTira #instComo{flex:none!important;white-space:normal!important;text-align:center;justify-content:center;line-height:1.12!important;
    min-height:44px!important;max-width:84px;padding:4px 10px!important;margin:0!important}
}
@media (min-width:375px) and (max-width:419px){
  html body #instTira #instComo{max-width:none;white-space:nowrap!important}
}

/* 2) panel: «ver a otro» con su espacio entre palabras (Manrope a 12 px junta mucho el espacio) */
html body .btn-vista-otro{word-spacing:.22em!important;letter-spacing:.005em!important}

/* 3) «Ver mi plato» en el móvil: franja fija sobre el menú de abajo; la página deja ese hueco al final */
@media (max-width:899px){
  html body .t2291-vp{position:fixed;left:0;right:0;z-index:70;bottom:calc(var(--t2242-nav,76px) + env(safe-area-inset-bottom,0px));
    padding:8px 14px;background:var(--t2242-franja,rgba(244,247,255,.96));-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
    border-top:1px solid rgba(15,40,110,.10);box-shadow:0 -6px 16px -12px rgba(11,20,48,.35)}
  html:not([data-tema]) body .t2291-vp{background:rgba(14,24,52,.96);border-top-color:rgba(244,247,255,.10)}
  html[data-tema="noche"] body .t2291-vp{background:rgba(26,13,17,.96);border-top-color:rgba(243,228,216,.10)}
  html body .t2291-vp[hidden]{display:none!important}
  html body .t2291-vp .t2242-verplato{position:static!important;width:100%;justify-content:center;min-height:48px;box-shadow:0 6px 16px -8px rgba(18,56,184,.55)!important}
  html body .t2242-miniplato{bottom:calc(var(--t2242-nav,76px) + 76px + env(safe-area-inset-bottom,0px))!important}
  html.t2291-vp-on body{padding-bottom:calc(var(--t2242-nav,76px) + 72px + env(safe-area-inset-bottom,0px))!important}
}
/* en noche, «Ver mi plato» con el cobre del tema (un punto más oscuro que los «+» para que el texto blanco se lea: 4,6:1) */
html[data-tema="noche"] body .t2242-verplato{background:#B85A38!important;box-shadow:0 6px 16px -8px rgba(120,48,22,.6)!important}
html[data-tema="noche"] body .t2242-vp-n{color:#B85A38!important}

/* 4) «Entreno de running» a menos de 360 px: «Guardar» baja a su propia fila y las 3 partes caben enteras */
@media (max-width:359px){
  html body .t2245-resumen{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
  html body .t2245-resumen>.t2245-arriba{grid-column:1/-1!important;justify-content:center;min-height:44px!important;width:100%!important}
  html body #t2280-fases li{padding-left:8px!important;padding-right:3px!important;min-width:0}
  html body #t2280-fases li>small{font-size:10px!important}
  html body #t2280-fases li>span{font-size:11.5px!important;letter-spacing:-.01em!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important}
}
