body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: black;
    color: #333;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: black;
}

.container {
    display: inline-flex; /* Centra el grupo horizontalmente */
    align-items: center;
    width: 100%;
    justify-content: center;
    gap: 20px; /* Espacio entre las imágenes y el título */
}

.logo {
    max-height: 100px; /* Tamaño de la imagen aumentado */
}

.title-img {
    max-width: 300px;
    margin: 0; /* Elimina el margen automático para pegar las imágenes */
}

.social-icons {
    display: flex;
    flex-direction: row; /* Enlaces en horizontal */
    gap: 10px;
    position: absolute;
    top: 20px;
    right: 20px;
}

.social-icons a {
    color: green;
    font-size: 1em; /* Tamaño de los iconos más pequeño */
}

.main-menu {
    background-color: rgb(103, 226, 140);
    text-align: center;
    padding: 10px 0;
}

.main-menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
}

.main-menu li {
    margin: 0 20px;
}

.main-menu a {
    text-decoration: none;
    color: green;
    font-size: 1.2em;
}

.news-board {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    margin-bottom: 80px; /* Margen inferior agregado */
    padding-top: 0px;
    padding-bottom: 0px;
    margin-bottom: 0px;
}

.news-board2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    margin-bottom: 80px; /* Margen inferior agregado */
    padding-top: 0px;
    padding-bottom: 0px;
}


.news-board2 h1 { /* Estilos para el h1 dentro de news-board */
    width: 100%; /* El h1 ocupa todo el ancho disponible */
    text-align: center; /* Centra el texto del h1 */
    margin-bottom: 20px; /* Espacio entre el h1 y los artículos */
    color:rgb(103, 226, 140);
    font-size: 40px;
}


.news-board h1 { /* Estilos para el h1 dentro de news-board */
    width: 100%; /* El h1 ocupa todo el ancho disponible */
    text-align: center; /* Centra el texto del h1 */
    margin-bottom: 20px; /* Espacio entre el h1 y los artículos */
    color:rgb(103, 226, 140);
    font-size: 40px;
}

.news-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto; /* Mantiene el scroll horizontal */
    gap: 10px; /* Añade espacio entre los elementos */
    scroll-behavior: smooth; /* Añade un scroll suave */
    margin-bottom: 0px;
}



