@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

body {
  font-family: "Roboto Condensed", sans-serif;
  background: #fff;
  padding-top: 90px; /* Para compensar el menú fijo */
}

/* MENÚ FIJO */
.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background-color: #fff;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* contenedor para íconos en el header */
.iconos-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Contador encima del ícono */
.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: #66b413;
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
  font-weight: bold;
}

.menu .logo img {
  height: 80px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px; /* Espacio entre el menú y el ícono */
}

.navbar i.bx-cart {
  font-size: 28px; /* Tamaño grande */
  color: #5a8d23; /* Mismo color que enlaces */
  cursor: pointer;
}

.menu .navbar {
  flex: 1;
  display: flex;
  justify-content: center;
}

.menu .navbar ul {
  display: flex;
  gap: 60px;
}

.menu .navbar ul li a {
  color: #5a8d23;
  font-weight: 600;
  font-size: 20px;
  position: relative;
  transition: all 0.1s ease;
}

.menu .navbar ul li a:hover {
  color: #5a8d23;
  border-bottom: 3px solid #66b413;
}

.menu-toggle {
  display: none;
  font-size: 30px;
  color: #5a8d23;
  cursor: pointer;
}

.menu-toggle img {
  height: 35px;
  width: 35px;
}

.carrito-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
}

.cerrar-btn {
  cursor: pointer;
  font-weight: bold;
  color: #333;
}
.imagen-carrito-vacio {
  display: flex;
  justify-content: flex-end; /* Alineado a la derecha */
  padding-right: 20px; /* Espaciado desde el borde derecho */
}

.imagen-carrito-vacio img {
  max-width: 100px;
  height: auto;
}

/* Laptops y pantallas medianas (mantener a la derecha) */
@media (max-width: 1024px) {
  .imagen-carrito-vacio {
    justify-content: flex-end;
    padding-right: 20px;
  }
}

/* Tablets verticales y móviles pequeños (centrado solo en pantallas chicas) */
@media (max-width: 768px) {
  .imagen-carrito-vacio {
    justify-content: center;
    padding-right: 0;
  }
}

/* Estilos para el botón flotante de WhatsApp */
.float-wa {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  transition: all 0.3s ease;
}

.float-wa:hover {
  background-color: #128c7e;
}

.hero {
  padding: 40px 5%;
  margin-top: 20px;
  background-color: #f4f4f4;
  position: relative; /* Necesario para posicionar la línea correctamente */
}

/* Contenido de la hero */
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  position: relative; /* Asegura que la línea esté dentro de este contenedor */
}

/* Texto */
.text-content {
  flex: 1;
  padding-right: 30px;
  position: relative;
}

/* Barras verticales (verde y gris) */
.bars {
  display: flex;
  position: absolute;
  left: 0;
  height: 80px;
  width: 15px;
}

.bars::before {
  content: "";
  width: 8px;
  height: 100%;
  background-color: #5a8d23; /* Barra verde */
}

.bars::after {
  content: "";
  width: 8px;
  height: 100%;
  background-color: #666; /* Barra gris */
}

/* Estilo para el texto */
.text-content h2 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #333;
  margin-left: 25px; /* Espacio para las barras */
}

.text-content h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #555;
  margin-left: 25px; /* Espacio para las barras */
}

.text-content p {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  margin-left: 25px; /* Espacio para las barras */
}

/* Contenido de imagen */
.image-content {
  flex: 0 0 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-content img {
  max-width: 100%;
  height: auto;
}

.btn-contacto {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background-color: #5a8d23; /* Barra verde */
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 25px;
  transition: background 0.3s ease;
}

.btn-contacto:hover {
  background-color: #359419;
}

/* Línea negra inferior (debajo del fondo gris) */
.hero-line {
  width: 100%;
  height: 2px;
  background-color: black;
  position: absolute;
  bottom: 0;
  left: 0; /* Asegura que la línea comience desde el borde izquierdo */
}

.categorias-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.categorias-titulo {
  color: #5a8d23;
  font-size: 28px;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}

.categorias-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.categoria-card {
  background-color: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px 15px;
  text-align: center;
  text-decoration: none;
}

.categoria-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(92, 219, 7, 0.1);
}

