/* Reset básico */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  color: #000000;
}

/* ===== HEADER ===== */
.top-header {
  background-color: #b4df1a;
  padding: 10px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo-location {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 40px;
}

.location {
  font-size: 12px;
}

.search-bar {
  flex: 1;
  display: flex;
  margin: 0 20px;
}

.search-bar input {
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 4px 0 0 4px;
}

.search-bar button {
  padding: 8px 12px;
  border: none;
  background-color: #ddd;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.meli-plus a {
  background-color: rgb(15, 136, 130);
  color: white;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 12px;
  text-decoration: none;
}

.user-actions span {
  margin-left: 10px;
  font-size: 14px;
}

.nav-bar {
  margin-top: 10px;
}

.nav-bar ul {
  list-style: none;
  display: flex;
  gap: 15px;
  padding: 0;
  margin: 0;
  font-size: 14px;
  flex-wrap: wrap;
}

.nav-bar a {
  text-decoration: none;
  color: black;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  display: flex;
  gap: 20px;
  padding: 20px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

/* ===== CATEGORÍAS ===== */
.categories {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 10px;
  width: 250px;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.categories ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.categories li {
  margin-bottom: 10px;
}

.categories a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  display: block;
  padding: 8px;
  border-radius: 6px;
  transition: background-color 0.3s, color 0.3s;
}

.categories a:hover {
  background-color: #ffcc00;
  color: #000;
}

/* En el contenedor del carrusel */
.carousel {
  max-width: 1000px;
  width: 100%;
  height: 320px; /* Altura grande */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  position: relative;
}

.carousel-slide {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 450px; /* Igual que contenedor */
}

.carousel-slide img {
  height: 450px;
  width: auto;
  flex-shrink: 0;
  object-fit: cover;
}

/* Botones */
.btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 10px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Media query para pantallas pequeñas */
@media screen and (max-width: 1024px) {
  .carousel {
    height: 450px;
  }
  .carousel-slide {
    height: 450px;
  }
  .carousel-slide img {
    height: 450px;
  }
}

