* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #2e2e2e;
  line-height: 1.6;
}

header {
  background: url('../img/granofont.jpg') no-repeat center center/cover;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

header .content {
  z-index: 2;
  padding: 20px;
}

header img.logo {
  width: 150px;
  margin-bottom: 20px;
}

header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
}

header p {
  margin: 15px 0;
}

header a {
  padding: 12px 25px;
  background-color: #28f328;
  color: black;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

section h2 {
  background-color: #28f328;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: #5d4037;
  margin: 0 auto 30px;
  text-align: center;
}

section {
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
}

section .producto a {
  padding: 10px 15px;
  background-color: #28f328;
  color: black;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}





ul, ol{
  list-style: none;
}

.nav li a{
  background-color: #28f328;
  color: #000;
  text-decoration: none;
  padding: 10px 15px;
  display: block;
  border-radius: 5px;

}

.nav > li {
  float: left;
}

.nav li a:hover{
background-color: #25cf25;
}

.nav li ul{
  display: none;
  position: absolute;
}

.nav li:hover > ul{
  display: block;

}



.formulario {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.formulario input, .formulario textarea {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #cccccc;
}
.formulario button {
  background-color: #28f328;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-weight: bold;
}






.producto.open .contactos {
  display: block;
}

.productos, .proceso {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  text-align: center;
}

.producto, .paso {
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.producto img {
  max-width: 100%;
  border-radius: 8px;
}

footer {
  background: url('../img/font1.jpg') no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 20px;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 30px auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.carousel-images {
  position: relative;
  height: 100%;
}

.carousel-images img {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
  border-radius: 10px;
  z-index: 0;
}

.carousel-images img.active {
  opacity: 1;
  z-index: 1;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  border: none;
  padding: 0 15px;
  cursor: pointer;
  z-index: 1;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}



/* Responsive adjustments */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 1rem;
  }

  section {
    padding: 40px 15px;
  }

  section h2 {
    font-size: 1.5rem;
  }

  .carousel-btn {
    font-size: 1.5rem;
    padding: 5px 10px;
  }
}

@media (max-width: 480px) {
  header img.logo {
    width: 120px;
  }

  header h1 {
    font-size: 1.6rem;
  }

  .carousel {
    max-width: 90%;
  }

  .producto, .paso {
    padding: 15px;
  }
}
