body{
    margin: 0;
    padding: 0;
    font-family:"Montserrat", sans-serif;
}

header{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}

header img{
    width: 230px;
}

.navbar{
    display: flex;
    background-color: rgb(208, 175, 122);
    width: 100%;
    height: max-content;
    margin-top: 20px;
    margin-bottom: 20px;
}

.navbar_menu{
    display: flex;
    justify-content: center;
    width: 100%;
}

.navbar_content{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-content: space-between;
    background-color: rgb(208, 175, 122);
    width: 100%;
    align-items: center;
    gap: 5%;
    padding-block: 0px;
    padding-inline: 10%;
}

.navbar ul{
    display: flex;
    list-style: none;
    padding: 0;
    gap: 20px;
}

.navbar ul li a{
    font-size: 12px;
    text-decoration: none;
    color:rgb(81, 31, 7);
}

.buttons_navbar{
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: flex-end;
    align-items: flex-start;
}

.buttons_navbar button{
    background-color: rgb(208, 175, 122);
    color: rgb(255, 236, 205);
    border-width: 0;
    cursor: pointer;
    /* color: rgb(84, 104, 18); */
}

.login{
    font-size: 10px;
}

.login i{
    font-size: 22px;
}
.carrito i{ 
    font-size: 20px;
}

/* SLIDER */

.contenedor_slider{
    background-position: center;
    background-size: cover;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 30px;
    padding-left: 40px;
}

.content_s1{
    background-color: rgba(255, 255, 255, 0.85);
    padding: 30px;
    height: max-content;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 0px;
    align-items: center;
    text-align: center;
}

.content_s1 h1{
    font-family: 'Merriweather', serif;
    font-size: 1.4rem;
    margin: 0;
    color: rgb(84, 104, 18);
    font-weight: 300;
}  

.content_s1 p{
    font-size: 14px;
    color:rgb(75, 75, 75);
}

.contenedor_slider a{
    text-decoration: none;
}

#s1{
    background-image: url(/assets/img/slide-1.webp);
}

#s2{
    background-image: url(/assets/img/slide-2.webp);
}

#s3{
    background-image: url(/assets/img/slide-3.webp);
}

.slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: auto;
  }
  
  .slider-track {
    display: flex;
    transition: transform 0.8s ease; /* ⏱ Duración de transición */
    will-change: transform;
  }
  
  .slide {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  /* .slide img {
    width: 100%;
    display: block;
  }
   */
  .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0); /* transparente */
    border: none;
    color: white;
    font-size: 3rem;
    font-weight: 200;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
  }
  .slider-btn:hover {
    background: rgba(0, 0, 0, 0);
  }
  .slider-btn.left { left: 10px; }
  .slider-btn.right { right: 10px; }

  .btn_slide{
    background-color: rgba(255, 255, 255, 0);
    border-width: 1px;
    border-bottom-style: solid;
    border-color:rgb(84, 104, 18);
    padding: 7px;
    font-size: 11px;
    cursor: pointer;
  }
  .btn_slide:hover{
    transform: scale(0.95);
  }

  .calltoaction{
    display: flex;
    padding-inline: 10%;
    align-items: center;
    gap: 40px;
    background-color: rgb(208, 175, 122);
    margin-top: 20px;
    padding-block: 10px;
    justify-content: center;
  }
  .calltoaction b{
    color: rgb(170,81,35);
  }

  .calltoaction h2{
    font-family: 'Montserrat', sans-serif;
    color: rgb(255, 236, 205);
    font-weight: 400;
    font-size: 16px;
  }

   #form_descuento{
    display: flex;
   }
  #form_descuento input{
    padding: 10px;
    border: none;
    width: 220px;
    height: 22px;
    font-size: 11px;
    background-color: rgb(255, 236, 205);;
  }

  #form_descuento button{
    padding: 10px;
    background-color: rgb(170,81,35);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16x;
    width: 50px;
    font-weight: 400;
  }

  .productos{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 30px;
    padding-inline: 10%;
    padding-top: 60px;
  }

  .img_producto{
    width: 100%;
    height: 360px;
    background-position: center;
    background-size: cover;
    cursor: pointer;
  }

  .producto{
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .img_producto:hover{
    transform: scale(1.05);
    transition-duration: 0.5s;
  }
  .producto h3{
    font-size: 14px;
    margin: 0px 0 0px 0;
    padding-top: 10px;
    font-family: 'Merriweather', serif;
    font-weight: 400;
    color: rgb(84, 104, 18);
  }
  .producto p{
    font-size: 14px;
    margin: 0px 0 0px 0;
    color:rgb(75, 75, 75);
  }

  #img_prod_1{
    background-image: url(/assets/img/producto-1.webp);
  }

  #img_prod_2{
    background-image: url(/assets/img/producto-2.webp);
  }

  #img_prod_3{
    background-image: url(/assets/img/producto-3.webp);
  }

  #img_prod_4{
    background-image: url(/assets/img/producto-4.webp);
  }

  .calltoaction2{
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    padding-inline: 10%;
    margin-top: 20px;
    padding-top: 40px;
    align-items: center;
  }

  .calltoaction2 img{
    width: 100%;
    object-fit: cover;
  }

  .calltoaction2_content{
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .calltoaction2_content h1{
    font-family: 'Merriweather', serif;
    font-size: 1.4rem;
    margin: 0;
    color: rgb(84, 104, 18);
    font-weight: 300;
  }

  .calltoaction2_content p{
    font-size: 14px;
    color:rgb(75, 75, 75);
    margin: 10px 0;
  }
  .calltoaction2_content button{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0);
    color: rgb(84, 104, 18);
    border: 1px solid rgb(84, 104, 18);
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    margin-top: 15px;
    width: max-content;
  }
  .calltoaction2_content button:hover{
    transform: scale(0.95);
  }
  .frase{
    margin-top: 60px;
    width: 100%;
    height: 400px;
    background-image: url(/assets/img/frase.webp);
    background-position: center;
    background-size: cover;
  }

  footer{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .footer-top{
    margin-top: 40px;
    background-color: rgb(208, 175, 122);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding-inline: 10%;
    padding-block: 40px;
    color: rgb(255, 236, 205);
    align-items:top;
    width: 80%;
    padding-inline: 10%;
  }

    
  footer img{
    width: 200px;
    }

    footer h2{
        font-size: 12px;
        font-weight: 400;
    }
    footer ul{
        list-style: none;
        /* padding: 0;
        margin: 0; */
        display: flex;
        flex-direction: column;
        gap: 10px;
    } 

    footer ul li{
      font-size: 12px;
    }

    .footer-bottom{
        background-color: rgb(142, 135, 48);
        width: 100%;
        color: rgba(255, 255, 255, 0.845);
        text-align: center;
        font-size: 12px;
    }

    .social{
        display: flex;
        gap: 20px;
        font-size: 18px;
        margin-top: 20px;
    }


/* --- PRODUCTO ÚNICO --- */

.producto-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1100px;
    margin: 3rem auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(208,175,122,0.07);
    padding: 2.5rem;
}

