html, body {
  width: 100%;
  overflow-x: hidden; /* Evita desbordamientos horizontales */
}

.store-section, .store-hero, .products-grid {
  max-width: 100vw; /* Limita el ancho máximo a la pantalla */
  overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
  }
  
  header {
    background-color: #A3D9A5;
    padding: 20px;
    text-align: center;
    color: white;
  }
  
  .service {
    margin: 20px;
    padding: 15px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}


/* Hero */
.store-hero {
    height: 550px;
    background: url('../img/store.jpg') center /cover no-repeat;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

  .store-hero h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  }
  
  .store-hero p {
    font-size: 1.5rem;
    margin-top: 10px;
  }
  
  /* Store Section */
  .store-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
  }
  
  /* Tabs */
  .store-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
  }
  
  .store-tabs .tab {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    background-color: white;
    border: 1px solid #ccc;
    font-size: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
  }
  
  .store-tabs .tab:hover,
  .store-tabs .tab.active {
    background-color: #85C88A; /* Verde principal */
    color: white;
  }
  
  /* Products Grid */
  .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  @media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr; /* Muestra una sola columna en móviles */
        gap: 15px;
    }

    .product-card {
        width: 90%;
        min-height: auto;
        padding: 10px;
        max-width: 350px;
        text-align: center;
    }

    .product-card img {
        height: 180px !important; /* Reduce tamaño de la imagen */
        width: 100%;
    }

    .buy-button {
        font-size: 14px;
        padding: 8px;
    }
}

  
  /* Product Card */
  /* Diseño mejorado para las tarjetas de productos */
/* Diseño mejorado para las tarjetas de productos */
.product-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  background-color: white;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 400px;
}

.product-card:hover {
  transform: scale(1.05);
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

.products-grid .product-card img {
  width: 100% !important;
  height: 250px !important;
  object-fit: cover !important;
}


/* Estilo del botón de compra */
.buy-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90%;
  padding: 12px;
  background-color: #ff9900;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  font-size: 16px;
  transition: background-color 0.3s;
  gap: 8px;
  margin-top: auto; /* Asegura que el botón se alinee correctamente */
}

.buy-button i {
  font-size: 20px;
}

.buy-button:hover {
  background-color: #e68a00;
}

  
  .product-card h3 {
    font-size: 1.2rem;
    margin: 15px 0 10px;
  }
  
  .product-card p {
    font-size: 0.9rem;
    color: #555;
  }
  
  .product-card .price {
    font-weight: bold;
    margin: 10px 0;
  }
  
  
  
  /* Pagination */
  .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    gap: 10px;
  }
  
  .pagination button {
    padding: 8px 12px;
    border: none;
    background-color: #85C88A;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .pagination button:hover {
    background-color: #6fa673;
  }
  
  .pagination .page-numbers {
    display: flex;
    gap: 5px;
  }
  
  .pagination .page-numbers span {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .pagination .page-numbers span.active {
    background-color: #85C88A;
    color: white;
    border: none;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .store-hero {
      height: 350px;
      background-size: cover;
      background-position: center;
      padding: 20px;
  }
    .store-hero h1 {
      font-size: 2rem;
      margin: 10px;
      text-align: center;
      word-wrap: break-word; /* Asegura que el texto no se salga */
    }
    
    .store-hero p {
      font-size: 1.2rem;
      text-align: center;
    }
    
    .product-card img {
      height: 150px;
    }
  }
  

  /* HEADER */

/* Ajusta texto en movimiento del slider */
#hero-text {
    font-size: 3rem; /* Ajusta según prefieras */
    font-weight: 800;
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,  
        -1px  1px 0 #000,  
         1px  1px 0 #000; /* Borde negro */
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,  
        -1px  1px 0 #000,  
         1px  1px 0 #000;
    margin: 0;
}

.hero-content p {
    font-size: 1.5rem;
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,  
        -1px  1px 0 #000,  
         1px  1px 0 #000;
    margin-top: 10px;
}


.btn {
    background: #4CAF50;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

/* NAVBAR */

.nav-links a.active {
    color: #fff;
    font-weight: bold;
}
.navbar .nav-links a.active::after {
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;  /* Reducimos el padding lateral */
    background-color: #6AB187;
    position: fixed;
    width: 100%;
    max-width: 100vw; /* Evita que sobrepase el ancho de la pantalla */
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box; /* Asegura que los márgenes no sobrepasen el ancho */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 10px;  /* Reducimos el espacio entre los enlaces */
    flex-wrap: nowrap; /* Evita que los enlaces bajen de línea */
    overflow: hidden; /* Evita que se desborden */
}

.nav-links li a {
    position: relative;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 8px 15px;
    display: inline-block;
    transition: color 0.3s ease;
}

/* Efecto de la barra */
.navbar .nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px; /* Grosor de la barra */
    background-color: white;
    transition: width 0.3s ease-out;
}

/* Al pasar el cursor */
.navbar .nav-links a:hover::after {
    width: 100%;
}

/* MENU HAMBURGUESA PARA MÓVILES */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

/* RESPONSIVE: Navbar en móviles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: #6AB187;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        text-align: center;
        padding: 10px 0;
    }
    .nav-links.active {
        display: flex;
    }
    .menu-toggle {
      display: block;
      font-size: 24px;
      cursor: pointer;
      color: white;
      padding: 10px;
    }
}
@media (max-width: 1024px) { /* Para tablets y móviles */
    .nav-links {
        display: none; /* Ocultamos los enlaces en móviles */
        flex-direction: column;
        background: #6AB187;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        text-align: center;
        padding: 10px 0;
    }
    .nav-links.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
        font-size: 24px;
        cursor: pointer;
        color: white;
        padding: 10px;
    }
}

@media (max-width: 768px) {
  .store-tabs {
      display: flex;
      flex-wrap: wrap; /* Permite que los botones pasen a la siguiente línea */
      justify-content: center;
      gap: 8px;
  }

  .store-tabs .tab {
      font-size: 0.9rem;
      padding: 8px 12px;
  }
}


/* footer */

footer {
    background-color: #6AB187; /* Color principal de la web */
    padding: 40px 20px;
    color: white;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1300px;
    margin: 0 auto;
    margin-bottom: 25px;
}

/* Secciones del footer */
.footer-section {
    flex: 1;
    min-width: 250px;
}

/* Títulos de cada sección */
.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: white;
}

/* Textos de contacto y enlaces */
.footer-section p,
.footer-section a {
    font-size: 1rem;
    color: white;
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    text-decoration: underline;
}

/* Documentos legales en una sola línea pero con dos líneas de texto */
.legal-documents {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px; /* Espacio entre los enlaces */
    padding: 0;
    margin-top: 10px;
    list-style: none;
    text-align: center;
}

.legal-documents li {
    flex: 1 1 auto;
    max-width: 200px; /* Ajustamos el ancho para forzar dos líneas */
    text-align: center;
    word-wrap: break-word;
}

/* Redes sociales */
.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 0;
    justify-content: center;
    margin-bottom: 25px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    transition: background-color 0.3s, transform 0.2s;
}

.social-icons a:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
    text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .legal-documents {
        gap: 20px;
        flex-wrap: wrap;
    }

    .legal-documents li {
        max-width: 100px;
    }
}


/* Mascota animada en el footer */
.footer-pet {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 30px;
    animation: wag-tail 1s infinite alternate;
}

@keyframes wag-tail {
    from { transform: rotate(-10deg); }
    to { transform: rotate(10deg); }
}