body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url(../img/fondo_amarillo_giro.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) {
    .hoja-vida-container {
        flex-direction: column;
        align-items: flex-start; 
        margin-left: 10%;
        width: 80%;
    }
    
    .foto-profesor {
        margin-right: 0;
        margin-bottom: 2rem;
        align-self: flex-start; 
    }
}

/* Ajustes para móvil */
@media (max-width: 767px) {
    .hoja-vida-container {
        flex-direction: column;
        width: 90%;
        margin-left: 5%;
        padding: 1.5rem;
    }
    
    .foto-profesor {
        max-width: 200px;
        margin-right: 0;
        margin-bottom: 1.5rem;
        align-self: flex-start; 
    }
    
    button {
        margin-left: 0;
        margin-right: 0; 
        width: 25%; 
    }
}

.hoja-vida-container {
    display: flex;
    flex-direction: row;
    background-color: rgba(255, 255, 255, 0);
    width: 80%;
    max-width: 1200px;
    padding: 2rem;
    border-radius: 15px;
    margin: 10px;
    justify-content: center; 
    align-items: center; 
    margin-right: auto;
    margin-left: 5%; 
    font-size: 20px;
}

.foto-profesor {
    width: 100%;
    max-width: 200px;
    margin-right: 2rem;
    margin-block-end: 80px;
}

.foto-profesor img {
    width: 100%;
    border-radius: 15px;
}

.info-personal {
    flex: 1;
    margin-bottom: 2rem;
    background-color: rgba(255, 255, 255, 0);
}

.info-personal h2 {
    font-size: 2rem;
    color: #0077b6;
    margin-bottom: 1rem;
}

.info-personal p {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.6;
}

.contexto-profesional {
    flex: 1;
}

.contexto-profesional h3 {
    font-size: 1.5rem;
    color: #0077b6;
    margin-bottom: 1rem;
}

.contexto-profesional p {
    font-size: 1.2rem;
    color: #ffffff;
    line-height: 1.6;
}

button {
    background-color: #a08001;
    color: white;
    padding: 0.8rem 3rem;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    margin-top: 2rem;
    margin-left: 10%;
}

button:hover {
    background-color: #e6b800;
    transform: translateY(-3px);
}

.floating-button {
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    background-color: #a08001;
    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: #a08001; 
    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 #a08001; 
    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;
}