body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

/**********************************headers**************************************/
.header-top {
    background-color: #1A1717;
    color: #fff;
    padding: 10px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.header-top img {
    max-width: 100%;
    height: auto;
    max-height: 25px;
    margin-left: 10px;
}

.header-bottom {
    background-color: #E21010;
    position: relative;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Alinea el contenido a ambos lados */
}

.header-bottom img {
    max-width: 100%;
    height: auto;
    max-height: 145px;
    margin-right: 20px;
    position: absolute;
    top: 50%;
    transform: translateY(-68%);
    left: 0;
}

.header-bottom .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Alinea el h1 a la izquierda y el nav a la derecha */
    width: 100%;
}

.header-bottom h1 {
    margin: 0 20px 0 125px;
    color: #fff;
}

.header-bottom nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 18px;
    font-family: Verdana, sans-serif;
    position: relative;
    transition: color 0.3s;
}

.header-bottom nav a:hover {
    color: #000000;
}

/********************menu************************/

.contenedor-noticias {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px;
    flex-direction: row;
}

.caja-noticias {
    width: 45%;
    height: 250px;
    margin: 25px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: row;
}

.caja-noticias:hover {
    transform: scale(1.1);
    text-decoration: none;
}

.imagen-noticias {
    width: 60%;
    height: 100%;
    object-fit: cover;
}

.contenido-noticias {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    justify-content: flex-start;
}

.titulo-noticias {
    font-size: 18px;
    margin-bottom: 5px;
    color: #E21010;
}

.texto {
    margin-bottom: 10px;
    color: #000000;
    text-align: justify;

}

.fecha {
    position: flex;
    font-size: 14px;
    color: #888;

}

/*****************texto*********************/

h2 {
    color: #E21010;
    font-size: 60px;
    font-weight: bold;
    margin-top: 50px;
    margin-left: 150px;
    text-align: left;
}

.textaco {
    font-size: 20px;
    margin: 20px;
    text-align: justify;
    margin-left: 150px;
    margin-right: 150px;
}

.textaco a {
    color: #E21010;
}

.textaco-imagen {
    display: flex;
    align-items: center;
    margin-right: 150px;
}

.textaco-imagen p {
    font-size: 20px;
    margin-right: 40px;
    text-align: justify;
    margin-left: 150px;
    margin-top: 20px;
}

.textaco-imagen img {
    width: 20%;
    height: auto;
    margin-right: 10%;
    margin-bottom: 5%;
    margin-top: 20px;
}

.textaco-imagen a {
    color: #E21010;
}

.textaco-imagen img {
    max-width: 100%;
    height: auto;
    margin: 10px;
}

.portada {
    display: flex;
}

.portada img {
    width: 50%;
    margin: 0 auto;
    margin-bottom: 20px;
    margin-top: 20px;
}

.portada a {
    margin: 0 auto;
    margin-bottom: 20px;
    margin-top: 20px;
    display: flex;
}

.video-container {
    max-width: 400px;
    margin: 0 auto;
    overflow: hidden;
    margin-bottom: 30px;
}

/*******************galeria*************/
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 20px;
}

.gallery img {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    margin: 10px;
    border-radius: 8px;
    transition: transform 0.3s;
}

/****************footer*********************/
footer {
    background-color: #E21010;
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    text-align: left;
    margin-left: 20px;
}

.social-icons {
    text-align: right;
}

.icon {
    margin-left: 10px;
}

.icon img {
    width: 40px;
    height: 40px;
    margin-left: 10px;
}

a {
    text-decoration: none;
}

/*****************Mediaquery*******************/
@media(max-width:1000px) {
    h2 {
        margin-right: 150px;
    }

    .contenedor-noticias {
        margin: 0px;
        width: 100%;
    }

    .caja-noticias {
        margin-left: 50px;
        margin-right: 50px;
        width: 100%;
    }

    .contenedor-noticias img {
        display: none;
    }

    .textaco-imagen p {
        margin-right: 0px;
        margin-left: 150px;
    }

    .textaco-imagen img {
        display: none;
    }

    .portada img {
        width: 90%;
    }

    .portada a {
        width: 90%;
    }

}

@media(max-width:700px) {
    .header-bottom h1 {
        flex-direction: column;
        text-align: end;
        margin: 0;
    }

    .header-bottom img {
        display: none;
    }

    nav {
        flex-direction: column;
        background-color: #E21010;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        z-index: 1000;
    }

    nav a {
        margin: 10px;
    }

    /************************************************/

    h2 {
        margin-left: 20px;
        margin-right: 20px;
    }

    .textaco {
        margin-left: 20px;
        margin-right: 20px;
    }

    .volver-contenedor {
        justify-content: left;
    }

    .textaco-imagen {
        margin-left: -130px;
        margin-right: 20px;
    }
}