.categoria-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
}

.categoria-title {
  color: #186818;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
}


/* Contenedor rectangular */
.carousel-box {
  max-width: 1250px;
  margin: auto;
  background-color: #dadada;
  border-radius: 20px;
  padding: 30px 30px 30px 30px;
}

/* Swiper general */
.swiper {
  width: 100%;
  padding-bottom: 10px;
  overflow: hidden;
  position: relative;
  z-index: 1; /* Asegura que el swiper esté por encima de otros elementos */
  padding: 20px 20px;
}

/* Contenedor de slides */
.swiper-wrapper {
  display: flex;
  align-items: center;
}

/* Estilo individual del slide */
.swiper-slide {
  width: 150px;
  height: 500px;
  background-color: #ffffff;
  box-shadow: 0 0 20px rgba(67, 160, 5, 0.1);
  padding: 50px;
  text-align: center;
  flex-shrink: 0;
  border-radius: 12px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.swiper-slide:hover {
  transform: scale(1.02);
  z-index: 999; /* 👈 Esto ayuda a que se muestre encima */
}
/* Contenido dentro de cada tarjeta */
.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: space-between;
}

/* Iconos superiores */
.icons {
  left: 20px;
  right: 20px;
  display: flex;
  align-items: flex-start;
}

.icons img {
  width: 70px;
  margin-top: -20px;
}

/* Imagen del producto arriba */
.product-img {
  text-align: center;
  margin-bottom: 10px;
}

.product-img img {
  margin-top: 5px;
  width: 110px;
  height: 100px;
  height: auto;
}

/* Texto debajo */
.product-txt {
  text-align: center;
}

.product-txt span {
  display: block;
  font-size: 25px;
  color: #ffb900;
  font-weight: bold;
  margin-bottom: 10px;
}

.product-txt h3 {
  font-size: 20px;
  color: #000;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.product-txt p {
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  margin-bottom: 20px;
  word-wrap: break-word;
}

/* Botón comprar */
.btn-1 {
  display: inline-block;
  padding: 13px 40px;
  border: 1px solid #5a8d23;
  border-radius: 25px;
  color: #000000;
  text-decoration: none;
  margin-top: 10px;
}

.btn-1:hover {
  background-color: #5a8d23;
  color: #fff;
  transition: all 0.3s ease;
}

/* Navegación Swiper */
.swiper-navigation {
  display: flex;
  justify-content: center;
  gap: 100px;
  margin-top: 100px;
}

.swiper-button-prev,
.swiper-button-next {
  font-size: 10px;
  width: 5px;
  height: 5px;
  position: static !important;
  color: #76a934;
  font-size: 20px;
  cursor: pointer;
}

.productos_destacados {
  background-color: #ffffff;
  padding: 40px 5%;
  margin-top: 30px;
  position: relative;
  z-index: 0; /* Necesario para posicionar la línea correctamente */
}

.container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  padding: 40px 5%;
  max-width: 1100px;
  margin: auto;
}

/* Tarjeta de producto mejorada */
.container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
}

.product {
  background-color: #fff;
  border: 1px solid #3f9b09;
  border-radius: 5px;
  width: 200px;
  text-align: center;
  padding: 10px;
  box-shadow: 0 20px 5px rgba(62, 255, 37, 0.1);
  position: relative;
}

.product img {
  max-width: 100%;
  height: auto;
}

.product h3 {
  font-size: 14px;
  margin: 10px 0;
  color: #333;
}

.product p {
  font-size: 12px;
  color: #666;
  margin: 5px 0;
}

.product .price {
  font-size: 16px;
  color: #e74c3c;
  font-weight: bold;
  margin: 10px 0;
}

.product button {
  background-color: #629c24;
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  visibility: hidden; /* Hidden by default but reserves space */
  height: 36px; /* Ensures consistent height */
  font-family: "Roboto Condensed", sans-serif;
}

.product button:hover {
  background-color: #69b914;
}

.product:hover button {
  visibility: visible; /* Show button on hover */
}

