body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #142F4C; /* Azul marino / gris azulado profundo for main text */
    background-color: #F9F9F9; /* Fondo neutro */
}

header {
    background-color: #2976A3; /* Azul claro */
    padding: 10px 20px; /* Adjust padding for better alignment */
    border-bottom: 2px solid #33A0C3; /* Azul medio */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex; /* Use flexbox for layout */
    align-items: center; /* Center items vertically */
    justify-content: space-between; /* Space out logo and menu */
}

header h1 {
    text-align: center;
    margin: 0;
    color: #fff;
    font-size: 2.5em;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    margin: 0; /* Remove top margin for better alignment */
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    text-decoration: none;
    color: #FFFFFF; /* White for contrast */
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #1E4C78; /* Azul oscuro */
}

main {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

section {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #e6f2ff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

footer {
    background-color: #2976A3; /* Azul claro */
    text-align: center;
    padding: 15px 0;
    border-top: 2px solid #33A0C3; /* Azul medio */
    color: #FFFFFF; /* White for contrast */
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.banner {
    position: relative; /* Set position to relative to contain the absolutely positioned logo */
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
}

.logo-overlay {
    position: absolute; /* Position the logo absolutely within the banner */
    top: 10px; /* Position from the top */
    left: 10px; /* Position from the left */
    width: 100px; /* Adjust size as needed */
    height: auto;
}

.section-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    width: 150px; /* Increase the width to make it larger */
    height: auto;
    margin: 0; /* Ensure no extra margin */
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
}

.grid-item {
    width: 120px; /* Reduce the width */
    height: 120px; /* Reduce the height */
    overflow: hidden; /* Hide overflow to maintain uniform size */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFFFFF; /* Set background color to white */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.grid-image {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.grid-image:hover {
    transform: scale(1.05);
}

.flex-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    flex-direction: row-reverse; /* Reverse the order to place the image on the right */
}

.flex-section .section-image {
    flex: 1 1 30%; /* Reduce the image width to 30% */
    max-width: 100%;
}

.flex-section .text-content {
    flex: 1 1 60%; /* Text takes up 60% of the width */
    max-width: 100%;
}

@media (max-width: 768px) {
    .flex-section {
        flex-direction: column-reverse; /* Stack items vertically on smaller screens */
    }
} 