body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #f8f6f6; /* Fondo blanco para el menú */
    color: #333;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Sombra para el menú */
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav img.logo {
    height: 60px; /* Ajusta el tamaño del logo a una medida más grande */
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #232121; /* Color del texto del menú en estado normal (gris) */
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    color: #0d0dd8; /* Color del texto al pasar el mouse (azul) */
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
}

.background-image-container {
    position: relative;
    width: 100%;
    height: 100vh; /* Altura total de la pantalla */
    background-image: url('../images/background.jpg'); /* Imagen de fondo */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
}

.logo-overlay {
    height: 80px; /* Ajusta el tamaño del logo */
    opacity: 0.8; /* Transparencia del logo */
    background: none; /* Asegura que el fondo del logo sea transparente */
}

main {
    padding: 20px;
    flex: 1;
}

h1 {
    text-align: center;
    color: #333;
}

.content-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    text-align: left;
}

.content-section:nth-child(odd) {
    background-color: #f9f9f9;
}

.content-section:nth-child(even) {
    background-color: #e9e9e9;
}

.section-image {
    width: 100%;
    height: auto;
    max-width: 400px;
    margin-bottom: 20px;
}

.section-text {
    text-align: center;
}

.content-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.content-section p {
    font-size: 1.2em;
    line-height: 1.6;
}

.contact-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.contact-section h1 {
    font-size: 3em;
    color: #333;
    margin-bottom: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    width: 100%;
}

.contact-form label {
    margin-bottom: 5px;
    color: #333;
}

.contact-form input, .contact-form textarea {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.contact-form button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    background-color: #0a0a5c; /* Botón azul */
    color: white;
    font-size: 1em;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #131358; /* Color más oscuro al pasar el mouse */
}

.contact-info {
    margin-top: 40px;
}

.contact-info h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.contact-info ul {
    list-style-type: disc;
    padding-left: 20px;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info li {
    margin-bottom: 10px;
    font-size: 1.2em;
}

footer {
    background-color: #0e0e57; /* Fondo azul para el footer */
    color: #fff; /* Texto blanco */
    text-align: center;
    padding: 10px 0;
    width: 100%;
}

@media (min-width: 768px) {
    .content-section {
        flex-direction: row;
    }
    .section-image {
        margin-bottom: 0;
        margin-right: 20px;
    }
    .section-text {
        text-align: left;
    }
}

@media (max-width: 767px) {
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    nav ul li {
        margin: 10px 0;
    }
    .menu-toggle {
        display: block;
    }
    nav ul.active {
        display: flex;
    }
}
