:root {
  --negro: #000000;
  --dorado: #FFD700;
  --plateado: #C0C0C0;
}

body {
  margin: 0;
  background-color: var(--negro);
  font-family: 'Orbitron', sans-serif;
  color: var(--plateado);
}

@keyframes aparecer {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero {
  position: relative;
  padding: 4rem 1rem;
  font-family: 'Orbitron', sans-serif;
  color: var(--plateado);
  text-align: center;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: aparecer 2s ease-in-out 0.5s forwards;
}

.hero-content {
  z-index: 1;
  color: var(--plateado);
  padding: 1rem;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero h2 {
  color: var(--dorado);
  font-size: clamp(1.5rem, 4.8vw, 2.5rem);
  margin: 0;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.hero button {
  background: linear-gradient(90deg, var(--dorado), #b8860b);
  color: var(--negro);
  border-radius: 15px;
  padding: 1rem 2rem;
  cursor: pointer;
  margin-bottom: 2rem;
  transition: 0.5s;
  font-weight: bold;
  border: none;
}

.hero button:hover {
  background: linear-gradient(90deg, #b8860b, var(--dorado));
  color: var(--negro);
  transform: scale(1.05);
}

.hero > img.hero-bg {
  width: 100%;
  height: 550px;
  object-fit: cover;
  border-radius: 0px;
}

.hero h3 {
  color: var(--dorado);
  margin: 1rem 0 0.5rem;
}

.hero-patlets {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--dorado);
  border-radius: 12px;
  padding: 1rem;
  width: min(100%, 300px);
  text-align: center;
  color: #fff;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
  animation: aparecer 2s ease-in-out 0.5s forwards;
}

.hero-patlets img {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 22 / 17;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.hero-patlets h3 {
  color: var(--dorado);
  margin-bottom: 10px;
  font-size: 1.4rem;
  font-weight: bold;
}

.hero-patlets p {
  color: #ddd;
  font-size: 1rem;
}

.hero-patlets:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: var(--dorado);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
  cursor: pointer;
}

.hero-patlets:hover h3 {
  color: #fff;
  text-shadow: 0 0 10px var(--dorado), 0 0 20px #ffcc00;
}

.hero-patlets-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  width: 100%;
  z-index: 1;
}

.hero-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  z-index: 1;
}

.hero-bottom p {
  margin: 0 0 1rem;
}

#cartCount {
  position: absolute;
  top: -13px;
  right: 65px;

  background: #FFD700;
  color: #000;

  font-size: 9px;
  font-weight: bold;

  padding: 4px 5px;
  border-radius: 50%;
  min-width: 9px;
  text-align: center;
  display: none; /* 👈 solo JS lo controla */
  pointer-events: none; /* no interfiere con hover */
  z-index: 9999;
}


footer {
  background-color: #000;
  color: var(--plateado);
  text-align: center;
  padding: 0rem;
  border-top: 1px solid var(--dorado);
}

footer a {
  color: var(--dorado);
  text-decoration: none;
  margin: 0 0.5rem;
}

footer a:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--dorado);
}

@media (max-width: 768px) {
  .hero {
    padding: 2.6rem 0.8rem;
  }

  .hero > img.hero-bg {
    height: 100%;
  }

  .hero-patlets-container {
    gap: 1rem;
  }

  .hero-patlets h3 {
    font-size: 1.2rem;
  }

  .hero-patlets p {
    font-size: 0.93rem;
  }

  .hero button {
    width: 100%;
    max-width: 300px;
    margin-bottom: 1rem;
    padding: 0.9rem 1.2rem;
  }

  footer {
    padding: 1rem;
  }
}

@media (max-width: 420px) {
  .hero {
    padding: 2.1rem 0.65rem;
  }

  .hero h2 {
    font-size: clamp(1.2rem, 6vw, 1.45rem);
  }

  .hero-patlets {
    width: 100%;
    padding: 0.75rem;
  }

  .hero-patlets h3 {
    font-size: 1.05rem;
    margin: 0.6rem 0 0.4rem;
  }

  .hero-patlets p {
    font-size: 0.86rem;
    margin: 0;
  }

  .hero-bottom p {
    font-size: 0.9rem;
  }
}
