#mfPwaViewButton,#mfPwaViewPanel,#mfPwaMobileInstall{display:none}

/* Instalación móvil/tablet */
@media (max-width:1024px){
  html.mf-pwa-install-offer{--mf-pwa-install-height:58px}
  html.mf-pwa-install-offer body{padding-top:calc(var(--mf-header-height-tablet,74px) + var(--mf-pwa-install-height))!important}
  html.mf-pwa-install-offer .mf-nav-menu{top:calc(var(--mf-header-height-tablet,74px) + var(--mf-pwa-install-height))!important;max-height:calc(100vh - var(--mf-header-height-tablet,74px) - var(--mf-pwa-install-height))!important}
  html.mf-pwa-install-offer .mf-mobile-nav-overlay{inset:calc(var(--mf-header-height-tablet,74px) + var(--mf-pwa-install-height)) 0 0!important}
  #mfPwaMobileInstall.mf-pwa-mobile-install{display:flex;position:fixed;left:0;right:0;top:var(--mf-header-height-tablet,74px);z-index:1599;min-height:58px;padding:8px 14px;background:#c62828;color:#fff;align-items:center;justify-content:space-between;gap:12px;box-shadow:0 9px 24px rgba(15,23,42,.16);font-family:Poppins,Arial,sans-serif}
  .mf-pwa-install-copy{display:flex;align-items:center;min-width:0;gap:10px}.mf-pwa-install-copy img{width:38px;height:38px;border-radius:10px;background:#fff;object-fit:contain;flex:0 0 auto}.mf-pwa-install-copy div{min-width:0}.mf-pwa-install-copy strong{display:block;color:#fff;font-size:.88rem;line-height:1.15}.mf-pwa-install-copy span{display:block;color:rgba(255,255,255,.88);font-size:.72rem;line-height:1.25;margin-top:3px}.mf-pwa-install-actions{display:flex;align-items:center;gap:7px;flex:0 0 auto}.mf-pwa-install-add{min-height:38px;border:1px solid rgba(255,255,255,.72);border-radius:999px;background:#fff;color:#b91c1c;padding:0 15px;font:800 .78rem Poppins,Arial,sans-serif;cursor:pointer}.mf-pwa-install-close{width:36px;height:36px;border:0;border-radius:50%;background:rgba(255,255,255,.13);color:#fff;font-size:1.35rem;line-height:1;cursor:pointer}
}
@media (max-width:480px){html.mf-pwa-install-offer{--mf-pwa-install-height:62px}html.mf-pwa-install-offer body{padding-top:calc(var(--mf-header-height-mobile,70px) + var(--mf-pwa-install-height))!important}html.mf-pwa-install-offer .mf-nav-menu{top:calc(var(--mf-header-height-mobile,70px) + var(--mf-pwa-install-height))!important}#mfPwaMobileInstall.mf-pwa-mobile-install{top:var(--mf-header-height-mobile,70px);min-height:62px;padding:7px 10px}.mf-pwa-install-copy img{width:34px;height:34px}.mf-pwa-install-copy strong{font-size:.82rem}.mf-pwa-install-copy span{font-size:.67rem}}



/* Color de lectura: disponible en PC, tablet y celular */
.mf-a11y-host{position:relative!important}
html.mf-pwa-reading-controls #mfPwaViewButton{
  display:flex;position:absolute;right:clamp(10px,1.5vw,22px);top:2px;z-index:80;
  width:50px;height:50px;border:1px solid rgba(255,255,255,.58);border-radius:50%;
  background:rgba(255,255,255,.97);color:#111827;align-items:center;justify-content:center;
  box-shadow:0 10px 26px rgba(15,23,42,.18);cursor:pointer;font-size:20px;backdrop-filter:blur(10px)
}
html.mf-pwa-reading-controls #mfPwaViewButton:hover{transform:translateY(-1px);box-shadow:0 14px 32px rgba(15,23,42,.22)}
html.mf-pwa-reading-controls #mfPwaViewPanel{
  display:none;position:absolute;right:clamp(10px,1.5vw,22px);top:58px;z-index:81;
  width:min(340px,calc(100vw - 24px));max-height:min(470px,calc(100vh - 76px));overflow:auto;
  padding:14px 14px 12px;border:1px solid rgba(15,23,42,.12);border-radius:20px;background:#fff;color:#111827;
  box-shadow:0 24px 60px rgba(15,23,42,.22);font-family:Poppins,Arial,sans-serif
}
html.mf-pwa-reading-controls #mfPwaViewPanel.is-open{display:block}
.mf-pwa-panel-head{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:2px 0 9px;border-bottom:1px solid #dfe5ec}
.mf-pwa-panel-head h3{margin:0;font:800 1.02rem Montserrat,Poppins,sans-serif}
.mf-pwa-panel-head p{display:none}
.mf-pwa-close{width:34px;height:34px;border:0;border-radius:50%;background:#f1f5f9;color:#111827;cursor:pointer;flex:0 0 auto}
.mf-color-list{display:grid;gap:3px;padding:7px 0 2px}.mf-color-row{border-radius:16px;overflow:hidden}
.mf-color-option{width:100%;min-height:46px;border:0;border-radius:14px;background:transparent;color:#172033;padding:5px 8px;display:grid;grid-template-columns:38px 1fr 20px;align-items:center;gap:9px;text-align:left;cursor:pointer;font:600 .82rem Poppins,sans-serif}
.mf-color-option:hover{background:#f8fafc}.mf-color-option.is-active{background:#eef2f5}
.mf-color-check{opacity:0;color:#111827;font-size:.9rem}.mf-color-option.is-active .mf-color-check{opacity:1}
.mf-color-swatch{width:34px;height:34px;border:2px solid #cbd5e1;border-radius:50%;display:grid;place-items:center;font:700 .86rem Arial,sans-serif;overflow:hidden}
.mf-color-swatch-light{background:#fff;color:#111827}.mf-color-swatch-yellow{background:#ffe39a;color:#392d08}.mf-color-swatch-mono{background:linear-gradient(90deg,#fff 0 50%,#444 50% 100%);color:#111827}
.mf-color-label{line-height:1.3}
.mf-intensity-control{display:none;margin:1px 8px 8px;padding:9px 10px 8px;border:1px solid #e5eaf0;border-radius:14px;background:#fafbfd}
.mf-intensity-control.is-visible{display:block}.mf-intensity-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:6px;color:#334155;font-size:.72rem;font-weight:700}.mf-intensity-head strong{font-size:.7rem;color:#111827}.mf-intensity-control input[type="range"]{width:100%;accent-color:#b91c1c;cursor:pointer}.mf-intensity-scale{display:flex;justify-content:space-between;margin-top:4px;color:#94a3b8;font-size:.6rem}
.mf-color-note{display:none!important}
html.mf-reading-light body{filter:none!important}
html.mf-reading-yellow::after{content:'';position:fixed;inset:0;z-index:2147480000;pointer-events:none;background:rgba(255,190,35,var(--mf-yellow-intensity,.22));mix-blend-mode:multiply}
html.mf-reading-yellow body>*:not(#mfPwaViewPanel):not(#mfPwaViewButton){filter:sepia(calc(var(--mf-yellow-intensity,.22) * .55)) saturate(calc(1 - var(--mf-yellow-intensity,.22) * .15)) brightness(.995)}
html.mf-reading-mono body>*:not(#mfPwaViewPanel):not(#mfPwaViewButton){filter:grayscale(var(--mf-mono-intensity,1)) contrast(.99)}
html.mf-reading-yellow #mfPwaViewPanel,html.mf-reading-yellow #mfPwaViewButton,html.mf-reading-mono #mfPwaViewPanel,html.mf-reading-mono #mfPwaViewButton{filter:none!important}

@media (max-width:1024px){
  html.mf-pwa-reading-controls #mfPwaViewButton{right:12px;top:2px;width:46px;height:46px;font-size:18px}
  html.mf-pwa-reading-controls #mfPwaViewPanel{right:8px;top:54px;width:min(330px,calc(100vw - 16px));max-height:min(460px,calc(100vh - 70px));border-radius:18px;padding:13px}
}
@media (max-width:560px){
  html.mf-pwa-reading-controls #mfPwaViewButton{right:10px;top:0;width:44px;height:44px;font-size:17px}
  html.mf-pwa-reading-controls #mfPwaViewPanel{right:6px;top:50px;width:min(320px,calc(100vw - 12px));max-height:calc(100vh - 62px);border-radius:16px;padding:12px}
  .mf-pwa-panel-head h3{font-size:.98rem}.mf-color-option{min-height:44px;grid-template-columns:36px 1fr 20px}.mf-color-swatch{width:32px;height:32px}
}
