/* Estilos generales */
.memorial-header {
    padding: 20px;
    text-align: center;
    color: white;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%; /* Ahora se ajusta automáticamente al contenedor padre */
    box-sizing: border-box; /* Evita que padding rompa el ancho */
}

/* Contenedor principal de la cabecera */
.memorial-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Foto de cabecera con bordes y efectos */
.memorial-photo {
    width: 300px;
    height: 300px;
    overflow: hidden;
    border: 5px solid white;
    transition: transform 0.3s ease, opacity 1s ease;
}

.memorial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Efecto de fade-in */
.fade-in {
    opacity: 0;
    animation: fadeIn 1.5s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Efecto zoom al pasar el mouse */
.zoom-hover:hover {
    transform: scale(1.05);
}

/* Opciones de marco redondo o cuadrado */
.memorial-photo.redondo img {
    border-radius: 50%;
}

.memorial-photo.cuadrado img {
    border-radius: 10px;
}

/* Sección del nombre y bandera */
.memorial-name-section {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.memorial-bandera {
    width: 50px;
    height: auto;
}

/* Texto "En memoria de [nombre]" */
.memorial-estado {
    font-size: 26px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 15px;
    border-radius: 8px;
    color: black;
}

/* Sección de información con cajas */
.memorial-info {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.memorial-info-box {
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    color: black;
    text-align: center;
    min-width: 200px;
    max-width: 300px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

/* Ajuste responsivo */
@media screen and (max-width: 768px) {
    .memorial-photo {
        width: 200px;
        height: 200px;
    }

    .memorial-estado {
        font-size: 20px;
    }

    .memorial-info-box {
        min-width: 150px;
    }
}
