/* Estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
#fondo-video {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: -1;
}
body {
  background-color: #111;
  color: #dea5a5;
  font-family: 'mont', sans-serif;
  line-height: 1.6;
  padding: 50px;
  padding-top: 0px;
  padding-bottom: 0px;
  gap: 20px;
  border-radius: 15px;
}

header {
  background: #1a1a1a;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  color: #f10226;
}

nav a {
  color: #ccc;
  margin-left: 20px;
  text-decoration: none;
  transition: color 0.3s;
}

nav a:hover {
  color: #9f5cff;
}

/* Barra de búsqueda */
.search-bar {
  background-color: #222;
  color: #ccc;
  border: 1px solid #444;
  padding: 8px 15px;
  border-radius: 5px;
  width: 250px;
  margin-left: 20px;
  font-size: 1em;
  transition: border-color 0.3s ease;
}

.search-bar:focus {
  outline: none;
  border-color: #9f5cff;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 100px 20px;
  background: url('tg5zrq.jpg') center/cover no-repeat;
  position: relative;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6); /* Oscurece la imagen para mejor lectura */
  z-index: 0;
}

.hero h2, .hero p, .hero .btn {
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-size: 3em;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

.free-note {
  text-align: center;
  margin-top: 30px;
  background: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  font-size: 1.1em;
  color: #7fff7f;
}

/* Botones */
.btn {
  background: #9f5cff;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.btn:hover {
  background: #7e3fed;
}

/* Productos */
.productos {
  display: grid;
  gap: 30px;
  align-items: stretch;
}

/* Para PC: Mantener la estructura de 2 filas de 3 y una de 4 */
#reselling .productos {
  grid-template-columns: repeat(3, 1fr);
}

#memesense .productos {
  grid-template-columns: repeat(4, 1fr);
}

.producto {
  background: #222;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px #000;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 200px;
}

.producto h4 {
  margin-bottom: 10px;
  font-size: 1.2em;
}

.producto p {
  color: #bbb;
  font-size: 0.95em;
}

.buy-btn {
  display: inline-block;
  margin-top: 15px;
  background-color: #9f5cff;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.buy-btn:hover {
  background-color: #7c3aed;
}

/* Animación */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
footer {
  background: #1a1a1a;
  text-align: center;
  padding: 20px;
  color: #666;
  font-size: 0.9em;
}

h3 {
  padding: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
  text-align: center;
  background-color: #222;
  border-radius: 10px;
}

/* Responsivo: tablets */
@media (max-width: 1024px) {
  /* Barra de búsqueda */
  .search-bar {
    width: 180px;
    margin-left: 10px;
  }

  /* Ajustes para productos en tablets */
  #reselling .productos, #memesense .productos {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Ajustes en el hero */
  .hero {
    padding: 80px 20px;
  }

  .hero h2 {
    font-size: 2.5em;
  }

  .hero p {
    font-size: 1.1em;
  }
}

/* Responsivo: móviles */
@media (max-width: 600px) {
  /* Barra de búsqueda */
  .search-bar {
    width: 100%;
    margin-left: 0;
  }

  /* Ajustes para productos en móviles */
  #reselling .productos, #memesense .productos {
    grid-template-columns: 1fr;
  }

  /* Ajustes en el header */
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }

  header h1 {
    margin-bottom: 10px;
  }

  /* Ajustes en el hero */
  .hero {
    padding: 60px 20px;
  }

  .hero h2 {
    font-size: 2em;
  }

  .hero p {
    font-size: 1em;
  }

  /* Ajustes en los botones */
  .btn {
    width: 100%;
  }

  .free-note {
    padding: 15px;
    font-size: 1em;
  }
}

/* Reseñas */
#reviews {
  background: #1a1a1a;
  padding: 30px;
  margin-top: 50px;
  border-radius: 10px;
  box-shadow: 0 0 15px #000;
  text-align: center;
}

#reviews h3 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #ff4dff;
}

.review {
  background: #222;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 0 10px #000;
}

.review p {
  color: #ccc;
  font-size: 1.1em;
}

.review strong {
  color: #f0f0f0;
  font-size: 1.2em;
  display: block;
  margin-bottom: 10px;
}
