/* Variables de color */
:root {
  --primary-color: #333;
  --secondary-color: #555;
  --accent-color: #888;
}

/* Layout general */
body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  font-family: Arial, sans-serif;
}

/* Navbar */
.navbar {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 20px;
}
.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}
.navbar-menu {
  list-style: none;
  display: flex;
  gap: 15px;
}
.navbar-menu a {
  color: white;
  text-decoration: none;
}

/* Main Content */
.main-content {
  padding: 20px;
}

/* Slider Destacados */
.destacados {
  overflow: hidden;
  margin-bottom: 20px;
}
.slider {
  display: flex;
  transition: transform 1s ease;
}
.slide {
  flex: 0 0 100%;
  background-color: var(--secondary-color);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  padding: 40px 0;
  text-align: center;
}
@media (min-width: 600px) {
  .slide {
    flex: 0 0 50%;
  }
}
@media (min-width: 900px) {
  .slide {
    flex: 0 0 33.33%;
  }
}

/* Feed de Avisos */
.feed {
  display: grid;
  gap: 15px;
}
.feed-title {
  grid-column: 1 / -1; /* Título ocupa toda la fila */
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}
.anuncio {
  background-color: #f4f4f4;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  text-align: center;
}
.anuncio img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}
.anuncio h3 {
  color: var(--primary-color);
  margin: 10px 0;
}
.anuncio .ver-mas {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: bold;
}
@media (min-width: 600px) {
  .feed {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .feed {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 20px;
  text-align: center;
}
.footer-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links {
  list-style: none;
  display: flex;
  gap: 15px;
  justify-content: center;
}
.footer-links a {
  color: white;
  text-decoration: none;
}
