<!-- TIPOGRAFÍAS ELEGANTES -->
<link href="https://fonts.googleapis.com/css2?family=Merriweather&family=Playfair+Display&display=swap" rel="stylesheet">

<style>
/* Estilos globales */
body {
    font-family: 'Merriweather', serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

/* Encabezado principal */
h1 {
    text-align: center;
    color: #555;
    font-size: 2.8rem;
    margin-bottom: 30px;
    font-family: 'Playfair Display', serif;
}

/* Subtítulos */
h2 {
    font-size: 1.8rem;
    color: #555;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

/* Párrafos */
p {
    margin: 10px 0;
    text-align: center;
    font-size: 1.1rem;
}

/* Estilos para la foto de cabecera */
.foto-cabecera {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.foto-cabecera img {
    border-radius: 50%;
    width: 250px;
    height: 250px;
    object-fit: cover;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.foto-cabecera img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

/* Contenedor de memoriales */
.container.memoriales {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    text-align: center;
}

/* Grid de memoriales responsiva */
.grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.memorial-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    font-family: 'Merriweather', serif;
}

.memorial-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.cabecera {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Botón "Ver más" */
.ver-mas {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2a75bf;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.2s ease-in-out;
    font-family: 'Merriweather', serif;
}

.ver-mas:hover {
    background-color: #184a8c;
}

/* Sección de condolencias */
.seccion-condolencias {
    text-align: center;
    margin-top: 80px;
    margin-bottom: 40px;
}

.titulo-condolencias {
    font-size: 3rem;
    color: #0038B8;
    font-family: 'Playfair Display', serif;
    border-bottom: 2px solid #ccc;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 0;
}

/* Sección historia (versión refinada) */
.historia-container {
    max-width: 920px;
    margin: 80px auto;
    padding: 50px 35px;
    background-color: #fffdf8;
    border: 1px solid #eee2d0;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    font-family: 'Merriweather', serif;
    font-size: 1.25rem;
    color: #3a3a3a;
    line-height: 1.9;
    white-space: pre-line;
    text-align: justify;
    position: relative;
    z-index: 1;
}

.historia-container h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #2a3f80;
    margin-bottom: 35px;
    text-align: center;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.historia-container h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: #2a3f80;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    border-radius: 2px;
}
</style>
