
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  background-color: #3196cf;
  margin: 0;
  padding: 0;
  color: #fff;
}

header {
  text-align: center;
  padding: 20px;
}

header img {
  max-width: 150px;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  background-color: #3196cf;
  padding: 10px;
  font-weight: bold;
  font-size: 1.1em;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
}

.icon-bar {
  position: absolute;
  right: 20px;
  top: 30px;
  display: flex;
  gap: 20px;
  font-size: 1.2em;
  color: white;
  cursor: pointer;
}

.productos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  padding: 40px;
  max-width: 1200px;
  margin: auto;
}

.card {
  background-color: white;
  color: #000;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card h3 {
  margin: 10px 0 5px;
}

.card p {
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.feedback {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #28a745;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 9999;
}
.feedback.show {
  opacity: 1;
}

/* Scroll interno para carrito */
.cart-panel {
  overflow-y: auto;
  max-height: 100vh;
}

/* Responsividad */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 10px;
  }

  .productos-container {
    padding: 20px;
    grid-template-columns: 1fr;
  }

  .icon-bar {
    top: 10px;
    right: 10px;
    font-size: 1.1em;
  }

  header img {
    max-width: 120px;
  }

  .card img {
    height: 180px;
  }

  .card h3 {
    font-size: 1em;
  }

  .card p {
    font-size: 0.95em;
  }
}


/* WhatsApp moderno y fachero */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  font-weight: bold;
  font-size: 16px;
  padding: 12px 18px 12px 48px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  text-decoration: none;
  z-index: 9999;
  transition: all 0.3s ease;
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/6/6b/WhatsApp.svg');
  background-repeat: no-repeat;
  background-size: 24px;
  background-position: 14px center;
}
.whatsapp-float:hover {
  background-color: #1ebe5d;
  transform: scale(1.05);
}
