/* Estilos base */
body {
  font-family: 'Lato', sans-serif;  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
}

/* Estilos para la sección que contiene el título y el menú */
section {
  position: relative;
  background-image: url('../images/fondo-dulce.jpeg'); 
  background-size: cover;
  background-position: center;
  padding: 150px 0; 
  text-align: center;
  opacity: 0.8; 
}
@keyframes myAnimation {
  0% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
  50% {
    transform: translateY(0) scale(0.5);
    opacity: 0.5;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.animate-fall {
  animation: myAnimation 1s ease-in-out forwards;
}

/* Estilos para el título */
#titulo {
  color: #fff; 
  font-size: 48px; 
  position: relative;
  margin-bottom: 50px; 
}

/* Estilos para el menú */
.tab {
  position: relative;
  top: 30px; 
  background-color: rgba(255, 255, 255, 0.8); 
  padding: 20px; 
  border-radius: 20px; 
  max-width: 45%; 
  margin: 0 auto; 
}

.tab button {
  background-color: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 20px;
  font-size: 20px;
  transition: 0.3s;
  color: #9d9d9d;
}

.tab button.active {
  color: #fff;
  background-color: #ff5100; 
  border-radius: 30px;
}

.tabcontent {
  display: none;
  padding: 20px;
  border-radius: 8px;
  background-color: #e5e5e5;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tabcontent.active {
  display: block;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.card {
  width: calc(25% - 40px);
  margin: 10px;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card:hover {
  transform: translateY(-20px);
}

.card img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

.card p {
  margin: 10px 0;
  color: #ff6f00;
  font-size: 25px;
}

.card pd {
  margin: 10px 0;
  color: #333;
  font-size: 18px;
}

#arrow-up {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #4499fa;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  text-align: center;
  line-height: 50px;
  cursor: pointer;
  z-index: 999;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#arrow-up:hover {
  background-color: #357ad1;
  transform: scale(1.1);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.fullscreen {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  text-align: center;
}

.fullscreen-img {
  max-width: 100%;
  max-height: 100%;
  margin-top: 50px;
}

.close {
  color: #fff;
  font-size: 30px;
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
}

/* Media queries para hacer la página responsiva */
@media screen and (max-width: 768px) {
  .card {
      width: calc(50% - 40px);
  }
}

@media screen and (max-width: 480px) {
  .card {
      width: calc(100% - 40px);
  }
}

@media screen and (max-width: 768px) {
  .tab {
      flex-direction: column;
      align-items: stretch;
  }

  .tab button {
      padding: 15px 0;
      width: 100%;
  }
}
