:root {
    --color-bg: #ffffff;
    --color-primary: #1f1f1f;
    --color-accent: #5d7f73;
    --color-light: #f5f5f5;
    --color-border: #e0e0e0;
    --color-button-hover: #45655c;
    --color-muted: #666;
    --font-sans: 'Segoe UI', sans-serif;
  }
  
  body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--color-primary);
    background-color: var(--color-bg);
  }
  
  header {
    padding: 1.2rem 2rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    font-weight: bold;
    font-size: 1.3rem;
  }
  
  nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
  }
  
  nav a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 500;
  }
  
  .hero {
    background: var(--color-light);
    padding: 4rem 2rem;
    text-align: center;
  }
  
  .hero h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
  }
  
  .hero button {
    background-color: var(--color-accent);
    color: #fff;
    border: none;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  
  .hero button:hover {
    background-color: var(--color-button-hover);
  }
  
  .hero img {
    margin-top: 2rem;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
  }
  
  .category-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--color-bg);
    flex-wrap: wrap;
  }
  
  .category-filter button {
    background: transparent;
    border: 1px solid var(--color-border);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
  }
  
  .category-filter button.active,
  .category-filter button:hover {
    background-color: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
  }
  
  .products {
    padding: 3rem 2rem;
    background-color: var(--color-bg);
    text-align: center;
  }
  
  .products h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
  
  .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
  }
  
  .product-card {
    background-color: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease;
  }
  
  .product-card:hover {
    transform: translateY(-4px);
  }
  
  .p1-image{
    width: 62%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
  }

  .p2-image{
    width: 75%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
  }

  .p3-image{
    width: 75%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
  }
  
  .product-card h3 {
    font-size: 1.1rem;
    margin: 0.5rem 0;
  }
  
  .product-card p {
    font-size: 1rem;
    color: var(--color-muted);
  }
  
  .product-card button {
    margin-top: 1rem;
    padding: 0.5rem 1.2rem;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
  }
  
  .contact {
    padding: 3rem 2rem;
    background-color: var(--color-light);
    text-align: center;
  }
  .about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 2rem;
  background-color: #f9f9f9;
  gap: 2rem;
 }
 .about-content {
  flex: 1 1 500px;
  max-width: 600px;
 }
 
 .about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #222;
  font-weight: 700;
 }
 
 .about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 2rem;
 }
 .about-content strong {
  color: #000;
 }
 
 .about-content button {
  background-color: #222;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
 }
 
 .about-content button:hover {
  background-color: #444;
 }
 
 .about img {
  flex: 1 1 400px;
  max-width: 500px;
  width: 100%;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
 }

 .about a{
  color: white;
  text-decoration: none;
 }

  .contact img {
    max-width: 100%;
    margin-top: 2rem;
    border-radius: 10px;
  }
  
  .contact form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: auto;
  }
  
  .contact input,
  .contact textarea {
    padding: 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    font-size: 1rem;
  }
  
  .contact button {
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
  }
  
  footer {
    text-align: center;
    padding: 2rem 1rem;
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
    color: var(--color-muted);
  }
  

/* Carrito lateral */
#cart {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background-color: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  z-index: 1000;
  border-left: 1px solid var(--color-border);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

#cart.visible {
  transform: translateX(0);
}

#cart h2 {
  margin-top: 0;
}

#cart ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

#cart ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

#cart-total {
  font-weight: bold;
  font-size: 1.1rem;
}

/* Botón de cerrar ✖ */
#close-cart {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: none;
  font-size: 1.3rem;
  cursor: pointer;
}


.product-image {
  height: 250px;
  object-fit: contain;
  width: 100%;
  max-width: 200px;
  display: block;
  margin: 0 auto 1rem auto;
}