.imagen-carrito-vacio {
  display: flex;
  justify-content: flex-end; /* Alineado a la derecha */
  padding-right: 20px; /* Espaciado desde el borde derecho */
}

.imagen-carrito-vacio img {
  max-width: 100px;
  height: auto;
}

/* Laptops y pantallas medianas (mantener a la derecha) */
@media (max-width: 1024px) {
  .imagen-carrito-vacio {
    justify-content: flex-end;
    padding-right: 20px;
  }
}

/* Tablets verticales y móviles pequeños (centrado solo en pantallas chicas) */
@media (max-width: 768px) {
  .imagen-carrito-vacio {
    justify-content: center;
    padding-right: 0;
  }
}

/* Cart Icon Styles */
/* Cart Icon Styles */
.iconos-header {
  position: relative;
  left: -30px; /* Mueve solo los iconos 100px a la izquierda */
  margin-left: 0;
  margin-right: 0;
  gap: 20px;
}

.carrito-btn {
  position: relative;
  font-size: 26px;
  color: #5a8d23;
  text-decoration: none;
  transition: color 0.3s ease;
}

.carrito-btn:hover {
  color: #4a7a1d;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: #66b413;
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
  font-weight: bold;
}


/* Cart Panel Styles */
.carrito-panel {
  display: none;
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100%;
  background-color: #ffffff;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  padding: 20px;
  z-index: 1001;
  overflow-y: auto;
  transition: right 0.3s ease;
}

.carrito-panel.active {
  display: block;
  right: 0;
}

.carrito-panel:hover,
.carrito-btn:hover + .carrito-panel {
  right: 0;
}

.carrito-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.carrito-header h3 {
  font-size: 20px;
  color: #333;
}

.cerrar-btn {
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.carrito-contenido {
  padding: 10px 0;
}

.imagen-carrito-vacio img {
  max-width: 100px;
  margin: 0 auto;
}

.carrito-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.carrito-item img {
  width: 50px;
  height: 50px;
  margin-right: 10px;
}

.carrito-item h4 {
  font-size: 14px;
  color: #333;
  margin: 0;
  margin-right: 20px;
}

.carrito-item button {
  background-color: #e74c3c;
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  margin-left: auto;
}

.carrito-item button:hover {
  background-color: #c0392b;
}

.carrito-acciones {
  margin-top: 20px;
  text-align: center;
}

.carrito-acciones button {
  background-color: #5a8d23;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  margin: 0 5px;
  font-family: "Roboto Condensed", sans-serif;
}

.carrito-acciones .vaciar-btn {
  background-color: #e74c3c;
}

.carrito-acciones .vaciar-btn:hover {
  background-color: #c0392b;
}

.carrito-acciones .pedido-btn:hover {
  background-color: #4a7a1d;
}

.footer {
  background-color: #76a934;
  padding: 40px 20px;
  color: #000000;
  text-align: center;
}

.footer-title {
  color: #ffffff;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 15px;
  margin-bottom: 20px;
  flex: 1;
  min-width: 250px;
}

.footer-box i {
  font-size: 36px;
  margin-bottom: 15px;
  color: #030303;
}

.footer-box p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 30px;
}

.footer-social i {
  font-size: 24px;
  color: #030303;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.footer-social i:hover {
  transform: translateY(-5px);
  color: #f4f4f4;
}

@media screen and (max-width: 992px) {
  .menu {
    padding: 0 20px;
  }

  .menu .navbar ul {
    gap: 30px;
  }
}

