@charset "utf=8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 100%;
}

header {
    background-color: #003865;
    color: white;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    color: #00003e;
    font-size: x-large;
}

body {
    background-color: #f4f4f4;
    min-height: 100vh;
    background-color: #c6d2e7;
}

#bienvenido .fotofadu img {
    width: 100%;
    display: block;
}

#texto-bienvenido {
    margin-top: 1rem;
}

.nav-list {
    display: flex;
    list-style-type: none;
    gap: 1rem;
}

.nav-list li a {
    text-decoration: none;
    color: white;
}

header .nuestrologo img {
    max-width: 120px;
}

.noticias {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.noticias .texto,
.noticias .textos {
    flex: 1;
    margin: 20px;
    text-align: left;
}

.noticias .imagen img {
    max-width: 100%;
    height: auto;
    display: block;
}

.eventos {
    border-bottom: 2px solid #003865;
    display: inline-block;
    padding-bottom: 5px;
    width: 100%;
}

.eventos-list {
    display: flex;
    flex-direction: column;
}

.evento {
    display: flex;
    background: #ededf0;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
    flex-wrap: wrap;
}

.evento img {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

.detalle {
    flex: 1;
    padding: 20px;
}

.detalle h3 {
    color: #00003e;
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #00003e;
}

.detalle p {
    margin: 5px 0;
}

.button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: #00026f;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.button:hover {
    background-color: #2f95f6;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

main {
    padding: 20px;
    margin: 20px;
}

.contenedora {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
}

section {
    margin-bottom: 20px;
}

section h2 {
    color: #003865;
}

footer {
    background-color:#93aedb;
    color: #000000;
    text-align: center;
    padding: 10px 0;
    width: 100%;
}

article {
    width: 50%;
    margin: auto;
}

article img {
    width: 100%;
    border-radius: 20%;
    border-style: solid;
    border-color: rgb(12, 4, 50);
}

article {
    display: block;
    max-width: 600px;
    width: 300px;
    text-align: center;
    background-color: #7fbaea;
    margin-left: auto;
    margin-right: auto;
    margin-top: 5%;
    padding: 1em;
    border-radius: 15%;
}

article a {
    text-decoration: none;
    color: rgb(9, 6, 63);
}

.titulos {
    border-bottom: 2px solid #003865;
    display: inline-block;
    padding-bottom: 5px;
    width: 100%;
    font-size: larger;
    margin-bottom: 2rem;
    color: #003865;
}

h3 {
    color: rgb(10, 4, 39);
}



h5 {
    border: 1px solid #333;
    padding: 10px;
    border-radius: 5px;
    color: black;
    background-color: aliceblue;
    width: 200px;
}

.abrir-menu,
.cerrar-menu {
    display: none;
}

.noticias-list {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    gap: 20px;
}

.noticia-container {
    position: relative;
    margin-bottom: 50px;
    background: #ededf0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.noticia {
    display: flex;
    flex-wrap: wrap;
}

.noticia img {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

.detalle-noticia {
    flex: 1;
    padding: 20px;
}

.detalle-noticia h3 {
    color: #00003e;
    margin-top: 1rem;
    margin-bottom: 10px;
    border-bottom: 1px solid #00003e;
}

.detalle-noticia p {
    margin: 5px 0;
}
@media screen and (max-width: 768px) and (max-width:480px ) {
    header {
        flex-direction: column;
        text-align: center;
    }

    .nav-list {
        flex-direction: column;
        gap: 0.5rem;
    }

    .noticias {
        flex-direction: column;
        padding: 1rem;
    }

    .noticias .texto,
    .noticias .textos {
        margin: 10px 0;
    }

    .evento {
        flex-direction: column;
        align-items: center;
    }

    .evento img {
        width: 100%;
        max-width: none;
        height: auto;
        margin-bottom: 10px;
    }

    .contenedora {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
    }

    footer {
        padding: 20px;
        position: relative;
    }

    .abrir-menu,
    .cerrar-menu {
        display: block;
        border: 0;
        font-size: 1.5rem;
        background-color: transparent;
        cursor: pointer;
        color: white;
    }

    .nav {
        display: flex;
        flex-direction: column;
        align-items: end;
        position: absolute;
        top: 0;
        gap: 1rem;
        right: 0;
        background-color: rgb(9, 9, 36);
        padding: 2rem;
        box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        bottom: 0;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav.visible {
        display: flex;
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        align-items: end;
        gap: 1rem;
    }
}
