/* Celaje web (iPhone), 04/12/2026: lo que en la web no existe se oculta (ver IPHONE.md) y la ayuda para instalarla.
   Lo añade a la página procesos/web_iphone.js; no va en el APK. */
html.web #btnWidgets, html.web #btnStatus, html.web #btnPin, html.web #widgetSheet, html.web #statusSheet,
html.web #alertBattery, html.web #hgDatadisCard, html.web #hgHaCard,
/* Alertas: llegarán con las notificaciones push (fase aparte) */
html.web #btnAlerts { display: none !important; }

/* Ayuda para instalar (iPhone) o ir a Google Play (Android) */
.web-inst { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 9000;
  background: rgba(14, 26, 46, .96); color: #fff; border-radius: 18px; padding: 14px 44px 14px 14px; font-size: 15px;
  line-height: 1.4; box-shadow: 0 8px 30px rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .12); }
.web-inst b { font-weight: 700; }
/* No tapa el recorrido guiado ni la pantalla de inicio (pueden empezar después de que salga) */
body.touring .web-inst, body.intro .web-inst { display: none; }
.web-inst .wi-x { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border: 0; background: none;
  color: #fff; font-size: 22px; line-height: 34px; opacity: .7; }
.web-inst .wi-pasos { margin: 8px 0 0; padding-left: 20px; }
.web-inst .wi-pasos li { margin: 4px 0; }
.web-inst svg { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; margin: 0 2px; fill: none; stroke: #6CB4FF; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.web-inst a.wi-play { display: inline-block; margin-top: 10px; padding: 9px 16px; border-radius: 12px; background: #FFB547;
  color: #14213A; font-weight: 700; text-decoration: none; }

/* Botón de compartir cuando iPhone no deja abrir el menú solo (puente_web.js, shareFile) */
.web-share-btn { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(90px + env(safe-area-inset-bottom));
  z-index: 9001; padding: 14px 22px; border-radius: 16px; border: 0; background: #FFB547; color: #14213A; font-size: 16px;
  font-weight: 700; box-shadow: 0 8px 30px rgba(0, 0, 0, .45); }

/* Versión de prueba: botón y panel de errores (no hay Mac para ver la consola de Safari) */
.web-bug { position: fixed; left: 8px; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 8999; width: 38px; height: 38px;
  border-radius: 50%; border: 0; background: rgba(14, 26, 46, .85); font-size: 20px; line-height: 38px; padding: 0; }
.web-bug i { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: #E5484D;
  color: #fff; font: 700 11px/18px system-ui; font-style: normal; }
.web-errs { position: fixed; inset: calc(10px + env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom)); z-index: 9002;
  background: #0E1A2E; color: #fff; border-radius: 16px; padding: 12px; overflow: auto; font: 12px/1.4 ui-monospace, Menlo, monospace;
  border: 1px solid rgba(255, 255, 255, .15); }
.web-errs h3 { margin: 0 0 8px; font: 700 15px system-ui; }
.web-errs pre { white-space: pre-wrap; word-break: break-word; margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.web-errs button { margin: 0 8px 10px 0; padding: 8px 14px; border-radius: 10px; border: 0; background: #2A3B5C; color: #fff; font-size: 14px; }
