* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: radial-gradient(circle at top, #0f2027, #000);
  color: #fff;
}

/* HEADER */
.top {
  max-width: 1600px;
  margin: 30px auto 20px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.features li {
  margin-bottom: 6px;
  padding-left: 22px;
  position: relative;
  opacity: 0;
  transform: translateX(-6px);
  animation: fadeIn 0.4s ease forwards;
}

.features li:nth-child(1) { animation-delay: 0.05s; }
.features li:nth-child(2) { animation-delay: 0.15s; }
.features li:nth-child(3) { animation-delay: 0.25s; }
.features li:nth-child(4) { animation-delay: 0.35s; }

.features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #25d366;
  font-weight: bold;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


.top h1 {
  margin: 0;
  font-size: 2rem;
}

.top input {
  width: 100%;
  max-width: 420px;
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  outline: none;
  font-size: 1rem;
}

/* GRID */
.catalog {
  max-width: 1600px;
  margin: auto;
  padding: 30px 40px 60px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}

/* CARD */
.card {
  background: #111;
  border-radius: 18px;
  padding: 16px;
  position: relative;
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
  transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,.6);
}

/* BORDE COLOR */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(135deg, #25d366, #00bcd4, #9c27b0);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}

.card:hover::before {
  opacity: 1;
}

/* CAROUSEL */
.carousel {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 12px;
}

.carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .5s ease;
}

.carousel img.active {
  opacity: 1;
}

/* TEXTO */
.card h3 {
  margin: 10px 0 6px;
  font-size: 1.1rem;
}

.card p {
  font-size: .9rem;
  opacity: .8;
  margin-bottom: 10px;
}

.price {
  display: block;
  font-weight: bold;
  margin-bottom: 12px;
}

/* BOTÓN */
.btn {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  background: #25d366;
  color: #000;
  text-decoration: none;
  font-weight: bold;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .catalog {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .catalog {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .catalog {
    grid-template-columns: 1fr;
  }
}
