/* Contenedor general de la biografía */
.memorial-biografia-container {
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center;
    flex-direction: column;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 12px;
    margin: 30px auto;
    width: 85%;
    max-width: 850px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

/* 🔹 Ocultar la biografía por defecto y mostrar solo cuando se active */
.memorial-biografia-container.hidden {
    display: none;
}

/* Título con icono */
.biografia-titulo {
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    color: #222;
}

/* Contenedor de la biografía */
.biografia-contenido {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Imagen de la biografía */
.biografia-imagen img {
    width: 100%;
    max-width: 340px;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
}

/* Efecto de zoom al pasar el mouse sobre la imagen */
.biografia-imagen img:hover {
    transform: scale(1.07);
}

/* Caja de texto para la biografía */
.biografia-texto {
    text-align: justify;
    max-width: 700px;
    font-size: 18px;
    line-height: 1.8;
    padding: 20px;
    background: rgba(240, 240, 240, 0.95);
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease-in-out;
}

/* Aplicar la fuente seleccionada */
.biografia-texto p {
    font-family: inherit;
}

/* Placeholder cuando no hay biografía */
.biografia-placeholder {
    font-style: italic;
    color: #777;
    font-size: 17px;
}

/* Botón "Leer más" */
.leer-mas {
    background: #007BFF;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s ease-in-out;
}

.leer-mas:hover {
    background: #0056b3;
    transform: scale(1.05);
}

/* 🔹 RESPONSIVIDAD 🔹 */
@media screen and (max-width: 768px) {
    .memorial-biografia-container {
        width: 95%;
        padding: 20px;
    }

    .biografia-texto {
        font-size: 16px;
        max-width: 90%;
    }

    .biografia-imagen img {
        max-width: 280px;
    }
}
