* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100%;
  height: 0;
  overflow-x: hidden;
  /*background: linear-gradient(135deg, #d160e0, #d5a8ff, #f7c18b, #ff9a36);*/
}

.logo {
  border-radius: 10px;
  margin-right: 10px;
  max-width: 140px;
}

.header {
  position: sticky;
  top: 0;
  left: 0;
  height: 0;
  width: 100%;
  z-index: 1000;

  background: linear-gradient(135deg, #250729, #291a07);

  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 30px;
  padding-top: 35px;
}

.announcement {
  background: black;
  align-self: center;
  text-align: center;

  width: 100%;
  top: 0;
  left: 0;
  padding: 5px;
}

.announcement p {
  font-size: 15px;
  color: white;
}

#banner1,
#banner2 {
  transition: opacity 0.4s ease;
}

main {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  padding-bottom: 100px;
}

.categories {
  margin-bottom: 40px;
  margin-left: 10px;
}

.category-button {
  display: inline-block;
  align-self: center;

  list-style: none;
  text-decoration: none;
  color: black;
  border-radius: 8px;
  padding: 8px;
  margin-inline: 8px;
  margin-top: 8px;

  background-color: lightblue;
  transition: transform 0.3s ease;
}

.category-button:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.title {
  margin-block: 50px;
  display: flex;
  align-self: center;
  text-align: center;
}

.footer {
  display: flex;
  justify-content: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 0;
  border-radius: 10px;
  right: 40px;
  bottom: 50px;
  padding: 10px;
}

.footer img {
  border-radius: 10px;
  max-width: 50px;
}

.site-footer {
  background-color: #f9f9f9;
  color: #333;
  padding: 3rem 1rem 1rem;
  margin-top: 4rem;
  border-top: 1px solid #eee;
}

.footer-columns {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column h3 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  color: #000;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 0.8rem;
}

.footer-column ul li a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: #000;
}

.footer-bottom {
  text-align: right;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.9rem;
  color: #888;
}

.footer-bottom a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

.nav {
  display: flex;
  flex-grow: 1;
}

/* Nav */
.nav-list {
  list-style: none;
  display: flex;
  margin-left: auto;
}

.nav-list li {
  display: inline-block;
}

.nav-list a,
.nav-list button {
  margin-inline: 20px;
  text-decoration: none;
  color: white;
  min-width: 50px;
  font-size: 14px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-category {
  list-style: none;
  display: flex;
  gap: 20px;
  position: relative;
  left: 0;
  margin-left: 20px;
}

.nav-category li {
  position: relative;
}

.nav-category a,
.nav-category button {
  text-decoration: none;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
}

/* Dropdown */
.dropdown-menu {
  display: grid;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 99;

  background: #fff;
  max-width: 0px;
  min-width: 0px;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 6px;

  /* GRID */
  grid-template-columns: repeat(2, 1fr); /* 2 columnas */
  gap: 5px;
  padding-top: 20px;
  overflow: hidden;

  opacity: 0;
  transition: opacity 0.5s;
}

/* Items dropdown */
.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  color: #333;
  padding: 10px 2px;
}

.dropdown-menu a:hover {
  background: #f5f5f5;
}

/* Mostrar dropdown en hover */
.dropdown:hover .dropdown-menu {
  max-width: 600px;
  min-width: 200px;
  opacity: 1;
}

.total-section {
  display: flex;
  justify-content: center;
  margin-block: 20px;
  padding: 20px;
  background-color: #f9f9f9;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.total-info h3 {
  font-size: 24px;
  color: #333;
}

@media (max-width: 768px) {
  .logo {
    border-radius: 10px;
    margin-right: 10px;
    max-width: 60px;
  }
  .announcement p {
    font-size: 12px;
  }
  .footer {
    display: flex;
    flex-direction: column;
  }
  .footer {
    right: 15px;
  }
  .nav-list a,
  .nav-list button,
  .nav-category a,
  .nav-category button {
    font-size: 9.8px;
    margin-inline: 4px;
  }
}

@keyframes fadeInUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.fadeInUp-animation {
  opacity: 0;
}

.fadeInUp-animation.visible {
  animation: 1.5s fadeInUp forwards;
}

@keyframes pulse {
  20% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.2);
  }
  65% {
    transform: scale(1);
  }
  100% {
    transform: scale(1);
  }
}

.pulse-animation {
  animation-name: pulse;
  animation-duration: 4s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

.slide {
  opacity: 0;
  transform: translatey(10px);
  transition: all 0.4s ease;
}

.slide.show {
  opacity: 1;
  transform: translatex(0);
}
