body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    width: 100%;
    box-sizing: border-box;
    position: fixed; /* Fijar el header en la parte superior */
    top: 0;
    left: 0;
}

header .logo img {
    width: 168px; /* Ajustar según el tamaño del logo */
    height: auto;
}

header nav {
    display: flex;
    align-items: center;
}

header nav a {
    margin: 0 35px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

header nav a:hover {
    text-decoration: underline;
}

#content-container {
    width: 80%;
    max-width: 800px;
    padding: 20px;
    margin: 100px auto 0; /* Añadir margen superior para el espacio del header */
    flex: 1; /* Permitir que el contenedor de contenido se expanda */
    overflow-y: auto; /* Añadir desplazamiento si el contenido es demasiado largo */
    margin-bottom: 80px; /* Añadir margen inferior para evitar superposición con el footer */
}

h1, h2, h3 {
    color: #333;
}

p, ul, li {
    color: #555;
}

ul {
    padding-left: 20px;
}

a {
    color: #339999;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.footer-links a {
    margin: 0 10px;
    color: #333;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.sponsors {
    width: 500px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.sponsors img {
    max-width: 50%;
    height: auto;
    max-height: 50px; /* Ajustar la altura máxima de las imágenes */
}

.legales {
    background: #2e3b4e;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px; /* Reducir el padding para hacerlo más delgado */
    flex-wrap: wrap;
    text-align: center;
}

.legales img {
    height: 30px;
    margin: 10px;
}

.legales a {
    color: white;
    margin: 10px;
    text-decoration: none;
}

.legales a:hover {
    text-decoration: underline;
}

footer {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: #2e3b4e;
    color: white;
    text-align: center;
    z-index: 1000; /* Asegurarse de que el footer esté sobre otros elementos */
}