/* ---RESET--- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #002856;
    color: #333;
    line-height: 1.6;
}

/* ---MENÚ DE NAVEGACIÓN--- */
header {
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed; /* Fija el header en la pantalla */
    top: 0; /* Lo coloca en la parte superior */
    left: 0; /* Ocupa todo el ancho */
    width: 100%; /* Ocupa todo el ancho */
    z-index: 100; /* Asegura que esté por encima de otros elementos */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
}

.logo img {
    height: 50px;
    margin-top: 8px;
    margin-right: 10px;
}

.menu {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.menu li {
    text-align: center;
}

.menu a {
    text-decoration: none;
    color: #003366;
    font-weight: bold;
    padding: 5px 10px;
    transition: color 0.3s;
}

.menu a:hover {
    color: #005bb5;
}

/* ---MENÚ HAMBURGUESA--- */
.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #003366;
}

/* ---FOOTER--- */
footer::before {
    content: "";
    display: block;
    width: 90%; /* Reduce el ancho para que no se vea pegado a los bordes */
    height: 1px;
    background-color: #ccc; /* Color gris claro */
    margin: 0 auto 20px auto; /* Centra la línea y da espacio abajo */
    opacity: 0.6;
}

footer {
    background-color: #002856; /* Azul oscuro */
    padding: 30px 5%;
    font-family: "Nunito-Sans", sans-serif;
    color: #abb8c3;
    font-size: 14px;
    display: flex;
    justify-content: center; /* Centra las secciones horizontalmente */
    align-items: center; /* Alinea verticalmente */
    flex-wrap: wrap;
    text-align: center;
}

.footer-section {
    flex: 1;
    min-width: 300px;
    max-width: 400px; /* Para evitar que se extienda demasiado */
    padding: 10px;
}

.footer-right {
    text-align: center; /* Asegura que esté centrado en pantallas pequeñas */
}

p {
    margin: 5px 0;
}

p a {
    color: #abb8c3; /* Color del enlace */
    text-decoration: none;
    font-weight: bold;
}

p a:hover {
    text-decoration: underline;
}

/* ---CONTACTO--- */
.profile-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 20px auto;
    margin-top: calc(90px + 6rem);
    margin-bottom: 5rem;
    background-color: #00467A; /* Azul oscuro */
    border-radius: 10px;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.profile-image img {
    width: 90%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    margin: 20px;
    border-radius: 10px;
}

.profile-details {
    padding: 15px;
    flex: 1;
}

.profile-details h1 {
    font-size: 28px;
    margin-bottom: 15px;
}

.profile-details p {
    line-height: 1.5;
    margin-bottom: 15px;
}

.profile-details .contact a {
    color: #00bcd4;
    text-decoration: none;
}

.profile-details .contact a:hover {
    text-decoration: underline;
}

/* Responsividad para pantallas medianas */
@media (max-width: 1024px) {
    .menu {
        display: none;
        flex-direction: column;
        background-color: #ffffff;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 25px;
    }

    .menu.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }
}

/* Responsividad para pantallas pequeñas */
@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        background-color: #ffffff;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 25px;
    }

    .menu.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .profile-container {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .profile-image img {
        width: 70%;
        max-width: 250px;
    }
    
    .profile-details {
        text-align: center;
    }
}
