@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #fdfdfd;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.header {
  display: flex;
  align-items: center;
  background-color: #9BCE21;
  padding: 130px 0 0 0;
  background: linear-gradient(to right, #9BCE21, #b6f09c);
}

.menu {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  padding: 10px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.logo {
  font-size: 25px;
  color: #13462E;
  text-transform: uppercase;
  font-weight: 800;
}

.menu .navbar ul li {
  position: relative;
  float: left;
}

.menu .navbar ul li a {
  font-size: 18px;
  padding: 20px;
  color: #111419;
  display: block;
  transition: 0.3s ease;
}

.menu .navbar ul li a:hover {
  color: #FFFFFF;
  background-color: #13462E;
  border-radius: 5px;
}

#menu {
  display: none;
}

.menu-icono {
  width: 25px;
}

.menu label {
  cursor: pointer;
  display: none;
}

.submenu {
  position: relative;
}

.submenu #carrito {
  display: none;
}

.submenu:hover #carrito {
  display: block;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 1;
  background-color: #4E4B5076;
  padding: 20px;
  min-width: 400px;
  backdrop-filter: blur(10px);
  border-radius: 10px;
}

table {
  width: 100%;
}

th, td {
  color: #FFFFFF;
}

.borrar {
  background-color: red;
  border-radius: 50%;
  padding: 5px 10px;
  color: #FFFFFF;
  font-weight: 800;
  cursor: pointer;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-txt {
  flex-basis: 50%;
  margin-right: 25px;
}

span {
  color: #9BCE21;
  font-size: 17px;
  font-weight: 600;
  display: block;
  margin-bottom: 25px;
}

.header-txt h1 {
  font-size: 70px;
  text-transform: capitalize;
  line-height: 1;
  color: #111419;
  margin-bottom: 35px;
}

.header-txt p {
  font-size: 17px;
  color: #515557;
  margin-bottom: 35px;
}

.butons {
  display: flex;
}

.btn-1 {
  display: inline-block;
  padding: 13px 25px;
  background-color: darkcyan;
  margin-right: 20px;
  color: #FFFFFF;
  text-transform: capitalize;
  margin-bottom: 100px;
  border-radius: 30px;
}

.header-img {
  flex-basis: 50%;
  text-align: center;
}

.header-img img {
  height: 550px;
}

.oferts {
  padding: 100px 0;
  display: flex;
  justify-content: space-between;
}

.ofert-1 {
  flex-basis: calc(33.3% - 20px);
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.b1 {
  background-color: #91DDD8;
}
.b2 {
  background-color: #FA9824;
}
.b3 {
  background-color: darkkhaki;
}

.ofert-txt {
  flex-basis: 50%;
}

.ofert-txt h3 {
  color: #FFFFFF;
  font-size: 20px;
}

.ofert-txt a {
  color: #FFFFFF;
  font-weight: bold;
}

.ofert-img {
  flex-basis: 50%;
}

.products {
  padding: 0 0 50px 0;
  text-align: center;
}

h2 {
  font-size: 40px;
  color: #111419;
  margin-top: 30px;
}

.box-container {
  margin-top: 55px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.box {
  border-top: 2px solid #9BCE21;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  background-color: #F6FAFB;
  display: none;
  transition: transform 0.2s;
}

.box:nth-child(-n+4) {
  display: inline-block;
}

.box:hover {
  transform: translateY(-5px);
}

.box img {
  height: 200px;
  margin: 0 auto;
}

.product-txt h3 {
  font-size: 20px;
  color: #111419;
  margin-bottom: 10px;
}

.product-txt p {
  margin-bottom: 25px;
  color: #515557;
}

.precio {
  font-size: 17px;
  font-weight: 700;
  color: #FF9100 !important;
}

.btn-2, .btn-3 {
  background-color: #9BCE21;
  margin-top: 50px;
  display: inline-block;
  padding: 11px 35px;
  border-radius: 25px;
  color: #FFFFFF;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.btn-2:hover, .btn-3:hover, .btn-1:hover {
  background-color: #13462E;
}

.btn-3 {
  margin: 0;
  padding: 8px 25px;
  border-radius: 5px;
}

.testimonial {
  padding: 100px 0;
  text-align: center;
}

.testimonial-content {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  gap: 20px;
}

.testimonial-1 {
  flex-basis: calc(50% - 20px);
  padding: 50px;
  text-align: left;
  background-color: #F6FAFB;
  border-top: 5px solid #9BCE21;
  border-radius: 10px;
}

.testimonial-1 img {
  width: 100px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.testimonial-1 h4 {
  font-size: 17px;
  color: #111419;
}

.testimonial-1 p {
  color: #515557;
  margin-bottom: 25px;
}

.footer {
  background-color: #9BCE21; /* Color igual al de tu imagen */
  padding: 80px 20px 40px;
  color: #fff;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.link {
  flex: 1 1 180px;
  text-align: center;
}

.link h3 {
  font-size: 16px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
}

.link a {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  color: #111419;
  transition: 0.3s;
}

.link a:hover {
  color: #fff;
}

.socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.socials img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  background-color: #ffffff;
  border-radius: 50%;
  padding: 8px;
  transition: 0.3s ease;
}

.socials img:hover {
  transform: scale(1.1);
}



/* NUEVO: Diseño horizontal para productos */
.horizontal-layout .box-container {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding-bottom: 15px;
}

.horizontal-layout .box {
  display: block;
  flex: 0 0 auto;
  min-width: 280px;
  scroll-snap-align: start;
}

@media (max-width:991px)
{
    .menu{
        padding: 20px;

    }
    .menu label {
        display: initial;
        
    }
    .menu .navbar{
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #bce0fb;
        display: none;
    }
    .menu .navbar ul li {
        width: 100%;
    }

    #menu:checked ~ .navbar{
        display: initial;

    }
   .branding {
    display: none;
}
    .menu .navbar ul li a:hover {
        color: rgb(64, 64, 236);
    }
    .submenu:hover #carrito {
        width: 100%;
    }
    .header {
        padding: 50px 0 0 0;
    }
    .header-content {
        padding: 30px;
        flex-direction: column;
        text-align: center;
    }
    .header-txt {
    margin-right: 0;
    }
    .butons{
        justify-content: center;
    }
    .btn-1{
        margin-bottom: 0;
    }
    .header-img{
        display: none;
    }
    .oferts{
        padding: 30px;
        flex-direction: column;
    }
    .ofert-1{
        margin-bottom: 15px;
    }

    .products{
        padding: 0 30px 30px 30px;
    }
    .testimonial{
        padding: 30px;

    }
    .testimonial-content{
        margin-top: 20px;
        flex-direction: column;
    }
    .testimonial-1{
        padding: 25px;
        margin-bottom: 25px;
    }
    .footer{
        padding: 30px;

    }
    .footer-content{
        flex-direction: column;
        text-align: center;
    }

}
html {
    scroll-behavior: smooth;
}

a, .btn-1, .btn-2, .btn-3 {
    transition: all 0.3s ease-in-out;
}