
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');


:root {
  --negro: #0d0d0d;
  --negrotransparente: #0d0d0d5c;
  --verde: #4caf50;
  --celeste: #00bcd4;
  --gris: #757575;
  --amarillo: #ffeb3b;
}

.btn-ordenar{
  background: var(--verde);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  margin-top: 30px;
}

body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  font-family: Lato, sans-serif;
}
h1,h2,h3,h4 {
  font-family: Montserrat, sans-serif;
}
h1 {
  font-size: 3em;
  margin: 0;
}
h2 {
  font-size: 1.6em;
  margin: 0;
}
h3 {
  font-size: 1.4em;
  margin: 0;
}
h4 {
  font-size: 1.2em;
  margin: 0;
}
p {
  font-size: 1em;
  margin: 0;
}
a {
  color: var(--celeste);
  text-decoration: none;
}

.banner-oferta{display: flex;
flex-direction: column;
text-align: center;
background-color: var(--amarillo);
padding-top: 20px;
padding-bottom: 20px;
}

.tittle-oferta{
  font-size: 1.6em;
}
.dscp-oferta{
  font-size: 1.2em;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--negro);
  color: white;
  padding: 10px 20px;
  height: 10vh;
   position: sticky; /* opcional, mantiene header visible al hacer scroll */
  top: 0;
  z-index: 1000;
}

header .logo {
  height: 60px;
  width: auto;
}

header nav a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
}

.cart-icon {
  font-size: 26px;
  cursor: pointer;
  color: var(--verde);
  position: relative; /* ya no fixed */
}
#cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--amarillo);
  color: rgb(53, 53, 53);
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.7em;
  font-weight: bold;
}

/* Hero */
.hero {
  position: relative;
  color: white;
  text-align: center;
  padding: 80px 20px;
  height: 60vh;
  background: url('/img/fondo2.jpg') center/cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--negro);
  filter: grayscale(100%);      /* blanco y negro */
  z-index: 0;
}

.hero * {
  position: relative;
  z-index: 1; /* mantiene los textos arriba */
}

.nav-links {
  display: flex;
  gap: 20px;
}
.burger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
}
#inicio {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 60%;
  padding-left: 20%;
  padding-right: 20%;
}
.tittles-hero {
  margin-bottom: 40px;
}
#tittle-hero {
  color: var(--verde);
}
#sub-tittle-hero {
  font-weight: 400;
}
#descripcion-hero {
  margin-bottom: 20px;
}

/*colores btns diferenciador*/
#agua{
  background-color: var(--celeste);
}
#alimento{
  background-color: var(--amarillo);
  color: #000;
}
#circulo{
  background-color: var(--verde);
}
.diferenciador {
  position: relative; /* referencia para el tooltip */
  background: var(--amarillo);
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: bold;
  margin: 10px;
  font-size: 16px;
}

/* Tooltip oculto por defecto */
.diferenciador .tooltip {
  position: absolute;
  bottom: -30px; /* debajo del botón */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, bottom 0.3s ease;
  z-index: 1000;
}

/* Flechita del tooltip */
.diferenciador .tooltip::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent rgba(0,0,0,0.85) transparent;
}

/* Hover en PC */
.diferenciador:hover .tooltip {
  opacity: 1;
  bottom: -50px;
  pointer-events: auto;
}

/* --- Secciones narrativas --- */
.section-filosofia {
  height: 50vh;
  background: 
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0,0,0,0.98)),
    url('/img/filosofia1.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;

  /* 🔑 centrado vertical + horizontal */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 0 20px; /* margen interno para que no choque el texto en pantallas pequeñas */
}

.section-filosofia h2 {
  font-size: 2em;
  margin-bottom: 10px;
  color: var(--verde);
}

.section-filosofia p {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 1.1em;
  font-weight: 300;
}


.section-impacto {
  background: linear-gradient(rgba(0, 0, 0, 0.818), rgba(0, 0, 0, 0.226)),
              url('/img/fondoimpacto2.jpg') center/cover no-repeat;
  color: #fff;
  padding: 80px 10%;
  text-align: center;
}
.section-impacto h2 {
  color: var(--celeste);
  margin-bottom: 20px;
}
.section-impacto p {
  max-width: 800px;
  margin: auto;
  font-size: 1.2em;
  line-height: 1.6;
}

