/* Tooltip oculto por defecto */
.tooltip {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  position: absolute;
  left: 100%;
  /* Aparece a la derecha */
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0.5rem;
  background-color: rgba(31, 41, 55, 0.9);
  /* Tailwind gray-800 */
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 50;
}

/* Mostrar tooltip al hacer hover en el padre */
.group:hover .tooltip {
  opacity: 1;
  pointer-events: auto;
}

/* Rotación suave del icono */
.rotate-hover:hover {
  transform: rotate(15deg);
  transition: transform 0.3s ease;
}

#typewriter::after {
  content: '|';
  animation: blink 0.7s infinite;
  color: #0f172a;
  /* Cursor elegante */
}

@keyframes blink {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

/* Para que el fondo fijo no falle en móvil */
@media (max-width: 768px) {
  #parallax-bg {
    position: absolute !important;
    transform: none !important;
  }
}