body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url(../img/fondo_lau.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

@media (max-width: 1024px) and (min-width: 768px) {
    body {
        background-image: url(../img/fondo_lau.jpg);
        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
    }
    
    .hoja-vida-container {
        flex-direction: column;
        align-items: center;
    }
    
    .foto-profesor {
        margin-right: 0;
        margin-bottom: 2rem;
    }
}

@media (max-width: 767px) {
    body {
        background-image: url(../img/fondo_lau.jpg); 
        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
        padding: 20px 0;
    }
    
    .hoja-vida-container {
        flex-direction: column;
        width: 95%;
        padding: 1rem;
        margin: 10px;
    }
    
    .foto-profesor {
        max-width: 200px;
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .info-personal h2 {
        font-size: 1.5rem;
    }
    
    button {
        padding: 0.6rem 1.5rem;
        margin-top: 1.5rem;
    }
}

.hoja-vida-container {
    display: flex;
    flex-direction: row;
    background-color: rgba(255, 255, 255, 0);
    width: 90%;
    max-width: 1200px;
    padding: 2rem;
    border-radius: 15px;
    margin: 20px;
}

.foto-profesor {
    width: 100%;
    max-width: 300px;
    margin-right: 2rem;
}

.foto-profesor img {
    width: 100%;
    border-radius: 15px;
}

.info-personal {
    flex: 1;
    margin-bottom: 2rem;
}

.info-personal h2 {
    font-size: 2rem;
    color: #ffee90;
    margin-bottom: 1rem;
}

.info-personal p {
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.6;
}

.number-profesor {
    font-size: 1 rem;
    margin-bottom: 1rem;
    text-decoration: none;
    color: #ffffff;
}

.contexto-profesional {
    flex: 1;
}

.contexto-profesional h3 {
    font-size: 1.5rem;
    color: #ffee90;
    margin-bottom: 1rem;
}

.contexto-profesional p {
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.6;
}

button {
    background-color: #ffee90;
    color: #4e2d38;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    margin-top: 2rem;
}

button:hover {
    background-color: #c7b96a;
    transform: translateY(-3px);
}

.floating-button {
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    background-color: #0077b6;
    color: white; 
    padding: 10px 20px 10px 60px; 
    border-radius: 50px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); 
    cursor: pointer; 
    z-index: 1000; 
    transition: background-color 0.3s, transform 0.3s; 
    list-style: none; 
    animation: fadeIn 0.5s; 
    animation-delay: 0.5s;
    animation-fill-mode: forwards; 
    text-decoration: none; 
}

.floating-button:hover {
    background-color: #005f8a; 
    transform: translateY(-3px); 
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); 
}

.floating-button-img {
    width: 60px; 
    height: 60px;
    border-radius: 50%; 
    position: absolute; 
    left: -20px; 
    bottom: 0;
    border: 3px solid #0077b6; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); 
}

.floating-button-text {
    font-size: 1rem; 
    font-weight: 500;
    text-decoration: none;
    color: white;
}