
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: 'Arial', sans-serif;
  background: #fefcf9;
  color: #333;
  line-height: 1.6;
}

/* Navbar fija */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #8B4513;
  padding: 1rem 0;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.navbar ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.navbar ul li a:hover {
  color: #ffd27f;
}

.navbar {
  background-color: #8B4513;
  color: white;
  padding: 1rem;
  position: sticky;
  top: 0;
  display: flex;
  gap: 2rem;
  justify-content: center;
  z-index: 1000;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* Espacio para que el header no quede oculto tras navbar */
.header-section {
  padding: 6rem 2rem 2rem;
  text-align: center;
  background: #f4e7d0;
  margin-bottom: 2rem;
}

/* Catálogo */
.catalogo {
  max-width: 1000px;
  margin: auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 2rem;
}

.catalogo h2 {
  grid-column: 1/-1;
  text-align: center;
  margin-bottom: 1rem;
}

/* Producto */
.producto {
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.producto:hover {
  transform: translateY(-5px);
}

.producto img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

/* Botón WhatsApp */
.whatsapp-button {
  display: inline-block;
  background: #25D366;
  color: white;
  padding: 0.6rem 1.2rem;
  margin-top: 0.8rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.whatsapp-button:hover {
  background: #1ebe5a;
}

/* Testimonios */
.testimonios {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 1rem;
  text-align: center;
}

.testimonios h2 {
  margin-bottom: 2rem;
}

.testimonial {
  background: #fff8f0;
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border-radius: 10px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
  font-style: italic;
  color: #5a3a00;
}

.testimonial span {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
  color: #8B4513;
}

/* Sección contacto */
.contacto {
  max-width: 700px;
  margin: auto;
  padding: 2rem 1rem 4rem;
  text-align: center;
  background: #f4e7d0;
  border-radius: 10px;
  margin-bottom: 3rem;
}

/* Mapa */
.mapa {
  margin-top: 2rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* Footer */
footer {
  background: #8B4513;
  color: white;
  text-align: center;
  padding: 1rem 0;
}

/* Modal imagen */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.modal-contenido {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  animation: zoomIn 0.3s ease;
}

#caption {
  text-align: center;
  color: #f4e7d0;
  padding: 10px 0;
  font-size: 1.1rem;
}

.cerrar {
  position: absolute;
  top: 25px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* Animación al cargar y scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.producto, .testimonial {
  opacity: 0;
  animation-fill-mode: forwards;
  animation-duration: 0.6s;
  animation-timing-function: ease-out;
}

.producto.visible, .testimonial.visible {
  animation-name: fadeInUp;
  opacity: 1;
}


/**TRANCISOONES ELEGANTES*/
html {
  scroll-behavior: smooth;
}

.producto {
  transition: transform 0.3s ease;
}

.producto:hover {
  transform: scale(1.03);
}
.testimonios {
  background-color: #fff0e6;
  padding: 2rem;
  text-align: center;
}
/* Modal galería */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-contenido {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
  animation: zoomIn 0.3s ease;
}

.cerrar {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

@keyframes zoomIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
