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

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f7f7f7;
  color: #1f1f1f;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

.header {
  background: #ffffff;
  padding: 18px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 1px;
}

.logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.logo span {
  color: #111;
}

.nav {
  display: flex;
  gap: 22px;
}

.nav a {
  font-size: 15px;
  color: #333;
}

.nav a:hover {
  color: #000;
}

.hero {
  min-height: 85vh;
  background:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    url("../img/banner.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 0 8%;
  color: #fff;
}

.hero-content {
  max-width: 650px;
}

.tag {
  display: inline-block;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 14px;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background: #ffffff;
  color: #111;
  padding: 13px 22px;
  border-radius: 30px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn-dark {
  background: #111;
  color: #fff;
}

.section {
  padding: 60px 8%;
}

.section h1,
.section h2 {
  font-size: 34px;
  margin-bottom: 10px;
}

.section-text {
  color: #666;
  margin-bottom: 30px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.features div {
  background: #fff;
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.filters {
  margin: 25px 0 35px;
}

#searchInput {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid #ddd;
  border-radius: 30px;
  margin-bottom: 18px;
  font-size: 16px;
}

.category-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  border: none;
  background: #fff;
  padding: 10px 18px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  background: #111;
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
  transition: 0.3s;
}

.product-card:hover {
  transform: translateY(-6px);
}

.product-card img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: #f3f3f3;
  padding: 14px;
}

.product-info {
  padding: 18px;
}

.product-info h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.price {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 8px;
}

.notes {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}

.product-info .btn {
  width: 100%;
  text-align: center;
  background: #111;
  color: #fff;
}

.contact-page {
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 8%;
}

.contact-box {
  background: #fff;
  max-width: 600px;
  width: 100%;
  padding: 35px;
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.contact-box h1 {
  margin-bottom: 10px;
}

.contact-box p {
  color: #666;
  margin-bottom: 20px;
}

.email {
  margin-top: 20px;
}

.email a {
  font-weight: bold;
}

.contact-info {
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid #eee;
}

.contact-info p {
  margin-bottom: 10px;
  color: #444;
}

/* DETALLE PERFUME */

.detalle-container {
  padding: 45px 6%;
}

.detalle {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
}

.detalle-galeria {
  background: #fff;
  padding: 16px;
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}

.detalle-img-principal {
  width: 100%;
  height: 280px;
  object-fit: contain;
  background: #f4f4f4;
  border-radius: 16px;
  padding: 14px;
}

.detalle-miniaturas {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.detalle-miniaturas img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  background: #f4f4f4;
  border-radius: 10px;
  padding: 6px;
  cursor: pointer;
  border: 1px solid #eee;
}

.detalle-info {
  background: #fff;
  padding: 28px;
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}

.detalle-categoria {
  color: #777;
  font-size: 14px;
  margin-bottom: 8px;
}

.detalle-info h1 {
  font-size: 30px;
  margin-bottom: 8px;
}

.detalle-precio {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 18px;
}

.detalle-descripcion {
  color: #555;
  margin-bottom: 22px;
}

.detalle-bloque {
  margin-bottom: 22px;
  padding-top: 18px;
  border-top: 1px solid #eee;
}

.detalle-bloque h3 {
  margin-bottom: 10px;
}

.detalle-bloque p {
  color: #555;
  margin-bottom: 8px;
}

.footer {
  text-align: center;
  padding: 24px;
  background: #fff;
  color: #666;
  font-size: 14px;
}

/* TABLET */

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 36px;
  }

  .detalle {
    max-width: 700px;
    grid-template-columns: 260px 1fr;
  }

  .detalle-img-principal {
    height: 250px;
  }
}

/* CELULAR */

@media (max-width: 600px) {
  .header {
    flex-direction: column;
    gap: 12px;
    padding: 16px 5%;
  }

  .nav {
    gap: 16px;
  }

  .hero {
    min-height: 75vh;
    padding: 0 6%;
    text-align: center;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .section {
    padding: 45px 6%;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card img {
    height: 300px;
  }

  .detalle-container {
    padding: 30px 5%;
  }

  .detalle {
    grid-template-columns: 1fr;
    max-width: 430px;
    gap: 20px;
  }

  .detalle-img-principal {
    height: 260px;
  }

  .detalle-info {
    padding: 24px;
  }

  .detalle-info h1 {
    font-size: 27px;
  }
}