/* =========================
   FOOTER
========================= */
/* =========================
   FOOTER NUEVO
========================= */
footer {
  background: #000;
  color: #f5f5f5;
  padding: 50px 20px 20px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  margin-bottom: 20px;
}

.footer-logo {
  max-width: 160px;
  margin: 0 auto 15px;
  display: block;
}

.footer-slogan {
  font-size: 0.95rem;
  color: #b3b3b3;
  margin-bottom: 30px;
  line-height: 1.4;
}

/* Links */
.footer-links {
  margin-bottom: 30px;
}

.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 15px;
  font-weight: bold;
  color: #fff;
}

.footer-links a {
  display: block;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #b3b3b3;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #4caf50;
}

/* Redes sociales */
.footer-social {
  margin-bottom: 30px;
}

.footer-social h4 {
  font-size: 1rem;
  margin-bottom: 15px;
  font-weight: bold;
  color: #fff;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0 8px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #b3b3b3;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: #4caf50;
  color: #fff;
  transform: translateY(-3px);
}

/* Copy */
.footer-bottom {
  border-top: 1px solid #222;
  padding-top: 15px;
  font-size: 0.85rem;
  color: #777;
  text-align: center;
}





/* En móvil: tooltip aparece ARRIBA */
@media (max-width: 768px) {
  .product-card.flipped .card-inner {
    transform: rotateY(180deg);}
  .nav-links {
    display: none;
    position: absolute;
    top: 140px;
    right: 0;
    background: #111;
    flex-direction: column;
    width: 100vw;
    padding: 15px;
    border-radius: none;
    z-index: 1000;
    height: auto;
    
    
  }
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    gap: 40px;
  }

  .footer-brand,
  .footer-links,
  .footer-social {
    flex: 1;
  }

  .footer-brand {
    max-width: 280px;
  }


.item-nav-link{
  display: block;
  width: 100%;
  margin: 0;
  text-align: center;
  height: 100%;
}

  
  .nav-links.active {
    display: flex;
    background-color: var(--verde);
  
  }

  .burger {
    display: block;
  }

  .cart-icon {
  font-size: 28px;
  cursor: pointer;
  color: var(--verde);
  position: fixed;
  top: 90px;
  right: 20px;

  #descripcion-hero{
    width: 80vw;
  }
}


  .diferenciador .tooltip {
    width: 70vw;
    height: 30px;
    bottom: auto;
    top: -60px; /* aparece encima */
    white-space: normal; /* permite varias líneas */

    text-align: center;
  }

  .diferenciador .tooltip::after {
    top: auto;
    bottom: -6px;
    border-color: rgba(0,0,0,0.85) transparent transparent transparent;
  }
.banner-oferta{
  padding-left: 30px;
  padding-right: 30px;
}
}



/* ===== GRID DE PRODUCTOS ===== */
#productos{
  text-align: center;
  background: #000;
  padding-top: 40px;
}
.texto-productos{
  max-width: 60%;
  margin: auto;
  padding: 0 20px;}
#productos #tittle-productos{
color: var(--verde);
font-size: 2em;

}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 50px 20px;
  padding: 50px 10%;
}

/* ===== TARJETA CON FLIP ===== */
/* ===== BANDA DE DESCUENTO===== */
.product-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.product-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #28a745; /* Verde BioGranja */
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.price-old {
  text-decoration: line-through;
  color: #888;
  margin-right: 5px;
}

.price-new {
  color: #e74c3c; /* rojo oferta */
  font-weight: bold;
}

/* =====BANDA DE DESCUENTO ===== */





.product-card {
  perspective: 1000px; /* genera el efecto 3D */
  width: 100%;
  height: 320px; /* altura fija */
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s;
  border-radius: 8px;
  
}

