/*
Theme Name: Noticias Theme
Description: Tema simple para mostrar las últimas noticias en un grid.
Author: Tu Nombre
Version: 1.0
*/

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #ffffff;
  color: #333;
}
.news {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}
.news h2 {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #222;
  border-left: 6px solid #0077ff;
  padding-left: 15px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.news-item {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.news-item:hover {
  transform: translateY(-5px);
}
.news-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.news-content {
  padding: 20px;
}
.news-content h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #0077ff;
}
.news-content p {
  font-size: 0.95em;
  color: #555;
  line-height: 1.5;
}
a {
  text-decoration: none;
  color: inherit;
}

.main-nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0.5rem 1rem;
  margin: 0;
  background-color: #f8f8f8;
}

.main-nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}


.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.top-bar h1 {
  margin: 0;
}

.top-bar input {
  padding: 0.5rem;
  border: 1px solid #ccc;
}