.producto-galeria {
    flex: 1 1 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.producto-foto-principal img {
    width: 340px;
    height: 340px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(208,175,122,0.08);
    border: 2px solid rgb(208, 175, 122);
    background: #fff;
}

.producto-fotos-galeria {
    display: flex;
    gap: 1rem;
}

.producto-fotos-galeria img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 1.5px solid rgb(208, 175, 122);
    cursor: pointer;
    transition: border 0.2s;
    background: #fff;
}

.producto-fotos-galeria img:hover {
    border: 2px solid rgb(81, 31, 7);
}

.producto-info {
    flex: 2 1 400px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}

.producto-titulo {
    font-family: 'Merriweather', serif;
    font-size: 2.2rem;
    color: rgb(81, 31, 7);
    margin-bottom: 0.5rem;
}

.producto-descripcion {
    font-size: 1.1rem;
    color: rgb(75, 75, 75);
    margin-bottom: 1rem;
}

.producto-caracteristicas {
    list-style: none;
    margin-bottom: 1rem;
    padding-left: 0;
}

.producto-caracteristicas li {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgb(81, 31, 7);
}

.producto-caracteristicas i {
    color: rgb(208, 175, 122);
    font-size: 1.2rem;
}

/* .producto-precio {
    font-size: 8px;
    color: rgb(81, 31, 7);
    font-weight:300;
    margin-bottom: 1rem;
} */

.producto-compra-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    align-items: center;
}

.producto-compra-form label {
    font-weight: 500;
    color: rgb(81, 31, 7);
}

.producto-compra-form select,
.producto-compra-form input[type="number"] {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: 1.5px solid rgb(208, 175, 122);
    font-size: 1rem;
    background: #fff;
    color: rgb(81, 31, 7);
    margin-right: 1rem;
    width: 120px;
}

.producto-compra-form input[type="number"]::-webkit-inner-spin-button,
.producto-compra-form input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-comprar-ahora {
    background: #fff;
    color: rgb(81, 31, 7);
    border: 2px solid rgb(81, 31, 7);
    border-radius: 8px;
    padding: 0.7rem 2.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(208,175,122,0.08);
}

.btn-comprar-ahora:hover {
    background: rgb(208, 175, 122);
    color: rgb(81, 31, 7);
    border: 2px solid rgb(81, 31, 7);
    transform: translateY(-2px) scale(1.03);
}

