* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f4f7fb;
}

/* HEADER */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: linear-gradient(90deg, #0b2a4a, #163f6b);
    color: white;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

/* TITULO */

.titulo {
    text-align: center;
    padding: 60px 20px;
}

.titulo h1 {
    font-size: 40px;
    color: #0b2a4a;
}

/* BUSCADOR */

.buscador {
    text-align: center;
    margin-bottom: 40px;
}

.buscador input {
    padding: 12px;
    width: 280px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* GRID */

.noticias-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 60px;
}

/* TARJETA */

.noticia {
    background: white;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    padding: 25px;
    transition: 0.4s;
}

.noticia:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.noticia h3 {
    color: #1e4f86;
    margin-bottom: 10px;
}

.fecha {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.noticia p {
    font-size: 14px;
    color: #555;
}

.noticia a {
    display: inline-block;
    margin-top: 15px;
    text-decoration: none;
    color: white;
    background: #1e6acb;
    padding: 8px 15px;
    border-radius: 6px;
    transition: 0.3s;
}

.noticia a:hover {
    background: #0b2a4a;
}

/* FOOTER */

footer {
    text-align: center;
    padding: 30px;
    background: #0b2a4a;
    color: white;
    margin-top: 40px;
}

/* RESPONSIVE */

@media(max-width:768px) {

    header {
        flex-direction: column;
        gap: 10px;
    }

    .noticias-container {
        padding: 20px;
    }

    .titulo h1 {
        font-size: 28px;
    }

}


/* HEADER */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: linear-gradient(90deg, #0b2a4a, #163f6b);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo h1 {
    font-size: 24px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: white;
    left: 0;
    bottom: -5px;
    transition: 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* MENU MOBILE */

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* RESPONSIVE MOVIL */

@media(max-width:700px) {

    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #0b2a4a;
        display: none;
    }

    nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    nav.active {
        display: block;
    }


}


.logo {
    display: flex;
    align-items: center;
    gap: 10px; /* espacio entre imagen y texto */
}

.logo img {
    width: 40px;  /* ajusta tamaño */
    height: 40px;
    object-fit: contain;
}