/* Importar fuentes */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;600&family=Quicksand:wght@400;500;600&display=swap');

/* GENERALES */
body {
  margin: 0;
  font-family: 'Quicksand', sans-serif;
  background: #fff3e6;
  color: #4B4453;
  line-height: 1.6;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* NAVBAR */
.navbar {
  background: #fff3e6;
  border-bottom: 2px solid #EDEDED;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  font-size: 2rem;
  font-family: 'Baloo 2', cursive;
  color: #4B4453;
  text-decoration: none;
}
.logo-img {
  height: 80px;
  border-radius: 10px;
}

/* NAV LINKS */
.nav-menu {
  display: flex;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.navbar nav a {
  text-decoration: none;
  color: #4B4453;
  font-weight: 1000;
  font-size: 1.2rem;
  transition: color 0.3s;
}
.navbar nav a:hover {
  color: #FF6F91;
}

/* BOTÓN MENÚ MÓVIL */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #4B4453;
}

/* BOTONES UNIFICADOS */
.btn-whatsapp,
.btn-instagram {
  padding: 0.6rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  transition: 0.3s;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #FFB6C1;
  color: #4B4453;
}
.btn-whatsapp:hover,
.btn-instagram:hover {
  opacity: 0.9;
  background: #FF6F91;
}
.footer-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.footer .btn-whatsapp,
.footer .btn-instagram {
  color: #4B4453 !important;
}

/* HERO */
.hero {
  background:#fff3e6;
  text-align: center;
  padding: 5rem 1rem;
}
.hero h1 {
  font-size: 3.2rem;
  font-family: 'Baloo 2', cursive;
  color: #4B4453;
}
.hero p {
  margin-top: 1rem;
  font-size: 1.3rem;
  color: #4B4453;
}
.hero-buttons {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.btn-primary {
  background: #FFB6C1;
  color: #000;
  padding: 1rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  transition: .3s;
}
.btn-primary:hover { background: #E55A7C; }
.btn-outline {
  background: #FFB6C1;
  color: #000;
  padding: 1rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  transition: .3s;
}
.btn-outline:hover { background: #E55A7C; }

/* PRODUCTOS */
.productos h2, .opiniones h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  font-family: 'Baloo 2', cursive;
  color: #4B4453;
}
.grid {
  display: grid;
  gap: 1.5rem;
}
.productos .grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}




.card {
  border: 1px solid #E0DEDC;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding-bottom: 1rem;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
  /* Tarjeta con altura fija para alinear botones */
  height: 760px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}
/* Área de imagen: mayor altura, mostrar la imagen completa sin recortarla */


.card img {
  width: 100%;
  height: 520px;
  object-fit: contain;
  object-position: center center;
  display: block;
  margin: 0 auto;
  background: #ffffff;
}





.price {
  font-weight: bold;
  color: #070707;
  font-size: 1.2rem;
}
.stock {
  color: #e05050;
  font-weight: 600;
}



/* OPINIONES */
.opiniones .grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.opinion {
  background: #b3dcd8;
  padding: 1.5rem;
  border-radius: 16px;
  font-style: italic;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  color: #4B4453;
}

/* CTA */
.cta {
  background: #fff3e6;
  color: #4B4453;
  text-align: center;
  padding: 4rem 1rem;
}
.cta h2 {
  font-size: 2.2rem;
  font-family: 'Baloo 2', cursive;
}
.cta p {
  font-size: 1.2rem;
  margin: 1rem 0 3rem;
  color: #000;
}
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* FOOTER */
footer {
  border-top: 2px solid #000;
  background: #fff3e6;
}
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer a {
  text-decoration: none;
  color: #000;
}
.footer a:hover { text-decoration: underline; }

/* WHATSAPP FLOAT */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  font-size: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  text-decoration: none;
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

/* RESPONSIVE */
@media(max-width: 768px){
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }

  .logo-img { height: 60px; }
  .logo { font-size: 1.5rem; }

  .nav-buttons { display: none; } /* oculta botones extra en móvil */
  .menu-toggle { display: block; }

  .nav-menu {
    display: none;
    width: 100%;
  }
  .nav-menu.active {
    display: block;
    background: #fff3e6;
    padding: 1rem 0;
  }
  .nav-links {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .btn-whatsapp, .btn-instagram {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
  }

  .cta-buttons a {
    width: 100%;
    text-align: center;
  }

  /* WhatsApp más pequeño en tablet */
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 15px;
    right: 15px;
  }
}

@media(max-width: 480px){
  /* WhatsApp aún más compacto en móviles pequeños */
  .whatsapp-float {
    width: 45px;
    height: 45px;
    font-size: 22px;
    bottom: 10px;
    right: 10px;
  }
}


/* Ajustes SOLO para móviles: separación de botones de contacto */
@media (max-width: 768px) {
  a.btn-whatsapp,
  a.btn-instagram,
  a.btn-email {
    display: block;
    margin: 40px auto;
    text-align: center;
    width: fit-content;

    /* 👇 más altura */
    padding: 20px 40px;  /* vertical | horizontal */
    line-height: 1.5;    /* mejor separación del texto */
  }
}


/* Botón Comprar: estilo visual recuperado + centrado dentro de la tarjeta */
.card .btn-card, 
.card .btn-card:hover, 



/* Evitar que títulos largos y descripciones empujen el botón: limitar líneas */
.card h3 {
  margin: .8rem 0 .3rem;
  font-family: 'Baloo 2', cursive;
  font-size: 1.05rem;
  line-height: 1.2;
  max-height: 2.4rem; /* aprox. 2 líneas */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.card p {
  margin: .25rem 0;
  max-height: 1.8rem; /* aprox. 1-2 líneas */
  overflow: hidden;
  text-overflow: ellipsis;
}
.card .price {
  font-weight: 700;
  margin-top: .4rem;
}

/* Botón: asegurar que quede en la base de la tarjeta y centrado */
.card .btn-card, .btn-card {
  display: inline-block;
  margin: 0.8rem auto 0;
  background: #b3dcd8;
  color: #fff;
  padding: .55rem 1rem;
  border-radius: 25px;
  text-decoration: none;
  transition: .3s;
  align-self: center;
  width: auto;
  min-width: 140px;
  max-width: 220px;
  box-sizing: border-box;
  border: none;
}
.card .btn-card:hover, 



/* Ajuste: color del stock en rojo suave */
.card .stock {
  color: #c94b4b; /* rojo suave (no muy fuerte) */
  font-weight: 600;
}

/* Hover del botón Comprar: cambiar a un tono de verde diferente */
.card .btn-card:hover, .btn-card:hover {
  background: #4fb88f; /* tono de verde al pasar el cursor */
  color: #ffffff;
  opacity: 1;
  transform: translateY(-2px);
}
