    /* Reset and base styles */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    :root {
        --primary-color: #eb8538;
        --secondary-color: #F7E6D4;
        --accent-color: #E6B17E;
        --text-color: #2C1810;
        --background-light: #FFF9F5;
        --background-color: #f0f6fc;
        --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        --card-hover-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }

    body {
        line-height: 1.6;
        color: var(--text-color);
    }

    /* Hero Section */

    .hero-container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .slider {
        position: relative;
        width: 100%;
        height: 500px;
    }
    
    .slider-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .hero-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        color: white;
        padding: 20px;
        width: 90%;
        background: rgba(112, 72, 72, 0.5); /* Fondo semi-transparente */
        border-radius: 10px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .add-button {
        display: inline-block;
        padding: 10px 20px;
        background: #77ff6b;
        color: white;
        text-decoration: none;
        border-radius: 25px;
        transition: background 0.3s;
    }
    
    .slider-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(247, 164, 164, 0.075);
        color: white;
        border: none;
        padding: 10px 15px;
        cursor: pointer;
        font-size: 20px;
        z-index: 10;
    }
    
    .left {
        left: 10px;
    }
    
    .right {
        right: 10px;
    }
    
    /* Estilos responsive */
    @media (max-width: 768px) {
        .slider {
            height: 400px;
        }
    
        .hero-title {
            font-size: 1.8rem;
        }
    
        .hero-description {
            font-size: 1rem;
        }
    
        .add-button {
            padding: 8px 16px;
        }
    }
    
    @media (max-width: 480px) {
        .slider {
            height: 300px;
        }
    
        .hero-title {
            font-size: 1.5rem;
        }
    
        .hero-content {
            width: 95%;
        }
    }
    .cta-button {
        display: inline-block;
        padding: 1rem 2rem;
        background-color: var(--primary-color);
        color: white;
        text-decoration: none;
        border-radius: 50px;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .cta-button:hover {
        background-color: var(--accent-color);
        transform: translateY(-2px);
    }


    .slider-btn right {
        background-color: rgba(184, 184, 184, 0.479);
    }


/* Estilo para el fondo del modal */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  padding: 20px 0;
}

/* Estilo para el contenido del modal */
.modal-content {
  background-color: #fff;
  margin: 20px auto;
  color: #633131;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  /* Asegura que el fondo blanco cubra todo el contenido */
  height: auto;
  min-height: fit-content;
  display: flex;
  flex-direction: column;
}

/* Contenedor del formulario */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  /* Asegura que el contenido no se desborde */
  min-height: 100%;
}

/* Campos que ocupan todo el ancho */
.full-width {
  grid-column: 1 / -1;
}

/* Estilo para grupos de formulario */
.form-group {
  margin-bottom: 15px;
  /* Evita que los campos se desborden */
  width: 100%;
  box-sizing: border-box;
}

