/* ==== FUENTE Y BASE ==== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #1f2937 0, #020617 35%, #020617 100%);
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==== ENCABEZADO ==== */
header {
  background: linear-gradient(135deg, #111827, #1f2937);
  color: white;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
  position: sticky;
  top: 0;
  z-index: 100;
}

header h1 {
  font-size: 1.9em;
  margin: 0;
  font-weight: 800;
  letter-spacing: 1.2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

header h1 img {
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.4));
}

/* Navbar */
nav {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

nav a {
  color: #e5e7eb;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

nav a:hover {
  background-color: #f97316;
  color: #111827;
  transform: translateY(-1px);
}

.bienvenida {
  color: #f9fafb;
  font-size: 0.9em;
  margin-left: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.25);
  border: 1px solid rgba(45, 212, 191, 0.6);
}

/* ==== PIE DE PÁGINA ==== */
footer {
  background: #020617;
  color: #9ca3af;
  text-align: center;
  padding: 14px;
  font-size: 0.85em;
  margin-top: auto;
  border-top: 1px solid rgba(55, 65, 81, 0.8);
}

/* ==== RESPONSIVE HEADER ==== */
@media (max-width: 700px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  header h1 {
    margin-bottom: 8px;
    font-size: 1.6em;
  }

  nav {
    justify-content: flex-start;
  }
}

/* ==== RESPONSIVE GENERAL ==== */
@media (max-width: 768px) {
  .contenedor-productos {
    flex-direction: column;
    align-items: center;
  }
  
  .carrito-item {
    flex-direction: column;
    align-items: flex-start;
  }
}