:root {
  --crema: #f1eee9;
  --cafe-oscuro: #2e1f14;
  --terracota: #b2694a;
  --azul-marino: #1f2a37;
  --dorado: #d6bfa8;
}

body {
  background-color: var(--crema);
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  color: var(--azul-marino);
  margin: 0;
}

.navbar-custom {
  background-color: var(--cafe-oscuro);
}

.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
  color: var(--dorado);
  font-family: 'Gloock', serif;
  font-weight: 600;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--terracota);
}

.navbar-toggler-icon {
  filter: invert(1);
}

.nav-item .nav-link {
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-item .nav-link:hover,
.nav-item .nav-link.active,
.nav-item .nav-link:focus,
.nav-item .nav-link:active {
  background-color: var(--terracota);
  color: var(--crema) !important;
  outline: none;
}

.footer {
  background-color: var(--cafe-oscuro);
  color: var(--dorado);
  font-family: 'Quicksand', sans-serif;
  font-size: 0.9rem;
  border-top: 2px solid var(--terracota);
  min-height: 150px;
  padding: 1.5rem 1rem;
}

.footer-title {
  font-family: 'Gloock', serif;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.footer-text {
  margin-bottom: 0.3rem;
  line-height: 1.4;
}

.social-icons {
  margin-top: 0.2rem;
}

.social-link {
  color: var(--dorado);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 600;
}

.social-link:hover {
  color: var(--terracota);
  text-decoration: underline;
}

.container {
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.section-title {
  font-family: 'Gloock', serif;
  font-size: 2.8rem;
  margin-bottom: 2rem;
  color: var(--cafe-oscuro);
  border-bottom: 3px solid var(--terracota);
  padding-bottom: 0.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  row-gap: 1rem;       /* espacio entre filas */
  column-gap: 2rem;    /* espacio entre columnas */
  margin-top: 1.5rem;
}

.product-card {
  background-color: #fff;
  border: 1px solid var(--dorado);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.product-card h2 {
  font-family: 'Gloock', serif;
  font-size: 1.25rem;
  margin: 0.5rem 0;
}

.category {
  font-size: 0.95rem;
  color: var(--terracota);
  font-weight: 600;
  margin-bottom: 0.3rem;
  line-height: 1.1;
}

details summary {
  cursor: pointer;
  color: var(--azul-marino);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

details p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--azul-marino);
}

.btn-cart {
  background-color: var(--terracota);
  color: var(--crema);
  font-weight: 600;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  cursor: pointer;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
}

.btn-cart:hover {
  background-color: var(--dorado);
  color: var(--azul-marino);
}

@media (max-width: 992px) {
  .section-title {
    font-size: 2rem;
    padding-bottom: 0.3rem;
  }

  .product-card {
    padding: 1rem;
  }

  .product-card img {
    height: 220px;
  }

  .product-card h2 {
    font-size: 1.1rem;
  }

  .category {
    font-size: 0.9rem;
  }

  .btn-cart {
    padding: 0.4rem 1rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    column-gap: 1.2rem;
    row-gap: 1.2rem;
  }

  .container {
    padding: 2rem 1rem;
  }

  .product-card img {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.8rem;
  }

  .product-card h2 {
    font-size: 1rem;
  }

  .product-card img {
    height: 180px;
  }

  .btn-cart {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  details p {
    font-size: 0.85rem;
  }
}