body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    background-color: #19437D; /* Color azul elegante */
    color: #fff;
    padding: 10px;
    position: relative;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header h1 {
    margin: 0;
    font-size: 24px;
    color: #fff;
    flex-grow: 1;
    text-align: center;
}

header .logo {
    width: 200px;
    height: 100px;
}

.menu {
    margin-left: auto;
}

.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.menu li {
    margin-left: 20px;
}

.menu a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    transition: color 0.3s;
}

.menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: white;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.menu a:hover::after {
    width: 100%;
    left: 0;
    background: #f1c40f;
}


main {
    padding: 1rem;
}

#noticias {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.noticia {
    background-color: #fff;
    margin: 1rem;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.noticia:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.imagen {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.contenido {
    padding: 1rem 0;
}

.titulo {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.resumen {
    font-size: 1rem;
    color: #666;
}


footer {
  background-color: #2e8b57;
  color: #fff;
  padding: 1rem 0;
  position: relative;
  bottom: 0;
  width: 100%;  
  text-align: center;
}

footer a:hover {
    color: #d4edda; /* Verde claro */
}
