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;
}

/********************texto******************************/
.textaco {
    font-size: 20px;
    margin: 20px;
    text-align: justify;
    margin-left: 150px;
    margin-right: 150px;
}

.textaco-imagen {
    display: flex;
}

h2 {
    color: #E21010;
    font-size: 60px;
    font-weight: bold;
    margin-top: 50px;
    margin-left: 150px;
    text-align: left;
}

.textaco-imagen {
    display: flex;
}

.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: 20px;
    margin-top: 20px;
}

/**********************banner****************************/
.banner {
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

/**********************Carrusel**************************/

.carousel {
    position: relative;
    top: 50%;
    left: 10%;
    width: 85%;
    max-width: 1200px;
    z-index: 1;
    margin-top: 20px;
}

.carousel-inner {
    position: relative;
}

.carousel-inner img {
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: brightness(0.6);
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    font-size: 24px;
}

.carousel-caption h3 {
    font-size: 40px;
}

.carousel-caption h5,
.carousel-caption p {
    margin: 0;
}

.carousel-caption button {
    margin-top: 10px;
}

.carousel-position {
    position: relative;
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    color: #ffffff;
}

/******************noticias*******************/
.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;

}

/********************sponsors********************/
.sponsors {
    margin-left: 150px;
    margin-bottom: 5%;
}

.sponsors img {
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 20px;
}

/********************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) {
    .textaco-imagen img {
        display: none;
    }

    .textaco-imagen {
        margin-right: 150px;
    }

    h2 {
        margin-right: 150px;
    }

    .imagen-noticias {
        display: none;
    }

    .contenedor-noticias img {
        display: none;
    }

    .carousel-caption p {
        display: none;
    }

    .contenedor-noticias {
        margin: 0px;
        width: 100%;
    }

    .caja-noticias {
        margin-left: 50px;
        margin-right: 50px;
        width: 100%;
    }

    .contenedor-noticias img {
        display: none;
    }

}

@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;
    }

    .carousel {
        position: relative;
        margin-top: 15%;
        margin-left: -5%;
    }

    .carousel-caption {
        flex-direction: fixed;
        top: 30%;
        font-size: 12px;
    }

    .carousel-caption p {
        display: none;
    }


    .carousel-caption h3 {
        font-size: 20px;
    }

    h2 {
        margin-left: 20px;
        margin-right: 20px;
    }

    .textaco {
        margin-left: 20px;
        margin-right: 20px;
    }

    .textaco-imagen {
        margin-right: 20px;
        margin-left: 20px;
    }

    .textaco-imagen p {
        margin-right: 20px;
        margin-left: 20px;
    }

    .sponsors {
        margin-left: 20px;
    }

    .sponsors img {
        display: flex;
    }
}