/* 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; */
  height: 98dvh;
  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;
}

/* Estilos para la sección de perfil */
.profile-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}
.profile-section h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 20px;
}

/* Información Personal */
.user-info {
  background-color: #f9f9f9;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 20px;
}
.user-info h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}
.profile-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.profile-form input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.profile-form button {
  padding: 10px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.profile-form button:hover {
  background-color: var(--secondary-color);
}

/* Anuncios Activos e Historial */
.active-ads,
.history-ads {
  margin-bottom: 20px;
}
.ads-grid {
  display: grid;
  gap: 15px;
}
@media (min-width: 600px) {
  .ads-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .ads-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.ad {
  background-color: #f4f4f4;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  text-align: center;
}
.ad img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 10px;
}
.ad h4 {
  color: var(--primary-color);
  margin: 10px 0;
}
.ad button {
  padding: 5px;
  margin: 5px 0;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.ad button:hover {
  background-color: var(--secondary-color);
}

/* 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;
}
