h3 {
  text-align: center;
}

/* Style the tab container */
.tab {
  overflow: hidden;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  margin: 2rem auto;
  max-width: 900px;
}

/* Style the buttons inside the tab */
.tab button {
  background-color: transparent;
  border: 2px solid #333;
  outline: none;
  cursor: pointer;
  padding: 0.8rem 1.5rem;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 2rem;
  color: #333;
  position: relative;
  overflow: hidden;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #333;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #333;
  color: white;
  border-color: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Add responsive styles for tabs */
@media screen and (max-width: 768px) {
  .tab {
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .tab button {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    width: calc(50% - 1rem); /* 2 buttons per row on mobile */
  }
}

/* Add smooth transitions */
.tabcontent {
  animation: fadeEffect 0.5s;
}

@keyframes fadeEffect {
  from {opacity: 0;}
  to {opacity: 1;}
}

.srcnes-relojes {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1rem;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

@media screen and (max-width: 480px) {
  .srcnes-relojes {
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    gap: 1rem;
  }
}

@media screen and (min-width: 481px) and (max-width: 768px) {
  .srcnes-relojes {
    gap: 1rem;
    padding: 0.75rem;
  }
}

@media screen and (min-width: 769px) {
  .srcnes-relojes {
    gap: 1.5rem;
    padding: 1.5rem;
  }
}
