body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #000000; /* Fondo negro */
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    background-color: #000000;
}

.logo {
    width: 100px;
    margin-right: 20px;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%; 
    margin: 20px auto;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px; 
}

.profile-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.profile-photo {
    width: 90px; 
    height: 90px;
    border-radius: 50%;
    margin-left: 280px;
    margin-top: -80px;
}

.text-content {
    width: 70%; 
    text-align: left;
}

.text-content h1 {
    margin: 0 0 10px 0;
    color: #ffffff; 
    font-size: 30px;
    margin-top: 20px;
}

.text-content p {
    font-size: 18px;
    line-height: 1.6;
    color: #ffffff;
}

.main-photo {
    width: 50%;
    height: auto;
    border-top: 2px solid #444;
    margin-left: 130px;
}

/* Estilos para tabletas (dispositivos con ancho de 768px a 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    header {
        flex-direction: column;
        align-items: center;
    }

    .logo {
        margin-bottom: 10px;
    }

    nav {
        flex-direction: column;
    }

    .profile-section {
        width: 95%;
    }

    .profile-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-photo {
        width: 70px;
        height: 70px;
        margin-left: 0;
        margin-top: 0;
    }

    .text-content {
        width: 90%;
    }

    .main-photo {
        width: 90%;
        margin-left: 0;
    }
}

/* Estilos para móviles (dispositivos con menos de 768px de ancho) */
@media (max-width: 767px) {
    header {
        flex-direction: column;
        align-items: center;
    }

    .logo {
        width: 80px; 
    }

    nav {
        flex-direction: column;
    }

    nav a {
        padding: 10px; 
        font-size: 16px; 
    }

    .profile-section {
        width: 100%;
        margin-top: 10px;
    }

    .profile-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-photo {
        width: 80px;
        height: 80px;
        margin-top: 10px;
    }

    .text-content {
        width: 90%; 
    }

    .main-photo {
        width: 100%; 
        margin-left: 0; 
        border-top: none; 
    }
}
