/* ===== BOTONES FLOTANTES MEJORADOS ===== */
.floating-home-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #1a2a6c, #3498db);
  color: white !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  font-size: 1.4rem;
}

.floating-home-btn i {
  font-size: 1.4rem;
}

.floating-home-btn:hover {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, #b21f1f, #e74c3c);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.floating-home-btn:active {
  transform: scale(0.95);
}

.floating-help-btn {
  position: fixed;
  top: 90px; /* Debajo del botón de inicio */
  left: 20px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: white !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  font-size: 1.4rem;
}

.floating-help-btn i {
  font-size: 1.4rem;
}

.floating-help-btn:hover {
  transform: scale(1.1) rotate(-5deg);
  background: linear-gradient(135deg, #f39c12, #f1c40f);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.floating-help-btn:active {
  transform: scale(0.95);
}

/* Ajustes para móviles */
@media (max-width: 768px) {
  .floating-home-btn,
  .floating-help-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .floating-home-btn {
    top: 20px;
    left: 20px;
  }

  .floating-help-btn {
    top: 85px;
    left: 20px;
  }
}

@media (max-width: 480px) {
  .floating-home-btn,
  .floating-help-btn {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
  }

  .floating-home-btn {
    top: 15px;
    left: 15px;
  }

  .floating-help-btn {
    top: 75px;
    left: 15px;
  }
}

/* Para pantallas muy grandes */
@media (min-width: 1400px) {
  .floating-home-btn,
  .floating-help-btn {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .floating-home-btn {
    left: 30px;
  }

  .floating-help-btn {
    left: 30px;
    top: 100px;
  }
}
/* ===== MEJORAS PARA PWA ===== */
@media (display-mode: standalone) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .floating-home-btn,
  .floating-help-btn {
    top: calc(20px + env(safe-area-inset-top));
  }

  .floating-help-btn {
    top: calc(90px + env(safe-area-inset-top));
  }
}

/* ===== ESTILOS PARA INSTALACIÓN PWA ===== */
#pwa-install-prompt {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: #333;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 10001;
  display: none;
  max-width: 400px;
  width: 90%;
  text-align: center;
}

#pwa-install-prompt.show {
  display: block;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translate(-50%, 100%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.pwa-install-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  justify-content: center;
}

.pwa-install-buttons button {
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

#pwa-install-accept {
  background: #2ecc71;
  color: white;
}

#pwa-install-decline {
  background: #e74c3c;
  color: white;
}

/* ===== BOTÓN FLOTANTE PWA ===== */
.floating-pwa-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  color: white;
  border-radius: 50%;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: none; /* Oculto por defecto */
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 10002; /* Aumentado para estar por encima de todos los elementos */
  transition: all 0.3s ease;
}

.floating-pwa-btn:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, #8e44ad, #7d3c98);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Ajustes para móviles del botón PWA */
@media (max-width: 768px) {
  .floating-pwa-btn {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .floating-pwa-btn {
    bottom: 10px;
    right: 10px;
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
  }
}
