* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #181818;
}

.main-content {
  position: relative;
  z-index: 1;
}

.header2 {
  background-color: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 16px;
  margin-top: 4rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.filter-group {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: relative;
}

.filter-group label {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.filter-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.filter-group::after {
  content: '▼';
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(30%);
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  z-index: 2;
  font-size: 0.7rem;
}

.filter-group select:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-group select:focus {
  outline: none;
  border-color: rgba(100, 100, 255, 0.5);
  box-shadow: 0 0 0 2px rgba(100, 100, 255, 0.1);
}

.filter-group select option {
  background-color: #2c3e50;
  color: white;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .header2 {
    flex-direction: column;
    padding: 1.25rem;
    gap: 1rem;
  }

  .filter-group {
    width: 100%;
  }

  .filter-group select {
    width: 100%;
  }
}

.grid-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.card {
  position: relative;
  display: flex;
  align-items: stretch;
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
}

.card-link {
  display: flex;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.card img {
  width: 280px;
  height: 100%;
  object-fit: cover;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.5rem;
  flex: 1;
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  backdrop-filter: blur(3px);
}

.card-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-align: left;
  background: linear-gradient(90deg, #ffffff, #cfcfcf, #e0e0e0, #cfcfcf, #ffffff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: shine 4s linear infinite;
}

.card:hover .card-title {
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@keyframes shine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.card-icons {
  display: flex;
  justify-content: space-between;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #eee;
}

.card-icons .icon-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.card-price-bar {
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 900;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 1rem;
  border: 2px solid #7b2ff7;
  box-shadow: 0 0 10px #7b2ff7;
}

.btn-detalles {
  display: block;
  margin: 0.5rem auto 0.5rem auto;
  background: transparent;
  color: #7b2ff7;
  border: 2px solid #7b2ff7;
  font-weight: 700;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-detalles:hover {
  background: #7b2ff7;
  color: #fff;
}

.price-legend {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  color: #aaa;
  margin-top: 0.4rem;
}

@media (max-width: 768px) {
  .grid-container {
    padding: 0 1rem;
    gap: 1rem;
  }

  .card {
    flex-direction: column;
    text-align: center;
  }

  .card-link {
    flex-direction: column;
  }

  .card img {
    width: 100%;
    height: auto;
  }

  .card-content {
    padding: 1rem;
  }

  .card-title {
    font-size: 1.2rem;
  }

  .card-price-bar {
    font-size: 1.5rem;
  }
}

/* ===== Fondo de la sección principal ===== */
.parallax-section {
  min-height: 100vh;
  padding: 2.5rem 1.25rem;
  background-color: rgba(0, 0, 0, 0.7);
  position: relative;
}

#section1 {
  background-image: url("../images/fondos/fondo.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
