/* Reset de CSS básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-image:url(../images/bgb.jpg);
}

/*header inicio*/

header {
    /*background-image: url('../images/header-bg.jpg'); /* Ajusta la ruta según tu estructura de carpetas */
    background-color: #f9f7f5d2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #2c5c68;
    padding: 2em 0; /* Ajusta el padding según tus necesidades */
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s, opacity 0.3s;
}



header h1, header nav {
    position: relative;
    z-index: 2;
}

header nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    margin: 0;
}

header nav ul li {
    margin: 0 1em;
}

header nav ul li a {
    color: #2c5c68;
    text-decoration: none;
    padding: 0.5em;
    transition: background-color 0.3s;
}

header nav ul li a:hover {
    background-color: #34495e;
    border-radius: 5px;
}


header.abajo {
    background: rgba(0, 0, 0, 0.2);
    }
/* header fin */
body {
    padding-top: 8em; /* Ajusta este valor según la altura de tu header */
}



/* Contenido Principal */
main {
    padding: 2em 1em;
    max-width: 1200px;
    margin: 0 auto;
}

main section {
    margin-bottom: 2em;
    background-color: #ecf0f1;
    padding: 2em;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

main section h2 {
    margin-bottom: 1em;
    color: #2c3e50;
}

main section p, main section ul {
    color: #2c3e50;
}

main section ul {
    list-style: disc inside;
    margin-left: 1em;
}

/* Equipo */
main section#equipo ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

main section#equipo ul li {
    flex: 1 1 45%;
    background-color: #bdc3c7;
    padding: 1em;
    border-radius: 5px;
}

/* Formulario de Contacto */
form {
    display: flex;
    flex-direction: column;
}

form label {
    margin-top: 1em;
    color: #2c3e50;
}

form input, form textarea {
    margin-top: 0.5em;
    padding: 0.5em;
    border: 1px solid #bdc3c7;
    border-radius: 5px;
}

form button {
    margin-top: 1em;
    padding: 0.5em;
    border: none;
    border-radius: 5px;
    background-color: #2c3e50;
    color: #ecf0f1;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #34495e;
}

/* Pie de página */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 1em 0;
    position: fixed;
    width: 100%;
    bottom: 0;
}
/* Otros estilos aquí... */

/* Estilos para el carrusel */
#nosotros {
    display: flex; /* Flexbox para diseño horizontal en pantallas grandes */
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 20px;
}

#nosotros p {
    flex: 1; /* El texto ocupará más espacio disponible */
    margin: 0;
}

.image-container {
    flex: 0 0 auto; /* La imagen mantiene su tamaño original */
}

.image-container img {
    max-width: 300px; /* Limita el tamaño máximo de la imagen */
    height: auto; /* Mantiene la proporción */
    border-radius: 50%;
}

/* Media query para pantallas pequeñas */
@media (max-width: 768px) {
    #nosotros {
        flex-direction: column; /* Cambia a diseño en columna */
        text-align: center; /* Centra el texto */
    }

    #nosotros p {
        margin-bottom: 20px; /* Espacio entre texto e imagen */
    }

    .image-container img {
        max-width: 100%; /* La imagen ocupa todo el ancho disponible */
        height: auto;
    }
}