.news-item {
    flex: 0 0 auto; /* No permite que los elementos cambien de tamaño */
    width: 300px; /* Fija el ancho de los elementos */
    margin: 10px;
    background-color: rgb(103, 226, 140);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.news-item * { /* Selecciona todos los elementos hijos de .news-item */
    width: 100%; /* Cada elemento hijo ocupa el 100% del ancho del contenedor */
    margin-bottom: 10px; /* Espacio entre los elementos dentro del article */
    text-align: center; /* Alinea el texto de todos los elementos al centro */
}

.news-item *:last-child { /* Selecciona el último elemento hijo de .news-item */
  margin-bottom: 0; /* Elimina el margen inferior del último elemento */
}

.news-image {
    max-width: 50%;
    border-radius: 8px;
}

.button {
    display: inline-block;
    padding: 10px 5px;
    font-size: 25px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border: 7px solid black;
    color: black;
    background-color: rgb(103, 226, 140);

    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: white;
}

footer {  /* Estilos para el pie de página */
    background-color: #333;
    color: white;
    text-align: center;
    padding: 0px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 10px; /* Nuevo tamaño de fuente más pequeño */
}

@media only screen and (max-width: 768px) {
    body {
        font-size: 0.4em; /* Reducimos el tamaño general de la fuente */
    }

    header {
        padding: 20px; /* Reducimos el padding */
    }

    .logo {
        max-height: 50px; /* Disminuimos el tamaño del logo */
    }

    .title-img {
        max-width: 150px; /* Disminuimos el tamaño del título */
    }

    .social-icons a {
        font-size: 1.5em; /* Ajusta este valor */
        padding-top: 50px;
    }

    .main-menu {
        background-color: rgb(103, 226, 140);
        text-align: center;
        padding: 0.1px 0;
        font-size: 2em; /* Reducir el tamaño de fuente */
    }

    .main-menu ul {
        list-style: none;
        display: flex;
        justify-content: center;
        padding: 0;
    }

    .main-menu li {
        margin: 0 5px; /* Reducir el margen horizontal */
    }

    .main-menu a {
        text-decoration: none;
        color: green;
        font-size: 1em; /* Reducir el tamaño de fuente */
    }

    .news-board {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 16px; /* 20px * 0.8 */
        margin-bottom: 64px; /* 80px * 0.8 */
        padding-top: 0px;
        padding-bottom: 0px;
        margin-bottom: 0px;
      }
      
      .news-board2 {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 16px; /* 20px * 0.8 */
        margin-bottom: 64px; /* 80px * 0.8 */
        padding-top: 0px;
        padding-bottom: 0px;
      }
      
      .news-board2 h1 {
        width: 100%;
        text-align: center;
        margin-bottom: 16px; /* 20px * 0.8 */
        color: rgb(103, 226, 140);
        font-size: 32px; /* 40px * 0.8 */
      }
      
      .news-board h1 {
        width: 100%;
        text-align: center;
        margin-bottom: 16px; /* 20px * 0.8 */
        color: rgb(103, 226, 140);
        font-size: 32px; /* 40px * 0.8 */
      }
      
      .news-container {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        gap: 8px; /* 10px * 0.8 */
        scroll-behavior: smooth;
        margin-bottom: 0px;
      }
      
      .news-item {
        flex: 0 0 auto;
        width: 240px; /* 300px * 0.8 */
        margin: 8px; /* 10px * 0.8 */
        background-color: rgb(103, 226, 140);
        border-radius: 6.4px; /* 8px * 0.8 */
        padding: 12px; /* 15px * 0.8 */
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
      }
      
      .news-item * {
        width: 100%;
        margin-bottom: 8px; /* 10px * 0.8 */
        text-align: center;
      }
      
      .news-item *:last-child {
        margin-bottom: 0;
      }
      
      .news-image {
        max-width: 50%;
        border-radius: 6.4px; /* 8px * 0.8 */
      }
      
      .button {
        display: inline-block;
        padding: 8px 4px; /* 10px * 0.8, 5px * 0.8 */
        font-size: 20px; /* 25px * 0.8 */
        font-weight: bold;
        text-align: center;
        text-decoration: none;
        border: 5.6px solid black; /* 7px * 0.8 */
        color: black;
        background-color: rgb(103, 226, 140);
        border-radius: 8px; /* 10px * 0.8 */
        cursor: pointer;
        transition: background-color 0.3s ease;
      }
      
      .button:hover {
        background-color: white;
      }


}



@media only screen and (max-width: 650px) {
    body {
        font-size: 0.4em; /* Reducimos el tamaño general de la fuente */
    }

    header {
        padding: 20px; /* Reducimos el padding */
    }

    .logo {
        max-height: 50px; /* Disminuimos el tamaño del logo */
    }

    .title-img {
        max-width: 150px; /* Disminuimos el tamaño del título */
    }

    .social-icons a {
        font-size: 1.5em; /* Ajusta este valor */
        padding-top: 50px;
    }

    .main-menu {
        background-color: rgb(103, 226, 140);
        text-align: center;
        padding: 0.1px 0;
        font-size: 2em; /* Reducir el tamaño de fuente */
    }

    .main-menu ul {
        list-style: none;
        display: flex;
        justify-content: center;
        padding: 0;
    }

    .main-menu li {
        margin: 0 5px; /* Reducir el margen horizontal */
    }

    .main-menu a {
        text-decoration: none;
        color: green;
        font-size: 1em; /* Reducir el tamaño de fuente */
    }

    .news-board {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px; /* 20px * 0.5 */
        margin-bottom: 40px; /* 80px * 0.5 */
        padding-top: 0px;
        padding-bottom: 0px;
        margin-bottom: 0px;
      }
      
      .news-board2 {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px; /* 20px * 0.5 */
        margin-bottom: 40px; /* 80px * 0.5 */
        padding-top: 0px;
        padding-bottom: 0px;
        margin-bottom: 75px;
      }
      
      .news-board2 h1 {
        width: 100%;
        text-align: center;
        margin-bottom: 10px; /* 20px * 0.5 */
        color: rgb(103, 226, 140);
        font-size: 20px; /* 40px * 0.5 */
      }
      
      .news-board h1 {
        width: 100%;
        text-align: center;
        margin-bottom: 10px; /* 20px * 0.5 */
        color: rgb(103, 226, 140);
        font-size: 20px; /* 40px * 0.5 */
      }
      
      .news-container {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        gap: 5px; /* 10px * 0.5 */
        scroll-behavior: smooth;
        margin-bottom: 0px;
      }
      
      .news-item {
        flex: 0 0 auto;
        width: 150px; /* 300px * 0.5 */
        margin: 5px; /* 10px * 0.5 */
        background-color: rgb(103, 226, 140);
        border-radius: 4px; /* 8px * 0.5 */
        padding: 7.5px; /* 15px * 0.5 */
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
      }
      
      .news-item * {
        width: 100%;
        margin-bottom: 5px; /* 10px * 0.5 */
        text-align: center;
      }
      
      .news-item *:last-child {
        margin-bottom: 0;
      }
      
      .news-image {
        max-width: 50%;
        border-radius: 4px; /* 8px * 0.5 */
      }
      
      .button {
        display: inline-block;
        padding: 5px 2.5px; /* 10px * 0.5, 5px * 0.5 */
        font-size: 12.5px; /* 25px * 0.5 */
        font-weight: bold;
        text-align: center;
        text-decoration: none;
        border: 3.5px solid black; /* 7px * 0.5 */
        color: black;
        background-color: rgb(103, 226, 140);
        border-radius: 5px; /* 10px * 0.5 */
        cursor: pointer;
        transition: background-color 0.3s ease;
      }
      
      .button:hover {
        background-color: white;
      }



}

@media only screen and (max-width: 400px) {
    body {
        font-size: 0.4em; /* Reducimos el tamaño general de la fuente */
    }

    header {
        padding: 20px; /* Reducimos el padding */
    }

    .logo {
        max-height: 50px; /* Disminuimos el tamaño del logo */
    }

    .title-img {
        max-width: 150px; /* Disminuimos el tamaño del título */
    }

    .social-icons a {
        font-size: 1.5em; /* Ajusta este valor */
        padding-top: 50px;
    }

    .main-menu {
        background-color: rgb(103, 226, 140);
        text-align: center;
        padding: 0.1px 0;
        font-size: 2em; /* Reducir el tamaño de fuente */
    }

    .main-menu ul {
        list-style: none;
        display: flex;
        justify-content: center;
        padding: 0;
    }

    .main-menu li {
        margin: 0 5px; /* Reducir el margen horizontal */
    }

    .main-menu a {
        text-decoration: none;
        color: green;
        font-size: 1em; /* Reducir el tamaño de fuente */
    }

    .news-board {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 5px; /* 20px * 0.25 */
        margin-bottom: 20px; /* 80px * 0.25 */
        padding-top: 0px;
        padding-bottom: 0px;
        margin-bottom: 0px;
      }
      
      .news-board2 {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 5px; /* 20px * 0.25 */
        margin-bottom: 60px; /* 80px * 0.25 */
        padding-top: 0px;
        padding-bottom: 0px;
        
      }
      
      .news-board2 h1 {
        width: 100%;
        text-align: center;
        margin-bottom: 5px; /* 20px * 0.25 */
        color: rgb(103, 226, 140);
        font-size: 10px; /* 40px * 0.25 */
      }
      
      .news-board h1 {
        width: 100%;
        text-align: center;
        margin-bottom: 5px; /* 20px * 0.25 */
        color: rgb(103, 226, 140);
        font-size: 10px; /* 40px * 0.25 */
      }
      
      .news-container {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        gap: 2.5px; /* 10px * 0.25 */
        scroll-behavior: smooth;
        margin-bottom: 0px;
      }
      
      .news-item {
        flex: 0 0 auto;
        width: 75px; /* 300px * 0.25 */
        margin: 2.5px; /* 10px * 0.25 */
        background-color: rgb(103, 226, 140);
        border-radius: 2px; /* 8px * 0.25 */
        padding: 3.75px; /* 15px * 0.25 */
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
      }
      
      .news-item * {
        width: 100%;
        margin-bottom: 2.5px; /* 10px * 0.25 */
        text-align: center;
      }
      
      .news-item *:last-child {
        margin-bottom: 0;
      }
      
      .news-image {
        max-width: 50%;
        border-radius: 2px; /* 8px * 0.25 */
      }
      
      .button {
        display: inline-block;
        padding: 2.5px 1.25px; /* 10px * 0.25, 5px * 0.25 */
        font-size: 6.25px; /* 25px * 0.25 */
        font-weight: bold;
        text-align: center;
        text-decoration: none;
        border: 1.75px solid black; /* 7px * 0.25 */
        color: black;
        background-color: rgb(103, 226, 140);
        border-radius: 2.5px; /* 10px * 0.25 */
        cursor: pointer;
        transition: background-color 0.3s ease;
      }
      
      .button:hover {
        background-color: white;
      }

}





