/* --- Header Estilo Mercado Libre --- */
.main-header {
  background-color: #fff159;
  padding: 12px 0 6px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid #e2d74f;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Fila Superior: Logo, Buscador y Acciones */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.logo a {
  font-size: 1.8rem;
  font-weight: 800;
  color: #2d3277;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.logo span {
  color: #00a650;
}

.search-box {
  flex: 1;
  max-width: 600px;
  display: flex;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.search-box input {
  width: 100%;
  border: none;
  padding: 10px 14px;
  font-size: 0.95rem;
  outline: none;
}

.search-box button {
  background: #ffffff;
  border: none;
  border-left: 1px solid #eee;
  padding: 0 16px;
  cursor: pointer;
  font-size: 1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.header-actions a {
  text-decoration: none;
  color: #333333;
}

/* Fila Inferior: Navegación */
.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.nav-links {
  display: flex;
  gap: 22px;
}

.nav-links a {
  text-decoration: none;
  color: #4b4b4b;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #000000;
}

/* --- Banner Principal --- */
.hero-banner {
  background: #ffffff;
  padding: 22px 28px;
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 25px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.hero-banner h2 {
  font-size: 1.4rem;
  color: #222222;
}

.hero-banner p {
  color: #666666;
  font-size: 0.9rem;
  margin-top: 4px;
}

.section-title {
  font-size: 1.3rem;
  margin-bottom: 18px;
  color: #333333;
}

/* --- Rejilla del Catálogo --- */
#productos-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.product-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.product-card img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  background-color: #ffffff;
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.product-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
}

.product-title {
  font-size: 0.88rem;
  color: #4a4a4a;
  font-weight: 400;
  line-height: 1.35;
}

.btn-agregar {
  margin-top: auto;
  background-color: #fff159;
  color: #2d3277;
  border: none;
  padding: 9px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-agregar:hover {
  background-color: #e6d84f;
}

/* Pie de Página */
.main-footer {
  text-align: center;
  padding: 25px;
  color: #777777;
  font-size: 0.85rem;
  border-top: 1px solid #dddddd;
  margin-top: 50px;
}