/* Contenedor de botones al final */
/* Contenedor para los botones */
.button-container {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* Botones */
.modal-content button {
  flex: 1; /* Los botones ocupan el mismo espacio */
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.modal-content button[type="button"]:first-of-type {
  background-color: #28a745;
  color: white;
}

.modal-content button[type="button"]:last-of-type {
  background-color: #dc3545;
  color: white;
}

/* Hover effects */
.modal-content button[type="button"]:hover {
  opacity: 0.9;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    margin: 10px auto;
    padding: 20px;
  }
}
    .features {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        margin-top: 3rem;
    }

    .feature {
        background: white;
        padding: 1.5rem;
        border-radius: 15px;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }

    .feature-icon {
        font-size: 2rem;
        color: var(--accent-color);
        margin-bottom: 1rem;
    }


    /* Estilo del botón */
/* Estilo del botón */
.btn-enviar {
  background:  #28a745; 
  color: white; /* Texto blanco */
  border: none; /* Sin bordes */
  padding: 10px 20px; /* Relleno interno */
  font-size: 16px; /* Tamaño de texto */
  border-radius: 5px; /* Bordes redondeados */
  cursor: pointer; /* Cambia el cursor al pasar por encima */
}

/* Efecto cuando el cursor pasa por encima */
.btn-enviar:hover {
  background: linear-gradient(45deg, #fcb0bf, #218838); /* Degradado más intenso en hover */
  transform: scale(1.05); /* Efecto de agrandar un poco */
}

/* Efecto al hacer clic */
.btn-enviar:active {
  transform: scale(0.95); /* Hace que el botón se reduzca un poco cuando se hace clic */
}

/* Efecto al hacer clic */
.btn-enviar:active {
  transform: scale(0.95); 
}




/* carrito fijo  */
/* Ícono del Carrito */
.icono-carrito {
  position: fixed;
  top: 20px;
  right: 20px;
  cursor: pointer;
  color: #333;
  font-size: 24px;
  z-index: 1001;
}

.icono-carrito .contador-productos {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #f44336;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
}

/* Dropdown del Carrito */
.carrito-dropdown {
  display: none;
  position: fixed;
  top: 60px;
  right: 20px;
  background: #ffffffd8;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 2px dashed #ccc;
  border-radius: 10px;
  z-index: 1000;
  font-size: 16px;
  width: 380px;
  max-height: 496px;
  overflow-y: auto;
  transition: all 0.3s ease-in-out;
}

.carrito-dropdown .ticket-header {
  text-align: center;
  margin-bottom: 10px;
  font-size: 18px;
  color: #db9b9b;
  font-weight: bold;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
}


.btn {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background-color: transparent;
  color: #333;
  font-size: 16px;
  border: 2px solid #333;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
}



/* Estilos para la sección de productos saludables */
:root {
  --primary-color: #f17b7b;
  --secondary-color: #db9b9b;
  --accent-color: #ff6b6b;
  --background-color: #f8f9fa;
  --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --card-hover-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.health-product-section {
  padding: 1.2rem 2.5rem;

  background-color: var(--background-color);
}

/* grid alfajores productos */
/* Estilo para el contenedor de los productos */
.product-grid {
  display: grid; /* Usar grid */
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Crear columnas con un mínimo de 250px */
  gap: 20px; /* Espacio entre los elementos */
  margin-top: 20px; /* Separación superior */
}

/* Estilo para cada tarjeta de producto */
.health-product-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.health-product-card:hover {
  transform: translateY(-5px); /* Efecto de hover para levantar la tarjeta */
}

.health-product-image {
  width: 100%;
  max-height: 200px; /* Limitar la altura de las imágenes */
  object-fit: contain; /* Ajustar la imagen dentro del contenedor */
}

.health-button {
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.health-button:hover {
  background-color: #45a049;
}



.health-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.health-heading {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.health-category {
  margin-bottom: 3rem;
}

.health-category-title {
  color: var(--secondary-color);
  font-size: 1.8rem;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
  font-weight: 600;
}

/* Grid mejorado que mantiene 2 columnas en móvil */
.health-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}


.centered-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
  .health-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .health-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

/* Mejoras en las tarjetas de producto */
.health-product-card {
  background: white;
  border-radius: 15px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.health-product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
}

/* Mejoras en las imágenes */
.health-product-image {
  width: 100%;
  max-height: 200px;
  border-radius: 16px; 
  object-fit: contain;
  transition: transform 0.3s ease;
  cursor: pointer;
  overflow: hidden; 
  transition: transform 0.3s ease;
}


/* Estilo de la imagen normal */
.health-product-image {
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* Estilo de la imagen agrandada */
/* Desactivar transición en modo agrandado */
.image-zoomed {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(2);
  transform-origin: center center;
  z-index: 1000;
  max-width: 90%;
  max-height: 90%;
  cursor: pointer;
  transition: none;
}

/* Fondo oscuro detrás de la imagen */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(218, 166, 166, 0.8);
  z-index: 999;
  display: none; /* Oculto por defecto */
}




@media (max-width: 768px) {
  .health-product-image {
    max-height: 240px; /* Ajuste para dispositivos móviles */
  }
}

@media (max-width: 480px) {
  .health-product-image {
    max-height: 230px; /* Ajuste para dispositivos muy pequeños */
  }
}



.health-product-image:hover {
  transform: scale(1.05);
}

/* Estilos del contenido */
.health-product-title {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin: 1rem 0 0.5rem;
  font-weight: 600;
  padding: 0 1rem;
}

.health-product-description {
  color: #a74444;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  padding: 0 1rem;
  flex-grow: 1;
}

/* Mejoras en los botones */
.health-button {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem; /* Reducir el tamaño de padding */
  border-radius: 6px;
  cursor: pointer;
  width: auto; /* Dejar el ancho del botón ajustable al contenido */
  margin: 0.5rem 1rem;
  transition: all 0.2s ease; /* Transición más rápida */
  font-weight: 500;
  font-size: 14px; 
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem; 
}
.health-button:hover {
  background-color: rgba(245, 132, 87, 0.932);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); 
}

.health-button.secondary {
  background-color: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
}

.health-button.secondary:hover {
  background-color: var(--accent-color);
  color: white;
}


/* Mejoras en la sección de otros productos */
.health-others {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  margin-top: 2rem;
}

.health-others ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.click-icon {
    font-size: 24px;
    color: #ffa7c5; 
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
 
}

.click-icon:hover {
    color: #f7d3d9; 

   
}



/* Estilo del botón */



.health-others li {
  color: #856262;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.health-others li::before {
  content: "✓";
  color: var(--accent-color);
  position: absolute;
  left: 0;
}

/* Mejoras para el carrito fijo */
.carrito-fijo {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--accent-color);
}

.carrito-fijo:hover {
  border-color: var(--primary-color);
}



/* Responsive adjustments */
@media (max-width: 480px) {
  .health-grid {
    gap: 0.8rem;
  }
  
  .health-product-image {
    height: 150px;
  }
  
  .health-product-title {
    font-size: 1rem;
  }
  
  .health-button {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  
  .health-category-title {
    font-size: 1.4rem;
  }
}


.health-banner {
  text-align: center;
  margin: 20px auto; 
  width: 100%; 
}

.banner-image {
  width: 100%; 
  height: 96px; 
  object-fit: cover; 
  border-radius: 10px; 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
}

/* carrito flotante */

#carrito {
    color: rgb(161, 70, 86); /* productos carrito */
  }


  .btn-vaciar {
    background-color: red;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
  }
  
  .btn-vaciar:hover {
    background-color: darkred;
  }
  
 
  .btn-pagar {
    background-color: green;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
  }
  
  .btn-pagar:hover {
    background-color: darkgreen;
  }

/* Media Queries para Responsividad */
@media (max-width: 1200px) {
  .health-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columnas */
  }
}

@media (max-width: 992px) {
  .health-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas */
  }
}

@media (max-width: 576px) {
  .health-grid {
    grid-template-columns: 1fr; /* 1 columna */
    gap: 1rem;
  }

  .health-product-image {
    height: 180px;
  }

  .health-heading {
    font-size: 2rem;
  }

  .health-category-title {
    font-size: 1.5rem;
  }

  .health-container {
    padding: 0 0.5rem;
  }

  .health-product-card {
    padding: 0.8rem;
  }

  .health-button {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .health-others {
    padding: 1.5rem;
  }
}

.left-aligned-title {
  text-align: left;
  margin-left: 0;
}

/* barra de busqueda */
.search-container {
    position: relative;
    margin-bottom: 20px;
}

#searchInput {
    width: 100%;
    padding: 10px;
    font-size: 16px;
}

.search-container i {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: gray;
}
