/* ═══════════════════════════════════════════════
   YARDA 20 — Widget de notificaciones
   Botón flotante + modal de categorías (OneSignal).
   Se inyecta solo vía js/notif-widget.js en todas las páginas.
   Color naranja de marca (#F15A22) — es el único color que se
   repite igual en todo el sitio, sin importar el equipo/temporada.
═══════════════════════════════════════════════ */
.notif-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #F15A22;
  color: #fff;
  padding: 12px 18px;
  border-radius: 30px;
  text-decoration: none;
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}
.notif-fab:hover { opacity: 0.9; transform: translateY(-2px); }
.notif-fab-icon { font-size: 1rem; line-height: 1; }

.notif-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.notif-modal-overlay.is-open { display: flex; }

.notif-modal {
  background: #0E1114;
  color: #F5F5F0;
  width: 100%;
  max-width: 380px;
  border-radius: 14px;
  border-top: 3px solid #F15A22;
  padding: 26px 22px 22px;
  max-height: 85vh;
  overflow-y: auto;
  font-family: Arial, sans-serif;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.notif-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
}
.notif-modal-close:hover { color: #fff; }

.notif-modal h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: #fff;
}
.notif-install-suggestion {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(241,90,34,0.1);
  border: 1px solid rgba(241,90,34,0.3);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.notif-install-suggestion p {
  margin: 0;
  flex: 1;
  font-size: 0.78rem;
  color: rgba(245,245,240,0.85);
  line-height: 1.4;
}
.notif-install-suggestion button {
  flex-shrink: 0;
  background: #F15A22;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.notif-install-suggestion button:hover { opacity: 0.88; }

.notif-modal-sub {
  margin: 0 0 20px;
  font-size: 0.85rem;
  color: rgba(245,245,240,0.6);
  line-height: 1.5;
}
.notif-instructions { display: none; }
.notif-instructions-text {
  font-size: 0.88rem;
  color: rgba(245,245,240,0.75);
  line-height: 1.55;
  margin: 0 0 14px;
}
.notif-instructions-steps {
  margin: 0;
  padding-left: 1.3em;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(245,245,240,0.85);
  line-height: 1.4;
}
.notif-instructions-steps strong { color: #fff; }

.notif-cat-group h3 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #F15A22;
  margin: 0 0 10px;
}
.notif-modal label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  font-size: 0.92rem;
  cursor: pointer;
}
.notif-modal input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #F15A22;
  cursor: pointer;
  flex-shrink: 0;
}
.notif-modal button[type="submit"] {
  width: 100%;
  margin-top: 18px;
  padding: 13px;
  border: none;
  border-radius: 8px;
  background: #F15A22;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: opacity 0.15s;
}
.notif-modal button[type="submit"]:hover { opacity: 0.88; }
.notif-modal button[type="submit"]:disabled { opacity: 0.5; cursor: default; }
.notif-modal-msg {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #4ADE80;
  display: none;
  text-align: center;
}

@media (max-width: 480px) {
  .notif-fab { right: 14px; bottom: 14px; padding: 11px 14px; font-size: 0.76rem; }
  .notif-modal { padding: 22px 18px 18px; }
}