@media screen and (max-width: 768px) {
  .menu {
    display: flex;
    align-items: center;
    justify-content: center; /* Center all children horizontally */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 10px 15px;
    z-index: 1000;
  }

  /* Reorder and center with spacing */
  .menu > .iconos-header {
    order: 1;
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    margin: 0 15px; /* Adds separation between elements */
  }

  .menu > .logo {
    order: 2;
    flex: 0 0 auto; /* Remove flex grow to control size */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 15px; /* Adds separation between elements */
  }

  .menu .logo img {
    height: 80px; /* Slightly larger as per previous adjustment */
    max-height: 80px;
    object-fit: contain;
  }

  .menu > .menu-toggle {
    order: 3;
    font-size: 28px;
    background: none;
    border: none;
    color: rgb(76, 155, 31);
    cursor: pointer;
    z-index: 1001;
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 15px; /* Adds separation between elements */
    position: static; /* Remove absolute positioning to center with flex */
  }

  /* Menú desplegable (unchanged) */
  .menu .navbar {
    position: absolute;
    top: 90px;
    left: 0;
    width: 90%;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: none;
  }

  .menu .navbar.active {
    display: flex;
  }

  .menu .navbar ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 10px 0;
  }

  .menu .navbar ul li {
    text-align: center;
    padding: 15px 0;
  }

  .menu .navbar ul li a {
    padding: 0;
    font-size: 18px;
  }

  /* Remove conflicting .menu-toggle definitions and fix positioning */
  .menu-toggle {
    display: block; /* Ensure visibility */
    font-size: 30px;
    background: none;
    border: none;
    position: static; /* Align with flex centering */
    z-index: 1001;
    cursor: pointer;
    margin: 0 15px; /* Consistent spacing */
  }

  /* Unchanged sections (hero-content, text-content, image-content) */
  .hero-content {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .text-content {
    flex: 1 0 60%;
    padding-right: 0;
  }

  .image-content {
    flex: 1 0 30%;
  }
}
@media screen and (max-width: 1200px) {
  .categorias-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 992px) {
  .categorias-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .categorias-titulo {
    font-size: 24px;
  }
}

@media screen and (max-width: 576px) {
  .categorias-grid {
    grid-template-columns: 1fr;
  }

  .categorias-titulo {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .categoria-card {
    padding: 20px 10px;
  }

  .categoria-img {
    width: 80px;
    height: 80px;
  }
}

@media screen and (max-width: 992px) {
  .footer-title {
    font-size: 26px;
  }

  .footer-content {
    gap: 10px;
  }

  .footer-box {
    padding: 0 10px;
  }
}

@media screen and (max-width: 768px) {
  .footer {
    padding: 30px 15px;
  }

  .footer-title {
    font-size: 24px;
    margin-bottom: 25px;
  }

  .footer-box {
    min-width: 200px;
  }

  .footer-box i {
    font-size: 32px;
  }

  .footer-box p {
    font-size: 14px;
  }
}

@media screen and (max-width: 576px) {
  .footer {
    padding: 25px 15px;
  }

  .footer-title {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .footer-content {
    flex-direction: column;
    gap: 25px;
  }

  .footer-box {
    width: 100%;
    margin-bottom: 0;
  }

  .footer-social {
    margin-top: 25px;
    gap: 20px;
  }

  .footer-social i {
    font-size: 22px;
  }
}

@media (max-width: 1024px) {
  .swiper-slide {
    height: 460px;
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    }
  }

/* Para móviles pequeños */
@media (max-width: 480px) {
  .swiper {
    padding: 10px;
  }

  .swiper-slide {
    width: 200px;
    padding: 15px;
  }

  .product-txt span {
    font-size: 18px;
  }

  .product-txt h3 {
    font-size: 14px;
  }

  .product-txt p {
    font-size: 11px;
  }

  .btn-1 {
    padding: 10px 25px;
    font-size: 13px;
  }

  .swiper-navigation {
    gap: 70px;
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .navbar ul {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 100px;
    right: 0;
    background-color: #fff;
    width: 250px;
    height: auto;
    box-shadow: -2px 0 5px rgba(0,0,0,0.3);
    padding: 20px;
    z-index: 1000;
  }
}
/* Cambiar carrito a la izquierda en ≤768px */
@media (max-width: 768px) {
  .iconos-header {
    justify-content: flex-start;
    margin-left: 10px;
    margin-right: 0;
    order: -1; /* Opcional: lo pone antes del logo/navbar */
  }

  .carrito-btn {
    left: 20px;
    right: auto;
  }

  .menu-toggle {
    right: 60px;
  }
}

@media (max-width: 768px) {
  .carrito-panel {
    width: 100%;
    right: -100%; /* Oculto por defecto */
    transition: right 0.3s ease;
  }
}