/* FRASE */
.frase {
  position: relative;
  background-image: url(/assets/img/frase.webp);
  background-position: center;
  width: 100vw;
  height: 400px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.wave-container {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 110vw;   /* Más ancho que la pantalla para evitar recortes */
  height: 300px;  /* Igual al viewBox del SVG */
  pointer-events: none;
  transform: translateY(-180px);
  z-index: 3!important;
}

.wave-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.text-svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}

.wave-text {
  font-size: 20px;
  fill: rgb(255, 236, 205);
  font-family: 'Merriweather', serif;
  letter-spacing: 2px;
  font-weight: 300;
}

/* Responsive */
@media (max-width: 900px) {
    .producto-container {
        flex-direction: column;
        padding: 1.2rem;
        gap: 2rem;
    }
    .producto-galeria, .producto-info {
        align-items: stretch;
    }
    .producto-foto-principal img {
        width: 100%;
        max-width: 340px;
        height: auto;
    }
}

@media (max-width: 600px) {
    .producto-container {
        padding: 0.5rem;
    }
    .producto-foto-principal img {
        max-width: 100%;
        width: 100%;
        height: auto;
    }
    .producto-fotos-galeria {
        gap: 0.5rem;
    }
    .producto-fotos-galeria img {
        width: 50px;
        height: 50px;
    }
    .producto-titulo {
        font-size: 1.4rem;
    }
    .producto-precio {
        font-size: 14px;
    }
}

/* Modal Popup */
.popup-modal {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(81, 30, 7, 0.542);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}

.popup-modal.hide {
  opacity: 0;
  pointer-events: none;
}

.popup-content {
  background: #fff;
  /* border-radius: 18px; */
  box-shadow: 0 8px 40px rgba(170,81,35,0.18);
  padding: 0;
  max-width: 720px;
  width: 95vw;
  min-height: 420px;
  position: relative;
  font-family: 'Montserrat', sans-serif;
  animation: popupIn 0.5s;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
}

@keyframes popupIn {
  from { transform: translateY(40px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.popup-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  color: rgb(170,81,35);
  cursor: pointer;
  transition: color 0.2s;
  z-index: 2;
}

.popup-close:hover {
  color: rgb(208, 175, 122);
}

.popup-img-side {
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 320px;
  background: #f8f5f2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.popup-img-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.popup-form-side {
  flex: 1 1 340px;
  padding: 2.2rem 2rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  justify-content: center;
}

.popup-form-side h2 {
  font-family: 'Merriweather', serif;
  color: rgb(84, 104, 18);
  font-size: 1.3rem;
  font-weight: 300;
  margin-bottom: 0.2rem;
  text-align: center;
}

.popup-form-side h2 b {
  color: rgb(170,81,35);
  font-weight: 900;
}

.popup-form-side p {
  color: rgb(81,31,7);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.popup-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.popup-form input[type="text"],
.popup-form input[type="email"],
.popup-form input[type="tel"] {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.7rem 1rem;
  border: 1.5px solid rgb(208, 175, 122);
  /* border-radius: 7px; */
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: rgb(81,31,7);
  outline: none;
  transition: border 0.2s;
  display: block;
}

.popup-form input:focus {
  border-color: rgb(84, 104, 18);
}

.popup-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.popup-flag {
  font-size: 1.3rem;
  /* margin-left: 0.5rem; */
  border-width: 1.5px;
  border-style: solid;
  border-color: rgb(208, 175, 122);
  padding: 0.5rem;
  background: #fff;
}

.popup-phone input[type="tel"] {
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
}

.contenedor_button{
  display: flex;
  justify-content: center;
}

.popup-btn {
  background-color: rgba(208, 175, 122, 0);
  color: rgb(84, 104, 18);
  border-width: 0;
  padding: 0.7rem 0;
  font-size: 1.1rem;
  font-weight: 300;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s, color 0.2s, border 0.2s, transform 0.1s;
  border-style: solid;
  border-width: 1px;
  border-color: rgb(84, 104, 18);
  width: max-content;
  padding: 0.3rem 1.2rem;
}

.popup-btn:hover {
  transform: scale(0.98);
  background-color: rgb(84, 104, 18);
  color: white;
}

.popup-form-side small {
  color: #7d4a4a;
  font-size: 0.7rem;
  margin-top: 0.7rem;
  display: block;
  line-height: 1.4;
  text-align: center;
}

.popup-form-side small a {
  color: rgb(170,81,35);
  text-decoration: underline;
}

@media (max-width: 700px) {
  .popup-content {
    flex-direction: column;
    min-width: 0;
    max-width: 98vw;
  }
  .popup-img-side {
    max-width: 100vw;
    min-height: 180px;
    height: 180px;
  }
  .popup-form-side {
    padding: 1.5rem 1rem 1rem 1rem;
  }
}