/* Reseteo básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, sans-serif;
  background-color: #f9f9f9;
  color: #222;
  line-height: 1.6;
}

header {
  background-color: #1d1d1d;
  color: white;
  padding: 1.5rem 1rem;
  text-align: center;
}

header h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}

.menu li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.menu li a:hover {
  color: #34d399;
}

main {
  padding: 1.5rem;
  max-width: 1200px;
  margin: auto;
}

.noticias {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.card {
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.card h2 {
  font-size: 1rem;
  padding: 0.75rem;
}

.adsense {
  background: #e2e2e2;
  padding: 2rem;
  text-align: center;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #555;
}

footer {
  background-color: #1d1d1d;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
}

footer p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.cta {
  background-color: #34d399;
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
}

.cta:hover {
  background-color: #059669;
}

@media (max-width: 600px) {
  header h1 {
    font-size: 1.4rem;
  }

  .card img {
    height: 150px;
  }

  .cta {
    display: block;
    width: 80%;
    margin: auto;
  }
}