.product-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front, 
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(159, 159, 159, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card-front {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  background: var(--negrotransparente);
  color: rgb(255, 255, 255);
  box-shadow: 0 0.2px 2px rgba(151, 151, 151, 0.484);

}

.card-front img {
  width: 100%;
  height: 160px;
  object-fit: cover;
   filter: brightness(0.7);
}




.card-back {

  background: var(--negro);
  color: white;
  transform: rotateY(180deg);
  padding: 15px;
  text-align: center;

}

.card-back button {
  margin-top: 12px;
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: var(--amarillo);
  cursor: pointer;
  font-weight: bold;
}
.card-front button {
  margin-top: 12px;
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: var(--verde);
  cursor: pointer;
  font-weight: bold;
  color: white;
}


/* Paginación */
.pagination {
  display: flex;
  justify-content: center;
  margin:  0;
  padding: 30px;

}

.pagination button {
  background: var(--verde);
  color: white;
  border: none;
  margin: 0 5px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 6px;
}

/* Overlay carrito */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.cart-content {
  background: white;
  width: 90%;
  max-width: 500px;
  padding: 20px;
  border-radius: 12px;
  position: relative;
}

.close-btn {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
}
#checkoutBtn{
  background: var(--verde);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}


/* Carrito items */
#cartItems li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
  padding: 6px;
  background: #f9f9f9;
  border-radius: 6px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 5px;
}

.qty-control button {
  background: var(--verde);
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}


/*notificacion*/
#toast-container {
  position: fixed;
  top: 60px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #1db954;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  font-size: 14px;
  opacity: 0;
  transform: translateX(100%);
  animation: slideIn 0.4s forwards, fadeOut 0.4s 2.6s forwards;
}

.toast.error {
  background: #e74c3c;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}


/*whatsapp*/
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  font-size: 28px;
  padding: 16px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
  color: white;
}


/* 📱 Responsive móvil */
@media (max-width: 576px) {
  h1 { font-size: 1.8em; }
  h2 { font-size: 1.3em; }
  h3 { font-size: 1.1em; }
  h4 { font-size: 1em; }
  p  { font-size: 0.9em; line-height: 1.4; }

  .section-filosofia {
    height: auto;            /* ahora solo en móviles */
    min-height: 40vh;        /* evita que quede demasiado chica */
    padding: 40px 15px;
    background-size: cover;
  }
  .section-filosofia h2 { font-size: 1.6em; }
  .section-filosofia p { font-size: 1em; line-height: 1.4; }

  .section-impacto {
    padding: 50px 20px;
    background-size: cover;
  }
  .section-impacto p {
    font-size: 1em;
    line-height: 1.5;
  }
}

/* 💻 Responsive tablets */
@media (min-width: 577px) and (max-width: 992px) {
  h1 { font-size: 2.4em; }
  h2 { font-size: 1.5em; }

  .section-filosofia {
    height: auto;           /* tablets también sin fijo */
    min-height: 45vh;
    padding: 60px 30px;
  }
  .section-impacto {
    padding: 70px 40px;
  }
}


/* ===== WHATSAPP ===== */
/* Widget principal */
.whatsapp-chat {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 280px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  overflow: hidden;
  animation: fadeInUp 0.4s ease;
  z-index: 9999;
}

/* Header */
.whatsapp-chat .chat-header {
  background: #25d366;
  color: #fff;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: bold;
  font-size: 15px;
}

.whatsapp-chat .chat-header i {
  font-size: 20px;
  margin-right: 8px;
}

.whatsapp-chat .close-chat {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

/* Body */
.whatsapp-chat .chat-body {
  padding: 15px;
  font-size: 14px;
  color: #333;
}

.whatsapp-chat .chat-body p {
  margin-bottom: 12px;
  line-height: 1.4;
}

/* Botón */
.chat-button {
  display: block;
  background: #25d366;
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}
.chat-button:hover {
  background: #1ebe5d;
}

/* Icono minimizado */
.whatsapp-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  z-index: 9999;
  display: none; /* Inicialmente oculto */
}

/* Animación */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 480px) {
  .whatsapp-chat {
    width: 90%;
    right: 5%;
    bottom: 15px;
  }
}

/* ===== WHATSAPP ===== */


